@newview/file-ui 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/file-ui.js +808 -114
- package/dist/file-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/UploadFileList.d.ts +5 -0
- package/types/index.d.ts +2 -1
package/dist/file-ui.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@newview/base-vue"),require("vue"),require("@newview/infrastructure"),require("@newview/fileservice-api"),require("@newview/basics-api"),require("@newview/tools")):"function"==typeof define&&define.amd?define(["exports","@newview/base-vue","vue","@newview/infrastructure","@newview/fileservice-api","@newview/basics-api","@newview/tools"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).fileui={},t.baseVue,t.Vue,t.infrastructure,t.fileserviceApi,t.basicsApi,t.tools)}(this,(function(t,e,n,r,o,i,l){"use strict";var a=Object.defineProperty,u=(t,e,n)=>(((t,e,n)=>{e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);const s={modelValue:{type:Boolean,default:!1},fileInfo:{type:Object,default:()=>{}},previewList:{type:Array,default:()=>[]},previewIndex:{type:Number,default:0}},c=n.defineComponent({name:"FilePreview",components:{},emits:["update:modelValue"],props:s,setup:(t,e)=>new f(t,e)});class f extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"ossFileApi",new o.OSSFileApi),u(this,"fileApi",new o.FileApi),u(this,"previewImage",n.ref(!1)),u(this,"previewIfr",n.ref(!1)),u(this,"ifrUrl",n.ref("")),u(this,"doClose",(t=>{t||this.ctx.emit("update:modelValue",!1)})),this.props=t,this.ctx=e,this.useFilePreview()}useFilePreview(){n.watch((()=>this.props.modelValue),(()=>{this.props.modelValue&&this.doView(this.props.fileInfo)})),this.props.modelValue&&this.doView(this.props.fileInfo)}async doView(t){const e=await this.ossFileApi.getSignatureUrlByFileInfo(t);if(this.isImage(t))this.previewImage.value=!0;else if(this.isOffice(t))this.ifrUrl.value=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(e)}`,this.previewIfr.value=!0;else if(this.isVedio(t))this.ifrUrl.value=`${e}`,this.previewIfr.value=!0;else if(this.isPDF(t))this.ifrUrl.value=`/static/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(e)}`,this.previewIfr.value=!0;else{const e=this.fileApi.getFileUrl(t.Token,t.Id);window.open(e)}}isOffice(t){const e=t.FileExt;return"doc"==e||"docx"==e||"ppt"==e||"pptx"==e||"xls"==e||"xlsx"==e}isVedio(t){const e=t.FileExt;return"mov"==e||"mp3"==e||"mp4"==e}isPDF(t){return"pdf"==t.FileExt}isImage(t){const e=t.FileExt;return"jpg"==e||"png"==e||"jpeg"==e||"gif"==e||"svg"==e}}const h=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},p={class:"ifr-container"},d=["src","title"];const y=h(c,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("ImagePreview"),u=n.resolveComponent("Modal");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(a,{transfer:"",modelValue:t.previewImage,"onUpdate:modelValue":e[0]||(e[0]=e=>t.previewImage=e),"preview-list":t.previewList,"initial-index":t.previewIndex,onOnClose:t.doClose},null,8,["modelValue","preview-list","initial-index","onOnClose"]),n.createVNode(u,{modelValue:t.previewIfr,"onUpdate:modelValue":e[1]||(e[1]=e=>t.previewIfr=e),fullscreen:"",mask:!0,"mask-closable":!1,width:1e3,"footer-hide":"",title:"文件预览 - "+t.fileInfo.FileName,onOnVisibleChange:t.doClose},{default:n.withCtx((()=>[n.createElementVNode("div",p,[n.createElementVNode("iframe",{src:t.ifrUrl,class:"ifr-content",title:t.fileInfo.fileInfo}," ",8,d)])])),_:1},8,["modelValue","title","onOnVisibleChange"])],64)}],["__scopeId","data-v-e7f81a3b"]]),v={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"}},g=n.defineComponent({name:"UploadFile",components:{filePreview:y},emits:["success","returnFileList"],props:v,setup:(t,e)=>new m(t,e)});class m extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!1)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((t,e,n)=>{const r=this.utilities.parseApiResult(t);this.uploading.value=!1,"0"==r.Code?(this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)):this.message.error(r.Msg)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"doBeforeUpload",(()=>{this.message.info("文件上传中,请稍等"),this.uploading.value=!0})),u(this,"doRemove",(t=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${t.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const e=await this.fileApi.deleteFile(t.Token,t.Id);this.utilities.parseApiResult(e)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(t=>{const e=this.fileApi.getFileUrl(t.Token,t.Id);window.open(e)})),u(this,"getGroupFiles",(t=>"默认"==t?this.fileList.value:this.fileList.value.filter((e=>e.GroupName==t)))),u(this,"getSingle",(t=>{const e=this.getGroupFiles(t);return this.props.single&&e.length>0})),u(this,"getFirstFile",(t=>{const e=this.getGroupFiles(t);return 0==e.length?void 0:e[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(t=>{const e=t.FileExt;return"jpg"==e||"png"==e||"jpeg"==e||"gif"==e||"svg"==e})),u(this,"getImgUrl",(t=>this.fileApi.getFileUrl(t.Token,t.Id))),u(this,"getThumbnailUrl",(t=>this.isImage(t)?this.getImgUrl(t):this.getFileIcon(t.FileExt))),u(this,"getFileIcon",(t=>{const e={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRw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uPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let h="";switch(t){case"rar":case"zip":h=l.img;break;case"doc":case"docx":h=e.img;break;case"xls":case"xlsx":h=n.img;break;case"pdf":h=o.img;break;case"ppt":case"pptx":h=r.img;break;case"png":case"jpg":h=i.img;break;case"mov":h=a.img;break;case"mp3":h=u.img;break;case"mp4":h=s.img;break;case"html":case"htm":h=c.img;break;default:h=f.img}return h})),u(this,"doView",(t=>{this.previewFileInfo=t,this.previewVisible.value=!0,this.previewIndex.value=t.PreviewIndex})),this.props=t,this.ctx=e,this.useUploadFile()}async useUploadFile(){n.watch((()=>this.props.token),((t,e)=>{this.setCurrentToken(),this.setUploadFilePos()})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`,this.action.value=this.uploadApi.getUploadFileUrl()}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const t of this.props.groups){const e=this.getUploadFilePo(t);this.uploadFilePos[t]=e}}getUploadFilePo(t){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,t,this.props.extraInfo,this.props.isCompress)}async loadFileList(t=!1){this.uploading.value=!0;const e=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken));this.fileList.value=this.utilities.parseApiResult(e),this.uploading.value=!1,t&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.setPreviewList()}setPreviewList(){let t=0;this.previewList.value=[];for(const e of this.fileList.value)this.isImage(e)&&(e.PreviewIndex=t,this.previewList.value.push(this.getImgUrl(e)),t++)}}const b={class:"uploadFile"},k=["onClick","title"],w={class:"file-upload-list-cover"},A={class:"file-upload-btn"},E={key:1,class:"nv-flex",style:{color:"#949494",border:"1px dashed #dcdee2",height:"60px",padding:"0 20px","font-size":"16px","justify-content":"center"}},O={class:"nv-flex",style:{width:"40px","margin-right":"6px"}},x={t:"1706683071705",class:"icon",viewBox:"0 0 1566 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4559",style:{fill:"currentColor"}},N=[(t=>(n.pushScopeId("data-v-3abe7ff1"),t=t(),n.popScopeId(),t))((()=>n.createElementVNode("path",{d:"M156.661991 699.757959h21.096999a10.443999 10.443999 0 0 1 10.235999 10.443999c0 5.765-4.491 10.443999-10.235999 10.444h-21.096999v21.097999a10.443999 10.443999 0 0 1-10.444 10.234999 10.276999 10.276999 0 0 1-10.443999-10.234999v-21.097999h-21.096999a10.443999 10.443999 0 0 1-10.234999-10.444c0-5.765 4.49-10.443999 10.234999-10.443999h21.096999v-21.096999a10.443999 10.443999 0 0 1 10.443999-10.234999c5.765 0 10.443999 4.49 10.444 10.234999v21.096999z m1378.627919-83.552995v-21.096999a10.276999 10.276999 0 0 0-10.443999-10.234999 10.443999 10.443999 0 0 0-10.444 10.234999v21.096999h-21.096998a10.276999 10.276999 0 0 0-10.235 10.443999c0 5.598 4.595 10.443999 10.235 10.444h21.096998v21.096998c0 5.745 4.679 10.235999 10.444 10.236a10.443999 10.443999 0 0 0 10.443999-10.236v-21.096998h21.097999c5.744 0 10.234999-4.679 10.234999-10.444a10.443999 10.443999 0 0 0-10.234999-10.443999h-21.097999zM776.459955 960.861944H250.596985a20.804999 20.804999 0 0 1-20.825998-20.887999c0-11.529999 9.462999-20.888999 20.825998-20.888999h94.727995a83.009995 83.009995 0 0 1-11.112-41.671997v-605.969965a83.489995 83.489995 0 0 1 83.636996-83.447995h62.580996v-20.992999a83.489995 83.489995 0 0 1 83.636995-83.448995h501.151971a83.448995 83.448995 0 0 1 83.636995 83.448995v605.969965c0 15.184999-4.053 29.409998-11.134 41.671997h115.553994c11.551999 0 20.909999 9.273999 20.909998 20.887999 0 11.529999-9.295999 20.887999-20.888998 20.887999h-250.659986v20.992999c0 15.185999-4.052 29.409998-11.132999 41.671997h11.195999c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H892.807948a41.657998 41.657998 0 0 1-6.413 50.862997 41.671998 41.671998 0 0 1-59.071996 0l-50.862997-50.862997z m76.367995-41.776998h66.423996c22.977999 0 41.609998-18.589999 41.609998-41.879997V270.460984c0-22.559999-18.047999-40.689998-40.313998-40.689997H416.303976c-22.266999 0-40.314998 18.213999-40.314998 40.689997v606.741965c0 23.123999 18.799999 41.880998 41.589998 41.880997h317.083981l-10.736999-10.756999a41.692998 41.692998 0 0 1-10.862-40.376998l-19.718999-19.739999a146.259991 146.259991 0 0 1-190.980988-220.516987 146.217991 146.217991 0 0 1 220.517987 190.980989l19.738998 19.739999a41.629998 41.629998 0 0 1 40.376998 10.839999l69.829996 69.829996z m149.809991-104.440994h62.852997a41.796998 41.796998 0 0 0 41.589997-41.776997v-605.759965c0-23.144999-18.632999-41.776998-41.589997-41.776997H563.774967a41.796998 41.796998 0 0 0-41.566998 41.775997v20.888999h396.793977a83.448995 83.448995 0 0 1 83.636995 83.448995v543.199968zM266.326984 46.998997h31.122999c8.773999 0 15.875999 6.955 15.875999 15.665999 0 8.647999-7.102 15.665999-15.875999 15.665999h-31.122999v31.123999c0 8.772999-6.956 15.874999-15.665999 15.874999a15.769999 15.769999 0 0 1-15.666999-15.874999V78.329995H203.869988a15.728999 15.728999 0 0 1-15.874999-15.665999c0-8.647999 7.102-15.665999 15.874999-15.665999h31.122998V15.874999C234.992986 7.102 241.949986 0 250.659985 0c8.646999 0 15.665999 7.102 15.665999 15.874999V46.999997zM20.887999 939.973945c0-11.529999 9.462999-20.888999 20.825999-20.888999h125.454992c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H41.713998a20.804999 20.804999 0 0 1-20.825999-20.887999z m658.733961-135.021992A104.441994 104.441994 0 1 0 531.899969 657.229961a104.441994 104.441994 0 0 0 147.721991 147.721992z m-220.079987-491.626971a20.887999 20.887999 0 0 1 20.867999-20.888999h229.791986a20.887999 20.887999 0 1 1 0 41.776997H480.430972a20.825999 20.825999 0 0 1-20.887999-20.887998z m0 104.440994c0-11.529999 9.295999-20.887999 20.742999-20.887999H814.789952c11.446999 0 20.741999 9.273999 20.741999 20.887999 0 11.529999-9.294999 20.887999-20.741999 20.887998H480.284972a20.762999 20.762999 0 0 1-20.741999-20.887998z m0 104.441993c0-11.529999 9.316999-20.888999 20.846999-20.888998h146.301991c11.509999 0 20.845999 9.274999 20.845999 20.888998 0 11.529999-9.315999 20.887999-20.845999 20.887999H480.388972a20.804999 20.804999 0 0 1-20.845999-20.887999zM62.665996 396.877977a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.664997 31.331998 31.331998 0 0 0 0 62.664997z m1295.074924-93.996995a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.663996 31.331998 31.331998 0 0 0 0 62.663996z","p-id":"4560"},null,-1)))],T={class:"file-upload-list-cover"},S={class:"file-upload-btn"};const j=h(g,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Image"),u=n.resolveComponent("Icon"),s=n.resolveComponent("Space"),c=n.resolveComponent("Upload"),f=n.resolveComponent("Card"),h=n.resolveComponent("Spin"),p=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",b,[t.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.getFirstFile(t.groups[0])?(n.openBlock(),n.createElementBlock("div",{key:0,class:"file-upload-list-content",onClick:e[2]||(e[2]=e=>t.doView(t.getFirstFile(t.groups[0]))),style:{width:"100%",height:"100%"}},[n.createVNode(a,{src:t.getThumbnailUrl(t.getFirstFile(t.groups[0])),fit:"fill",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",T,[n.createVNode(s,null,{default:n.withCtx((()=>[n.createVNode(u,{type:"md-download",onClick:e[0]||(e[0]=n.withModifiers((e=>t.doDwonload(t.getFirstFile(t.groups[0]))),["stop"])),title:"下载"}),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,type:"md-trash",onClick:e[1]||(e[1]=n.withModifiers((e=>t.doRemove(t.getFirstFile(t.groups[0]))),["stop"])),title:"删除"}))])),_:1})])])):n.createCommentVNode("",!0),t.readonly||t.getSingle(t.groups[0])?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:1,"dis-hover":"",style:{"margin-bottom":"8px"}},{default:n.withCtx((()=>[n.createVNode(c,{ref:"uploadRef",type:"drag",name:"FormFile",multiple:t.multiple,"show-upload-list":!1,format:t.format,"max-size":t.maxSize,action:t.action,headers:t.headers,data:t.uploadFilePos[t.groups[0]],"on-success":t.doSuccess,"on-format-error":t.doFormatError,"on-exceeded-size":t.doMaxSize,"before-upload":t.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",S,[n.createVNode(u,{type:"ios-camera",size:"20"})])])),_:1},8,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])])),_:1}))],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(t.groups,(e=>(n.openBlock(),n.createBlock(f,{"dis-hover":"",style:{"margin-bottom":"8px"}},n.createSlots({default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.getGroupFiles(e),((e,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(t.isImage(e)?"file-upload-list file-upload-list-bs":"file-upload-list")},[n.createElementVNode("div",{class:"file-upload-list-content",onClick:n=>t.doView(e),title:e.FileName},[n.createVNode(a,{src:t.getThumbnailUrl(e),fit:"cover",transfer:"",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",w,[n.createVNode(s,null,{default:n.withCtx((()=>[n.createVNode(u,{type:"md-download",onClick:n.withModifiers((n=>t.doDwonload(e)),["stop"]),title:"下载"},null,8,["onClick"]),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,type:"md-trash",onClick:n.withModifiers((n=>t.doRemove(e)),["stop"]),title:"删除"},null,8,["onClick"]))])),_:2},1024)])],8,k)],2)))),256)),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:t.multiple,"show-upload-list":!1,format:t.format,"max-size":t.maxSize,action:t.action,headers:t.headers,data:t.uploadFilePos[e],"on-success":t.doSuccess,"on-format-error":t.doFormatError,"on-exceeded-size":t.doMaxSize,"before-upload":t.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",A,[n.createVNode(u,{type:"ios-camera",size:"20"})])])),_:2},1032,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])),t.readonly&&0==t.fileList.length?(n.openBlock(),n.createElementBlock("div",E,[n.createElementVNode("i",O,[(n.openBlock(),n.createElementBlock("svg",x,N))]),n.createElementVNode("div",null,n.toDisplayString(t.nullMsg),1)])):n.createCommentVNode("",!0)])),_:2},["默认"!=e?{name:"title",fn:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e),1)])),key:"0"}:void 0]),1024)))),256)),t.uploading?(n.openBlock(),n.createBlock(h,{key:2,fix:""})):n.createCommentVNode("",!0),n.createVNode(p,{modelValue:t.previewVisible,"onUpdate:modelValue":e[3]||(e[3]=e=>t.previewVisible=e),"preview-list":t.previewList,"preview-index":t.previewIndex,"file-info":t.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-3abe7ff1"]]);var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C,B={exports:{}};"undefined"!=typeof self&&self,C=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(45),a=n(46),u=n(47),s=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:l.default,Block:u.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return o(e,t),e}(Error);e.ParchmentError=i;var l,a,u={},s={},c={},f={};function h(t,e){var n;if(void 0===e&&(e=l.ANY),"string"==typeof t)n=f[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof t)t&l.LEVEL&l.BLOCK?n=f.block:t&l.LEVEL&l.INLINE&&(n=f.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]])break;n=n||c[t.tagName]}return null==n?null:e&l.LEVEL&n.scope&&e&l.TYPE&n.scope?n:null}e.DATA_KEY="__blot",(a=l=e.Scope||(e.Scope={}))[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY",e.create=function(t,e){var n=h(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(o,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=h,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return f[r.blotName||r.attrName]=r,"string"==typeof r.keyName?u[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){var r=n(51),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+l.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=l.length(i)}return new u(n)},u.prototype.compose=function(t){var e=l.iterator(this.ops),n=l.iterator(t.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),r.push(e.next());i.retain-a>0&&n.next(i.retain-a)}for(var s=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===e.peekType())s.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var y=new u(e.rest());return s.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&s.push(h)}return s.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),i=new u,s=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return s.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),u=f.next(n);o(a.insert,u.insert)?i.retain(n,l.attributes.diff(a.attributes,u.attributes)):i.push(u).delete(n)}e-=n}})),i.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new u,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new u}}r.length()>0&&t(r,{},o)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),s=r.next(i);if(a.delete)continue;s.delete?o.push(s):o.retain(i,l.attributes.transform(a.attributes,s.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=u},function(t,e){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,o=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return void 0===e||n.call(t,e)},u=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},s=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h<p;++h)if(null!=(e=arguments[h]))for(n in e)r=s(f,n),f!==(o=s(e,n))&&(d&&o&&(a(o)||(i=l(o)))?(i?(i=!1,c=r&&l(r)?r:[]):c=r&&a(r)?r:{},u(f,{name:n,newValue:t(d,c,o)})):void 0!==o&&u(f,{name:n,newValue:o}));return f}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=f(n(3)),l=f(n(2)),a=f(n(0)),u=f(n(16)),s=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=a.default.query(t,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(v.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(a.default.Embed);y.scope=a.default.Scope.BLOCK_BLOT;var v=function(t){function e(t){h(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return d(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),g(e))}),new l.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(t,e){return(a=a.split(t,!0)).insertAt(0,e),e.length}),t+l.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(a.default.Block);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,i.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:g(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[s.default,a.default.Embed,c.default],e.bubbleFormats=g,e.BlockEmbed=y,e.default=v},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var l=v(n(2)),a=v(n(14)),u=v(n(8)),s=v(n(9)),c=v(n(0)),f=n(15),h=v(f),p=v(n(3)),d=v(n(10)),y=v(n(34));function v(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,d.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=k(e,r),this.container=this.options.container,null==this.container)return m.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=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 u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new h.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(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),d.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&m.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||m.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=A(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],w.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(c.default.query(t,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,g({},t,e))}return n.setSelection(r,u.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var l,a=this,u=A(t,e,n,r,i),s=o(u,4);return t=s[0],e=s[1],l=s[2],i=s[3],w.call(this,(function(){return a.editor.formatLine(t,e,l)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var l,a=this,u=A(t,e,n,r,i),s=o(u,4);return t=s[0],e=s[1],l=s[2],i=s[3],w.call(this,(function(){return a.editor.formatText(t,e,l)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=A(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=A(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return w.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var l,a=this,u=A(t,0,n,r,i),s=o(u,4);return t=s[0],l=s[2],i=s[3],w.call(this,(function(){return a.editor.insertText(t,e,l)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=A(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],w.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return w.call(this,(function(){t=new l.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=A(e,n,r),l=o(i,4);e=l[0],n=l[1],r=l[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new l.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return w.call(this,(function(){return t=new l.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function k(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=y.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?m.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function w(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=E(o,a,e):0!==r&&(o=E(o,n,r,e)),this.setSelection(o,u.default.sources.SILENT)),a.length()>0){var s,c,f=[u.default.events.TEXT_CHANGE,a,i,e];(s=this.emitter).emit.apply(s,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function A(t,e,n,o,i){var l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=o,o=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(l=n,i=o):"string"==typeof n&&(null!=o?l[n]=o:i=n),[t,e,l,i=i||u.default.sources.API]}function E(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof l.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=o(s,2);i=c[0],a=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=o(h,2);i=p[0],a=p[1]}return new f.Range(i,a-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=u.default.events,b.sources=u.default.sources,b.version="1.3.7",b.imports={delta:l.default,parchment:c.default,"core/module":s.default,"core/theme":y.default},e.expandConfig=k,e.overload=A,e.default=b},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(7)),l=a(n(0));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(t,n);i&&a.wrap(r,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);u.allowedChildren=[u,l.default.Embed,i.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default.Text);e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=l(n(54));function l(t){return t&&t.__esModule?t:{default:t}}var a=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",a.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){a.log.apply(a,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(i.default);u.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"},u.sources={API:"api",SILENT:"silent",USER:"user"},e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(e=console)[t].apply(e,i)}}function l(t){return r.reduce((function(e,n){return e[n]=i.bind(console,n,t),e}),{})}i.level=l.level=function(t){o=t},e.default=l},function(t,e,n){var r=Array.prototype.slice,o=n(52),i=n(53),l=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var s,c;if(a(t)||a(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),l(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}try{var f=o(t),h=o(e)}catch(p){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),s=f.length-1;s>=0;s--)if(f[s]!=h[s])return!1;for(s=f.length-1;s>=0;s--)if(c=f[s],!l(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function a(t){return null==t}function u(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=f(n(2)),a=f(n(0)),u=f(n(4)),s=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),e}(s.default);y.blotName="code",y.tagName="CODE";var v=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new l.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),l=r(o,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var l=this.newlineIndex(t,!0)+1,u=i-l+1,s=this.isolate(l,u),c=s.next;s.format(r,o),c instanceof e&&c.formatAt(0,t-l+n-u,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(c.default,t),i=r(o,2),l=i[0],a=i[1];l.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=a.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof a.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=y,e.default=v},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=g(n(2)),a=g(n(20)),u=g(n(0)),s=g(n(13)),c=g(n(24)),f=n(4),h=g(f),p=g(n(16)),d=g(n(21)),y=g(n(11)),v=g(n(3));function g(t){return t&&t.__esModule?t:{default:t}}var m=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,d.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,d.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new l.default)}(t)).reduce((function(t,l){var s=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var p=l.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=i&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var d=e.scroll.line(t),y=o(d,2),g=y[0],m=y[1],b=(0,v.default)({},(0,f.bubbleFormats)(g));if(g instanceof h.default){var k=g.descendant(u.default.Leaf,m),w=o(k,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(w))}c=a.default.attributes.diff(b,c)||{}}else if("object"===r(l.insert)){var A=Object.keys(l.insert)[0];if(null==A)return t;e.scroll.insertAt(t,A,l.insert[A])}i+=s}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,s,n,c[n])})),t+s}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach((function(e){var i=e.length();if(e instanceof s.default){var a=t-e.offset(n.scroll),u=e.newlineIndex(a+l)-a+1;e.formatAt(a,u,o,r[o])}else e.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1)[0];e instanceof h.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=k((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new l.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new l.default).retain(t).insert(e,(0,d.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],u=i[1],c=0,f=new l.default;null!=a&&(c=a instanceof s.default?a.newlineIndex(u)-u+1:a.length()-u,f=a.delta().slice(u,u+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new l.default).insert(n).concat(f)),p=(new l.default).retain(t).concat(h);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(m)&&u.default.find(e[0].target)){var o=u.default.find(e[0].target),i=(0,f.bubbleFormats)(o),a=o.offset(this.scroll),s=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new l.default).insert(s),p=(new l.default).insert(o.value());t=(new l.default).retain(a).concat(h.diff(p,n)).reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new l.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,y.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function k(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),l=s(n(21)),a=s(n(11)),u=s(n(8));function s(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,s(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},d=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}})),this.update(u.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(t,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),l=r(i,2),a=l[0],u=l[1];if(null==a)return null;var s=a.position(u,!0),c=r(s,2);o=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(o,u);var h=this.scroll.leaf(t+e),p=r(h,2);if(a=p[0],u=p[1],null==a)return null;var d=a.position(u,!0),y=r(d,2);return o=y[0],u=y[1],f.setEnd(o,u),f.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(u<o.data.length?(f.setStart(o,u),f.setEnd(o,u+1)):(f.setStart(o,u-1),f.setEnd(o,u),v="right"),g=f.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),u>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],l=n[1],a=i.default.find(o,!0),u=a.offset(e.scroll);return 0===l?u:a instanceof i.default.Container?u+a.length():u+a.index(o,l)})),l=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(o)));return new p(a,l-a)}},{key:"normalizeNative",value:function(t){if(!y(this.root,t.startContainer)||!t.collapsed&&!y(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var l,a=e.scroll.leaf(t),u=r(a,2),s=u[0],c=u[1],f=s.position(c,0!==n),h=r(f,2);l=h[0],c=h[1],o.push(l,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),l=r(i,1)[0],a=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o));a=r(u,1)[0]}if(null!=l&&null!=a){var s=t.getBoundingClientRect();n.top<s.top?t.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(t.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(e,this.lastRange)){var c;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var f,h=[u.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(h)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,h)}}}]),t}();function y(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"insertInto",value:function(t,n){0===t.children.length?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=s(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,o){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=s(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(l.default);function s(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=u},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),u=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new l.default(n.domNode),n}return o(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=u.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=s},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new l(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function l(t){this.ops=t,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.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"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,e){var n=function(){function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(a){e=function(){}}try{n=Set}catch(a){n=function(){}}try{r=Promise}catch(a){r=function(){}}function o(i,a,u,s,c){"object"==typeof a&&(u=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var f=[],h=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===u&&(u=1/0),function i(u,d){if(null===u)return null;if(0===d)return u;var y,v;if("object"!=typeof u)return u;if(t(u,e))y=new e;else if(t(u,n))y=new n;else if(t(u,r))y=new r((function(t,e){u.then((function(e){t(i(e,d-1))}),(function(t){e(i(t,d-1))}))}));else if(o.__isArray(u))y=[];else if(o.__isRegExp(u))y=new RegExp(u.source,l(u)),u.lastIndex&&(y.lastIndex=u.lastIndex);else if(o.__isDate(u))y=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(y),y;t(u,Error)?y=Object.create(u):void 0===s?(v=Object.getPrototypeOf(u),y=Object.create(v)):(y=Object.create(s),v=s)}if(a){var g=f.indexOf(u);if(-1!=g)return h[g];f.push(u),h.push(y)}for(var m in t(u,e)&&u.forEach((function(t,e){var n=i(e,d-1),r=i(t,d-1);y.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=i(t,d-1);y.add(e)})),u){var b;v&&(b=Object.getOwnPropertyDescriptor(v,m)),b&&null==b.set||(y[m]=i(u[m],d-1))}if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(u);for(m=0;m<k.length;m++){var w=k[m];(!(E=Object.getOwnPropertyDescriptor(u,w))||E.enumerable||c)&&(y[w]=i(u[w],d-1),E.enumerable||Object.defineProperty(y,w,{enumerable:!1}))}}if(c){var A=Object.getOwnPropertyNames(u);for(m=0;m<A.length;m++){var E,O=A[m];(E=Object.getOwnPropertyDescriptor(u,O))&&E.enumerable||(y[O]=i(u[O],d-1),Object.defineProperty(y,O,{enumerable:!1}))}}return y}(i,u)}function i(t){return Object.prototype.toString.call(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=i,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===i(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===i(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===i(t)},o.__getRegExpFlags=l,o}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=p(n(0)),a=p(n(8)),u=n(4),s=p(u),c=p(n(16)),f=p(n(13)),h=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function d(t){return t instanceof s.default||t instanceof u.BlockEmbed}var y=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),l=r(o,2),a=l[0],s=l[1],h=this.line(t+n),p=r(h,1)[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&a!==p&&s>0){if(a instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(a instanceof f.default){var d=a.newlineIndex(a.length(),!0);if(d>-1&&(a=a.split(d+1))===p)return void this.optimize()}else if(p instanceof f.default){var y=p.newlineIndex(0);y>-1&&p.split(y+1)}var v=p.children.head instanceof c.default?null:p.children.head;a.moveChildren(p,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(d,t)}},{key:"lines",value:function(){return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){d(e)?o.push(e):e instanceof l.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,t)}}}]),e}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[s.default,u.BlockEmbed,h.default],e.default=y},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=y(n(21)),a=y(n(11)),u=y(n(3)),s=y(n(2)),c=y(n(20)),f=y(n(0)),h=y(n(5)),p=y(n(10)),d=y(n(9));function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,p.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},O),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0},A)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},A)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:e.keys.DELETE},{collapsed:!1},E),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"match",value:function(t,e){return e=T(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=T(t);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==l.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var s=t.quill.getLine(u.index),c=o(s,2),h=c[0],p=c[1],d=t.quill.getLeaf(u.index),y=o(d,2),v=y[0],g=y[1],m=0===u.length?[v,g]:t.quill.getLeaf(u.index+u.length),b=o(m,2),k=b[0],w=b[1],A=v instanceof f.default.Text?v.value().slice(0,g):"",E=k instanceof f.default.Text?k.value().slice(w):"",O={collapsed:0===u.length,empty:0===u.length&&h.length()<=1,format:t.quill.getFormat(u),offset:p,prefix:A,suffix:E};l.some((function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==O.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,a.default)(e.format[t],O.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix)||null!=e.suffix&&!e.suffix.test(O.suffix)||!0===e.handler.call(t,u,O))}))&&n.preventDefault()}}}}))}}]),e}(d.default);function k(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1)[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=o(l,1)[0];if(null!=a&&a.length()>1){var u=r.formats(),s=this.quill.getFormat(t.index-1,1);i=c.default.attributes.diff(u,s)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,h.default.sources.USER),this.quill.focus()}}function A(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,l=this.quill.getLine(t.index),a=o(l,1)[0];if(e.offset>=a.length()-1){var u=this.quill.getLine(t.index+1),s=o(u,1)[0];if(s){var f=a.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},i=s.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,h.default.sources.USER)}}function E(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function O(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function x(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,i=e.length,l=this.quill.scroll.descendant(n,r),a=o(l,2),u=a[0],s=a[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(s,!0)+1,d=u.newlineIndex(c+s+i),y=u.domNode.textContent.slice(p,d).split("\n");s=0,y.forEach((function(e,o){t?(u.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,i,h.default.sources.SILENT)}}}}function N(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function T(t){if("string"==typeof t||"number"==typeof t)return T({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,l.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[m]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new s.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(0,u.default)({},r.formats(),{list:"checked"}),a=(new s.default).retain(t.index).insert("\n",l).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],l=r[1],a=(new s.default).retain(t.index).insert("\n",e.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),l=i[0],a=i[1];if(a>n)return!0;var u=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new s.default).retain(t.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:u});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(new s.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,h.default.sources.USER)}},"embed left":k(b.keys.LEFT,!1),"embed left shift":k(b.keys.LEFT,!0),"embed right":k(b.keys.RIGHT,!1),"embed right shift":k(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=u(n(0)),a=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var s=[t,n.start.offset,n.end.offset];o=s[0],i=s[1],u=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof a.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,u].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),h=r(f,2);return i=h[0],u=h[1],{startNode:o,startOffset:i,endNode:o,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(l.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(0)),o=n(4),i=l(o);function l(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);a.allowedChildren=[i.default,o.BlockEmbed,a],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join(""):n}}]),e}(a.default.Attributor.Style),s=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new u("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=s,e.ColorStyle=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);function u(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=a,e.sanitize=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(23)),l=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}var u=0;function s(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case i.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case i.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),l=g(i),a=g(n(16)),u=g(n(25)),s=g(n(24)),c=g(n(35)),f=g(n(6)),h=g(n(22)),p=g(n(7)),d=g(n(55)),y=g(n(42)),v=g(n(23));function g(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":u.default,"blots/cursor":s.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":d.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(l.default,a.default,s.default,f.default,h.default,p.default),e.default=o.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach((function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){i(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(i(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(0)),l=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var u="\ufeff",s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(u).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=u,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(i.default.Embed);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",l),u=new i.default.Attributor.Class("align","ql-align",l),s=new i.default.Attributor.Style("align","text-align",l);e.AlignAttribute=a,e.AlignClass=u,e.AlignStyle=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),u=new l.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",l),u=new i.default.Attributor.Class("direction","ql-direction",l),s=new i.default.Attributor.Style("direction","direction",l);e.DirectionAttribute=a,e.DirectionClass=u,e.DirectionStyle=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new a.default.Attributor.Class("font","ql-font",u),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),f=new c("font","font-family",u);e.FontStyle=f,e.FontClass=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=l,e.SizeStyle=a},function(t,e,n){t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),i=l(n(5));function l(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(t,e,n,o){t!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],i.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(l(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}(t)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=a,e.getLastChangeIndex=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=d(n(3)),l=d(n(2)),a=d(n(8)),u=d(n(23)),s=d(n(34)),c=d(n(59)),f=d(n(60)),h=d(n(28)),p=d(n(61));function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[!1,"center","right","justify"],b=["#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"],k=[!1,"serif","monospace"],w=["1","2","3",!1],A=["small",!1,"large","huge"],E=function(t){function e(t,n){y(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return g(e,t),r(e,[{key:"addModule",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&x(t,m),new f.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&x(t,b,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?x(t,k):t.classList.contains("ql-header")?x(t,w):t.classList.contains("ql-size")&&x(t,A)),new h.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(s.default);E.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=function(t){function e(t,n){y(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){u.default.match(e,"enter")?(t.save(),e.preventDefault()):u.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(p.default);function x(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=O,e.default=E},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],l=t-o[1],a=this.iterator(i);(r=a())&&l<t+e;){var u=r.length();t>l?n(r,t-l,Math.min(e,l+u-t)):n(r,0,Math.min(u,t+e-l)),l+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)e.push(o.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[l.DATA_KEY].mutations&&(t.domNode[l.DATA_KEY].mutations=[]),e&&a(t.parent))},u=function(t){null!=t.domNode[l.DATA_KEY]&&null!=t.domNode[l.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},s=e,c=0;s.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(t){var e=l.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(l.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=l.find(t,!1);a(e,!1),e instanceof i.default&&e.children.forEach((function(t){a(t,!1)}))}))):"attributes"===t.type&&a(e.prev)),a(e))})),this.children.forEach(u),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)e.push(o.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=l.find(t.target,!0);return null==e?null:null==e.domNode[l.DATA_KEY].mutations?(e.domNode[l.DATA_KEY].mutations=[t],e):(e.domNode[l.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[l.DATA_KEY]&&t.update(t.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=u},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){var r=l.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=l.query(r,l.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=l.query(n,l.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),i=l.create(n,r);o.parent.insertBefore(i,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=i},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return o(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=l.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,o=0;function i(t,e,c){if(t==e)return t?[[o,t]]:[];(c<0||t.length<c)&&(c=null);var h=a(t,e),p=t.substring(0,h);h=u(t=t.substring(h),e=e.substring(h));var d=t.substring(t.length-h),y=function(t,e){var s;if(!t)return[[r,e]];if(!e)return[[n,t]];var c=t.length>e.length?t:e,f=t.length>e.length?e:t,h=c.indexOf(f);if(-1!=h)return s=[[r,c.substring(0,h)],[o,f],[r,c.substring(h+f.length)]],t.length>e.length&&(s[0][0]=s[2][0]=n),s;if(1==f.length)return[[n,t],[r,e]];var p=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){for(var r,o,i,l,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(s,c+1));){var h=a(t.substring(n),e.substring(c)),p=u(t.substring(0,n),e.substring(0,c));f.length<p+h&&(f=e.substring(c-p,c)+e.substring(c,c+h),r=t.substring(0,n-p),o=t.substring(n+h),i=e.substring(0,c-p),l=e.substring(c+h))}return 2*f.length>=t.length?[r,o,i,l,f]:null}var i,l,s,c,f,h=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!h&&!p)return null;i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(l=i[0],s=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],l=i[2],s=i[3]);var d=i[4];return[l,s,c,f,d]}(t,e);if(p){var d=p[0],y=p[1],v=p[2],g=p[3],m=p[4],b=i(d,v),k=i(y,g);return b.concat([[o,m]],k)}return function(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),u=a,s=2*a,c=new Array(s),f=new Array(s),h=0;h<s;h++)c[h]=-1,f[h]=-1;c[u+1]=0,f[u+1]=0;for(var p=o-i,d=p%2!=0,y=0,v=0,g=0,m=0,b=0;b<a;b++){for(var k=-b+y;k<=b-v;k+=2){for(var w=u+k,A=(T=k==-b||k!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-k;T<o&&A<i&&t.charAt(T)==e.charAt(A);)T++,A++;if(c[w]=T,T>o)v+=2;else if(A>i)y+=2;else if(d&&(x=u+p-k)>=0&&x<s&&-1!=f[x]&&T>=(O=o-f[x]))return l(t,e,T,A)}for(var E=-b+g;E<=b-m;E+=2){for(var O,x=u+E,N=(O=E==-b||E!=b&&f[x-1]<f[x+1]?f[x+1]:f[x-1]+1)-E;O<o&&N<i&&t.charAt(o-O-1)==e.charAt(i-N-1);)O++,N++;if(f[x]=O,O>o)m+=2;else if(N>i)g+=2;else if(!d){var T;if((w=u+p-E)>=0&&w<s&&-1!=c[w]&&(A=u+(T=c[w])-w,T>=(O=o-O)))return l(t,e,T,A)}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-h),e=e.substring(0,e.length-h));return p&&y.unshift([o,p]),d&&y.push([o,d]),s(y),null!=c&&(y=function(t,e){var r=function(t,e){if(0===e)return[o,t];for(var r=0,i=0;i<t.length;i++){var l=t[i];if(l[0]===n||l[0]===o){var a=r+l[1].length;if(e===a)return[i+1,t];if(e<a){t=t.slice();var u=e-r,s=[l[0],l[1].slice(0,u)],c=[l[0],l[1].slice(u)];return t.splice(i,1,s,c),[i+1,t]}r=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],l=r[0],a=i[l],u=i[l+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=u&&a[1]+u[1]===u[1]+a[1])return i.splice(l,2,u,a),f(i,l,2);if(null!=u&&0===u[1].indexOf(a[1])){i.splice(l,2,[u[0],a[1]],[0,a[1]]);var s=u[1].slice(a[1].length);return s.length>0&&i.splice(l+2,0,[u[0],s]),f(i,l,3)}return t}(y,c)),y=function(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},l=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},a=2;a<t.length;a+=1)t[a-2][0]===o&&l(t[a-2][1])&&t[a-1][0]===n&&i(t[a-1][1])&&t[a][0]===r&&i(t[a][1])&&(e=!0,t[a-1][1]=t[a-2][1].slice(-1)+t[a-1][1],t[a][1]=t[a-2][1].slice(-1)+t[a][1],t[a-2][1]=t[a-2][1].slice(0,-1));if(!e)return t;var u=[];for(a=0;a<t.length;a+=1)t[a][1].length>0&&u.push(t[a]);return u}(y)}function l(t,e,n,r){var o=t.substring(0,n),l=e.substring(0,r),a=t.substring(n),u=e.substring(r),s=i(o,l),c=i(a,u);return s.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function u(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(t){t.push([o,""]);for(var e,i=0,l=0,c=0,f="",h="";i<t.length;)switch(t[i][0]){case r:c++,h+=t[i][1],i++;break;case n:l++,f+=t[i][1],i++;break;case o:l+c>1?(0!==l&&0!==c&&(0!==(e=a(h,f))&&(i-l-c>0&&t[i-l-c-1][0]==o?t[i-l-c-1][1]+=h.substring(0,e):(t.splice(0,0,[o,h.substring(0,e)]),i++),h=h.substring(e),f=f.substring(e)),0!==(e=u(h,f))&&(t[i][1]=h.substring(h.length-e)+t[i][1],h=h.substring(0,h.length-e),f=f.substring(0,f.length-e))),0===l?t.splice(i-c,l+c,[r,h]):0===c?t.splice(i-l,l+c,[n,f]):t.splice(i-l-c,l+c,[n,f],[r,h]),i=i-l-c+(l?1:0)+(c?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,c=0,l=0,f="",h=""}""===t[t.length-1][1]&&t.pop();var p=!1;for(i=1;i<t.length-1;)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),p=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),p=!0)),i++;p&&s(t)}var c=i;function f(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}c.INSERT=r,c.DELETE=n,c.EQUAL=o,t.exports=c},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:o).supported=r,e.unsupported=o},function(t,e){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),l.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},l.prototype.listeners=function(t,e){var n=r?r+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,a=new Array(l);i<l;i++)a[i]=o[i].fn;return a},l.prototype.emit=function(t,e,n,o,i,l){var a=r?r+t:t;if(!this._events[a])return!1;var u,s,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,o),!0;case 5:return c.fn.call(c.context,e,n,o,i),!0;case 6:return c.fn.call(c.context,e,n,o,i,l),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var h,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(t,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,e);break;case 3:c[s].fn.call(c[s].context,e,n);break;case 4:c[s].fn.call(c[s].context,e,n,o);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[s].fn.apply(c[s].context,u)}}return!0},l.prototype.on=function(t,e,n){var o=new i(e,n||this),l=r?r+t:t;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.once=function(t,e,n){var o=new i(e,n||this,!0),l=r?r+t:t;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.removeListener=function(t,e,n,i){var l=r?r+t:t;if(!this._events[l])return this;if(!e)return 0==--this._eventsCount?this._events=new o:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[l]);else{for(var u=0,s=[],c=a.length;u<c;u++)(a[u].fn!==e||i&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);s.length?this._events[l]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[l]}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=r,l.EventEmitter=l,void 0!==t&&(t.exports=l)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=b(n(3)),a=b(n(2)),u=b(n(0)),s=b(n(5)),c=b(n(10)),f=b(n(9)),h=n(36),p=n(37),d=b(n(13)),y=n(26),v=n(38),g=n(39),m=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,c.default)("quill:clipboard"),A="__ql-matcher",E=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,M],["br",function(t,e){return j(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===S(t).fontStyle&&(n.italic=!0),r.fontWeight&&(S(t).fontWeight.startsWith("bold")||parseInt(S(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=T(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new a.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!j(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(u.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",C.bind(C,"bold")],["i",C.bind(C,"italic")],["style",function(){return new a.default}]],O=[h.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),x=[h.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,g.FontStyle,m.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),N=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],l=e[1];(n.matchVisual||l!==P)&&r.addMatcher(i,l)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,k({},d.default.blotName,e[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),l=i[0],u=i[1],s=I(this.container,l,u);return j(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new a.default).retain(s.length()-1).delete(1))),w.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new a.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,s.default.sources.USER),e.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(l),(function(t){t[A]=t[A]||[],t[A].push(a)}))}})),[e,n]}}]),e}(f.default);function T(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return T(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,l.default)({},k({},e,n),r.attributes))}),new a.default)}function S(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function j(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function _(t){if(0===t.childNodes.length)return!1;var e=S(t);return["block","list-item"].indexOf(e.display)>-1}function I(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=I(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[A]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new a.default):new a.default}function C(t,e,n){return T(n,t,!0)}function B(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),o=u.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(null==(n=O[e])||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=x[e])||n.attrName!==e&&n.keyName!==e||(n=x[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=T(e,i)),e}function R(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new a.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=T(e,n.blotName,n.formats(t)));return e}function M(t,e){return j(e,"\n")||(_(t)||e.length()>0&&t.nextSibling&&_(t.nextSibling))&&e.insert("\n"),e}function P(t,e){if(_(t)&&null!=t.nextElementSibling&&!j(e,"\n\n")){var n=t.offsetHeight+parseFloat(S(t).marginTop)+parseFloat(S(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function L(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!S(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&_(t.parentNode)||null!=t.previousSibling&&_(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&_(t.parentNode)||null!=t.nextSibling&&_(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},e.default=N,e.matchAttributor=B,e.matchBlot=R,e.matchNewline=M,e.matchSpacing=P,e.matchText=L},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),u=c(n(10)),s=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=(0,u.default)("quill:toolbar"),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o,i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");y(l,i.options.container),t.container.parentNode.insertBefore(l,t.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e){t===a.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=r(t,1)[0];i.update(e)})),i):(o=h.error("Container required for toolbar",i.options),f(i,o))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];u=!s.hasAttribute("selected")&&(s.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,u)),a.default.sources.USER)}else e.quill.format(n,u,a.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=r(n,2),i=o[0],l=o[1];if("SELECT"===l.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=l.querySelector("option[selected]");else if(!Array.isArray(e[i])){var u=e[i];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+u+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==t)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var s=e[i]===l.getAttribute("value")||null!=e[i]&&e[i].toString()===l.getAttribute("value")||null==e[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",s)}else l.classList.toggle("ql-active",null!=e[i])}))}}]),e}(s.default);function d(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function y(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)d(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):d(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,a.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",a.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",t,a.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,a.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,a.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",t,a.default.sources.USER)}}},e.default=p,e.addControls=y},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"buildItem",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=p(n(3)),a=p(n(8)),u=n(43),s=p(u),c=p(n(27)),f=n(15),h=p(n(41));function p(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return v(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(s.default);m.DEFAULTS=(0,l.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){d(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,a.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(e,n,o){if(null!=e){if(0===e.length&&o===a.default.sources.USER){var i=t.quill.scroll.descendant(c.default,e.index),l=r(i,2),u=l[0],s=l[1];if(null!=u){t.linkRange=new f.Range(e.index-s,u.length());var h=c.default.formats(u.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=M(n(29)),o=n(36),i=n(38),l=n(64),a=M(n(65)),u=M(n(66)),s=n(67),c=M(s),f=n(37),h=n(26),p=n(39),d=n(40),y=M(n(56)),v=M(n(68)),g=M(n(27)),m=M(n(69)),b=M(n(70)),k=M(n(71)),w=M(n(72)),A=M(n(73)),E=n(13),O=M(E),x=M(n(74)),N=M(n(75)),T=M(n(57)),S=M(n(41)),j=M(n(28)),_=M(n(59)),I=M(n(60)),C=M(n(61)),B=M(n(108)),R=M(n(62));function M(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":d.SizeClass,"formats/blockquote":a.default,"formats/code-block":O.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":E.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":k.default,"formats/image":w.default,"formats/video":A.default,"formats/list/item":s.ListItem,"modules/formula":x.default,"modules/syntax":N.default,"modules/toolbar":T.default,"themes/bubble":B.default,"themes/snow":R.default,"ui/icons":S.default,"ui/picker":j.default,"ui/icon-picker":I.default,"ui/color-picker":_.default,"ui/tooltip":C.default},!0),e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),s=new u("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(4),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(4),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(0)),l=u(n(4)),a=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);h.blotName="list-item",h.tagName="LI";var p=function(t){function e(t){s(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=i.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(a.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[h],e.ListItem=h,e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(56),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=n(27),s=["alt","height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,u.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);c.blotName="image",c.tagName="IMG",e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(4),a=n(27),u=(r=a)&&r.__esModule?r:{default:r},s=["height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return u.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(l.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(35)),l=u(n(5)),a=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,null,[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(i.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var p=function(t){function e(){s(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return f(e,t),r(e,null,[{key:"register",value:function(){l.default.register(h,!0)}}]),e}(a.default);e.FormulaBlot=h,e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(0)),l=u(n(5)),a=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(u(n(13)).default);h.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(t){function e(t,n){s(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(e,t),r(e,null,[{key:"register",value:function(){l.default.register(p,!0),l.default.register(h,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=h,e.CodeToken=p,e.default=d},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=f(n(3)),l=f(n(8)),a=n(43),u=f(a),s=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return d(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(u.default);v.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(t){function e(t,n){h(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,o){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],u=r.quill.getIndex(a),c=Math.min(a.length()-1,e.index+e.length-u),f=r.quill.getBounds(new s.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return d(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(a.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=g,e.default=v},function(t,e,n){t.exports=n(63)}]).default},B.exports=C();const R=I(B.exports);var M=-1,P=1,L=0;function D(t,e,n,r){if(t===e)return t?[[L,t]]:[];if(null!=n){var o=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=t.length,l=e.length;if(0===r.length&&(null===o||0===o.length)){var a=r.index,u=t.slice(0,a),s=t.slice(a),c=o?o.index:null,f=a+l-i;if((null===c||c===f)&&!(f<0||f>l)){var h=e.slice(0,f);if((y=e.slice(f))===s){var p=Math.min(a,f);if((g=u.slice(0,p))===(b=h.slice(0,p)))return H(g,u.slice(p),h.slice(p),s)}}if(null===c||c===a){var d=a,y=(h=e.slice(0,d),e.slice(d));if(h===u){var v=Math.min(i-d,l-d);if((m=s.slice(s.length-v))===(k=y.slice(y.length-v)))return H(u,s.slice(0,s.length-v),y.slice(0,y.length-v),m)}}}if(r.length>0&&o&&0===o.length){var g=t.slice(0,r.index),m=t.slice(r.index+r.length);if(!(l<(p=g.length)+(v=m.length))){var b=e.slice(0,p),k=e.slice(l-v);if(g===b&&m===k)return H(g,t.slice(p,i-v),e.slice(p,l-v),m)}}return null}(t,e,n);if(o)return o}var i=F(t,e),l=t.substring(0,i);i=V(t=t.substring(i),e=e.substring(i));var a=t.substring(t.length-i),u=function(t,e){var n;if(!t)return[[P,e]];if(!e)return[[M,t]];var r=t.length>e.length?t:e,o=t.length>e.length?e:t,i=r.indexOf(o);if(-1!==i)return n=[[P,r.substring(0,i)],[L,o],[P,r.substring(i+o.length)]],t.length>e.length&&(n[0][0]=n[2][0]=M),n;if(1===o.length)return[[M,t],[P,e]];var l=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){for(var r,o,i,l,a=t.substring(n,n+Math.floor(t.length/4)),u=-1,s="";-1!==(u=e.indexOf(a,u+1));){var c=F(t.substring(n),e.substring(u)),f=V(t.substring(0,n),e.substring(0,u));s.length<f+c&&(s=e.substring(u-f,u)+e.substring(u,u+c),r=t.substring(0,n-f),o=t.substring(n+c),i=e.substring(0,u-f),l=e.substring(u+c))}return 2*s.length>=t.length?[r,o,i,l,s]:null}var i,l,a,u,s,c=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!c&&!f)return null;i=f?c&&c[4].length>f[4].length?c:f:c;t.length>e.length?(l=i[0],a=i[1],u=i[2],s=i[3]):(u=i[0],s=i[1],l=i[2],a=i[3]);var h=i[4];return[l,a,u,s,h]}(t,e);if(l){var a=l[0],u=l[1],s=l[2],c=l[3],f=l[4],h=D(a,s),p=D(u,c);return h.concat([[L,f]],p)}return function(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),i=o,l=2*o,a=new Array(l),u=new Array(l),s=0;s<l;s++)a[s]=-1,u[s]=-1;a[i+1]=0,u[i+1]=0;for(var c=n-r,f=c%2!=0,h=0,p=0,d=0,y=0,v=0;v<o;v++){for(var g=-v+h;g<=v-p;g+=2){for(var m=i+g,b=(O=g===-v||g!==v&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;O<n&&b<r&&t.charAt(O)===e.charAt(b);)O++,b++;if(a[m]=O,O>n)p+=2;else if(b>r)h+=2;else if(f){if((A=i+c-g)>=0&&A<l&&-1!==u[A])if(O>=(w=n-u[A]))return q(t,e,O,b)}}for(var k=-v+d;k<=v-y;k+=2){for(var w,A=i+k,E=(w=k===-v||k!==v&&u[A-1]<u[A+1]?u[A+1]:u[A-1]+1)-k;w<n&&E<r&&t.charAt(n-w-1)===e.charAt(r-E-1);)w++,E++;if(u[A]=w,w>n)y+=2;else if(E>r)d+=2;else if(!f){if((m=i+c-k)>=0&&m<l&&-1!==a[m]){var O;b=i+(O=a[m])-m;if(O>=(w=n-w))return q(t,e,O,b)}}}}return[[M,t],[P,e]]}(t,e)}(t=t.substring(0,t.length-i),e=e.substring(0,e.length-i));return l&&u.unshift([L,l]),a&&u.push([L,a]),U(u,r),u}function q(t,e,n,r){var o=t.substring(0,n),i=e.substring(0,r),l=t.substring(n),a=e.substring(r),u=D(o,i),s=D(l,a);return u.concat(s)}function F(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return z(t.charCodeAt(o-1))&&o--,o}function V(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return G(t.charCodeAt(t.length-o))&&o--,o}function U(t,e){t.push([L,""]);for(var n,r=0,o=0,i=0,l="",a="";r<t.length;)if(r<t.length-1&&!t[r][1])t.splice(r,1);else switch(t[r][0]){case P:i++,a+=t[r][1],r++;break;case M:o++,l+=t[r][1],r++;break;case L:var u=r-i-o-1;if(e){if(u>=0&&Q(t[u][1])){var s=t[u][1].slice(-1);if(t[u][1]=t[u][1].slice(0,-1),l=s+l,a=s+a,!t[u][1]){t.splice(u,1),r--;var c=u-1;t[c]&&t[c][0]===P&&(i++,a=t[c][1]+a,c--),t[c]&&t[c][0]===M&&(o++,l=t[c][1]+l,c--),u=c}}if(Z(t[r][1])){s=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1),l+=s,a+=s}}if(r<t.length-1&&!t[r][1]){t.splice(r,1);break}if(l.length>0||a.length>0){l.length>0&&a.length>0&&(0!==(n=F(a,l))&&(u>=0?t[u][1]+=a.substring(0,n):(t.splice(0,0,[L,a.substring(0,n)]),r++),a=a.substring(n),l=l.substring(n)),0!==(n=V(a,l))&&(t[r][1]=a.substring(a.length-n)+t[r][1],a=a.substring(0,a.length-n),l=l.substring(0,l.length-n)));var f=i+o;0===l.length&&0===a.length?(t.splice(r-f,f),r-=f):0===l.length?(t.splice(r-f,f,[P,a]),r=r-f+1):0===a.length?(t.splice(r-f,f,[M,l]),r=r-f+1):(t.splice(r-f,f,[M,l],[P,a]),r=r-f+2)}0!==r&&t[r-1][0]===L?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=0,o=0,l="",a=""}""===t[t.length-1][1]&&t.pop();var h=!1;for(r=1;r<t.length-1;)t[r-1][0]===L&&t[r+1][0]===L&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),h=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),h=!0)),r++;h&&U(t,e)}function z(t){return t>=55296&&t<=56319}function G(t){return t>=56320&&t<=57343}function Z(t){return G(t.charCodeAt(0))}function Q(t){return z(t.charCodeAt(t.length-1))}function H(t,e,n,r){return Q(t)||Z(r)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[L,t],[M,e],[P,n],[L,r]])}function W(t,e,n){return D(t,e,n,!0)}W.INSERT=P,W.DELETE=M,W.EQUAL=L;var Y=W,J={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",l="[object Date]",a="[object Function]",u="[object GeneratorFunction]",s="[object Map]",c="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",d="[object Set]",y="[object String]",v="[object Symbol]",g="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",k="[object Float32Array]",w="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",x="[object Uint8Array]",N="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]",j=/\w*$/,I=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,B={};B[o]=B["[object Array]"]=B[m]=B[b]=B[i]=B[l]=B[k]=B[w]=B[A]=B[E]=B[O]=B[s]=B[c]=B[f]=B[p]=B[d]=B[y]=B[v]=B[x]=B[N]=B[T]=B[S]=!0,B["[object Error]"]=B[a]=B[g]=!1;var R="object"==typeof _&&_&&_.Object===Object&&_,M="object"==typeof self&&self&&self.Object===Object&&self,P=R||M||Function("return this")(),L=e&&!e.nodeType&&e,D=L&&t&&!t.nodeType&&t,q=D&&D.exports===L;function F(t,e){return t.set(e[0],e[1]),t}function V(t,e){return t.add(e),t}function U(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function z(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Z(t,e){return function(n){return t(e(n))}}function Q(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var H,W=Array.prototype,Y=Function.prototype,J=Object.prototype,X=P["__core-js_shared__"],K=(H=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",$=Y.toString,tt=J.hasOwnProperty,et=J.toString,nt=RegExp("^"+$.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=q?P.Buffer:void 0,ot=P.Symbol,it=P.Uint8Array,lt=Z(Object.getPrototypeOf,Object),at=Object.create,ut=J.propertyIsEnumerable,st=W.splice,ct=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,ht=Z(Object.keys,Object),pt=Dt(P,"DataView"),dt=Dt(P,"Map"),yt=Dt(P,"Promise"),vt=Dt(P,"Set"),gt=Dt(P,"WeakMap"),mt=Dt(Object,"create"),bt=zt(pt),kt=zt(dt),wt=zt(yt),At=zt(vt),Et=zt(gt),Ot=ot?ot.prototype:void 0,xt=Ot?Ot.valueOf:void 0;function Nt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t){this.__data__=new Tt(t)}function _t(t,e){var n=Zt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Qt(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||et.call(t)==o)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var l in t)!e&&!tt.call(t,l)||i&&("length"==l||Vt(l,r))||n.push(l);return n}function It(t,e,n){var r=t[e];tt.call(t,e)&&Gt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Ct(t,e){for(var n=t.length;n--;)if(Gt(t[n][0],e))return n;return-1}function Bt(t,e,n,r,h,g,_){var I;if(r&&(I=g?r(t,h,g,_):r(t)),void 0!==I)return I;if(!Yt(t))return t;var C=Zt(t);if(C){if(I=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,I)}else{var R=Ft(t),M=R==a||R==u;if(Ht(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(R==f||R==o||M&&!g){if(z(t))return g?t:{};if(I=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:(e=lt(t),Yt(e)?at(e):{});var e}(M?{}:t),!e)return function(t,e){return Pt(t,qt(t),e)}(t,function(t,e){return t&&Pt(e,Jt(e),t)}(I,t))}else{if(!B[R])return g?t:{};I=function(t,e,n,r){var o=t.constructor;switch(e){case m:return Mt(t);case i:case l:return new o(+t);case b:return function(t,e){var n=e?Mt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case k:case w:case A:case E:case O:case x:case N:case T:case S:return function(t,e){var n=e?Mt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case s:return function(t,e,n){var r=e?n(G(t),!0):G(t);return U(r,F,new t.constructor)}(t,r,n);case c:case y:return new o(t);case p:return function(t){var e=new t.constructor(t.source,j.exec(t));return e.lastIndex=t.lastIndex,e}(t);case d:return function(t,e,n){var r=e?n(Q(t),!0):Q(t);return U(r,V,new t.constructor)}(t,r,n);case v:return a=t,xt?Object(xt.call(a)):{}}var a}(t,R,Bt,e)}}_||(_=new jt);var P=_.get(t);if(P)return P;if(_.set(t,I),!C)var L=n?function(t){return function(t,e,n){var r=e(t);return Zt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Jt,qt)}(t):Jt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(L||t,(function(o,i){L&&(o=t[i=o]),It(I,i,Bt(o,e,n,r,i,t,_))})),I}function Rt(t){return!(!Yt(t)||(e=t,K&&K in e))&&(Wt(t)||z(t)?nt:I).test(zt(t));var e}function Mt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Pt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var l=e[o],a=r?r(n[l],t[l],l,n,t):void 0;It(n,l,void 0===a?t[l]:a)}return n}function Lt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Dt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Rt(n)?n:void 0}Nt.prototype.clear=function(){this.__data__=mt?mt(null):{}},Nt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Nt.prototype.get=function(t){var e=this.__data__;if(mt){var r=e[t];return r===n?void 0:r}return tt.call(e,t)?e[t]:void 0},Nt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:tt.call(e,t)},Nt.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?n:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0)&&(n==e.length-1?e.pop():st.call(e,n,1),!0)},Tt.prototype.get=function(t){var e=this.__data__,n=Ct(e,t);return n<0?void 0:e[n][1]},Tt.prototype.has=function(t){return Ct(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var n=this.__data__,r=Ct(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new Nt,map:new(dt||Tt),string:new Nt}},St.prototype.delete=function(t){return Lt(this,t).delete(t)},St.prototype.get=function(t){return Lt(this,t).get(t)},St.prototype.has=function(t){return Lt(this,t).has(t)},St.prototype.set=function(t,e){return Lt(this,t).set(t,e),this},jt.prototype.clear=function(){this.__data__=new Tt},jt.prototype.delete=function(t){return this.__data__.delete(t)},jt.prototype.get=function(t){return this.__data__.get(t)},jt.prototype.has=function(t){return this.__data__.has(t)},jt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Tt){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new St(r)}return n.set(t,e),this};var qt=ct?Z(ct,Object):function(){return[]},Ft=function(t){return et.call(t)};function Vt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<e}function Ut(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function zt(t){if(null!=t){try{return $.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(pt&&Ft(new pt(new ArrayBuffer(1)))!=b||dt&&Ft(new dt)!=s||yt&&Ft(yt.resolve())!=h||vt&&Ft(new vt)!=d||gt&&Ft(new gt)!=g)&&(Ft=function(t){var e=et.call(t),n=e==f?t.constructor:void 0,r=n?zt(n):void 0;if(r)switch(r){case bt:return b;case kt:return s;case wt:return h;case At:return d;case Et:return g}return e});var Zt=Array.isArray;function Qt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Wt(t)}var Ht=ft||function(){return!1};function Wt(t){var e=Yt(t)?et.call(t):"";return e==a||e==u}function Yt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Jt(t){return Qt(t)?_t(t):function(t){if(!Ut(t))return ht(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return Bt(t,!0,!0)}}(J,J.exports);var X=J.exports,K={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=1,o=2,i=9007199254740991,l="[object Arguments]",a="[object Array]",u="[object AsyncFunction]",s="[object Boolean]",c="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",d="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",m="[object Promise]",b="[object Proxy]",k="[object RegExp]",w="[object Set]",A="[object String]",E="[object Symbol]",O="[object Undefined]",x="[object WeakMap]",N="[object ArrayBuffer]",T="[object DataView]",S=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[l]=I[a]=I[N]=I[s]=I[T]=I[c]=I[f]=I[h]=I[d]=I[y]=I[g]=I[k]=I[w]=I[A]=I[x]=!1;var C="object"==typeof _&&_&&_.Object===Object&&_,B="object"==typeof self&&self&&self.Object===Object&&self,R=C||B||Function("return this")(),M=e&&!e.nodeType&&e,P=M&&t&&!t.nodeType&&t,L=P&&P.exports===M,D=L&&C.process,q=function(){try{return D&&D.binding&&D.binding("util")}catch(t){}}(),F=q&&q.isTypedArray;function V(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function U(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var G,Z,Q,H=Array.prototype,W=Function.prototype,Y=Object.prototype,J=R["__core-js_shared__"],X=W.toString,K=Y.hasOwnProperty,$=(G=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",tt=Y.toString,et=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=L?R.Buffer:void 0,rt=R.Symbol,ot=R.Uint8Array,it=Y.propertyIsEnumerable,lt=H.splice,at=rt?rt.toStringTag:void 0,ut=Object.getOwnPropertySymbols,st=nt?nt.isBuffer:void 0,ct=(Z=Object.keys,Q=Object,function(t){return Z(Q(t))}),ft=qt(R,"DataView"),ht=qt(R,"Map"),pt=qt(R,"Promise"),dt=qt(R,"Set"),yt=qt(R,"WeakMap"),vt=qt(Object,"create"),gt=zt(ft),mt=zt(ht),bt=zt(pt),kt=zt(dt),wt=zt(yt),At=rt?rt.prototype:void 0,Et=At?At.valueOf:void 0;function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Nt;++e<n;)this.add(t[e])}function St(t){var e=this.__data__=new xt(t);this.size=e.size}function jt(t,e){var n=Qt(t),r=!n&&Zt(t),o=!n&&!r&&Ht(t),i=!n&&!r&&!o&&Kt(t),l=n||r||o||i,a=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=a.length;for(var s in t)!e&&!K.call(t,s)||l&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ut(s,u))||a.push(s);return a}function _t(t,e){for(var n=t.length;n--;)if(Gt(t[n][0],e))return n;return-1}function It(t){return null==t?void 0===t?O:v:at&&at in Object(t)?function(t){var e=K.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(i){}var o=tt.call(t);r&&(e?t[at]=n:delete t[at]);return o}(t):function(t){return tt.call(t)}(t)}function Ct(t){return Xt(t)&&It(t)==l}function Bt(t,e,n,i,u){return t===e||(null==t||null==e||!Xt(t)&&!Xt(e)?t!=t&&e!=e:function(t,e,n,i,u,h){var p=Qt(t),v=Qt(e),m=p?a:Vt(t),b=v?a:Vt(e),O=(m=m==l?g:m)==g,x=(b=b==l?g:b)==g,S=m==b;if(S&&Ht(t)){if(!Ht(e))return!1;p=!0,O=!1}if(S&&!O)return h||(h=new St),p||Kt(t)?Pt(t,e,n,i,u,h):function(t,e,n,i,l,a,u){switch(n){case T:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case N:return!(t.byteLength!=e.byteLength||!a(new ot(t),new ot(e)));case s:case c:case y:return Gt(+t,+e);case f:return t.name==e.name&&t.message==e.message;case k:case A:return t==e+"";case d:var h=U;case w:var p=i&r;if(h||(h=z),t.size!=e.size&&!p)return!1;var v=u.get(t);if(v)return v==e;i|=o,u.set(t,e);var g=Pt(h(t),h(e),i,l,a,u);return u.delete(t),g;case E:if(Et)return Et.call(t)==Et.call(e)}return!1}(t,e,m,n,i,u,h);if(!(n&r)){var j=O&&K.call(t,"__wrapped__"),_=x&&K.call(e,"__wrapped__");if(j||_){var I=j?t.value():t,C=_?e.value():e;return h||(h=new St),u(I,C,n,i,h)}}if(!S)return!1;return h||(h=new St),function(t,e,n,o,i,l){var a=n&r,u=Lt(t),s=u.length,c=Lt(e),f=c.length;if(s!=f&&!a)return!1;var h=s;for(;h--;){var p=u[h];if(!(a?p in e:K.call(e,p)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var y=!0;l.set(t,e),l.set(e,t);var v=a;for(;++h<s;){var g=t[p=u[h]],m=e[p];if(o)var b=a?o(m,g,p,e,t,l):o(g,m,p,t,e,l);if(!(void 0===b?g===m||i(g,m,n,o,l):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var k=t.constructor,w=e.constructor;k==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(y=!1)}return l.delete(t),l.delete(e),y}(t,e,n,i,u,h)}(t,e,n,i,Bt,u))}function Rt(t){return!(!Jt(t)||function(t){return!!$&&$ in t}(t))&&(Wt(t)?et:S).test(zt(t))}function Mt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||Y,e!==r)return ct(t);var e,n,r,o=[];for(var i in Object(t))K.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Pt(t,e,n,i,l,a){var u=n&r,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var h=-1,p=!0,d=n&o?new Tt:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var y=t[h],v=e[h];if(i)var g=u?i(v,y,h,e,t,a):i(y,v,h,t,e,a);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!V(e,(function(t,e){if(r=e,!d.has(r)&&(y===t||l(y,t,n,i,a)))return d.push(e);var r}))){p=!1;break}}else if(y!==v&&!l(y,v,n,i,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function Lt(t){return function(t,e,n){var r=e(t);return Qt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,$t,Ft)}function Dt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function qt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Rt(n)?n:void 0}Ot.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},Ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ot.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===n?void 0:r}return K.call(e,t)?e[t]:void 0},Ot.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:K.call(e,t)},Ot.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=vt&&void 0===e?n:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,n=_t(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},xt.prototype.get=function(t){var e=this.__data__,n=_t(e,t);return n<0?void 0:e[n][1]},xt.prototype.has=function(t){return _t(this.__data__,t)>-1},xt.prototype.set=function(t,e){var n=this.__data__,r=_t(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Nt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(ht||xt),string:new Ot}},Nt.prototype.delete=function(t){var e=Dt(this,t).delete(t);return this.size-=e?1:0,e},Nt.prototype.get=function(t){return Dt(this,t).get(t)},Nt.prototype.has=function(t){return Dt(this,t).has(t)},Nt.prototype.set=function(t,e){var n=Dt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Tt.prototype.add=Tt.prototype.push=function(t){return this.__data__.set(t,n),this},Tt.prototype.has=function(t){return this.__data__.has(t)},St.prototype.clear=function(){this.__data__=new xt,this.size=0},St.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!ht||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Nt(r)}return n.set(t,e),this.size=n.size,this};var Ft=ut?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var l=t[n];e(l,n,t)&&(i[o++]=l)}return i}(ut(t),(function(e){return it.call(t,e)})))}:function(){return[]},Vt=It;function Ut(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){if(null!=t){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(ft&&Vt(new ft(new ArrayBuffer(1)))!=T||ht&&Vt(new ht)!=d||pt&&Vt(pt.resolve())!=m||dt&&Vt(new dt)!=w||yt&&Vt(new yt)!=x)&&(Vt=function(t){var e=It(t),n=e==g?t.constructor:void 0,r=n?zt(n):"";if(r)switch(r){case gt:return T;case mt:return d;case bt:return m;case kt:return w;case wt:return x}return e});var Zt=Ct(function(){return arguments}())?Ct:function(t){return Xt(t)&&K.call(t,"callee")&&!it.call(t,"callee")},Qt=Array.isArray;var Ht=st||function(){return!1};function Wt(t){if(!Jt(t))return!1;var e=It(t);return e==h||e==p||e==u||e==b}function Yt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Jt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Xt(t){return null!=t&&"object"==typeof t}var Kt=F?function(t){return function(e){return t(e)}}(F):function(t){return Xt(t)&&Yt(t.length)&&!!I[It(t)]};function $t(t){return null!=(e=t)&&Yt(e.length)&&!Wt(e)?jt(t):Mt(t);var e}t.exports=function(t,e){return Bt(t,e)}}(K,K.exports);var $=K.exports,tt={},et=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tt,"__esModule",{value:!0});var nt,rt,ot=et(X),it=et($);(rt=nt||(nt={})).compose=function(t,e,n){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=ot.default(e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},rt.diff=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return it.default(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n}),{});return Object.keys(n).length>0?n:void 0},rt.invert=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),t=t||{};var n=Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0!==t[r]&&(n[r]=e[r]),n}),{});return Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0===e[r]&&(n[r]=null),n}),n)},rt.transform=function(t,e,n){if(void 0===n&&(n=!1),"object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}},tt.default=nt;var lt,at,ut={},st={};function ct(){if(at)return ut;at=1;var t=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});var e,n,r=t(function(){if(lt)return st;lt=1;var t=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(st,"__esModule",{value:!0});var e=t(ct()),n=function(){function t(t){this.ops=t,this.index=0,this.offset=0}return t.prototype.hasNext=function(){return this.peekLength()<1/0},t.prototype.next=function(t){t||(t=1/0);var n=this.ops[this.index];if(n){var r=this.offset,o=e.default.length(n);if(t>=o-r?(t=o-r,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof n.delete)return{delete:t};var i={};return n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=t:"string"==typeof n.insert?i.insert=n.insert.substr(r,t):i.insert=n.insert,i}return{retain:1/0}},t.prototype.peek=function(){return this.ops[this.index]},t.prototype.peekLength=function(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0},t.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"},t.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t}();return st.default=n,st}());return(n=e||(e={})).iterator=function(t){return new r.default(t)},n.length=function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1},ut.default=e,ut}var ft=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},ht=ft(Y),pt=ft(X),dt=ft($),yt=ft(tt),vt=ft(ct()),gt=String.fromCharCode(0);const mt=I(function(){function t(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return t.prototype.insert=function(t,e){var n={};return"string"==typeof t&&0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},t.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},t.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},t.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=pt.default(t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(dt.default(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},t.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},t.prototype.filter=function(t){return this.ops.filter(t)},t.prototype.forEach=function(t){this.ops.forEach(t)},t.prototype.map=function(t){return this.ops.map(t)},t.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},t.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},t.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+vt.default.length(e):e.delete?t-e.delete:t}),0)},t.prototype.length=function(){return this.reduce((function(t,e){return t+vt.default.length(e)}),0)},t.prototype.slice=function(e,n){void 0===e&&(e=0),void 0===n&&(n=1/0);for(var r=[],o=vt.default.iterator(this.ops),i=0;i<n&&o.hasNext();){var l=void 0;i<e?l=o.next(e-i):(l=o.next(n-i),r.push(l)),i+=vt.default.length(l)}return new t(r)},t.prototype.compose=function(e){var n=vt.default.iterator(this.ops),r=vt.default.iterator(e.ops),o=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===n.peekType()&&n.peekLength()<=l;)l-=n.peekLength(),o.push(n.next());i.retain-l>0&&r.next(i.retain-l)}for(var a=new t(o);n.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===n.peekType())a.push(n.next());else{var u=Math.min(n.peekLength(),r.peekLength()),s=n.next(u),c=r.next(u);if("number"==typeof c.retain){var f={};"number"==typeof s.retain?f.retain=u:f.insert=s.insert;var h=yt.default.compose(s.attributes,c.attributes,"number"==typeof s.retain);if(h&&(f.attributes=h),a.push(f),!r.hasNext()&&dt.default(a.ops[a.ops.length-1],f)){var p=new t(n.rest());return a.concat(p).chop()}}else"number"==typeof c.delete&&"number"==typeof s.retain&&a.push(c)}return a.chop()},t.prototype.concat=function(e){var n=new t(this.ops.slice());return e.ops.length>0&&(n.push(e.ops[0]),n.ops=n.ops.concat(e.ops.slice(1))),n},t.prototype.diff=function(e,n){if(this.ops===e.ops)return new t;var r=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:gt;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new t,i=ht.default(r[0],r[1],n),l=vt.default.iterator(this.ops),a=vt.default.iterator(e.ops);return i.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case ht.default.INSERT:n=Math.min(a.peekLength(),e),o.push(a.next(n));break;case ht.default.DELETE:n=Math.min(e,l.peekLength()),l.next(n),o.delete(n);break;case ht.default.EQUAL:n=Math.min(l.peekLength(),a.peekLength(),e);var r=l.next(n),i=a.next(n);dt.default(r.insert,i.insert)?o.retain(n,yt.default.diff(r.attributes,i.attributes)):o.push(i).delete(n)}e-=n}})),o.chop()},t.prototype.eachLine=function(e,n){void 0===n&&(n="\n");for(var r=vt.default.iterator(this.ops),o=new t,i=0;r.hasNext();){if("insert"!==r.peekType())return;var l=r.peek(),a=vt.default.length(l)-r.peekLength(),u="string"==typeof l.insert?l.insert.indexOf(n,a)-a:-1;if(u<0)o.push(r.next());else if(u>0)o.push(r.next(u));else{if(!1===e(o,r.next(1).attributes||{},i))return;i+=1,o=new t}}o.length()>0&&e(o,{},i)},t.prototype.invert=function(e){var n=new t;return this.reduce((function(t,r){if(r.insert)n.delete(vt.default.length(r));else{if(r.retain&&null==r.attributes)return n.retain(r.retain),t+r.retain;if(r.delete||r.retain&&r.attributes){var o=r.delete||r.retain;return e.slice(t,t+o).forEach((function(t){r.delete?n.push(t):r.retain&&r.attributes&&n.retain(vt.default.length(t),yt.default.invert(r.attributes,t.attributes))})),t+o}}return t}),0),n.chop()},t.prototype.transform=function(e,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof e)return this.transformPosition(e,n);for(var r=e,o=vt.default.iterator(this.ops),i=vt.default.iterator(r.ops),l=new t;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===i.peekType())if("insert"===i.peekType())l.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),u=o.next(a),s=i.next(a);if(u.delete)continue;s.delete?l.push(s):l.retain(a,yt.default.transform(u.attributes,s.attributes,n))}else l.retain(vt.default.length(o.next()));return l.chop()},t.prototype.transformPosition=function(t,e){void 0===e&&(e=!1),e=!!e;for(var n=vt.default.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.Op=vt.default,t.AttributeMap=yt.default,t}()),bt={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["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:[]}],["link","video","image"],["clean"]]},kt=n.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:t=>["delta","html","text"].includes(t)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:t=>["snow","bubble",""].includes(t)},toolbar:{type:[String,Array,Object],required:!1,validator:t=>"string"!=typeof t||""===t||("#"===t.charAt(0)||-1!==Object.keys(bt).indexOf(t))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(t,e)=>{let r,o;n.onMounted((()=>{l()})),n.onBeforeUnmount((()=>{r=null}));const i=n.ref(),l=()=>{var n;if(i.value){if(o=a(),t.modules)if(Array.isArray(t.modules))for(const e of t.modules)R.register(`modules/${e.name}`,e.module);else R.register(`modules/${t.modules.name}`,t.modules.module);r=new R(i.value,o),v(t.content),r.on("text-change",f),r.on("selection-change",p),r.on("editor-change",d),"bubble"!==t.theme&&i.value.classList.remove("ql-bubble"),"snow"!==t.theme&&i.value.classList.remove("ql-snow"),null===(n=r.getModule("toolbar"))||void 0===n||n.container.addEventListener("mousedown",(t=>{t.preventDefault()})),e.emit("ready",r)}},a=()=>{const e={};if(""!==t.theme&&(e.theme=t.theme),t.readOnly&&(e.readOnly=t.readOnly),t.placeholder&&(e.placeholder=t.placeholder),t.toolbar&&""!==t.toolbar&&(e.modules={toolbar:(()=>{if("object"==typeof t.toolbar)return t.toolbar;if("string"==typeof t.toolbar){return"#"===t.toolbar.charAt(0)?t.toolbar:bt[t.toolbar]}})()}),t.modules){const n=(()=>{var e,n;const r={};if(Array.isArray(t.modules))for(const o of t.modules)r[o.name]=null!==(e=o.options)&&void 0!==e?e:{};else r[t.modules.name]=null!==(n=t.modules.options)&&void 0!==n?n:{};return r})();e.modules=Object.assign({},e.modules,n)}return Object.assign({},t.globalOptions,t.options,e)},u=t=>"object"==typeof t&&t?t.slice():t;let s;const c=t=>{if(typeof s==typeof t){if(t===s)return!0;if("object"==typeof t&&t&&"object"==typeof s&&s)return e=s.diff(t),!Object.values(e.ops).some((t=>!t.retain||1!==Object.keys(t).length))}var e;return!1},f=(n,r,o)=>{s=u(y()),c(t.content)||e.emit("update:content",s),e.emit("textChange",{delta:n,oldContents:r,source:o})},h=n.ref(),p=(t,n,o)=>{h.value=!!(null==r?void 0:r.hasFocus()),e.emit("selectionChange",{range:t,oldRange:n,source:o})};n.watch(h,(t=>{t?e.emit("focus",i):e.emit("blur",i)}));const d=(...t)=>{"text-change"===t[0]&&e.emit("editorChange",{name:t[0],delta:t[1],oldContents:t[2],source:t[3]}),"selection-change"===t[0]&&e.emit("editorChange",{name:t[0],range:t[1],oldRange:t[2],source:t[3]})},y=(e,n)=>"html"===t.contentType?b():"text"===t.contentType?g(e,n):null==r?void 0:r.getContents(e,n),v=(e,n="api")=>{const o=e||("delta"===t.contentType?new mt:"");"html"===t.contentType?k(o):"text"===t.contentType?m(o,n):null==r||r.setContents(o,n),s=u(o)},g=(t,e)=>{var n;return null!==(n=null==r?void 0:r.getText(t,e))&&void 0!==n?n:""},m=(t,e="api")=>{null==r||r.setText(t,e)},b=()=>{var t;return null!==(t=null==r?void 0:r.root.innerHTML)&&void 0!==t?t:""},k=t=>{r&&(r.root.innerHTML=t)};return n.watch((()=>t.content),(t=>{if(!r||!t||c(t))return;const e=r.getSelection();e&&n.nextTick((()=>null==r?void 0:r.setSelection(e))),v(t)}),{deep:!0}),n.watch((()=>t.enable),(t=>{r&&r.enable(t)})),{editor:i,getEditor:()=>i.value,getToolbar:()=>{var t;return null===(t=null==r?void 0:r.getModule("toolbar"))||void 0===t?void 0:t.container},getQuill:()=>{if(r)return r;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:y,setContents:v,getHTML:b,setHTML:k,pasteHTML:(t,e="api")=>{const n=null==r?void 0:r.clipboard.convert(t);n&&(null==r||r.setContents(n,e))},focus:()=>{null==r||r.focus()},getText:g,setText:m,reinit:()=>{n.nextTick((()=>{var t;!e.slots.toolbar&&r&&(null===(t=r.getModule("toolbar"))||void 0===t||t.container.remove()),l()}))}}},render(){var t,e;return[null===(e=(t=this.$slots).toolbar)||void 0===e?void 0:e.call(t),n.h("div",{ref:"editor",...this.$attrs})]}}),wt={modelValue:{default:"",type:String},token:{default:"",type:String},readonly:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},At=n.defineComponent({name:"TextEditor",components:{QuillEditor:kt},emits:["update:modelValue","textChange"],props:wt,setup:(t,e)=>new Et(t,e)});let Et=class extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"fileApi",new o.FileApi),u(this,"uploadApi",new o.UploadApi),u(this,"business",this.storageInfo.getCurrentInsTree()),u(this,"componentShow",n.ref(!1)),u(this,"content",n.ref("")),u(this,"theme",n.ref("snow")),u(this,"QuillEditorRef",n.ref()),u(this,"options",n.reactive({modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{size:["small",!1,"large","huge"]}],[{font:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{header:1},{header:2}],["image"],[{color:[]}],[{background:[]}]]}}})),u(this,"textChange",(()=>{this.ctx.emit("update:modelValue",this.content.value),this.ctx.emit("textChange",this.content.value)})),u(this,"getText",(()=>this.QuillEditorRef.value.getHTML())),u(this,"saveTextData",(async()=>{let t=JSON.stringify(this.content.value);const e=this.uploadApi.getBaseFilePo(this.props.token,"content","默认");await this.uploadApi.writeFile(this.props.token+"","json",t,e)})),u(this,"deleteTextData",(async()=>{await this.fileApi.deleteByToken(this.props.token)})),u(this,"deleteTextDataByToken",(async t=>{await this.fileApi.deleteByToken(t)})),u(this,"clearTextData",(async()=>{this.content.value="",this.QuillEditorRef.value.setHTML("")})),this.props=t,this.ctx=e,this.init()}init(){n.onMounted((()=>{this.loadTextData(),n.watchEffect((()=>{this.componentShow.value=!1,this.props.readonly?this.theme.value="bubble":this.theme.value="snow",n.nextTick((()=>{this.componentShow.value=!0}))}))}))}async loadTextData(){if(!this.utilities.isNull(this.props.token)){const t=this.utilities.parseApiResult(await this.fileApi.readText(this.props.token));t&&(this.content.value=JSON.parse(t))}}};const Ot=h(At,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("QuillEditor");return n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},class:n.normalizeClass({"text-edit-border":t.border&&t.readonly})},[t.componentShow?(n.openBlock(),n.createBlock(a,{key:0,content:t.content,"onUpdate:content":e[0]||(e[0]=e=>t.content=e),readOnly:t.readonly,theme:t.theme,onTextChange:t.textChange,contentType:"html",ref:"QuillEditorRef",options:t.options},null,8,["content","readOnly","theme","onTextChange","options"])):n.createCommentVNode("",!0)],2)}],["__scopeId","data-v-5812cc0f"]]),xt=new i.DictionaryDetailApi,Nt=async(t,e,n,o)=>{e||(e=[]),l.utilities.isNull(o)&&(o=r.storageInfo.getCurrentPlatform().Id);const i=l.utilities.parseApiResult(await xt.getOptions(o,t));return n?(e.splice(0,0,...l.utilities.arrayHelper.parseIViewOptions(i,"DetailInfor","DetailValue")),e):i},Tt={code:{type:String,default:""},platformId:{type:Number,default:null},value:{type:String,default:""},readonly:{type:Boolean,default:!1}},St=n.defineComponent({name:"NvDicSelect",components:{},emits:["input","change"],props:Tt,setup:(t,e)=>new jt(t,e)});class jt extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"DicValue",n.ref("")),u(this,"dicOptions",n.ref([])),u(this,"DicSelectChange",(()=>{this.ctx.emit("input",this.DicValue.value),this.ctx.emit("change",this.DicValue.value)})),this.props=t,this.ctx=e,this.loadDicData()}async loadDicData(){this.dicOptions.value=await Nt(this.props.code,[],!0,this.props.platformId)}}const _t=h(St,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Option"),u=n.resolveComponent("Select");return n.openBlock(),n.createBlock(u,{disabled:t.readonly,modelValue:t.DicValue,"onUpdate:modelValue":e[0]||(e[0]=e=>t.DicValue=e),transfer:"",onOnChange:t.DicSelectChange},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.dicOptions,(t=>(n.openBlock(),n.createBlock(a,{value:t.value,key:t.value},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["disabled","modelValue","onOnChange"])}]]);var It={Identity:function(t){return t},True:function(){return!0},Blank:function(){}},Ct="boolean",Bt="number",Rt="string",Mt="undefined",Pt="function",Lt={"":It.Identity},Dt=function(t){if(null==t)return It.Identity;if(typeof t===Rt){let e=Lt[t];if(null!=e)return e;if(-1===t.indexOf("=>")){const n=new RegExp("[$]+","g");let r,o=0;for(;null!=(r=n.exec(t));)r[0].length>o&&(o=r[0].length);const i=[];for(let t=1;t<=o;t++){let e="";for(let n=0;n<t;n++)e+="$";i.push(e)}const l=i.join(",");return e=new Function(l,"return "+t),Lt[t]=e,e}{const n=t.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return e=new Function(n[1],n[2].match(/\breturn\b/)?n[2]:"return "+n[2]),Lt[t]=e,e}}return t},qt=function(t,e,n){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})},Ft=function(t,e){return t===e?0:t>e?1:-1},Vt=function(t){null!=t&&t.dispose()},Ut=function(){return"undefined"!=typeof Symbol&&void 0!==Symbol.iterator},zt=0,Gt=1,Zt=2,Qt=function(t,e,n){var r=new Ht,o=zt;this.current=r.current,this.moveNext=function(){try{switch(o){case zt:o=Gt,t();case Gt:return!!e.apply(r)||(this.dispose(),!1);case Zt:return!1}}catch(n){throw this.dispose(),n}},this.dispose=function(){if(o==Gt)try{n()}finally{o=Zt}}},Ht=function(){var t=null;this.current=function(){return t},this.yieldReturn=function(e){return t=e,!0},this.yieldBreak=function(){return!1}},Wt=function(t){this.getEnumerator=t};(Wt.Utils={}).createLambda=function(t){return Dt(t)},Wt.Utils.createEnumerable=function(t){return new Wt(t)},Wt.Utils.createEnumerator=function(t,e,n){return new Qt(t,e,n)},Wt.Utils.extendTo=function(t){var e,n=t.prototype;t===Array?(e=Kt.prototype,qt(n,"getSource",(function(){return this}))):(e=Wt.prototype,qt(n,"getEnumerator",(function(){return Wt.from(this).getEnumerator()})));for(let r in e){const t=e[r];n[r]!=t&&(null!=n[r]&&(r+="ByLinq",n[r]==t)||t instanceof Function&&qt(n,r,t))}},Wt.Utils.recallFrom=function(t){var e,n=t.prototype;t===Array?(e=Kt.prototype,delete n.getSource):(e=Wt.prototype,delete n.getEnumerator);for(const r in e){const t=e[r];n[r+"ByLinq"]?delete n[r+"ByLinq"]:n[r]==t&&t instanceof Function&&delete n[r]}},Wt.choice=function(){var t=arguments;return new Wt((function(){return new Qt((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return this.yieldReturn(t[Math.floor(Math.random()*t.length)])}),It.Blank)}))},Wt.cycle=function(){var t=arguments;return new Wt((function(){var e=0;return new Qt((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return e>=t.length&&(e=0),this.yieldReturn(t[e++])}),It.Blank)}))},Wt.empty=function(){return new Wt((function(){return new Qt(It.Blank,(function(){return!1}),It.Blank)}))},Wt.from=function(t){if(null==t)return Wt.empty();if(t instanceof Wt)return t;if(typeof t==Bt||typeof t==Ct)return Wt.repeat(t,1);if(typeof t==Rt)return new Wt((function(){var e=0;return new Qt(It.Blank,(function(){return e<t.length&&this.yieldReturn(t.charAt(e++))}),It.Blank)}));if(typeof t!=Pt){if(typeof t.length==Bt)return new Kt(t);if("undefined"!=typeof Symbol&&void 0!==t[Symbol.iterator])return new Wt((function(){return new Qt(It.Blank,(function(){var e=t.next();return!e.done&&this.yieldReturn(e.value)}),It.Blank)}))}return new Wt((function(){var e=[],n=0;return new Qt((function(){for(const n in t){const r=t[n];r instanceof Function||!Object.prototype.hasOwnProperty.call(t,n)||e.push({key:n,value:r})}}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),It.Blank)}))},Wt.make=function(t){return Wt.repeat(t,1)},Wt.matches=function(t,e,n){return null==n&&(n=""),e instanceof RegExp&&(n+=e.ignoreCase?"i":"",n+=e.multiline?"m":"",e=e.source),-1===n.indexOf("g")&&(n+="g"),new Wt((function(){var r;return new Qt((function(){r=new RegExp(e,n)}),(function(){var e=r.exec(t);return!!e&&this.yieldReturn(e)}),It.Blank)}))},Wt.range=function(t,e,n){return null==n&&(n=1),new Wt((function(){var r,o=0;return new Qt((function(){r=t-n}),(function(){return o++<e?this.yieldReturn(r+=n):this.yieldBreak()}),It.Blank)}))},Wt.rangeDown=function(t,e,n){return null==n&&(n=1),new Wt((function(){var r,o=0;return new Qt((function(){r=t+n}),(function(){return o++<e?this.yieldReturn(r-=n):this.yieldBreak()}),It.Blank)}))},Wt.rangeTo=function(t,e,n){return null==n&&(n=1),new Wt(t<e?function(){var r;return new Qt((function(){r=t-n}),(function(){var t=r+=n;return t<=e?this.yieldReturn(t):this.yieldBreak()}),It.Blank)}:function(){var r;return new Qt((function(){r=t+n}),(function(){var t=r-=n;return t>=e?this.yieldReturn(t):this.yieldBreak()}),It.Blank)})},Wt.repeat=function(t,e){return null!=e?Wt.repeat(t).take(e):new Wt((function(){return new Qt(It.Blank,(function(){return this.yieldReturn(t)}),It.Blank)}))},Wt.repeatWithFinalize=function(t,e){return t=Dt(t),e=Dt(e),new Wt((function(){var n;return new Qt((function(){n=t()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(e(n),n=null)}))}))},Wt.generate=function(t,e){return null!=e?Wt.generate(t).take(e):(t=Dt(t),new Wt((function(){return new Qt(It.Blank,(function(){return this.yieldReturn(t())}),It.Blank)})))},Wt.toInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new Wt((function(){var n;return new Qt((function(){n=t-e}),(function(){return this.yieldReturn(n+=e)}),It.Blank)}))},Wt.toNegativeInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new Wt((function(){var n;return new Qt((function(){n=t+e}),(function(){return this.yieldReturn(n-=e)}),It.Blank)}))},Wt.unfold=function(t,e){return e=Dt(e),new Wt((function(){var n,r=!0;return new Qt(It.Blank,(function(){return r?(r=!1,n=t,this.yieldReturn(n)):(n=e(n),this.yieldReturn(n))}),It.Blank)}))},Wt.defer=function(t){return new Wt((function(){var e;return new Qt((function(){e=Wt.from(t()).getEnumerator()}),(function(){return e.moveNext()?this.yieldReturn(e.current()):this.yieldBreak()}),(function(){Vt(e)}))}))},Wt.prototype.traverseBreadthFirst=function(t,e){var n=this;return t=Dt(t),e=Dt(e),new Wt((function(){var r,o=0,i=[];return new Qt((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext())return i.push(r.current()),this.yieldReturn(e(r.current(),o));const n=Wt.from(i).selectMany((function(e){return t(e)}));if(!n.any())return!1;o++,i=[],Vt(r),r=n.getEnumerator()}}),(function(){Vt(r)}))}))},Wt.prototype.traverseDepthFirst=function(t,e){var n=this;return t=Dt(t),e=Dt(e),new Wt((function(){var r,o=[];return new Qt((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext()){const n=e(r.current(),o.length);return o.push(r),r=Wt.from(t(r.current())).getEnumerator(),this.yieldReturn(n)}if(o.length<=0)return!1;Vt(r),r=o.pop()}}),(function(){try{Vt(r)}finally{Wt.from(o).forEach((function(t){t.dispose()}))}}))}))},Wt.prototype.flatten=function(){var t=this;return new Wt((function(){var e,n=null;return new Qt((function(){e=t.getEnumerator()}),(function(){for(;;){if(null!=n){if(n.moveNext())return this.yieldReturn(n.current());n=null}if(e.moveNext()){if(e.current()instanceof Array){Vt(n),n=Wt.from(e.current()).selectMany(It.Identity).flatten().getEnumerator();continue}return this.yieldReturn(e.current())}return!1}}),(function(){try{Vt(e)}finally{Vt(n)}}))}))},Wt.prototype.pairwise=function(t){var e=this;return t=Dt(t),new Wt((function(){var n;return new Qt((function(){(n=e.getEnumerator()).moveNext()}),(function(){var e=n.current();return!!n.moveNext()&&this.yieldReturn(t(e,n.current()))}),(function(){Vt(n)}))}))},Wt.prototype.scan=function(t,e){var n;null==e?(e=Dt(t),n=!1):(e=Dt(e),n=!0);var r=this;return new Wt((function(){var o,i,l=!0;return new Qt((function(){o=r.getEnumerator()}),(function(){if(l){if(l=!1,n)return this.yieldReturn(i=t);if(o.moveNext())return this.yieldReturn(i=o.current())}return!!o.moveNext()&&this.yieldReturn(i=e(i,o.current()))}),(function(){Vt(o)}))}))},Wt.prototype.select=function(t){if((t=Dt(t)).length<=1)return new te(this,null,t);var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(t(n.current(),r++))}),(function(){Vt(n)}))}))},Wt.prototype.selectMany=function(t,e){var n=this;return t=Dt(t),null==e&&(e=function(t,e){return e}),e=Dt(e),new Wt((function(){var r,o=void 0,i=0;return new Qt((function(){r=n.getEnumerator()}),(function(){if(void 0===o&&!r.moveNext())return!1;do{if(null==o){const e=t(r.current(),i++);o=Wt.from(e).getEnumerator()}if(o.moveNext())return this.yieldReturn(e(r.current(),o.current()));Vt(o),o=null}while(r.moveNext());return!1}),(function(){try{Vt(r)}finally{Vt(o)}}))}))},Wt.prototype.where=function(t){if((t=Dt(t)).length<=1)return new $t(this,t);var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)if(t(n.current(),r++))return this.yieldReturn(n.current());return!1}),(function(){Vt(n)}))}))},Wt.prototype.choose=function(t){t=Dt(t);var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){const e=t(n.current(),r++);if(null!=e)return this.yieldReturn(e)}return this.yieldBreak()}),(function(){Vt(n)}))}))},Wt.prototype.ofType=function(t){var e;switch(t){case Number:e=Bt;break;case String:e=Rt;break;case Boolean:e=Ct;break;case Function:e=Pt;break;default:e=null}return null===e?this.where((function(e){return e instanceof t})):this.where((function(t){return typeof t===e}))},Wt.prototype.zip=function(){var t=arguments,e=Dt(arguments[arguments.length-1]),n=this;if(2==arguments.length){const t=arguments[0];return new Wt((function(){var r,o,i=0;return new Qt((function(){r=n.getEnumerator(),o=Wt.from(t).getEnumerator()}),(function(){return!(!r.moveNext()||!o.moveNext())&&this.yieldReturn(e(r.current(),o.current(),i++))}),(function(){try{Vt(r)}finally{Vt(o)}}))}))}return new Wt((function(){var r,o=0;return new Qt((function(){var e=Wt.make(n).concat(Wt.from(t).takeExceptLast().select(Wt.from)).select((function(t){return t.getEnumerator()})).toArray();r=Wt.from(e)}),(function(){if(r.all((function(t){return t.moveNext()}))){const t=r.select((function(t){return t.current()})).toArray();return t.push(o++),this.yieldReturn(e.apply(null,t))}return this.yieldBreak()}),(function(){Wt.from(r).forEach(Vt)}))}))},Wt.prototype.merge=function(){var t=arguments,e=this;return new Wt((function(){var n,r=-1;return new Qt((function(){n=Wt.make(e).concat(Wt.from(t).select(Wt.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){r=r>=n.length-1?0:r+1;const t=n[r];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),n.splice(r--,1)}return this.yieldBreak()}),(function(){Wt.from(n).forEach(Vt)}))}))},Wt.prototype.join=function(t,e,n,r,o){e=Dt(e),n=Dt(n),r=Dt(r),o=Dt(o);var i=this;return new Wt((function(){var l,a,u=null,s=0;return new Qt((function(){l=i.getEnumerator(),a=Wt.from(t).toLookup(n,It.Identity,o)}),(function(){for(;;){if(null!=u){let t=u[s++];if(void 0!==t)return this.yieldReturn(r(l.current(),t));t=null,s=0}if(!l.moveNext())return!1;{const t=e(l.current());u=a.get(t).toArray()}}}),(function(){Vt(l)}))}))},Wt.prototype.leftJoin=function(t,e,n,r,o){e=Dt(e),n=Dt(n),r=Dt(r),o=Dt(o);var i=this;return new Wt((function(){var l,a,u=null,s=0;return new Qt((function(){l=i.getEnumerator(),a=Wt.from(t).toLookup(n,It.Identity,o)}),(function(){for(;;){if(null!=u){let t=u[s++];if(void 0!==t)return this.yieldReturn(r(l.current(),t));t=null,s=0}if(!l.moveNext())return!1;{const t=e(l.current());if(null==(u=a.get(t).toArray())||0==u.length)return this.yieldReturn(r(l.current(),null))}}}),(function(){Vt(l)}))}))},Wt.prototype.groupJoin=function(t,e,n,r,o){e=Dt(e),n=Dt(n),r=Dt(r),o=Dt(o);var i=this;return new Wt((function(){var l=i.getEnumerator(),a=null;return new Qt((function(){l=i.getEnumerator(),a=Wt.from(t).toLookup(n,It.Identity,o)}),(function(){if(l.moveNext()){const t=a.get(e(l.current()));return this.yieldReturn(r(l.current(),t))}return!1}),(function(){Vt(l)}))}))},Wt.prototype.all=function(t){t=Dt(t);var e=!0;return this.forEach((function(n){if(!t(n))return e=!1,!1})),e},Wt.prototype.any=function(t){t=Dt(t);var e=this.getEnumerator();try{if(0==arguments.length)return e.moveNext();for(;e.moveNext();)if(t(e.current()))return!0;return!1}finally{Vt(e)}},Wt.prototype.isEmpty=function(){return!this.any()},Wt.prototype.concat=function(){var t=this;if(1==arguments.length){const e=arguments[0];return new Wt((function(){var n,r;return new Qt((function(){n=t.getEnumerator()}),(function(){if(null==r){if(n.moveNext())return this.yieldReturn(n.current());r=Wt.from(e).getEnumerator()}return!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){try{Vt(n)}finally{Vt(r)}}))}))}{const e=arguments;return new Wt((function(){var n;return new Qt((function(){n=Wt.make(t).concat(Wt.from(e).select(Wt.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){const t=n[0];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),n.splice(0,1)}return this.yieldBreak()}),(function(){Wt.from(n).forEach(Vt)}))}))}},Wt.prototype.insert=function(t,e){var n=this;return new Wt((function(){var r,o,i=0,l=!1;return new Qt((function(){r=n.getEnumerator(),o=Wt.from(e).getEnumerator()}),(function(){return i==t&&o.moveNext()?(l=!0,this.yieldReturn(o.current())):r.moveNext()?(i++,this.yieldReturn(r.current())):!(l||!o.moveNext())&&this.yieldReturn(o.current())}),(function(){try{Vt(r)}finally{Vt(o)}}))}))},Wt.prototype.alternate=function(t){var e=this;return new Wt((function(){var n,r,o,i;return new Qt((function(){o=t instanceof Array||null!=t.getEnumerator?Wt.from(Wt.from(t).toArray()):Wt.make(t),(r=e.getEnumerator()).moveNext()&&(n=r.current())}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.current());i=null}if(null!=n||!r.moveNext()){if(null!=n){const t=n;return n=null,this.yieldReturn(t)}return this.yieldBreak()}n=r.current(),i=o.getEnumerator()}}),(function(){try{Vt(r)}finally{Vt(i)}}))}))},Wt.prototype.contains=function(t,e){e=Dt(e);var n=this.getEnumerator();try{for(;n.moveNext();)if(e(n.current())===t)return!0;return!1}finally{Vt(n)}},Wt.prototype.defaultIfEmpty=function(t){var e=this;return void 0===t&&(t=null),new Wt((function(){var n,r=!0;return new Qt((function(){n=e.getEnumerator()}),(function(){return n.moveNext()?(r=!1,this.yieldReturn(n.current())):!!r&&(r=!1,this.yieldReturn(t))}),(function(){Vt(n)}))}))},Wt.prototype.distinct=function(t){return this.except(Wt.empty(),t)},Wt.prototype.distinctUntilChanged=function(t){t=Dt(t);var e=this;return new Wt((function(){var n,r;return new Qt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){const e=t(n.current());if(r!==e)return r=e,this.yieldReturn(n.current())}return this.yieldBreak()}),(function(){Vt(n)}))}))},Wt.prototype.except=function(t,e){e=Dt(e);var n=this;return new Wt((function(){var r,o;return new Qt((function(){r=n.getEnumerator(),o=new ee(e),Wt.from(t).forEach((function(t){o.add(t)}))}),(function(){for(;r.moveNext();){const t=r.current();if(!o.contains(t))return o.add(t),this.yieldReturn(t)}return!1}),(function(){Vt(r)}))}))},Wt.prototype.intersect=function(t,e){e=Dt(e);var n=this;return new Wt((function(){var r,o,i;return new Qt((function(){r=n.getEnumerator(),o=new ee(e),Wt.from(t).forEach((function(t){o.add(t)})),i=new ee(e)}),(function(){for(;r.moveNext();){const t=r.current();if(!i.contains(t)&&o.contains(t))return i.add(t),this.yieldReturn(t)}return!1}),(function(){Vt(r)}))}))},Wt.prototype.sequenceEqual=function(t,e){e=Dt(e);var n=this.getEnumerator();try{const r=Wt.from(t).getEnumerator();try{for(;n.moveNext();)if(!r.moveNext()||e(n.current())!==e(r.current()))return!1;return!r.moveNext()}finally{Vt(r)}}finally{Vt(n)}},Wt.prototype.union=function(t,e){e=Dt(e);var n=this;return new Wt((function(){var r,o,i;return new Qt((function(){r=n.getEnumerator(),i=new ee(e)}),(function(){var e;if(void 0===o){for(;r.moveNext();)if(e=r.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);o=Wt.from(t).getEnumerator()}for(;o.moveNext();)if(e=o.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);return!1}),(function(){try{Vt(r)}finally{Vt(o)}}))}))},Wt.prototype.orderBy=function(t,e){return new Yt(this,t,e,!1)},Wt.prototype.orderByDescending=function(t,e){return new Yt(this,t,e,!0)},Wt.prototype.reverse=function(){var t=this;return new Wt((function(){var e,n;return new Qt((function(){e=t.toArray(),n=e.length}),(function(){return n>0&&this.yieldReturn(e[--n])}),It.Blank)}))},Wt.prototype.shuffle=function(){var t=this;return new Wt((function(){var e;return new Qt((function(){e=t.toArray()}),(function(){if(e.length>0){const t=Math.floor(Math.random()*e.length);return this.yieldReturn(e.splice(t,1)[0])}return!1}),It.Blank)}))},Wt.prototype.weightedSample=function(t){t=Dt(t);var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.choose((function(e){var n=t(e);return n<=0?null:{value:e,bound:r+=n}})).toArray()}),(function(){if(n.length>0){const t=Math.floor(Math.random()*r)+1;let e=-1,o=n.length;for(;o-e>1;){const r=Math.floor((e+o)/2);n[r].bound>=t?o=r:e=r}return this.yieldReturn(n[o].value)}return this.yieldBreak()}),It.Blank)}))},Wt.prototype.groupBy=function(t,e,n,r){var o=this;return t=Dt(t),e=Dt(e),null!=n&&(n=Dt(n)),r=Dt(r),new Wt((function(){var i;return new Qt((function(){i=o.toLookup(t,e,r).toEnumerable().getEnumerator()}),(function(){for(;i.moveNext();)return null==n?this.yieldReturn(i.current()):this.yieldReturn(n(i.current().key(),i.current()));return!1}),(function(){Vt(i)}))}))},Wt.prototype.partitionBy=function(t,e,n,r){var o,i=this;return t=Dt(t),e=Dt(e),r=Dt(r),null==n?(o=!1,n=function(t,e){return new re(t,e)}):(o=!0,n=Dt(n)),new Wt((function(){var l,a,u,s=[];return new Qt((function(){(l=i.getEnumerator()).moveNext()&&(a=t(l.current()),u=r(a),s.push(e(l.current())))}),(function(){for(var i;1==(i=l.moveNext())&&u===r(t(l.current()));)s.push(e(l.current()));if(s.length>0){const c=n(a,o?Wt.from(s):s);return i?(a=t(l.current()),u=r(a),s=[e(l.current())]):s=[],this.yieldReturn(c)}return!1}),(function(){Vt(l)}))}))},Wt.prototype.buffer=function(t){var e=this;return new Wt((function(){var n;return new Qt((function(){n=e.getEnumerator()}),(function(){for(var e=[],r=0;n.moveNext();)if(e.push(n.current()),++r>=t)return this.yieldReturn(e);return e.length>0&&this.yieldReturn(e)}),(function(){Vt(n)}))}))},Wt.prototype.aggregate=function(t,e,n){return(n=Dt(n))(this.scan(t,e,n).last())},Wt.prototype.average=function(t){t=Dt(t);var e=0,n=0;return this.forEach((function(r){e+=t(r),++n})),e/n},Wt.prototype.count=function(t){t=null==t?It.True:Dt(t);var e=0;return this.forEach((function(n,r){t(n,r)&&++e})),e},Wt.prototype.max=function(t){return null==t&&(t=It.Identity),this.select(t).aggregate((function(t,e){return t>e?t:e}))},Wt.prototype.min=function(t){return null==t&&(t=It.Identity),this.select(t).aggregate((function(t,e){return t<e?t:e}))},Wt.prototype.maxBy=function(t){return t=Dt(t),this.aggregate((function(e,n){return t(e)>t(n)?e:n}))},Wt.prototype.minBy=function(t){return t=Dt(t),this.aggregate((function(e,n){return t(e)<t(n)?e:n}))},Wt.prototype.sum=function(t){return null==t&&(t=It.Identity),this.select(t).aggregate(0,(function(t,e){return t+e}))},Wt.prototype.elementAt=function(t){var e,n=!1;if(this.forEach((function(r,o){if(o==t)return e=r,n=!0,!1})),!n)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return e},Wt.prototype.elementAtOrDefault=function(t,e){var n;void 0===e&&(e=null);var r=!1;return this.forEach((function(e,o){if(o==t)return n=e,r=!0,!1})),r?n:e},Wt.prototype.first=function(t){if(null!=t)return this.where(t).first();var e,n=!1;if(this.forEach((function(t){return e=t,n=!0,!1})),!n)throw new Error("first:No element satisfies the condition.");return e},Wt.prototype.firstOrDefault=function(t,e){if(void 0!==t){if(typeof t===Pt||typeof Dt(t)===Pt)return this.where(t).firstOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){return n=t,r=!0,!1})),r?n:e},Wt.prototype.last=function(t){if(null!=t)return this.where(t).last();var e,n=!1;if(this.forEach((function(t){n=!0,e=t})),!n)throw new Error("last:No element satisfies the condition.");return e},Wt.prototype.lastOrDefault=function(t,e){if(void 0!==t){if(typeof t===Pt||typeof Dt(t)===Pt)return this.where(t).lastOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){r=!0,n=t})),r?n:e},Wt.prototype.single=function(t){if(null!=t)return this.where(t).single();var e,n=!1;if(this.forEach((function(t){if(n)throw new Error("single:sequence contains more than one element.");n=!0,e=t})),!n)throw new Error("single:No element satisfies the condition.");return e},Wt.prototype.singleOrDefault=function(t,e){if(void 0===e&&(e=null),null!=t)return this.where(t).singleOrDefault(null,e);var n,r=!1;return this.forEach((function(t){if(r)throw new Error("single:sequence contains more than one element.");r=!0,n=t})),r?n:e},Wt.prototype.skip=function(t){var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){for(n=e.getEnumerator();r++<t&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Vt(n)}))}))},Wt.prototype.skipWhile=function(t){t=Dt(t);var e=this;return new Wt((function(){var n,r=0,o=!1;return new Qt((function(){n=e.getEnumerator()}),(function(){for(;!o;){if(!n.moveNext())return!1;if(!t(n.current(),r++))return o=!0,this.yieldReturn(n.current())}return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Vt(n)}))}))},Wt.prototype.take=function(t){var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){return!!(r++<t&&n.moveNext())&&this.yieldReturn(n.current())}),(function(){Vt(n)}))}))},Wt.prototype.takeWhile=function(t){t=Dt(t);var e=this;return new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){return!(!n.moveNext()||!t(n.current(),r++))&&this.yieldReturn(n.current())}),(function(){Vt(n)}))}))},Wt.prototype.takeExceptLast=function(t){null==t&&(t=1);var e=this;return new Wt((function(){if(t<=0)return e.getEnumerator();var n,r=[];return new Qt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){if(r.length==t)return r.push(n.current()),this.yieldReturn(r.shift());r.push(n.current())}return!1}),(function(){Vt(n)}))}))},Wt.prototype.takeFromLast=function(t){if(t<=0||null==t)return Wt.empty();var e=this;return new Wt((function(){var n,r,o=[];return new Qt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)o.length==t&&o.shift(),o.push(n.current());return null==r&&(r=Wt.from(o).getEnumerator()),!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){Vt(r)}))}))},Wt.prototype.indexOf=function(t){var e=null;return typeof t===Pt?this.forEach((function(n,r){if(t(n,r))return e=r,!1})):this.forEach((function(n,r){if(n===t)return e=r,!1})),null!==e?e:-1},Wt.prototype.lastIndexOf=function(t){var e=-1;return typeof t===Pt?this.forEach((function(n,r){t(n,r)&&(e=r)})):this.forEach((function(n,r){n===t&&(e=r)})),e},Wt.prototype.cast=function(){return this},Wt.prototype.asEnumerable=function(){return Wt.from(this)},Wt.prototype.toArray=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},Wt.prototype.toLookup=function(t,e,n){t=Dt(t),e=Dt(e),n=Dt(n);var r=new ee(n);return this.forEach((function(n){var o=t(n),i=e(n),l=r.get(o);void 0!==l?l.push(i):r.add(o,[i])})),new ne(r)},Wt.prototype.toObject=function(t,e){t=Dt(t),e=Dt(e);var n={};return this.forEach((function(r){n[t(r)]=e(r)})),n},Wt.prototype.toDictionary=function(t,e,n){t=Dt(t),e=Dt(e),n=Dt(n);var r=new ee(n);return this.forEach((function(n){r.add(t(n),e(n))})),r},Wt.prototype.toJSONString=function(t,e){if(typeof JSON===Mt||null==JSON.stringify)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),t,e)},Wt.prototype.toJoinedString=function(t,e){return null==t&&(t=""),null==e&&(e=It.Identity),this.select(e).toArray().join(t)},Wt.prototype.doAction=function(t){var e=this;return t=Dt(t),new Wt((function(){var n,r=0;return new Qt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&(t(n.current(),r++),this.yieldReturn(n.current()))}),(function(){Vt(n)}))}))},Wt.prototype.forEach=function(t){t=Dt(t);var e=0,n=this.getEnumerator();try{for(;n.moveNext()&&!1!==t(n.current(),e++););}finally{Vt(n)}},Wt.prototype.force=function(){var t=this.getEnumerator();try{for(;t.moveNext(););}finally{Vt(t)}},Wt.prototype.letBind=function(t){t=Dt(t);var e=this;return new Wt((function(){var n;return new Qt((function(){n=Wt.from(t(e)).getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Vt(n)}))}))},Wt.prototype.share=function(){var t,e=this,n=!1;return new Xt((function(){return new Qt((function(){null==t&&(t=e.getEnumerator())}),(function(){if(n)throw new Error("enumerator is disposed");return!!t.moveNext()&&this.yieldReturn(t.current())}),It.Blank)}),(function(){n=!0,Vt(t)}))},Wt.prototype.memoize=function(){var t,e,n=this,r=!1;return new Xt((function(){var o=-1;return new Qt((function(){null==e&&(e=n.getEnumerator(),t=[])}),(function(){if(r)throw new Error("enumerator is disposed");return o++,t.length<=o?!!e.moveNext()&&this.yieldReturn(t[o]=e.current()):this.yieldReturn(t[o])}),It.Blank)}),(function(){r=!0,Vt(e),t=null}))},Ut()&&(Wt.prototype[Symbol.iterator]=function(){return{enumerator:this.getEnumerator(),next:function(){return this.enumerator.moveNext()?{done:!1,value:this.enumerator.current()}:{done:!0}}}}),Wt.prototype.catchError=function(t){t=Dt(t);var e=this;return new Wt((function(){var n;return new Qt((function(){n=e.getEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.current())}catch(e){return t(e),!1}}),(function(){Vt(n)}))}))},Wt.prototype.finallyAction=function(t){t=Dt(t);var e=this;return new Wt((function(){var n;return new Qt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){try{Vt(n)}finally{t()}}))}))},Wt.prototype.log=function(t){return t=Dt(t),this.doAction((function(t){}))},Wt.prototype.trace=function(t,e){return null==t&&(t="Trace"),e=Dt(e),this.doAction((function(t){}))};var Yt=function(t,e,n,r,o){this.source=t,this.keySelector=Dt(e),this.descending=r,this.parent=o,n&&(this.comparer=Dt(n))};Yt.prototype=new Wt,Yt.prototype.createOrderedEnumerable=function(t,e,n){return new Yt(this.source,t,e,n,this)},Yt.prototype.thenBy=function(t,e){return this.createOrderedEnumerable(t,e,!1)},Yt.prototype.thenByDescending=function(t,e){return this.createOrderedEnumerable(t,e,!0)},Yt.prototype.getEnumerator=function(){var t,e,n=this,r=0;return new Qt((function(){t=[],e=[],n.source.forEach((function(n,r){t.push(n),e.push(r)}));var r=Jt.create(n,null);r.GenerateKeys(t),e.sort((function(t,e){return r.compare(t,e)}))}),(function(){return r<e.length&&this.yieldReturn(t[e[r++]])}),It.Blank)};var Jt=function(t,e,n,r){this.keySelector=t,this.descending=n,this.child=r,this.comparer=e,this.keys=null};Jt.create=function(t,e){var n=new Jt(t.keySelector,t.comparer,t.descending,e);return null!=t.parent?Jt.create(t.parent,n):n},Jt.prototype.GenerateKeys=function(t){var e=t.length,n=this.keySelector,r=new Array(e);for(let o=0;o<e;o++)r[o]=n(t[o]);this.keys=r,null!=this.child&&this.child.GenerateKeys(t)},Jt.prototype.compare=function(t,e){var n=this.comparer?this.comparer(this.keys[t],this.keys[e]):Ft(this.keys[t],this.keys[e]);return 0==n?null!=this.child?this.child.compare(t,e):Ft(t,e):this.descending?-n:n};var Xt=function(t,e){this.dispose=e,Wt.call(this,t)};Xt.prototype=new Wt;var Kt=function(t){this.getSource=function(){return t}};Kt.prototype=new Wt,Kt.prototype.any=function(t){return null==t?this.getSource().length>0:Wt.prototype.any.apply(this,arguments)},Kt.prototype.count=function(t){return null==t?this.getSource().length:Wt.prototype.count.apply(this,arguments)},Kt.prototype.elementAt=function(t){var e=this.getSource();return 0<=t&&t<e.length?e[t]:Wt.prototype.elementAt.apply(this,arguments)},Kt.prototype.elementAtOrDefault=function(t,e){void 0===e&&(e=null);var n=this.getSource();return 0<=t&&t<n.length?n[t]:e},Kt.prototype.first=function(t){var e=this.getSource();return null==t&&e.length>0?e[0]:Wt.prototype.first.apply(this,arguments)},Kt.prototype.firstOrDefault=function(t,e){if(void 0!==t)return Wt.prototype.firstOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[0]:e},Kt.prototype.last=function(t){var e=this.getSource();return null==t&&e.length>0?e[e.length-1]:Wt.prototype.last.apply(this,arguments)},Kt.prototype.lastOrDefault=function(t,e){if(void 0!==t)return Wt.prototype.lastOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[n.length-1]:e},Kt.prototype.skip=function(t){var e=this.getSource();return new Wt((function(){var n;return new Qt((function(){n=t<0?0:t}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),It.Blank)}))},Kt.prototype.takeExceptLast=function(t){return null==t&&(t=1),this.take(this.getSource().length-t)},Kt.prototype.takeFromLast=function(t){return this.skip(this.getSource().length-t)},Kt.prototype.reverse=function(){var t=this.getSource();return new Wt((function(){var e;return new Qt((function(){e=t.length}),(function(){return e>0&&this.yieldReturn(t[--e])}),It.Blank)}))},Kt.prototype.sequenceEqual=function(t,e){return(!(t instanceof Kt||t instanceof Array)||null!=e||Wt.from(t).count()==this.count())&&Wt.prototype.sequenceEqual.apply(this,arguments)},Kt.prototype.toJoinedString=function(t,e){var n=this.getSource();return null==e&&n instanceof Array?(null==t&&(t=""),n.join(t)):Wt.prototype.toJoinedString.apply(this,arguments)},Kt.prototype.getEnumerator=function(){var t=this.getSource(),e=-1;return{current:function(){return t[e]},moveNext:function(){return++e<t.length},dispose:It.Blank}};var $t=function(t,e){this.prevSource=t,this.prevPredicate=e};$t.prototype=new Wt,$t.prototype.where=function(t){if((t=Dt(t)).length<=1){const e=this.prevPredicate,n=function(n){return e(n)&&t(n)};return new $t(this.prevSource,n)}return Wt.prototype.where.call(this,t)},$t.prototype.select=function(t){return(t=Dt(t)).length<=1?new te(this.prevSource,this.prevPredicate,t):Wt.prototype.select.call(this,t)},$t.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSource;return new Qt((function(){t=n.getEnumerator()}),(function(){for(;t.moveNext();)if(e(t.current()))return this.yieldReturn(t.current());return!1}),(function(){Vt(t)}))};var te=function(t,e,n){this.prevSource=t,this.prevPredicate=e,this.prevSelector=n};te.prototype=new Wt,te.prototype.where=function(t){return(t=Dt(t)).length<=1?new $t(this,t):Wt.prototype.where.call(this,t)},te.prototype.select=function(t){if((t=Dt(t)).length<=1){const e=this.prevSelector,n=function(n){return t(e(n))};return new te(this.prevSource,this.prevPredicate,n)}return Wt.prototype.select.call(this,t)},te.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSelector,r=this.prevSource;return new Qt((function(){t=r.getEnumerator()}),(function(){for(;t.moveNext();)if(null==e||e(t.current()))return this.yieldReturn(n(t.current()));return!1}),(function(){Vt(t)}))};var ee=function(){var t=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e=function(t){return null===t?"null":void 0===t?"undefined":typeof t.toString===Pt?t.toString():Object.prototype.toString.call(t)},n=function(t,e){this.key=t,this.value=e,this.prev=null,this.next=null},r=function(){this.first=null,this.last=null};r.prototype={addLast:function(t){null!=this.last?(this.last.next=t,t.prev=this.last,this.last=t):this.first=this.last=t},replace:function(t,e){null!=t.prev?(t.prev.next=e,e.prev=t.prev):this.first=e,null!=t.next?(t.next.prev=e,e.next=t.next):this.last=e},remove:function(t){null!=t.prev?t.prev.next=t.next:this.first=t.next,null!=t.next?t.next.prev=t.prev:this.last=t.prev}};var o=function(t){this.countField=0,this.entryList=new r,this.buckets={},this.compareSelector=null==t?It.Identity:t};return o.prototype={add:function(r,o){var i=this.compareSelector(r),l=e(i),a=new n(r,o);if(t(this.buckets,l)){const t=this.buckets[l];for(let e=0;e<t.length;e++)if(this.compareSelector(t[e].key)===i)return this.entryList.replace(t[e],a),void(t[e]=a);t.push(a)}else this.buckets[l]=[a];this.countField++,this.entryList.addLast(a)},get:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o)){var i=this.buckets[o];for(let t=0;t<i.length;t++){const e=i[t];if(this.compareSelector(e.key)===r)return e.value}}},set:function(r,o){var i=this.compareSelector(r),l=e(i);if(t(this.buckets,l)){const t=this.buckets[l];for(let e=0;e<t.length;e++)if(this.compareSelector(t[e].key)===i){const i=new n(r,o);return this.entryList.replace(t[e],i),t[e]=i,!0}}return!1},contains:function(n){var r=this.compareSelector(n),o=e(r);if(!t(this.buckets,o))return!1;var i=this.buckets[o];for(let t=0;t<i.length;t++)if(this.compareSelector(i[t].key)===r)return!0;return!1},clear:function(){this.countField=0,this.buckets={},this.entryList=new r},remove:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o)){var i=this.buckets[o];for(let t=0;t<i.length;t++)if(this.compareSelector(i[t].key)===r)return this.entryList.remove(i[t]),i.splice(t,1),0==i.length&&delete this.buckets[o],void this.countField--}},count:function(){return this.countField},toEnumerable:function(){var t=this;return new Wt((function(){var e;return new Qt((function(){e=t.entryList.first}),(function(){if(null!=e){const t={key:e.key,value:e.value};return e=e.next,this.yieldReturn(t)}return!1}),It.Blank)}))}},o}(),ne=function(t){this.count=function(){return t.count()},this.get=function(e){return Wt.from(t.get(e))},this.contains=function(e){return t.contains(e)},this.toEnumerable=function(){return t.toEnumerable().select((function(t){return new re(t.key,t.value)}))}},re=function(t,e){this.key=function(){return t},Kt.call(this,e)};re.prototype=new Kt;const oe={readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},dataValue:{type:Array||Number,default:!0}},ie=n.defineComponent({name:"NvStructureTypeSelect",components:{},emits:["update","on-change"],props:oe,setup:(t,e)=>new le(t,e)});class le extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"selWidth",n.ref(100)),u(this,"StructureTypeSel",n.ref()),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeDataAll",[]),u(this,"StructureTypeData",n.ref([])),u(this,"StructureTypeCheckData",n.ref([])),u(this,"searchView",n.ref(!1)),u(this,"searchValue",n.ref("")),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structrueTypeLevGroup",n.ref([])),u(this,"activeTypeItem",n.ref({})),u(this,"TypeTextValue",n.ref("")),u(this,"typeItemClick",((t,e)=>{if(t.level=e,1==e&&(this.activeTypeItem.value=t),this.structrueTypeLevGroup.value.find((t=>t.level==e))){let n=Wt.from(this.structrueTypeLevGroup.value).indexOf((t=>t.level==e));this.structrueTypeLevGroup.value[n]=t,this.structrueTypeLevGroup.value.splice(n+1,this.structrueTypeLevGroup.value.length)}else this.structrueTypeLevGroup.value.push(t);n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)}})),this.TypeValue.value=[this.activeTypeItem.value.value].concat(this.structrueTypeLevGroup.value.map((t=>t.value))),this.props.multiple||(this.StructureTypeCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"typeCheckFun",((t,e)=>{if(e)this.StructureTypeCheckData.value.push(t);else{let e=Wt.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));this.StructureTypeCheckData.value.splice(e,1)}this.doSelectedAfterFun()})),u(this,"removeStructureType",(t=>{this.changeTreeItem(this.StructureTypeData.value,t.value,"checked",!1);let e=Wt.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));this.StructureTypeCheckData.value.splice(e,1)})),u(this,"poptipVisChange",(()=>{n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)}}))})),u(this,"poptipHideFun",(()=>{this.searchValue.value&&0==this.searchTypeList.value.length&&(this.searchView.value=!1,this.searchValue.value="")})),u(this,"searchTypeList",n.ref([])),u(this,"searchTypeFun",(()=>{let t=this.StructureTypeDataAll.filter((t=>t.NodeName.indexOf(this.searchValue.value)>=0));this.searchTypeList.value=t.map((t=>(t.checked=!!this.StructureTypeCheckData.value.find((e=>e.value==t.Id)),t))),n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)+16}}))})),u(this,"toSelectSearchType",(t=>{this.TypeValue.value=t.parentPath.concat([t.Id]),this.StructureTypeCheckData.value=[{value:t.Id,label:t.NodeName,parentPath:t.parentPath}],this.doSelectedAfterFun(),this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value),this.poptipVisChange(),this.searchValue.value="",this.searchView.value=!1,this.searchTypeList.value=[]})),u(this,"toCheckSearchType",((t,e)=>{let n=Wt.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));e||n>=0?(this.StructureTypeCheckData.value.push({value:t.Id,label:t.NodeName,parentPath:t.parentPath}),this.changeTreeItem(this.StructureTypeData.value,t.Id,"checked",!0)):(this.StructureTypeCheckData.value.splice(n,1),this.changeTreeItem(this.StructureTypeData.value,t.Id,"checked",!1))})),u(this,"confirmSearchTypeData",(()=>{this.doSelectedAfterFun(),this.searchValue.value="",this.searchView.value=!1,this.structrueTypeLevGroup.value=[],this.searchTypeList.value=[],this.poptipVisChange()})),this.props=t,this.ctx=e,this.loadSelectData()}async loadSelectData(){let t=window.G_StructureTypeData;t&&0!=t.length||(t=this.utilities.parseApiResult(await this.dataStructureApi.getEntities((new r.QueryWrapper).select(["Id","PId","NodeName"]).orderBy(["OrderNo"]))),window.G_StructureTypeData=t),this.StructureTypeDataAll=t,this.StructureTypeData.value=this.formatToIViewCascaderData(t,0,"Id","NodeName"),this.props.multiple||this.loadTypeLevGroupData(this.StructureTypeData.value),n.watch((()=>this.props.dataValue),((t,e)=>{this.setStructureTypeCheckData(this.StructureTypeData.value),this.props.multiple||(this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value))}),{immediate:!0})}loadTypeLevGroupData(t){t.map((t=>{if(this.StructureTypeCheckData.value[0]){this.StructureTypeCheckData.value[0].parentPath.includes(t.value)&&this.structrueTypeLevGroup.value.push(t),t.children&&t.children.length>0&&this.loadTypeLevGroupData(t.children)}}))}doSelectedAfterFun(){this.props.multiple?this.ctx.emit("on-change",this.StructureTypeCheckData.value.map((t=>t.value))):this.ctx.emit("on-change",this.StructureTypeCheckData.value[0].value)}formatToIViewCascaderData(t,e=0,n,r,o=[]){let i=t.filter((t=>t.PId==e)),l=JSON.parse(JSON.stringify(o));return e>0&&l.push(e),i=i.map((e=>{let o={};o.value=e[n],o.label=e[r],o.parentPath=JSON.parse(JSON.stringify(l));let i=Wt.from(this.StructureTypeDataAll).indexOf((t=>t.Id==o.value));return this.StructureTypeDataAll[i].parentPath=o.parentPath,o.level=o.parentPath.length+1,this.props.multiple?(o.checked=!!this.props.dataValue.find((t=>t==o.value)),o.checked&&this.StructureTypeCheckData.value.push(o)):this.props.dataValue==o.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(l)).concat([o.value]),this.StructureTypeCheckData.value=[o]),t.filter((t=>t.PId==e.Id)).length>0?o.children=this.formatToIViewCascaderData(t,e.Id,n,r,l):o.children=[],o})),i}setStructureTypeCheckData(t){t.map((t=>{this.props.multiple?(t.checked=!!this.props.dataValue.find((e=>e==t.value)),t.checked&&this.StructureTypeCheckData.value.push(t)):this.props.dataValue==t.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(t.parentPath)).concat([t.value]),this.StructureTypeCheckData.value=[t]),t.children&&t.children.length>0&&this.setStructureTypeCheckData(t.children)}))}changeTreeItem(t,e,n,r){t.map((t=>{t.value!=e?t.children&&t.children.length>0&&this.changeTreeItem(t.children,e,n,r):t[n]=r}))}}const ae={key:0},ue={key:0,ref:"StructureTypeSel",style:{height:"220px",display:"inline-block"}},se={class:"nv-cascader-box nv-overflow-auto"},ce=["onClick"],fe={key:0,class:"nv-cascader-box nv-overflow-auto"},he=["onClick"],pe={key:1,ref:"StructureTypeSel",style:{display:"inline-block"}},de={key:0,style:{padding:"5px 10px",color:"#c5c8ce","text-align":"center",width:"150px"}},ye={key:1},ve={class:"nv-overflow-auto",style:{"max-height":"220px"}},ge=["onClick"],me={key:0,class:"nv-text-r",style:{"padding-right":"10px"}};const be=h(ie,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Tag"),u=n.resolveComponent("Checkbox"),s=n.resolveComponent("Icon"),c=n.resolveComponent("Button"),f=n.resolveComponent("Poptip");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(f,{placement:"bottom-start","transfer-class-name":"nvstructuretype-sel-box",width:t.selWidth,transfer:"",disabled:t.readonly,onOnPopperShow:e[6]||(e[6]=e=>t.poptipVisChange()),onOnPopperHide:t.poptipHideFun},{content:n.withCtx((()=>[t.searchValue?(n.openBlock(),n.createElementBlock("div",pe,[0==t.searchTypeList.length?(n.openBlock(),n.createElementBlock("div",de,"无匹配数据")):(n.openBlock(),n.createElementBlock("div",ye,[n.createElementVNode("div",ve,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.searchTypeList,((r,o)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-cascader-item nv-c-p",onClick:e=>t.multiple?null:t.toSelectSearchType(r)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:r.checked,"onUpdate:modelValue":t=>r.checked=t,onClick:e[5]||(e[5]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.toCheckSearchType(r,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.NodeName),1)],8,ge)))),256))]),t.multiple?(n.openBlock(),n.createElementBlock("div",me,[n.createVNode(c,{type:"primary",size:"small",onClick:t.confirmSearchTypeData},{default:n.withCtx((()=>[n.createTextVNode("确认")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0)]))],512)):(n.openBlock(),n.createElementBlock("div",ue,[n.createElementVNode("div",se,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.StructureTypeData,(r=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:t.TypeValue.includes(r.value)}]),key:r.value,onClick:e=>t.typeItemClick(r,1)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:r.checked,"onUpdate:modelValue":t=>r.checked=t,onClick:e[3]||(e[3]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.typeCheckFun(r,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.label)+" ",1),r.children&&r.children.length>0?(n.openBlock(),n.createBlock(s,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,ce)))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.structrueTypeLevGroup,(r=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[r&&r.children&&r.children.length>0?(n.openBlock(),n.createElementBlock("div",fe,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.children,(o=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:t.TypeValue.includes(o.value)}]),key:o.value,onClick:e=>t.typeItemClick(o,r.level+1)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:o.checked,"onUpdate:modelValue":t=>o.checked=t,onClick:e[4]||(e[4]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.typeCheckFun(o,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(o.label)+" ",1),o.children&&o.children.length>0?(n.openBlock(),n.createBlock(s,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,he)))),128))])):n.createCommentVNode("",!0)],64)))),256))],512))])),default:n.withCtx((()=>[n.createElementVNode("div",{class:"nv-c-p structuretype-sel-box",onClick:e[2]||(e[2]=e=>t.readonly?null:t.searchView=!0)},[0!=t.StructureTypeCheckData.length||t.searchValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.multiple?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(t.StructureTypeCheckData,((e,r)=>n.withDirectives((n.openBlock(),n.createBlock(a,{style:{position:"relative","z-index":"5"},closable:!t.readonly,key:r,onOnClose:n=>t.removeStructureType(e)},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.label),1)])),_:2},1032,["closable","onOnClose"])),[[n.vShow,!t.searchValue]]))),128)):(n.openBlock(),n.createElementBlock("div",{key:1,style:n.normalizeStyle({visibility:t.searchValue?"hidden":"visible"}),class:"nv-text-nowrap"},n.toDisplayString(t.StructureTypeCheckData[0]?t.StructureTypeCheckData[0].label:""),5))],64)):(n.openBlock(),n.createElementBlock("div",ae,"选择构件类别")),t.searchView?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,class:"nv-pos-a searchinput",style:{top:"0",left:"0",width:"100%"},"onUpdate:modelValue":e[0]||(e[0]=e=>t.searchValue=e),onInput:e[1]||(e[1]=(...e)=>t.searchTypeFun&&t.searchTypeFun(...e))},null,544)),[[n.vModelText,t.searchValue]]):n.createCommentVNode("",!0)])])),_:1},8,["width","disabled","onOnPopperHide"])])}],["__scopeId","data-v-ef373745"]]),ke={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},dataValue:{type:Array||Number,default:!0}},we=n.defineComponent({name:"NvStructureSelect",components:{},emits:["update","on-change"],props:ke,setup:(t,e)=>new Ae(t,e)});class Ae extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstanceApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{this.unitData.value=this.TypeGroupData.value.find((t=>t.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async t=>{this.activeUnitName=this.unitData.value.find((e=>e.Id==t)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let e=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",t)));this.StructureInstanceData.value=e.map((t=>(t.title=t.NodeName,t.UnitName=this.activeUnitName,t.loading=!1,t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children=[],t))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(t,e)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",t.Id)));if(0==n.length)return t.children=void 0,void e([]);n=n.map((t=>(t.title=t.NodeName,t.loading=!1,t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children=[],t))),e(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((t,e)=>{e.checked?this.StructureInstanceCheckData.value.push(e):this.removeStructureInstance(e),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((t,e)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[e],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(t=>{t.checked=!1;let e=Wt.from(this.StructureInstanceCheckData.value).indexOf((e=>e.Id==t.Id));this.StructureInstanceCheckData.value.splice(e,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=t,this.ctx=e,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",0)));if(this.TypeGroupData.value=Wt.from(t).groupBy((t=>t.NodeTypeName)).select((t=>({NodeTypeName:t.key(),UnitData:t.getSource()}))).toArray(),1!=this.props.selType){if(this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let t="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId"]).in("Id",t))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((t=>{let e=this.unitData.value.find((e=>e.Id==t.RootId));return t.UnitName=e?e.NodeName:"",t}))}}else this.UnitValue.value=this.props.dataValue}unitSelectChange(){this.doSelectedAfterFun()}treeChStateChange(t){t.map((t=>{t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children&&t.children.length>0&&this.treeChStateChange(t.children)}))}doSelectedAfterFun(){1==this.props.selType?this.ctx.emit("on-change",this.UnitValue.value):this.ctx.emit("on-change",this.StructureInstanceCheckData.value.map((t=>t.Id)))}}const Ee={key:1},Oe={class:"nv-pos-r"},xe={class:"nv-c-p structure-sel-box"},Ne={key:0},Te={key:0,class:"nv-text-nowrap"},Se={key:1},je={key:0},_e={key:1},Ie={key:0,style:{"margin-bottom":"10px"}},Ce={class:"nv-flex",style:{height:"280px"}},Be={class:"nv-flex-1 nv-flex-col nv-full-h"},Re=(t=>(n.pushScopeId("data-v-fbbaca53"),t=t(),n.popScopeId(),t))((()=>n.createElementVNode("div",null,"单位工程:",-1))),Me={class:"nv-flex-1 nv-overflow-auto"},Pe={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Le={key:0},De={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},qe={key:0},Fe={key:1};const Ve=h(we,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Option"),u=n.resolveComponent("OptionGroup"),s=n.resolveComponent("Select"),c=n.resolveComponent("Radio"),f=n.resolveComponent("RadioGroup"),h=n.resolveComponent("nvLoading"),p=n.resolveComponent("Tree"),d=n.resolveComponent("Poptip"),y=n.resolveComponent("Icon");return 1==t.selType?(n.openBlock(),n.createBlock(s,{key:0,modelValue:t.UnitValue,"onUpdate:modelValue":e[0]||(e[0]=e=>t.UnitValue=e),multiple:t.multiple,transfer:"",filterable:"",clearable:"",onOnChange:t.unitSelectChange,disabled:t.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.TypeGroupData,((t,e)=>(n.openBlock(),n.createBlock(u,{label:t.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.UnitData,(t=>(n.openBlock(),n.createBlock(a,{value:t.Id,key:t.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):(n.openBlock(),n.createElementBlock("div",Ee,[n.createVNode(d,{placement:"bottom-start",width:700,transfer:""},{content:n.withCtx((()=>[t.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",Ie,[n.createVNode(f,{modelValue:t.activeNodeType,"onUpdate:modelValue":e[1]||(e[1]=e=>t.activeNodeType=e),type:"button",size:"small","button-style":"solid",onOnChange:t.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.TypeGroupData,((t,e)=>(n.openBlock(),n.createBlock(c,{key:e,label:t.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",Ce,[n.createElementVNode("div",Be,[Re,n.createElementVNode("div",Me,[n.createVNode(f,{modelValue:t.activeUnit,"onUpdate:modelValue":e[2]||(e[2]=e=>t.activeUnit=e),vertical:"",onOnChange:t.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.unitData,((t,e)=>(n.openBlock(),n.createBlock(c,{label:t.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(t.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==t.selType?(n.openBlock(),n.createElementBlock("div",Pe,[t.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(p,{key:1,style:{width:"calc(100% - 30px)"},data:t.StructureInstanceData,"load-data":t.loadStructureInstance,"check-strictly":!0,"show-checkbox":t.multiple,onOnCheckChange:t.StructureInstanceCheckFun,onOnSelectChange:t.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",Oe,[n.createElementVNode("div",xe,[0==t.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",Ne,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.multiple?(n.openBlock(),n.createElementBlock("div",Te," 已选择"+n.toDisplayString(t.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(t.StructureInstanceCheckData.map((t=>t.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",Se,[n.createTextVNode(n.toDisplayString(t.StructureInstanceCheckData[0].NodeName)+" ",1),t.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",je,"["+n.toDisplayString(t.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",_e,"["+n.toDisplayString(t.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1}),t.multiple?(n.openBlock(),n.createElementBlock("div",Le,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.StructureInstanceCheckData,((e,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(y,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>t.removeStructureInstance(e)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",De,[n.createTextVNode(n.toDisplayString(e.NodeName)+" ",1),e.NodeTypeName?(n.openBlock(),n.createElementBlock("span",qe,"["+n.toDisplayString(e.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.UnitName?(n.openBlock(),n.createElementBlock("span",Fe,"["+n.toDisplayString(e.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-fbbaca53"]]),Ue={onlyView:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>{}}},ze=n.defineComponent({name:"NvComFormUp",components:{UploadFile:j,TextEditor:Ot,NvDicSelect:_t,NvStructureTypeSelect:be,NvStructureSelect:Ve},emits:["textChange","TokenChange"],props:Ue,setup:(t,e)=>new Ge(t,e)});class Ge extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"textEditorRef",n.ref()),u(this,"saveTextData",(async()=>{this.textEditorRef.value.saveTextData()})),u(this,"clearTextData",(async()=>{this.textEditorRef.value.clearTextData()})),u(this,"deleteTextData",(async()=>{this.textEditorRef.value.deleteTextData()})),u(this,"deleteTextDataByToken",(async t=>{this.textEditorRef.value.deleteTextDataByToken(t)})),u(this,"getText",(()=>this.textEditorRef.value.getText())),u(this,"tokenList",((t,e)=>{this.ctx.emit("TokenChange",t),t.list.length>0?this.props.formModel[e.model]=t.token:this.props.formModel[e.model]=""})),u(this,"textChange",((t,e)=>{var n;null==(n=t.textEditorProp)||n.onChange(e)})),u(this,"StructureOnChange",((t,e)=>{this.props.formModel[t.model]=e})),u(this,"getPropValue",((t,e,n)=>this.utilities.isNull(t)?n:t[e])),this.props=t,this.ctx=e}}const Ze=h(ze,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("UploadFile"),u=n.resolveComponent("TextEditor"),s=n.resolveComponent("NvDicSelect"),c=n.resolveComponent("NvStructureTypeSelect"),f=n.resolveComponent("NvStructureSelect"),h=n.resolveComponent("NvComForm");return n.openBlock(),n.createBlock(h,{onlyView:t.onlyView,formItems:t.formItems,formModel:t.formModel},{extend:n.withCtx((({item:e})=>["UploadFile"===e.type?(n.openBlock(),n.createBlock(a,{key:0,readonly:t.getPropValue(e.uploadFileProp,"readonly")||t.onlyView,token:t.formModel[e.model],multiple:t.getPropValue(e.uploadFileProp,"multiple"),onReturnFileList:n=>t.tokenList(n,e)},null,8,["readonly","token","multiple","onReturnFileList"])):n.createCommentVNode("",!0),"TextEditor"===e.type?(n.openBlock(),n.createBlock(u,{key:1,ref:"textEditorRef",readonly:t.getPropValue(e.textEditorProp,"readonly")||t.onlyView,style:n.normalizeStyle({height:`${e.textEditorProp&&e.textEditorProp.textHeight?e.textEditorProp.textHeight:"300"}px`}),token:t.formModel[e.model],border:t.getPropValue(e.textEditorProp,"textBorder"),onTextChange:n=>t.textChange(e,n)},null,8,["readonly","style","token","border","onTextChange"])):n.createCommentVNode("",!0),"DicSelect"===e.type?(n.openBlock(),n.createBlock(s,{key:2,readonly:t.getPropValue(e.dicSelProp,"readonly")||t.onlyView,code:t.getPropValue(e.dicSelProp,"code"),platformId:t.getPropValue(e.dicSelProp,"platformId"),modelValue:t.formModel[e.model],"onUpdate:modelValue":n=>t.formModel[e.model]=n},null,8,["readonly","code","platformId","modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0),"StructureType"===e.type?(n.openBlock(),n.createBlock(c,{key:3,readonly:t.getPropValue(e.structureTypeProp,"readonly")||t.onlyView,dataValue:t.formModel[e.model],multiple:t.getPropValue(e.structureTypeProp,"multiple"),onOnChange:n=>t.StructureOnChange(e,n)},null,8,["readonly","dataValue","multiple","onOnChange"])):n.createCommentVNode("",!0),"Structure"===e.type?(n.openBlock(),n.createBlock(f,{key:4,readonly:t.getPropValue(e.structureProp,"readonly")||t.onlyView,dataValue:t.formModel[e.model],multiple:t.getPropValue(e.structureProp,"multiple"),selType:t.getPropValue(e.structureProp,"selType"),onOnChange:n=>t.StructureOnChange(e,n)},null,8,["readonly","dataValue","multiple","selType","onOnChange"])):n.createCommentVNode("",!0)])),_:1},8,["onlyView","formItems","formModel"])}]]);t.FilePreview=y,t.NvComFormUp=Ze,t.NvDicSelect=_t,t.NvStructureSelect=Ve,t.NvStructureTypeSelect=be,t.TextEditor=Ot,t.UploadFile=j,t.loadDictionaryData=Nt,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@newview/base-vue"),require("vue"),require("@newview/infrastructure"),require("@newview/fileservice-api"),require("@newview/basics-api"),require("@newview/tools")):"function"==typeof define&&define.amd?define(["exports","@newview/base-vue","vue","@newview/infrastructure","@newview/fileservice-api","@newview/basics-api","@newview/tools"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).fileui={},t.baseVue,t.Vue,t.infrastructure,t.fileserviceApi,t.basicsApi,t.tools)}(this,(function(t,e,n,r,o,i,l){"use strict";var a=Object.defineProperty,u=(t,e,n)=>(((t,e,n)=>{e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);const s={modelValue:{type:Boolean,default:!1},fileInfo:{type:Object,default:()=>{}},previewList:{type:Array,default:()=>[]},previewIndex:{type:Number,default:0}},c=n.defineComponent({name:"FilePreview",components:{},emits:["update:modelValue"],props:s,setup:(t,e)=>new f(t,e)});class f extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"ossFileApi",new o.OSSFileApi),u(this,"fileApi",new o.FileApi),u(this,"previewImage",n.ref(!1)),u(this,"previewIfr",n.ref(!1)),u(this,"ifrUrl",n.ref("")),u(this,"doClose",(t=>{t||this.ctx.emit("update:modelValue",!1)})),this.props=t,this.ctx=e,this.useFilePreview()}useFilePreview(){n.watch((()=>this.props.modelValue),(()=>{this.props.modelValue&&this.doView(this.props.fileInfo)})),this.props.modelValue&&this.doView(this.props.fileInfo)}async doView(t){const e=await this.ossFileApi.getSignatureUrlByFileInfo(t);if(this.isImage(t))this.previewImage.value=!0;else if(this.isOffice(t))this.ifrUrl.value=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(e)}`,this.previewIfr.value=!0;else if(this.isVedio(t))this.ifrUrl.value=`${e}`,this.previewIfr.value=!0;else if(this.isPDF(t))this.ifrUrl.value=`/static/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(e)}`,this.previewIfr.value=!0;else{const e=this.fileApi.getFileUrl(t.Token,t.Id);window.open(e)}}isOffice(t){const e=t.FileExt;return"doc"==e||"docx"==e||"ppt"==e||"pptx"==e||"xls"==e||"xlsx"==e}isVedio(t){const e=t.FileExt;return"mov"==e||"mp3"==e||"mp4"==e}isPDF(t){return"pdf"==t.FileExt}isImage(t){const e=t.FileExt;return"jpg"==e||"png"==e||"jpeg"==e||"gif"==e||"svg"==e}}const h=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},p={class:"ifr-container"},d=["src","title"];const y=h(c,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("ImagePreview"),u=n.resolveComponent("Modal");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(a,{transfer:"",modelValue:t.previewImage,"onUpdate:modelValue":e[0]||(e[0]=e=>t.previewImage=e),"preview-list":t.previewList,"initial-index":t.previewIndex,onOnClose:t.doClose},null,8,["modelValue","preview-list","initial-index","onOnClose"]),n.createVNode(u,{modelValue:t.previewIfr,"onUpdate:modelValue":e[1]||(e[1]=e=>t.previewIfr=e),fullscreen:"",mask:!0,"mask-closable":!1,width:1e3,"footer-hide":"",title:"文件预览 - "+t.fileInfo.FileName,onOnVisibleChange:t.doClose},{default:n.withCtx((()=>[n.createElementVNode("div",p,[n.createElementVNode("iframe",{src:t.ifrUrl,class:"ifr-content",title:t.fileInfo.fileInfo}," ",8,d)])])),_:1},8,["modelValue","title","onOnVisibleChange"])],64)}],["__scopeId","data-v-e7f81a3b"]]),v={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"}},g=n.defineComponent({name:"UploadFile",components:{filePreview:y},emits:["success","returnFileList"],props:v,setup:(t,e)=>new m(t,e)});let m=class extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!1)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((t,e,n)=>{const r=this.utilities.parseApiResult(t);this.uploading.value=!1,"0"==r.Code?(this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)):this.message.error(r.Msg)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"doBeforeUpload",(()=>{this.message.info("文件上传中,请稍等"),this.uploading.value=!0})),u(this,"doRemove",(t=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${t.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const e=await this.fileApi.deleteFile(t.Token,t.Id);this.utilities.parseApiResult(e)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(t=>{const e=this.fileApi.getFileUrl(t.Token,t.Id);window.open(e)})),u(this,"getGroupFiles",(t=>"默认"==t?this.fileList.value:this.fileList.value.filter((e=>e.GroupName==t)))),u(this,"getSingle",(t=>{const e=this.getGroupFiles(t);return this.props.single&&e.length>0})),u(this,"getFirstFile",(t=>{const e=this.getGroupFiles(t);return 0==e.length?void 0:e[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(t=>{const e=t.FileExt;return"jpg"==e||"png"==e||"jpeg"==e||"gif"==e||"svg"==e})),u(this,"getImgUrl",(t=>this.fileApi.getFileUrl(t.Token,t.Id))),u(this,"getThumbnailUrl",(t=>this.isImage(t)?this.getImgUrl(t):this.getFileIcon(t.FileExt))),u(this,"getFileIcon",(t=>{const e={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS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AYdgARHI6J1HyAjVQaSojAISc/A2/IcPWne17oB4eBKxAK74GKvkKAtlQEMi6TchPScnZi35Fn6mlWvfwXgP6I/yFCOV/HwDAM7U74X0uQDpGpiGPNXoB2CYar6zTqK4Rh0+vTpy9FoNHE7tBShUOiaYUAdHR3xnp6eK7IsK7UMJxgMjm/cuPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let h="";switch(t){case"rar":case"zip":h=l.img;break;case"doc":case"docx":h=e.img;break;case"xls":case"xlsx":h=n.img;break;case"pdf":h=o.img;break;case"ppt":case"pptx":h=r.img;break;case"png":case"jpg":h=i.img;break;case"mov":h=a.img;break;case"mp3":h=u.img;break;case"mp4":h=s.img;break;case"html":case"htm":h=c.img;break;default:h=f.img}return h})),u(this,"doView",(t=>{this.previewFileInfo=t,this.previewVisible.value=!0,this.previewIndex.value=t.PreviewIndex})),this.props=t,this.ctx=e,this.useUploadFile()}async useUploadFile(){n.watch((()=>this.props.token),((t,e)=>{this.setCurrentToken(),this.setUploadFilePos()})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`,this.action.value=this.uploadApi.getUploadFileUrl()}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const t of this.props.groups){const e=this.getUploadFilePo(t);this.uploadFilePos[t]=e}}getUploadFilePo(t){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,t,this.props.extraInfo,this.props.isCompress)}async loadFileList(t=!1){this.uploading.value=!0;const e=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken));this.fileList.value=this.utilities.parseApiResult(e),this.uploading.value=!1,t&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.setPreviewList()}setPreviewList(){let t=0;this.previewList.value=[];for(const e of this.fileList.value)this.isImage(e)&&(e.PreviewIndex=t,this.previewList.value.push(this.getImgUrl(e)),t++)}};const b={class:"uploadFile uploadPage"},A=["onClick","title"],k={class:"file-upload-list-cover"},w={class:"file-upload-btn"},E={key:1,class:"nv-flex",style:{color:"#949494",border:"1px dashed #dcdee2",height:"60px",padding:"0 20px","font-size":"16px","justify-content":"center"}},N={class:"nv-flex",style:{width:"40px","margin-right":"6px"}},O={t:"1706683071705",class:"icon",viewBox:"0 0 1566 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4559",style:{fill:"currentColor"}},x=[(t=>(n.pushScopeId("data-v-0e35ec0f"),t=t(),n.popScopeId(),t))((()=>n.createElementVNode("path",{d:"M156.661991 699.757959h21.096999a10.443999 10.443999 0 0 1 10.235999 10.443999c0 5.765-4.491 10.443999-10.235999 10.444h-21.096999v21.097999a10.443999 10.443999 0 0 1-10.444 10.234999 10.276999 10.276999 0 0 1-10.443999-10.234999v-21.097999h-21.096999a10.443999 10.443999 0 0 1-10.234999-10.444c0-5.765 4.49-10.443999 10.234999-10.443999h21.096999v-21.096999a10.443999 10.443999 0 0 1 10.443999-10.234999c5.765 0 10.443999 4.49 10.444 10.234999v21.096999z m1378.627919-83.552995v-21.096999a10.276999 10.276999 0 0 0-10.443999-10.234999 10.443999 10.443999 0 0 0-10.444 10.234999v21.096999h-21.096998a10.276999 10.276999 0 0 0-10.235 10.443999c0 5.598 4.595 10.443999 10.235 10.444h21.096998v21.096998c0 5.745 4.679 10.235999 10.444 10.236a10.443999 10.443999 0 0 0 10.443999-10.236v-21.096998h21.097999c5.744 0 10.234999-4.679 10.234999-10.444a10.443999 10.443999 0 0 0-10.234999-10.443999h-21.097999zM776.459955 960.861944H250.596985a20.804999 20.804999 0 0 1-20.825998-20.887999c0-11.529999 9.462999-20.888999 20.825998-20.888999h94.727995a83.009995 83.009995 0 0 1-11.112-41.671997v-605.969965a83.489995 83.489995 0 0 1 83.636996-83.447995h62.580996v-20.992999a83.489995 83.489995 0 0 1 83.636995-83.448995h501.151971a83.448995 83.448995 0 0 1 83.636995 83.448995v605.969965c0 15.184999-4.053 29.409998-11.134 41.671997h115.553994c11.551999 0 20.909999 9.273999 20.909998 20.887999 0 11.529999-9.295999 20.887999-20.888998 20.887999h-250.659986v20.992999c0 15.185999-4.052 29.409998-11.132999 41.671997h11.195999c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H892.807948a41.657998 41.657998 0 0 1-6.413 50.862997 41.671998 41.671998 0 0 1-59.071996 0l-50.862997-50.862997z m76.367995-41.776998h66.423996c22.977999 0 41.609998-18.589999 41.609998-41.879997V270.460984c0-22.559999-18.047999-40.689998-40.313998-40.689997H416.303976c-22.266999 0-40.314998 18.213999-40.314998 40.689997v606.741965c0 23.123999 18.799999 41.880998 41.589998 41.880997h317.083981l-10.736999-10.756999a41.692998 41.692998 0 0 1-10.862-40.376998l-19.718999-19.739999a146.259991 146.259991 0 0 1-190.980988-220.516987 146.217991 146.217991 0 0 1 220.517987 190.980989l19.738998 19.739999a41.629998 41.629998 0 0 1 40.376998 10.839999l69.829996 69.829996z m149.809991-104.440994h62.852997a41.796998 41.796998 0 0 0 41.589997-41.776997v-605.759965c0-23.144999-18.632999-41.776998-41.589997-41.776997H563.774967a41.796998 41.796998 0 0 0-41.566998 41.775997v20.888999h396.793977a83.448995 83.448995 0 0 1 83.636995 83.448995v543.199968zM266.326984 46.998997h31.122999c8.773999 0 15.875999 6.955 15.875999 15.665999 0 8.647999-7.102 15.665999-15.875999 15.665999h-31.122999v31.123999c0 8.772999-6.956 15.874999-15.665999 15.874999a15.769999 15.769999 0 0 1-15.666999-15.874999V78.329995H203.869988a15.728999 15.728999 0 0 1-15.874999-15.665999c0-8.647999 7.102-15.665999 15.874999-15.665999h31.122998V15.874999C234.992986 7.102 241.949986 0 250.659985 0c8.646999 0 15.665999 7.102 15.665999 15.874999V46.999997zM20.887999 939.973945c0-11.529999 9.462999-20.888999 20.825999-20.888999h125.454992c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H41.713998a20.804999 20.804999 0 0 1-20.825999-20.887999z m658.733961-135.021992A104.441994 104.441994 0 1 0 531.899969 657.229961a104.441994 104.441994 0 0 0 147.721991 147.721992z m-220.079987-491.626971a20.887999 20.887999 0 0 1 20.867999-20.888999h229.791986a20.887999 20.887999 0 1 1 0 41.776997H480.430972a20.825999 20.825999 0 0 1-20.887999-20.887998z m0 104.440994c0-11.529999 9.295999-20.887999 20.742999-20.887999H814.789952c11.446999 0 20.741999 9.273999 20.741999 20.887999 0 11.529999-9.294999 20.887999-20.741999 20.887998H480.284972a20.762999 20.762999 0 0 1-20.741999-20.887998z m0 104.441993c0-11.529999 9.316999-20.888999 20.846999-20.888998h146.301991c11.509999 0 20.845999 9.274999 20.845999 20.888998 0 11.529999-9.315999 20.887999-20.845999 20.887999H480.388972a20.804999 20.804999 0 0 1-20.845999-20.887999zM62.665996 396.877977a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.664997 31.331998 31.331998 0 0 0 0 62.664997z m1295.074924-93.996995a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.663996 31.331998 31.331998 0 0 0 0 62.663996z","p-id":"4560"},null,-1)))],I={class:"file-upload-list-cover"},T={class:"file-upload-btn"};const S=h(g,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Image"),u=n.resolveComponent("Icon"),s=n.resolveComponent("Space"),c=n.resolveComponent("Upload"),f=n.resolveComponent("Card"),h=n.resolveComponent("Spin"),p=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",b,[t.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.getFirstFile(t.groups[0])?(n.openBlock(),n.createElementBlock("div",{key:0,class:"file-upload-list-content",onClick:e[2]||(e[2]=e=>t.doView(t.getFirstFile(t.groups[0]))),style:{width:"100%",height:"100%"}},[n.createVNode(a,{src:t.getThumbnailUrl(t.getFirstFile(t.groups[0])),fit:"fill",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",I,[n.createVNode(s,null,{default:n.withCtx((()=>[n.createVNode(u,{type:"md-download",onClick:e[0]||(e[0]=n.withModifiers((e=>t.doDwonload(t.getFirstFile(t.groups[0]))),["stop"])),title:"下载"}),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,type:"md-trash",onClick:e[1]||(e[1]=n.withModifiers((e=>t.doRemove(t.getFirstFile(t.groups[0]))),["stop"])),title:"删除"}))])),_:1})])])):n.createCommentVNode("",!0),t.readonly||t.getSingle(t.groups[0])?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:1,"dis-hover":"",style:{"margin-bottom":"8px"}},{default:n.withCtx((()=>[n.createVNode(c,{ref:"uploadRef",type:"drag",name:"FormFile",multiple:t.multiple,"show-upload-list":!1,format:t.format,"max-size":t.maxSize,action:t.action,headers:t.headers,data:t.uploadFilePos[t.groups[0]],"on-success":t.doSuccess,"on-format-error":t.doFormatError,"on-exceeded-size":t.doMaxSize,"before-upload":t.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",T,[n.createVNode(u,{type:"ios-camera",size:"20"})])])),_:1},8,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])])),_:1}))],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(t.groups,(e=>(n.openBlock(),n.createBlock(f,{"dis-hover":"",style:{"margin-bottom":"8px"}},n.createSlots({default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.getGroupFiles(e),((e,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(t.isImage(e)?"file-upload-list file-upload-list-bs":"file-upload-list")},[n.createElementVNode("div",{class:"file-upload-list-content",onClick:n=>t.doView(e),title:e.FileName},[n.createVNode(a,{src:t.getThumbnailUrl(e),fit:"cover",transfer:"",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",k,[n.createVNode(s,null,{default:n.withCtx((()=>[n.createVNode(u,{type:"md-download",onClick:n.withModifiers((n=>t.doDwonload(e)),["stop"]),title:"下载"},null,8,["onClick"]),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,type:"md-trash",onClick:n.withModifiers((n=>t.doRemove(e)),["stop"]),title:"删除"},null,8,["onClick"]))])),_:2},1024)])],8,A)],2)))),256)),t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:t.multiple,"show-upload-list":!1,format:t.format,"max-size":t.maxSize,action:t.action,headers:t.headers,data:t.uploadFilePos[e],"on-success":t.doSuccess,"on-format-error":t.doFormatError,"on-exceeded-size":t.doMaxSize,"before-upload":t.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",w,[n.createVNode(u,{type:"ios-camera",size:"20"})])])),_:2},1032,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])),t.readonly&&0==t.fileList.length?(n.openBlock(),n.createElementBlock("div",E,[n.createElementVNode("i",N,[(n.openBlock(),n.createElementBlock("svg",O,x))]),n.createElementVNode("div",null,n.toDisplayString(t.nullMsg),1)])):n.createCommentVNode("",!0)])),_:2},["默认"!=e?{name:"title",fn:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e),1)])),key:"0"}:void 0]),1024)))),256)),t.uploading?(n.openBlock(),n.createBlock(h,{key:2,fix:"",size:"large"})):n.createCommentVNode("",!0),n.createVNode(p,{modelValue:t.previewVisible,"onUpdate:modelValue":e[3]||(e[3]=e=>t.previewVisible=e),"preview-list":t.previewList,"preview-index":t.previewIndex,"file-info":t.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-0e35ec0f"]]);var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function B(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j,C={exports:{}};"undefined"!=typeof self&&self,j=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(45),a=n(46),u=n(47),s=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:l.default,Block:u.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return o(e,t),e}(Error);e.ParchmentError=i;var l,a,u={},s={},c={},f={};function h(t,e){var n;if(void 0===e&&(e=l.ANY),"string"==typeof t)n=f[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof t)t&l.LEVEL&l.BLOCK?n=f.block:t&l.LEVEL&l.INLINE&&(n=f.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=s[r[o]])break;n=n||c[t.tagName]}return null==n?null:e&l.LEVEL&n.scope&&e&l.TYPE&n.scope?n:null}e.DATA_KEY="__blot",(a=l=e.Scope||(e.Scope={}))[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY",e.create=function(t,e){var n=h(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(o,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=h,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return f[r.blotName||r.attrName]=r,"string"==typeof r.keyName?u[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(t){null!=c[t]&&null!=r.className||(c[t]=r)})))),r}},function(t,e,n){var r=n(51),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+l.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=l.length(i)}return new u(n)},u.prototype.compose=function(t){var e=l.iterator(this.ops),n=l.iterator(t.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),r.push(e.next());i.retain-a>0&&n.next(i.retain-a)}for(var s=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===e.peekType())s.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var y=new u(e.rest());return s.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&s.push(h)}return s.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),i=new u,s=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return s.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),u=f.next(n);o(a.insert,u.insert)?i.retain(n,l.attributes.diff(a.attributes,u.attributes)):i.push(u).delete(n)}e-=n}})),i.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new u,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new u}}r.length()>0&&t(r,{},o)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),s=r.next(i);if(a.delete)continue;s.delete?o.push(s):o.retain(i,l.attributes.transform(a.attributes,s.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=u},function(t,e){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,o=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return void 0===e||n.call(t,e)},u=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},s=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h<p;++h)if(null!=(e=arguments[h]))for(n in e)r=s(f,n),f!==(o=s(e,n))&&(d&&o&&(a(o)||(i=l(o)))?(i?(i=!1,c=r&&l(r)?r:[]):c=r&&a(r)?r:{},u(f,{name:n,newValue:t(d,c,o)})):void 0!==o&&u(f,{name:n,newValue:o}));return f}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=f(n(3)),l=f(n(2)),a=f(n(0)),u=f(n(16)),s=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),r(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=a.default.query(t,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(v.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(a.default.Embed);y.scope=a.default.Scope.BLOCK_BLOT;var v=function(t){function e(t){h(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return d(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),g(e))}),new l.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(t,e){return(a=a.split(t,!0)).insertAt(0,e),e.length}),t+l.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(a.default.Block);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,i.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:g(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[s.default,a.default.Embed,c.default],e.bubbleFormats=g,e.BlockEmbed=y,e.default=v},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var l=v(n(2)),a=v(n(14)),u=v(n(8)),s=v(n(9)),c=v(n(0)),f=n(15),h=v(f),p=v(n(3)),d=v(n(10)),y=v(n(34));function v(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,d.default)("quill"),b=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=A(e,r),this.container=this.options.container,null==this.container)return m.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=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 u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new h.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(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;k.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),d.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&m.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||m.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=w(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],k.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return k.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(c.default.query(t,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,g({},t,e))}return n.setSelection(r,u.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(t,e,n,r,i){var l,a=this,u=w(t,e,n,r,i),s=o(u,4);return t=s[0],e=s[1],l=s[2],i=s[3],k.call(this,(function(){return a.editor.formatLine(t,e,l)}),i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var l,a=this,u=w(t,e,n,r,i),s=o(u,4);return t=s[0],e=s[1],l=s[2],i=s[3],k.call(this,(function(){return a.editor.formatText(t,e,l)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=w(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=w(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return k.call(this,(function(){return o.editor.insertEmbed(e,n,r)}),i,e)}},{key:"insertText",value:function(t,e,n,r,i){var l,a=this,u=w(t,0,n,r,i),s=o(u,4);return t=s[0],l=s[2],i=s[3],k.call(this,(function(){return a.editor.insertText(t,e,l)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=w(t,e,n),l=o(i,4);return t=l[0],e=l[1],n=l[3],k.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return k.call(this,(function(){t=new l.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=w(e,n,r),l=o(i,4);e=l[0],n=l[1],r=l[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new l.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return k.call(this,(function(){return t=new l.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function A(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=y.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?m.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function k(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=E(o,a,e):0!==r&&(o=E(o,n,r,e)),this.setSelection(o,u.default.sources.SILENT)),a.length()>0){var s,c,f=[u.default.events.TEXT_CHANGE,a,i,e];(s=this.emitter).emit.apply(s,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function w(t,e,n,o,i){var l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=o,o=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(l=n,i=o):"string"==typeof n&&(null!=o?l[n]=o:i=n),[t,e,l,i=i||u.default.sources.API]}function E(t,e,n,r){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof l.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=o(s,2);i=c[0],a=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=o(h,2);i=p[0],a=p[1]}return new f.Range(i,a-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=u.default.events,b.sources=u.default.sources,b.version="1.3.7",b.imports={delta:l.default,parchment:c.default,"core/module":s.default,"core/theme":y.default},e.expandConfig=A,e.overload=w,e.default=b},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(7)),l=a(n(0));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(t,n);i&&a.wrap(r,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);u.allowedChildren=[u,l.default.Embed,i.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default.Text);e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=l(n(54));function l(t){return t&&t.__esModule?t:{default:t}}var a=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",a.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){a.log.apply(a,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(i.default);u.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"},u.sources={API:"api",SILENT:"silent",USER:"user"},e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n};r.DEFAULTS={},e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(e=console)[t].apply(e,i)}}function l(t){return r.reduce((function(e,n){return e[n]=i.bind(console,n,t),e}),{})}i.level=l.level=function(t){o=t},e.default=l},function(t,e,n){var r=Array.prototype.slice,o=n(52),i=n(53),l=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var s,c;if(a(t)||a(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=r.call(t),e=r.call(e),l(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}try{var f=o(t),h=o(e)}catch(p){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),s=f.length-1;s>=0;s--)if(f[s]!=h[s])return!1;for(s=f.length-1;s>=0;s--)if(c=f[s],!l(t[c],e[c],n))return!1;return typeof t==typeof e}(t,e,n))};function a(t){return null==t}function u(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=f(n(2)),a=f(n(0)),u=f(n(4)),s=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),e}(s.default);y.blotName="code",y.tagName="CODE";var v=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new l.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),l=r(o,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var l=this.newlineIndex(t,!0)+1,u=i-l+1,s=this.isolate(l,u),c=s.next;s.format(r,o),c instanceof e&&c.formatAt(0,t-l+n-u,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(c.default,t),i=r(o,2),l=i[0],a=i[1];l.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=a.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof a.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",e.Code=y,e.default=v},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=g(n(2)),a=g(n(20)),u=g(n(0)),s=g(n(13)),c=g(n(24)),f=n(4),h=g(f),p=g(n(16)),d=g(n(21)),y=g(n(11)),v=g(n(3));function g(t){return t&&t.__esModule?t:{default:t}}var m=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,d.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,d.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new l.default)}(t)).reduce((function(t,l){var s=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var p=l.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=i&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var d=e.scroll.line(t),y=o(d,2),g=y[0],m=y[1],b=(0,v.default)({},(0,f.bubbleFormats)(g));if(g instanceof h.default){var A=g.descendant(u.default.Leaf,m),k=o(A,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(k))}c=a.default.attributes.diff(b,c)||{}}else if("object"===r(l.insert)){var w=Object.keys(l.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,l.insert[w])}i+=s}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,s,n,c[n])})),t+s}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new l.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach((function(e){var i=e.length();if(e instanceof s.default){var a=t-e.offset(n.scroll),u=e.newlineIndex(a+l)-a+1;e.formatAt(a,u,o,r[o])}else e.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new l.default).retain(t).retain(e,(0,d.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new l.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1)[0];e instanceof h.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var i=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=A((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new l.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e.length,o,r[o])})),this.update((new l.default).retain(t).insert(e,(0,d.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=o(r,2),a=i[0],u=i[1],c=0,f=new l.default;null!=a&&(c=a instanceof s.default?a.newlineIndex(u)-u+1:a.length()-u,f=a.delta().slice(u,u+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new l.default).insert(n).concat(f)),p=(new l.default).retain(t).concat(h);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(m)&&u.default.find(e[0].target)){var o=u.default.find(e[0].target),i=(0,f.bubbleFormats)(o),a=o.offset(this.scroll),s=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new l.default).insert(s),p=(new l.default).insert(o.value());t=(new l.default).retain(a).concat(h.diff(p,n)).reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new l.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,y.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function A(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),l=s(n(21)),a=s(n(11)),u=s(n(8));function s(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,s(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},d=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}})),this.update(u.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(t,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,i=this.scroll.leaf(t),l=r(i,2),a=l[0],u=l[1];if(null==a)return null;var s=a.position(u,!0),c=r(s,2);o=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(o,u);var h=this.scroll.leaf(t+e),p=r(h,2);if(a=p[0],u=p[1],null==a)return null;var d=a.position(u,!0),y=r(d,2);return o=y[0],u=y[1],f.setEnd(o,u),f.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(u<o.data.length?(f.setStart(o,u),f.setEnd(o,u+1)):(f.setStart(o,u-1),f.setEnd(o,u),v="right"),g=f.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),u>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],l=n[1],a=i.default.find(o,!0),u=a.offset(e.scroll);return 0===l?u:a instanceof i.default.Container?u+a.length():u+a.index(o,l)})),l=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(o)));return new p(a,l-a)}},{key:"normalizeNative",value:function(t){if(!y(this.root,t.startContainer)||!t.collapsed&&!y(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return n.forEach((function(t,n){t=Math.min(i-1,t);var l,a=e.scroll.leaf(t),u=r(a,2),s=u[0],c=u[1],f=s.position(c,0!==n),h=r(f,2);l=h[0],c=h[1],o.push(l,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),l=r(i,1)[0],a=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o));a=r(u,1)[0]}if(null!=l&&null!=a){var s=t.getBoundingClientRect();n.top<s.top?t.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(t.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(e,this.lastRange)){var c;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var f,h=[u.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(h)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,h)}}}]),t}();function y(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"insertInto",value:function(t,n){0===t.children.length?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=s(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,o){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=s(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(l.default);function s(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=u},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),u=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new l.default(n.domNode),n}return o(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=u.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=s},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),o=n(3),i={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);for(var i in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return r(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new l(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function l(t){this.ops=t,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=i.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.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"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=i},function(t,e){var n=function(){function t(t,e){return null!=e&&t instanceof e}var e,n,r;try{e=Map}catch(a){e=function(){}}try{n=Set}catch(a){n=function(){}}try{r=Promise}catch(a){r=function(){}}function o(i,a,u,s,c){"object"==typeof a&&(u=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var f=[],h=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===u&&(u=1/0),function i(u,d){if(null===u)return null;if(0===d)return u;var y,v;if("object"!=typeof u)return u;if(t(u,e))y=new e;else if(t(u,n))y=new n;else if(t(u,r))y=new r((function(t,e){u.then((function(e){t(i(e,d-1))}),(function(t){e(i(t,d-1))}))}));else if(o.__isArray(u))y=[];else if(o.__isRegExp(u))y=new RegExp(u.source,l(u)),u.lastIndex&&(y.lastIndex=u.lastIndex);else if(o.__isDate(u))y=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(y),y;t(u,Error)?y=Object.create(u):void 0===s?(v=Object.getPrototypeOf(u),y=Object.create(v)):(y=Object.create(s),v=s)}if(a){var g=f.indexOf(u);if(-1!=g)return h[g];f.push(u),h.push(y)}for(var m in t(u,e)&&u.forEach((function(t,e){var n=i(e,d-1),r=i(t,d-1);y.set(n,r)})),t(u,n)&&u.forEach((function(t){var e=i(t,d-1);y.add(e)})),u){var b;v&&(b=Object.getOwnPropertyDescriptor(v,m)),b&&null==b.set||(y[m]=i(u[m],d-1))}if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(u);for(m=0;m<A.length;m++){var k=A[m];(!(E=Object.getOwnPropertyDescriptor(u,k))||E.enumerable||c)&&(y[k]=i(u[k],d-1),E.enumerable||Object.defineProperty(y,k,{enumerable:!1}))}}if(c){var w=Object.getOwnPropertyNames(u);for(m=0;m<w.length;m++){var E,N=w[m];(E=Object.getOwnPropertyDescriptor(u,N))&&E.enumerable||(y[N]=i(u[N],d-1),Object.defineProperty(y,N,{enumerable:!1}))}}return y}(i,u)}function i(t){return Object.prototype.toString.call(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=i,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===i(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===i(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===i(t)},o.__getRegExpFlags=l,o}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=p(n(0)),a=p(n(8)),u=n(4),s=p(u),c=p(n(16)),f=p(n(13)),h=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function d(t){return t instanceof s.default||t instanceof u.BlockEmbed}var y=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),l=r(o,2),a=l[0],s=l[1],h=this.line(t+n),p=r(h,1)[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&a!==p&&s>0){if(a instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(a instanceof f.default){var d=a.newlineIndex(a.length(),!0);if(d>-1&&(a=a.split(d+1))===p)return void this.optimize()}else if(p instanceof f.default){var y=p.newlineIndex(0);y>-1&&p.split(y+1)}var v=p.children.head instanceof c.default?null:p.children.head;a.moveChildren(p,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(t),t=r}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(d,t)}},{key:"lines",value:function(){return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,(function(e,n,r){d(e)?o.push(e):e instanceof l.default.Container&&(o=o.concat(t(e,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,t)}}}]),e}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[s.default,u.BlockEmbed,h.default],e.default=y},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=y(n(21)),a=y(n(11)),u=y(n(3)),s=y(n(2)),c=y(n(20)),f=y(n(0)),h=y(n(5)),p=y(n(10)),d=y(n(9));function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,p.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},N),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},k),r.addBinding({key:e.keys.DELETE},{collapsed:!0},w)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:e.keys.DELETE},{collapsed:!1},E),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"match",value:function(t,e){return e=I(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=I(t);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(t.bindings[i]||[]).filter((function(t){return e.match(n,t)}));if(0!==l.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var s=t.quill.getLine(u.index),c=o(s,2),h=c[0],p=c[1],d=t.quill.getLeaf(u.index),y=o(d,2),v=y[0],g=y[1],m=0===u.length?[v,g]:t.quill.getLeaf(u.index+u.length),b=o(m,2),A=b[0],k=b[1],w=v instanceof f.default.Text?v.value().slice(0,g):"",E=A instanceof f.default.Text?A.value().slice(k):"",N={collapsed:0===u.length,empty:0===u.length&&h.length()<=1,format:t.quill.getFormat(u),offset:p,prefix:w,suffix:E};l.some((function(e){if(null!=e.collapsed&&e.collapsed!==N.collapsed)return!1;if(null!=e.empty&&e.empty!==N.empty)return!1;if(null!=e.offset&&e.offset!==N.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==N.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=N.format[t]:!1===e.format[t]?null==N.format[t]:(0,a.default)(e.format[t],N.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(N.prefix)||null!=e.suffix&&!e.suffix.test(N.suffix)||!0===e.handler.call(t,u,N))}))&&n.preventDefault()}}}}))}}]),e}(d.default);function A(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function k(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=o(n,1)[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=o(l,1)[0];if(null!=a&&a.length()>1){var u=r.formats(),s=this.quill.getFormat(t.index-1,1);i=c.default.attributes.diff(u,s)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,h.default.sources.USER),this.quill.focus()}}function w(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,l=this.quill.getLine(t.index),a=o(l,1)[0];if(e.offset>=a.length()-1){var u=this.quill.getLine(t.index+1),s=o(u,1)[0];if(s){var f=a.formats(),p=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,p)||{},i=s.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,h.default.sources.USER)}}function E(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function N(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function O(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,i=e.length,l=this.quill.scroll.descendant(n,r),a=o(l,2),u=a[0],s=a[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(s,!0)+1,d=u.newlineIndex(c+s+i),y=u.domNode.textContent.slice(p,d).split("\n");s=0,y.forEach((function(e,o){t?(u.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,i,h.default.sources.SILENT)}}}}function x(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function I(t){if("string"==typeof t||"number"==typeof t)return I({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,l.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[m]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:x("bold"),italic:x("italic"),underline:x("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new s.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(0,u.default)({},r.formats(),{list:"checked"}),a=(new s.default).retain(t.index).insert("\n",l).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),i=r[0],l=r[1],a=(new s.default).retain(t.index).insert("\n",e.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=o(r,2),l=i[0],a=i[1];if(a>n)return!0;var u=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new s.default).retain(t.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:u});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),r=n[0],i=n[1],l=(new s.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,h.default.sources.USER)}},"embed left":A(b.keys.LEFT,!1),"embed left shift":A(b.keys.LEFT,!0),"embed right":A(b.keys.RIGHT,!1),"embed right shift":A(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=u(n(0)),a=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var s=[t,n.start.offset,n.end.offset];o=s[0],i=s[1],u=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof a.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,u].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),h=r(f,2);return i=h[0],u=h[1],{startNode:o,startOffset:i,endNode:o,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(l.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(0)),o=n(4),i=l(o);function l(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);a.allowedChildren=[i.default,o.BlockEmbed,a],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join(""):n}}]),e}(a.default.Attributor.Style),s=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new u("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=s,e.ColorStyle=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);function u(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=a,e.sanitize=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(23)),l=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}var u=0;function s(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case i.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case i.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),l=g(i),a=g(n(16)),u=g(n(25)),s=g(n(24)),c=g(n(35)),f=g(n(6)),h=g(n(22)),p=g(n(7)),d=g(n(55)),y=g(n(42)),v=g(n(23));function g(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":u.default,"blots/cursor":s.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":d.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(l.default,a.default,s.default,f.default,h.default,p.default),e.default=o.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach((function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){i(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(i(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(0)),l=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var u="\ufeff",s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(u).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=u,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(i.default.Embed);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",l),u=new i.default.Attributor.Class("align","ql-align",l),s=new i.default.Attributor.Style("align","text-align",l);e.AlignAttribute=a,e.AlignClass=u,e.AlignStyle=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),u=new l.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",l),u=new i.default.Attributor.Class("direction","ql-direction",l),s=new i.default.Attributor.Style("direction","direction",l);e.DirectionAttribute=a,e.DirectionClass=u,e.DirectionStyle=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new a.default.Attributor.Class("font","ql-font",u),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),f=new c("font","font-family",u);e.FontStyle=f,e.FontClass=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=l,e.SizeStyle=a},function(t,e,n){t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),i=l(n(5));function l(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(t,e,n,o){t!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],i.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(l(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}(t)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=a,e.getLastChangeIndex=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=d(n(3)),l=d(n(2)),a=d(n(8)),u=d(n(23)),s=d(n(34)),c=d(n(59)),f=d(n(60)),h=d(n(28)),p=d(n(61));function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[!1,"center","right","justify"],b=["#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"],A=[!1,"serif","monospace"],k=["1","2","3",!1],w=["small",!1,"large","huge"],E=function(t){function e(t,n){y(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return g(e,t),r(e,[{key:"addModule",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&O(t,m),new f.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&O(t,b,"background"===n?"#ffffff":"#000000"),new c.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?O(t,A):t.classList.contains("ql-header")?O(t,k):t.classList.contains("ql-size")&&O(t,w)),new h.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(s.default);E.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var N=function(t){function e(t,n){y(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){u.default.match(e,"enter")?(t.save(),e.preventDefault()):u.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(p.default);function O(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=N,e.default=E},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],l=t-o[1],a=this.iterator(i);(r=a())&&l<t+e;){var u=r.length();t>l?n(r,t-l,Math.min(e,l+u-t)):n(r,0,Math.min(u,t+e-l)),l+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)e.push(o.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[l.DATA_KEY].mutations&&(t.domNode[l.DATA_KEY].mutations=[]),e&&a(t.parent))},u=function(t){null!=t.domNode[l.DATA_KEY]&&null!=t.domNode[l.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},s=e,c=0;s.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(t){var e=l.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(l.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=l.find(t,!1);a(e,!1),e instanceof i.default&&e.children.forEach((function(t){a(t,!1)}))}))):"attributes"===t.type&&a(e.prev)),a(e))})),this.children.forEach(u),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)e.push(o.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=l.find(t.target,!0);return null==e?null:null==e.domNode[l.DATA_KEY].mutations?(e.domNode[l.DATA_KEY].mutations=[t],e):(e.domNode[l.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[l.DATA_KEY]&&t.update(t.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=u},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){var r=l.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=l.query(r,l.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=l.query(n,l.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),i=l.create(n,r);o.parent.insertBefore(i,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=l.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=i},function(t,e,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return o(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=l.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=l.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,o=0;function i(t,e,c){if(t==e)return t?[[o,t]]:[];(c<0||t.length<c)&&(c=null);var h=a(t,e),p=t.substring(0,h);h=u(t=t.substring(h),e=e.substring(h));var d=t.substring(t.length-h),y=function(t,e){var s;if(!t)return[[r,e]];if(!e)return[[n,t]];var c=t.length>e.length?t:e,f=t.length>e.length?e:t,h=c.indexOf(f);if(-1!=h)return s=[[r,c.substring(0,h)],[o,f],[r,c.substring(h+f.length)]],t.length>e.length&&(s[0][0]=s[2][0]=n),s;if(1==f.length)return[[n,t],[r,e]];var p=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){for(var r,o,i,l,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(s,c+1));){var h=a(t.substring(n),e.substring(c)),p=u(t.substring(0,n),e.substring(0,c));f.length<p+h&&(f=e.substring(c-p,c)+e.substring(c,c+h),r=t.substring(0,n-p),o=t.substring(n+h),i=e.substring(0,c-p),l=e.substring(c+h))}return 2*f.length>=t.length?[r,o,i,l,f]:null}var i,l,s,c,f,h=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!h&&!p)return null;i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(l=i[0],s=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],l=i[2],s=i[3]);var d=i[4];return[l,s,c,f,d]}(t,e);if(p){var d=p[0],y=p[1],v=p[2],g=p[3],m=p[4],b=i(d,v),A=i(y,g);return b.concat([[o,m]],A)}return function(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),u=a,s=2*a,c=new Array(s),f=new Array(s),h=0;h<s;h++)c[h]=-1,f[h]=-1;c[u+1]=0,f[u+1]=0;for(var p=o-i,d=p%2!=0,y=0,v=0,g=0,m=0,b=0;b<a;b++){for(var A=-b+y;A<=b-v;A+=2){for(var k=u+A,w=(I=A==-b||A!=b&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-A;I<o&&w<i&&t.charAt(I)==e.charAt(w);)I++,w++;if(c[k]=I,I>o)v+=2;else if(w>i)y+=2;else if(d&&(O=u+p-A)>=0&&O<s&&-1!=f[O]&&I>=(N=o-f[O]))return l(t,e,I,w)}for(var E=-b+g;E<=b-m;E+=2){for(var N,O=u+E,x=(N=E==-b||E!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1)-E;N<o&&x<i&&t.charAt(o-N-1)==e.charAt(i-x-1);)N++,x++;if(f[O]=N,N>o)m+=2;else if(x>i)g+=2;else if(!d){var I;if((k=u+p-E)>=0&&k<s&&-1!=c[k]&&(w=u+(I=c[k])-k,I>=(N=o-N)))return l(t,e,I,w)}}}return[[n,t],[r,e]]}(t,e)}(t=t.substring(0,t.length-h),e=e.substring(0,e.length-h));return p&&y.unshift([o,p]),d&&y.push([o,d]),s(y),null!=c&&(y=function(t,e){var r=function(t,e){if(0===e)return[o,t];for(var r=0,i=0;i<t.length;i++){var l=t[i];if(l[0]===n||l[0]===o){var a=r+l[1].length;if(e===a)return[i+1,t];if(e<a){t=t.slice();var u=e-r,s=[l[0],l[1].slice(0,u)],c=[l[0],l[1].slice(u)];return t.splice(i,1,s,c),[i+1,t]}r=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],l=r[0],a=i[l],u=i[l+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=u&&a[1]+u[1]===u[1]+a[1])return i.splice(l,2,u,a),f(i,l,2);if(null!=u&&0===u[1].indexOf(a[1])){i.splice(l,2,[u[0],a[1]],[0,a[1]]);var s=u[1].slice(a[1].length);return s.length>0&&i.splice(l+2,0,[u[0],s]),f(i,l,3)}return t}(y,c)),y=function(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},l=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},a=2;a<t.length;a+=1)t[a-2][0]===o&&l(t[a-2][1])&&t[a-1][0]===n&&i(t[a-1][1])&&t[a][0]===r&&i(t[a][1])&&(e=!0,t[a-1][1]=t[a-2][1].slice(-1)+t[a-1][1],t[a][1]=t[a-2][1].slice(-1)+t[a][1],t[a-2][1]=t[a-2][1].slice(0,-1));if(!e)return t;var u=[];for(a=0;a<t.length;a+=1)t[a][1].length>0&&u.push(t[a]);return u}(y)}function l(t,e,n,r){var o=t.substring(0,n),l=e.substring(0,r),a=t.substring(n),u=e.substring(r),s=i(o,l),c=i(a,u);return s.concat(c)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function u(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(t){t.push([o,""]);for(var e,i=0,l=0,c=0,f="",h="";i<t.length;)switch(t[i][0]){case r:c++,h+=t[i][1],i++;break;case n:l++,f+=t[i][1],i++;break;case o:l+c>1?(0!==l&&0!==c&&(0!==(e=a(h,f))&&(i-l-c>0&&t[i-l-c-1][0]==o?t[i-l-c-1][1]+=h.substring(0,e):(t.splice(0,0,[o,h.substring(0,e)]),i++),h=h.substring(e),f=f.substring(e)),0!==(e=u(h,f))&&(t[i][1]=h.substring(h.length-e)+t[i][1],h=h.substring(0,h.length-e),f=f.substring(0,f.length-e))),0===l?t.splice(i-c,l+c,[r,h]):0===c?t.splice(i-l,l+c,[n,f]):t.splice(i-l-c,l+c,[n,f],[r,h]),i=i-l-c+(l?1:0)+(c?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,c=0,l=0,f="",h=""}""===t[t.length-1][1]&&t.pop();var p=!1;for(i=1;i<t.length-1;)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),p=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),p=!0)),i++;p&&s(t)}var c=i;function f(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}c.INSERT=r,c.DELETE=n,c.EQUAL=o,t.exports=c},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:o).supported=r,e.unsupported=o},function(t,e){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),l.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},l.prototype.listeners=function(t,e){var n=r?r+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,a=new Array(l);i<l;i++)a[i]=o[i].fn;return a},l.prototype.emit=function(t,e,n,o,i,l){var a=r?r+t:t;if(!this._events[a])return!1;var u,s,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,o),!0;case 5:return c.fn.call(c.context,e,n,o,i),!0;case 6:return c.fn.call(c.context,e,n,o,i,l),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var h,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(t,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,e);break;case 3:c[s].fn.call(c[s].context,e,n);break;case 4:c[s].fn.call(c[s].context,e,n,o);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[s].fn.apply(c[s].context,u)}}return!0},l.prototype.on=function(t,e,n){var o=new i(e,n||this),l=r?r+t:t;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.once=function(t,e,n){var o=new i(e,n||this,!0),l=r?r+t:t;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.removeListener=function(t,e,n,i){var l=r?r+t:t;if(!this._events[l])return this;if(!e)return 0==--this._eventsCount?this._events=new o:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[l]);else{for(var u=0,s=[],c=a.length;u<c;u++)(a[u].fn!==e||i&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);s.length?this._events[l]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[l]}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=r,l.EventEmitter=l,void 0!==t&&(t.exports=l)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=b(n(3)),a=b(n(2)),u=b(n(0)),s=b(n(5)),c=b(n(10)),f=b(n(9)),h=n(36),p=n(37),d=b(n(13)),y=n(26),v=n(38),g=n(39),m=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=(0,c.default)("quill:clipboard"),w="__ql-matcher",E=[[Node.TEXT_NODE,P],[Node.TEXT_NODE,D],["br",function(t,e){return S(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===T(t).fontStyle&&(n.italic=!0),r.fontWeight&&(T(t).fontWeight.startsWith("bold")||parseInt(T(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=I(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new a.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!S(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(u.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new a.default}]],N=[h.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),O=[h.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,g.FontStyle,m.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),x=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],l=e[1];(n.matchVisual||l!==L)&&r.addMatcher(i,l)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,A({},d.default.blotName,e[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),l=i[0],u=i[1],s=B(this.container,l,u);return S(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new a.default).retain(s.length()-1).delete(1))),k.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new a.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,s.default.sources.USER),e.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(l),(function(t){t[w]=t[w]||[],t[w].push(a)}))}})),[e,n]}}]),e}(f.default);function I(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return I(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,l.default)({},A({},e,n),r.attributes))}),new a.default)}function T(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function S(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function R(t){if(0===t.childNodes.length)return!1;var e=T(t);return["block","list-item"].indexOf(e.display)>-1}function B(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new a.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,o){var i=B(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[w]||[]).reduce((function(t,e){return e(o,t)}),i)),r.concat(i)}),new a.default):new a.default}function j(t,e,n){return I(n,t,!0)}function C(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),o=u.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(null==(n=N[e])||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=O[e])||n.attrName!==e&&n.keyName!==e||(n=O[e],i[n.attrName]=n.value(t)||void 0))})),Object.keys(i).length>0&&(e=I(e,i)),e}function M(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new a.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=I(e,n.blotName,n.formats(t)));return e}function D(t,e){return S(e,"\n")||(R(t)||e.length()>0&&t.nextSibling&&R(t.nextSibling))&&e.insert("\n"),e}function L(t,e){if(R(t)&&null!=t.nextElementSibling&&!S(e,"\n\n")){var n=t.offsetHeight+parseFloat(T(t).marginTop)+parseFloat(T(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function P(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!T(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&R(t.parentNode)||null!=t.previousSibling&&R(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&R(t.parentNode)||null!=t.nextSibling&&R(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}x.DEFAULTS={matchers:[],matchVisual:!0},e.default=x,e.matchAttributor=C,e.matchBlot=M,e.matchNewline=D,e.matchSpacing=L,e.matchText=P},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),u=c(n(10)),s=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=(0,u.default)("quill:toolbar"),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o,i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");y(l,i.options.container),t.container.parentNode.insertBefore(l,t.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e){t===a.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=r(t,1)[0];i.update(e)})),i):(o=h.error("Container required for toolbar",i.options),f(i,o))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];u=!s.hasAttribute("selected")&&(s.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,u)),a.default.sources.USER)}else e.quill.format(n,u,a.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=r(n,2),i=o[0],l=o[1];if("SELECT"===l.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=l.querySelector("option[selected]");else if(!Array.isArray(e[i])){var u=e[i];"string"==typeof u&&(u=u.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+u+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==t)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var s=e[i]===l.getAttribute("value")||null!=e[i]&&e[i].toString()===l.getAttribute("value")||null==e[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",s)}else l.classList.toggle("ql-active",null!=e[i])}))}}]),e}(s.default);function d(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function y(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)d(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):d(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,a.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",a.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",t,a.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,a.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,a.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",t,a.default.sources.USER)}}},e.default=p,e.addControls=y},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"buildItem",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=p(n(3)),a=p(n(8)),u=n(43),s=p(u),c=p(n(27)),f=n(15),h=p(n(41));function p(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return v(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(s.default);m.DEFAULTS=(0,l.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){d(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,a.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(e,n,o){if(null!=e){if(0===e.length&&o===a.default.sources.USER){var i=t.quill.scroll.descendant(c.default,e.index),l=r(i,2),u=l[0],s=l[1];if(null!=u){t.linkRange=new f.Range(e.index-s,u.length());var h=c.default.formats(u.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),l=n(64),a=D(n(65)),u=D(n(66)),s=n(67),c=D(s),f=n(37),h=n(26),p=n(39),d=n(40),y=D(n(56)),v=D(n(68)),g=D(n(27)),m=D(n(69)),b=D(n(70)),A=D(n(71)),k=D(n(72)),w=D(n(73)),E=n(13),N=D(E),O=D(n(74)),x=D(n(75)),I=D(n(57)),T=D(n(41)),S=D(n(28)),R=D(n(59)),B=D(n(60)),j=D(n(61)),C=D(n(108)),M=D(n(62));function D(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":d.SizeClass,"formats/blockquote":a.default,"formats/code-block":N.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":E.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":A.default,"formats/image":k.default,"formats/video":w.default,"formats/list/item":s.ListItem,"modules/formula":O.default,"modules/syntax":x.default,"modules/toolbar":I.default,"themes/bubble":C.default,"themes/snow":M.default,"ui/icons":T.default,"ui/picker":S.default,"ui/icon-picker":B.default,"ui/color-picker":R.default,"ui/tooltip":j.default},!0),e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),s=new u("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(4),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(4),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=i)&&r.__esModule?r:{default:r}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(0)),l=u(n(4)),a=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);h.blotName="list-item",h.tagName="LI";var p=function(t){function e(t){s(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=i.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(a.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[h],e.ListItem=h,e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(56),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},u=n(27),s=["alt","height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,u.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);c.blotName="image",c.tagName="IMG",e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(4),a=n(27),u=(r=a)&&r.__esModule?r:{default:r},s=["height","width"],c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){s.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return s.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return u.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(l.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(35)),l=u(n(5)),a=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,null,[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(i.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var p=function(t){function e(){s(this,e);var t=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return f(e,t),r(e,null,[{key:"register",value:function(){l.default.register(h,!0)}}]),e}(a.default);e.FormulaBlot=h,e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=u(n(0)),l=u(n(5)),a=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(u(n(13)).default);h.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(t){function e(t,n){s(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(e,t),r(e,null,[{key:"register",value:function(){l.default.register(p,!0),l.default.register(h,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=h,e.CodeToken=p,e.default=d},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=f(n(3)),l=f(n(8)),a=n(43),u=f(a),s=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return d(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(u.default);v.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(t){function e(t,n){h(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,o){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var a=i[i.length-1],u=r.quill.getIndex(a),c=Math.min(a.length()-1,e.index+e.length-u),f=r.quill.getBounds(new s.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return d(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(a.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=g,e.default=v},function(t,e,n){t.exports=n(63)}]).default},C.exports=j();const M=B(C.exports);var D=-1,L=1,P=0;function F(t,e,n,r){if(t===e)return t?[[P,t]]:[];if(null!=n){var o=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=t.length,l=e.length;if(0===r.length&&(null===o||0===o.length)){var a=r.index,u=t.slice(0,a),s=t.slice(a),c=o?o.index:null,f=a+l-i;if((null===c||c===f)&&!(f<0||f>l)){var h=e.slice(0,f);if((y=e.slice(f))===s){var p=Math.min(a,f);if((g=u.slice(0,p))===(b=h.slice(0,p)))return q(g,u.slice(p),h.slice(p),s)}}if(null===c||c===a){var d=a,y=(h=e.slice(0,d),e.slice(d));if(h===u){var v=Math.min(i-d,l-d);if((m=s.slice(s.length-v))===(A=y.slice(y.length-v)))return q(u,s.slice(0,s.length-v),y.slice(0,y.length-v),m)}}}if(r.length>0&&o&&0===o.length){var g=t.slice(0,r.index),m=t.slice(r.index+r.length);if(!(l<(p=g.length)+(v=m.length))){var b=e.slice(0,p),A=e.slice(l-v);if(g===b&&m===A)return q(g,t.slice(p,i-v),e.slice(p,l-v),m)}}return null}(t,e,n);if(o)return o}var i=V(t,e),l=t.substring(0,i);i=Z(t=t.substring(i),e=e.substring(i));var a=t.substring(t.length-i),u=function(t,e){var n;if(!t)return[[L,e]];if(!e)return[[D,t]];var r=t.length>e.length?t:e,o=t.length>e.length?e:t,i=r.indexOf(o);if(-1!==i)return n=[[L,r.substring(0,i)],[P,o],[L,r.substring(i+o.length)]],t.length>e.length&&(n[0][0]=n[2][0]=D),n;if(1===o.length)return[[D,t],[L,e]];var l=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function o(t,e,n){for(var r,o,i,l,a=t.substring(n,n+Math.floor(t.length/4)),u=-1,s="";-1!==(u=e.indexOf(a,u+1));){var c=V(t.substring(n),e.substring(u)),f=Z(t.substring(0,n),e.substring(0,u));s.length<f+c&&(s=e.substring(u-f,u)+e.substring(u,u+c),r=t.substring(0,n-f),o=t.substring(n+c),i=e.substring(0,u-f),l=e.substring(u+c))}return 2*s.length>=t.length?[r,o,i,l,s]:null}var i,l,a,u,s,c=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!c&&!f)return null;i=f?c&&c[4].length>f[4].length?c:f:c;t.length>e.length?(l=i[0],a=i[1],u=i[2],s=i[3]):(u=i[0],s=i[1],l=i[2],a=i[3]);var h=i[4];return[l,a,u,s,h]}(t,e);if(l){var a=l[0],u=l[1],s=l[2],c=l[3],f=l[4],h=F(a,s),p=F(u,c);return h.concat([[P,f]],p)}return function(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),i=o,l=2*o,a=new Array(l),u=new Array(l),s=0;s<l;s++)a[s]=-1,u[s]=-1;a[i+1]=0,u[i+1]=0;for(var c=n-r,f=c%2!=0,h=0,p=0,d=0,y=0,v=0;v<o;v++){for(var g=-v+h;g<=v-p;g+=2){for(var m=i+g,b=(N=g===-v||g!==v&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;N<n&&b<r&&t.charAt(N)===e.charAt(b);)N++,b++;if(a[m]=N,N>n)p+=2;else if(b>r)h+=2;else if(f){if((w=i+c-g)>=0&&w<l&&-1!==u[w])if(N>=(k=n-u[w]))return U(t,e,N,b)}}for(var A=-v+d;A<=v-y;A+=2){for(var k,w=i+A,E=(k=A===-v||A!==v&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-A;k<n&&E<r&&t.charAt(n-k-1)===e.charAt(r-E-1);)k++,E++;if(u[w]=k,k>n)y+=2;else if(E>r)d+=2;else if(!f){if((m=i+c-A)>=0&&m<l&&-1!==a[m]){var N;b=i+(N=a[m])-m;if(N>=(k=n-k))return U(t,e,N,b)}}}}return[[D,t],[L,e]]}(t,e)}(t=t.substring(0,t.length-i),e=e.substring(0,e.length-i));return l&&u.unshift([P,l]),a&&u.push([P,a]),G(u,r),u}function U(t,e,n,r){var o=t.substring(0,n),i=e.substring(0,r),l=t.substring(n),a=e.substring(r),u=F(o,i),s=F(l,a);return u.concat(s)}function V(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return Q(t.charCodeAt(o-1))&&o--,o}function Z(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return z(t.charCodeAt(t.length-o))&&o--,o}function G(t,e){t.push([P,""]);for(var n,r=0,o=0,i=0,l="",a="";r<t.length;)if(r<t.length-1&&!t[r][1])t.splice(r,1);else switch(t[r][0]){case L:i++,a+=t[r][1],r++;break;case D:o++,l+=t[r][1],r++;break;case P:var u=r-i-o-1;if(e){if(u>=0&&W(t[u][1])){var s=t[u][1].slice(-1);if(t[u][1]=t[u][1].slice(0,-1),l=s+l,a=s+a,!t[u][1]){t.splice(u,1),r--;var c=u-1;t[c]&&t[c][0]===L&&(i++,a=t[c][1]+a,c--),t[c]&&t[c][0]===D&&(o++,l=t[c][1]+l,c--),u=c}}if(Y(t[r][1])){s=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1),l+=s,a+=s}}if(r<t.length-1&&!t[r][1]){t.splice(r,1);break}if(l.length>0||a.length>0){l.length>0&&a.length>0&&(0!==(n=V(a,l))&&(u>=0?t[u][1]+=a.substring(0,n):(t.splice(0,0,[P,a.substring(0,n)]),r++),a=a.substring(n),l=l.substring(n)),0!==(n=Z(a,l))&&(t[r][1]=a.substring(a.length-n)+t[r][1],a=a.substring(0,a.length-n),l=l.substring(0,l.length-n)));var f=i+o;0===l.length&&0===a.length?(t.splice(r-f,f),r-=f):0===l.length?(t.splice(r-f,f,[L,a]),r=r-f+1):0===a.length?(t.splice(r-f,f,[D,l]),r=r-f+1):(t.splice(r-f,f,[D,l],[L,a]),r=r-f+2)}0!==r&&t[r-1][0]===P?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=0,o=0,l="",a=""}""===t[t.length-1][1]&&t.pop();var h=!1;for(r=1;r<t.length-1;)t[r-1][0]===P&&t[r+1][0]===P&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),h=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),h=!0)),r++;h&&G(t,e)}function Q(t){return t>=55296&&t<=56319}function z(t){return t>=56320&&t<=57343}function Y(t){return z(t.charCodeAt(0))}function W(t){return Q(t.charCodeAt(t.length-1))}function q(t,e,n,r){return W(t)||Y(r)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[P,t],[D,e],[L,n],[P,r]])}function H(t,e,n){return F(t,e,n,!0)}H.INSERT=L,H.DELETE=D,H.EQUAL=P;var _=H,J={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",l="[object Date]",a="[object Function]",u="[object GeneratorFunction]",s="[object Map]",c="[object Number]",f="[object Object]",h="[object Promise]",p="[object RegExp]",d="[object Set]",y="[object String]",v="[object Symbol]",g="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",N="[object Int32Array]",O="[object Uint8Array]",x="[object Uint8ClampedArray]",I="[object Uint16Array]",T="[object Uint32Array]",S=/\w*$/,B=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,C={};C[o]=C["[object Array]"]=C[m]=C[b]=C[i]=C[l]=C[A]=C[k]=C[w]=C[E]=C[N]=C[s]=C[c]=C[f]=C[p]=C[d]=C[y]=C[v]=C[O]=C[x]=C[I]=C[T]=!0,C["[object Error]"]=C[a]=C[g]=!1;var M="object"==typeof R&&R&&R.Object===Object&&R,D="object"==typeof self&&self&&self.Object===Object&&self,L=M||D||Function("return this")(),P=e&&!e.nodeType&&e,F=P&&t&&!t.nodeType&&t,U=F&&F.exports===P;function V(t,e){return t.set(e[0],e[1]),t}function Z(t,e){return t.add(e),t}function G(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function Q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Y(t,e){return function(n){return t(e(n))}}function W(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var q,H=Array.prototype,_=Function.prototype,J=Object.prototype,X=L["__core-js_shared__"],K=(q=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",$=_.toString,tt=J.hasOwnProperty,et=J.toString,nt=RegExp("^"+$.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=U?L.Buffer:void 0,ot=L.Symbol,it=L.Uint8Array,lt=Y(Object.getPrototypeOf,Object),at=Object.create,ut=J.propertyIsEnumerable,st=H.splice,ct=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,ht=Y(Object.keys,Object),pt=Ft(L,"DataView"),dt=Ft(L,"Map"),yt=Ft(L,"Promise"),vt=Ft(L,"Set"),gt=Ft(L,"WeakMap"),mt=Ft(Object,"create"),bt=Qt(pt),At=Qt(dt),kt=Qt(yt),wt=Qt(vt),Et=Qt(gt),Nt=ot?ot.prototype:void 0,Ot=Nt?Nt.valueOf:void 0;function xt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function It(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Tt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){this.__data__=new It(t)}function Rt(t,e){var n=Yt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Wt(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||et.call(t)==o)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,i=!!r;for(var l in t)!e&&!tt.call(t,l)||i&&("length"==l||Zt(l,r))||n.push(l);return n}function Bt(t,e,n){var r=t[e];tt.call(t,e)&&zt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function jt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Ct(t,e,n,r,h,g,R){var B;if(r&&(B=g?r(t,h,g,R):r(t)),void 0!==B)return B;if(!_t(t))return t;var j=Yt(t);if(j){if(B=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,B)}else{var M=Vt(t),D=M==a||M==u;if(qt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(M==f||M==o||D&&!g){if(Q(t))return g?t:{};if(B=function(t){return"function"!=typeof t.constructor||Gt(t)?{}:(e=lt(t),_t(e)?at(e):{});var e}(D?{}:t),!e)return function(t,e){return Lt(t,Ut(t),e)}(t,function(t,e){return t&&Lt(e,Jt(e),t)}(B,t))}else{if(!C[M])return g?t:{};B=function(t,e,n,r){var o=t.constructor;switch(e){case m:return Dt(t);case i:case l:return new o(+t);case b:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case A:case k:case w:case E:case N:case O:case x:case I:case T:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case s:return function(t,e,n){var r=e?n(z(t),!0):z(t);return G(r,V,new t.constructor)}(t,r,n);case c:case y:return new o(t);case p:return function(t){var e=new t.constructor(t.source,S.exec(t));return e.lastIndex=t.lastIndex,e}(t);case d:return function(t,e,n){var r=e?n(W(t),!0):W(t);return G(r,Z,new t.constructor)}(t,r,n);case v:return a=t,Ot?Object(Ot.call(a)):{}}var a}(t,M,Ct,e)}}R||(R=new St);var L=R.get(t);if(L)return L;if(R.set(t,B),!j)var P=n?function(t){return function(t,e,n){var r=e(t);return Yt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Jt,Ut)}(t):Jt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(P||t,(function(o,i){P&&(o=t[i=o]),Bt(B,i,Ct(o,e,n,r,i,t,R))})),B}function Mt(t){return!(!_t(t)||(e=t,K&&K in e))&&(Ht(t)||Q(t)?nt:B).test(Qt(t));var e}function Dt(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Lt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var l=e[o],a=r?r(n[l],t[l],l,n,t):void 0;Bt(n,l,void 0===a?t[l]:a)}return n}function Pt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ft(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Mt(n)?n:void 0}xt.prototype.clear=function(){this.__data__=mt?mt(null):{}},xt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xt.prototype.get=function(t){var e=this.__data__;if(mt){var r=e[t];return r===n?void 0:r}return tt.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:tt.call(e,t)},xt.prototype.set=function(t,e){return this.__data__[t]=mt&&void 0===e?n:e,this},It.prototype.clear=function(){this.__data__=[]},It.prototype.delete=function(t){var e=this.__data__,n=jt(e,t);return!(n<0)&&(n==e.length-1?e.pop():st.call(e,n,1),!0)},It.prototype.get=function(t){var e=this.__data__,n=jt(e,t);return n<0?void 0:e[n][1]},It.prototype.has=function(t){return jt(this.__data__,t)>-1},It.prototype.set=function(t,e){var n=this.__data__,r=jt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Tt.prototype.clear=function(){this.__data__={hash:new xt,map:new(dt||It),string:new xt}},Tt.prototype.delete=function(t){return Pt(this,t).delete(t)},Tt.prototype.get=function(t){return Pt(this,t).get(t)},Tt.prototype.has=function(t){return Pt(this,t).has(t)},Tt.prototype.set=function(t,e){return Pt(this,t).set(t,e),this},St.prototype.clear=function(){this.__data__=new It},St.prototype.delete=function(t){return this.__data__.delete(t)},St.prototype.get=function(t){return this.__data__.get(t)},St.prototype.has=function(t){return this.__data__.has(t)},St.prototype.set=function(t,e){var n=this.__data__;if(n instanceof It){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new Tt(r)}return n.set(t,e),this};var Ut=ct?Y(ct,Object):function(){return[]},Vt=function(t){return et.call(t)};function Zt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Qt(t){if(null!=t){try{return $.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(pt&&Vt(new pt(new ArrayBuffer(1)))!=b||dt&&Vt(new dt)!=s||yt&&Vt(yt.resolve())!=h||vt&&Vt(new vt)!=d||gt&&Vt(new gt)!=g)&&(Vt=function(t){var e=et.call(t),n=e==f?t.constructor:void 0,r=n?Qt(n):void 0;if(r)switch(r){case bt:return b;case At:return s;case kt:return h;case wt:return d;case Et:return g}return e});var Yt=Array.isArray;function Wt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Ht(t)}var qt=ft||function(){return!1};function Ht(t){var e=_t(t)?et.call(t):"";return e==a||e==u}function _t(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Jt(t){return Wt(t)?Rt(t):function(t){if(!Gt(t))return ht(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return Ct(t,!0,!0)}}(J,J.exports);var X=J.exports,K={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=1,o=2,i=9007199254740991,l="[object Arguments]",a="[object Array]",u="[object AsyncFunction]",s="[object Boolean]",c="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",d="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",m="[object Promise]",b="[object Proxy]",A="[object RegExp]",k="[object Set]",w="[object String]",E="[object Symbol]",N="[object Undefined]",O="[object WeakMap]",x="[object ArrayBuffer]",I="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,B={};B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B[l]=B[a]=B[x]=B[s]=B[I]=B[c]=B[f]=B[h]=B[d]=B[y]=B[g]=B[A]=B[k]=B[w]=B[O]=!1;var j="object"==typeof R&&R&&R.Object===Object&&R,C="object"==typeof self&&self&&self.Object===Object&&self,M=j||C||Function("return this")(),D=e&&!e.nodeType&&e,L=D&&t&&!t.nodeType&&t,P=L&&L.exports===D,F=P&&j.process,U=function(){try{return F&&F.binding&&F.binding("util")}catch(t){}}(),V=U&&U.isTypedArray;function Z(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Q(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var z,Y,W,q=Array.prototype,H=Function.prototype,_=Object.prototype,J=M["__core-js_shared__"],X=H.toString,K=_.hasOwnProperty,$=(z=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",tt=_.toString,et=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=P?M.Buffer:void 0,rt=M.Symbol,ot=M.Uint8Array,it=_.propertyIsEnumerable,lt=q.splice,at=rt?rt.toStringTag:void 0,ut=Object.getOwnPropertySymbols,st=nt?nt.isBuffer:void 0,ct=(Y=Object.keys,W=Object,function(t){return Y(W(t))}),ft=Ut(M,"DataView"),ht=Ut(M,"Map"),pt=Ut(M,"Promise"),dt=Ut(M,"Set"),yt=Ut(M,"WeakMap"),vt=Ut(Object,"create"),gt=Qt(ft),mt=Qt(ht),bt=Qt(pt),At=Qt(dt),kt=Qt(yt),wt=rt?rt.prototype:void 0,Et=wt?wt.valueOf:void 0;function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function It(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new xt;++e<n;)this.add(t[e])}function Tt(t){var e=this.__data__=new Ot(t);this.size=e.size}function St(t,e){var n=Wt(t),r=!n&&Yt(t),o=!n&&!r&&qt(t),i=!n&&!r&&!o&&Kt(t),l=n||r||o||i,a=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=a.length;for(var s in t)!e&&!K.call(t,s)||l&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Gt(s,u))||a.push(s);return a}function Rt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Bt(t){return null==t?void 0===t?N:v:at&&at in Object(t)?function(t){var e=K.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(i){}var o=tt.call(t);r&&(e?t[at]=n:delete t[at]);return o}(t):function(t){return tt.call(t)}(t)}function jt(t){return Xt(t)&&Bt(t)==l}function Ct(t,e,n,i,u){return t===e||(null==t||null==e||!Xt(t)&&!Xt(e)?t!=t&&e!=e:function(t,e,n,i,u,h){var p=Wt(t),v=Wt(e),m=p?a:Zt(t),b=v?a:Zt(e),N=(m=m==l?g:m)==g,O=(b=b==l?g:b)==g,T=m==b;if(T&&qt(t)){if(!qt(e))return!1;p=!0,N=!1}if(T&&!N)return h||(h=new Tt),p||Kt(t)?Lt(t,e,n,i,u,h):function(t,e,n,i,l,a,u){switch(n){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!a(new ot(t),new ot(e)));case s:case c:case y:return zt(+t,+e);case f:return t.name==e.name&&t.message==e.message;case A:case w:return t==e+"";case d:var h=G;case k:var p=i&r;if(h||(h=Q),t.size!=e.size&&!p)return!1;var v=u.get(t);if(v)return v==e;i|=o,u.set(t,e);var g=Lt(h(t),h(e),i,l,a,u);return u.delete(t),g;case E:if(Et)return Et.call(t)==Et.call(e)}return!1}(t,e,m,n,i,u,h);if(!(n&r)){var S=N&&K.call(t,"__wrapped__"),R=O&&K.call(e,"__wrapped__");if(S||R){var B=S?t.value():t,j=R?e.value():e;return h||(h=new Tt),u(B,j,n,i,h)}}if(!T)return!1;return h||(h=new Tt),function(t,e,n,o,i,l){var a=n&r,u=Pt(t),s=u.length,c=Pt(e),f=c.length;if(s!=f&&!a)return!1;var h=s;for(;h--;){var p=u[h];if(!(a?p in e:K.call(e,p)))return!1}var d=l.get(t);if(d&&l.get(e))return d==e;var y=!0;l.set(t,e),l.set(e,t);var v=a;for(;++h<s;){var g=t[p=u[h]],m=e[p];if(o)var b=a?o(m,g,p,e,t,l):o(g,m,p,t,e,l);if(!(void 0===b?g===m||i(g,m,n,o,l):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var A=t.constructor,k=e.constructor;A==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof A&&A instanceof A&&"function"==typeof k&&k instanceof k||(y=!1)}return l.delete(t),l.delete(e),y}(t,e,n,i,u,h)}(t,e,n,i,Ct,u))}function Mt(t){return!(!Jt(t)||function(t){return!!$&&$ in t}(t))&&(Ht(t)?et:T).test(Qt(t))}function Dt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||_,e!==r)return ct(t);var e,n,r,o=[];for(var i in Object(t))K.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Lt(t,e,n,i,l,a){var u=n&r,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var h=-1,p=!0,d=n&o?new It:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var y=t[h],v=e[h];if(i)var g=u?i(v,y,h,e,t,a):i(y,v,h,t,e,a);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!Z(e,(function(t,e){if(r=e,!d.has(r)&&(y===t||l(y,t,n,i,a)))return d.push(e);var r}))){p=!1;break}}else if(y!==v&&!l(y,v,n,i,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function Pt(t){return function(t,e,n){var r=e(t);return Wt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,$t,Vt)}function Ft(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ut(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Mt(n)?n:void 0}Nt.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},Nt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Nt.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===n?void 0:r}return K.call(e,t)?e[t]:void 0},Nt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:K.call(e,t)},Nt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=vt&&void 0===e?n:e,this},Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(t){var e=this.__data__,n=Rt(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,!0)},Ot.prototype.get=function(t){var e=this.__data__,n=Rt(e,t);return n<0?void 0:e[n][1]},Ot.prototype.has=function(t){return Rt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var n=this.__data__,r=Rt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},xt.prototype.clear=function(){this.size=0,this.__data__={hash:new Nt,map:new(ht||Ot),string:new Nt}},xt.prototype.delete=function(t){var e=Ft(this,t).delete(t);return this.size-=e?1:0,e},xt.prototype.get=function(t){return Ft(this,t).get(t)},xt.prototype.has=function(t){return Ft(this,t).has(t)},xt.prototype.set=function(t,e){var n=Ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,n),this},It.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new Ot,this.size=0},Tt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ot){var r=n.__data__;if(!ht||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new xt(r)}return n.set(t,e),this.size=n.size,this};var Vt=ut?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var l=t[n];e(l,n,t)&&(i[o++]=l)}return i}(ut(t),(function(e){return it.call(t,e)})))}:function(){return[]},Zt=Bt;function Gt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function Qt(t){if(null!=t){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(ft&&Zt(new ft(new ArrayBuffer(1)))!=I||ht&&Zt(new ht)!=d||pt&&Zt(pt.resolve())!=m||dt&&Zt(new dt)!=k||yt&&Zt(new yt)!=O)&&(Zt=function(t){var e=Bt(t),n=e==g?t.constructor:void 0,r=n?Qt(n):"";if(r)switch(r){case gt:return I;case mt:return d;case bt:return m;case At:return k;case kt:return O}return e});var Yt=jt(function(){return arguments}())?jt:function(t){return Xt(t)&&K.call(t,"callee")&&!it.call(t,"callee")},Wt=Array.isArray;var qt=st||function(){return!1};function Ht(t){if(!Jt(t))return!1;var e=Bt(t);return e==h||e==p||e==u||e==b}function _t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Jt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Xt(t){return null!=t&&"object"==typeof t}var Kt=V?function(t){return function(e){return t(e)}}(V):function(t){return Xt(t)&&_t(t.length)&&!!B[Bt(t)]};function $t(t){return null!=(e=t)&&_t(e.length)&&!Ht(e)?St(t):Dt(t);var e}t.exports=function(t,e){return Ct(t,e)}}(K,K.exports);var $=K.exports,tt={},et=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tt,"__esModule",{value:!0});var nt,rt,ot=et(X),it=et($);(rt=nt||(nt={})).compose=function(t,e,n){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=ot.default(e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},rt.diff=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return it.default(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n}),{});return Object.keys(n).length>0?n:void 0},rt.invert=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),t=t||{};var n=Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0!==t[r]&&(n[r]=e[r]),n}),{});return Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0===e[r]&&(n[r]=null),n}),n)},rt.transform=function(t,e,n){if(void 0===n&&(n=!1),"object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}},tt.default=nt;var lt,at,ut={},st={};function ct(){if(at)return ut;at=1;var t=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});var e,n,r=t(function(){if(lt)return st;lt=1;var t=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(st,"__esModule",{value:!0});var e=t(ct()),n=function(){function t(t){this.ops=t,this.index=0,this.offset=0}return t.prototype.hasNext=function(){return this.peekLength()<1/0},t.prototype.next=function(t){t||(t=1/0);var n=this.ops[this.index];if(n){var r=this.offset,o=e.default.length(n);if(t>=o-r?(t=o-r,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof n.delete)return{delete:t};var i={};return n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=t:"string"==typeof n.insert?i.insert=n.insert.substr(r,t):i.insert=n.insert,i}return{retain:1/0}},t.prototype.peek=function(){return this.ops[this.index]},t.prototype.peekLength=function(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0},t.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"},t.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t}();return st.default=n,st}());return(n=e||(e={})).iterator=function(t){return new r.default(t)},n.length=function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1},ut.default=e,ut}var ft=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},ht=ft(_),pt=ft(X),dt=ft($),yt=ft(tt),vt=ft(ct()),gt=String.fromCharCode(0);const mt=B(function(){function t(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return t.prototype.insert=function(t,e){var n={};return"string"==typeof t&&0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},t.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},t.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},t.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=pt.default(t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(dt.default(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},t.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},t.prototype.filter=function(t){return this.ops.filter(t)},t.prototype.forEach=function(t){this.ops.forEach(t)},t.prototype.map=function(t){return this.ops.map(t)},t.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},t.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},t.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+vt.default.length(e):e.delete?t-e.delete:t}),0)},t.prototype.length=function(){return this.reduce((function(t,e){return t+vt.default.length(e)}),0)},t.prototype.slice=function(e,n){void 0===e&&(e=0),void 0===n&&(n=1/0);for(var r=[],o=vt.default.iterator(this.ops),i=0;i<n&&o.hasNext();){var l=void 0;i<e?l=o.next(e-i):(l=o.next(n-i),r.push(l)),i+=vt.default.length(l)}return new t(r)},t.prototype.compose=function(e){var n=vt.default.iterator(this.ops),r=vt.default.iterator(e.ops),o=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===n.peekType()&&n.peekLength()<=l;)l-=n.peekLength(),o.push(n.next());i.retain-l>0&&r.next(i.retain-l)}for(var a=new t(o);n.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===n.peekType())a.push(n.next());else{var u=Math.min(n.peekLength(),r.peekLength()),s=n.next(u),c=r.next(u);if("number"==typeof c.retain){var f={};"number"==typeof s.retain?f.retain=u:f.insert=s.insert;var h=yt.default.compose(s.attributes,c.attributes,"number"==typeof s.retain);if(h&&(f.attributes=h),a.push(f),!r.hasNext()&&dt.default(a.ops[a.ops.length-1],f)){var p=new t(n.rest());return a.concat(p).chop()}}else"number"==typeof c.delete&&"number"==typeof s.retain&&a.push(c)}return a.chop()},t.prototype.concat=function(e){var n=new t(this.ops.slice());return e.ops.length>0&&(n.push(e.ops[0]),n.ops=n.ops.concat(e.ops.slice(1))),n},t.prototype.diff=function(e,n){if(this.ops===e.ops)return new t;var r=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:gt;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new t,i=ht.default(r[0],r[1],n),l=vt.default.iterator(this.ops),a=vt.default.iterator(e.ops);return i.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case ht.default.INSERT:n=Math.min(a.peekLength(),e),o.push(a.next(n));break;case ht.default.DELETE:n=Math.min(e,l.peekLength()),l.next(n),o.delete(n);break;case ht.default.EQUAL:n=Math.min(l.peekLength(),a.peekLength(),e);var r=l.next(n),i=a.next(n);dt.default(r.insert,i.insert)?o.retain(n,yt.default.diff(r.attributes,i.attributes)):o.push(i).delete(n)}e-=n}})),o.chop()},t.prototype.eachLine=function(e,n){void 0===n&&(n="\n");for(var r=vt.default.iterator(this.ops),o=new t,i=0;r.hasNext();){if("insert"!==r.peekType())return;var l=r.peek(),a=vt.default.length(l)-r.peekLength(),u="string"==typeof l.insert?l.insert.indexOf(n,a)-a:-1;if(u<0)o.push(r.next());else if(u>0)o.push(r.next(u));else{if(!1===e(o,r.next(1).attributes||{},i))return;i+=1,o=new t}}o.length()>0&&e(o,{},i)},t.prototype.invert=function(e){var n=new t;return this.reduce((function(t,r){if(r.insert)n.delete(vt.default.length(r));else{if(r.retain&&null==r.attributes)return n.retain(r.retain),t+r.retain;if(r.delete||r.retain&&r.attributes){var o=r.delete||r.retain;return e.slice(t,t+o).forEach((function(t){r.delete?n.push(t):r.retain&&r.attributes&&n.retain(vt.default.length(t),yt.default.invert(r.attributes,t.attributes))})),t+o}}return t}),0),n.chop()},t.prototype.transform=function(e,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof e)return this.transformPosition(e,n);for(var r=e,o=vt.default.iterator(this.ops),i=vt.default.iterator(r.ops),l=new t;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===i.peekType())if("insert"===i.peekType())l.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),u=o.next(a),s=i.next(a);if(u.delete)continue;s.delete?l.push(s):l.retain(a,yt.default.transform(u.attributes,s.attributes,n))}else l.retain(vt.default.length(o.next()));return l.chop()},t.prototype.transformPosition=function(t,e){void 0===e&&(e=!1),e=!!e;for(var n=vt.default.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.Op=vt.default,t.AttributeMap=yt.default,t}()),bt={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["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:[]}],["link","video","image"],["clean"]]},At=n.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:t=>["delta","html","text"].includes(t)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:t=>["snow","bubble",""].includes(t)},toolbar:{type:[String,Array,Object],required:!1,validator:t=>"string"!=typeof t||""===t||("#"===t.charAt(0)||-1!==Object.keys(bt).indexOf(t))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(t,e)=>{let r,o;n.onMounted((()=>{l()})),n.onBeforeUnmount((()=>{r=null}));const i=n.ref(),l=()=>{var n;if(i.value){if(o=a(),t.modules)if(Array.isArray(t.modules))for(const e of t.modules)M.register(`modules/${e.name}`,e.module);else M.register(`modules/${t.modules.name}`,t.modules.module);r=new M(i.value,o),v(t.content),r.on("text-change",f),r.on("selection-change",p),r.on("editor-change",d),"bubble"!==t.theme&&i.value.classList.remove("ql-bubble"),"snow"!==t.theme&&i.value.classList.remove("ql-snow"),null===(n=r.getModule("toolbar"))||void 0===n||n.container.addEventListener("mousedown",(t=>{t.preventDefault()})),e.emit("ready",r)}},a=()=>{const e={};if(""!==t.theme&&(e.theme=t.theme),t.readOnly&&(e.readOnly=t.readOnly),t.placeholder&&(e.placeholder=t.placeholder),t.toolbar&&""!==t.toolbar&&(e.modules={toolbar:(()=>{if("object"==typeof t.toolbar)return t.toolbar;if("string"==typeof t.toolbar){return"#"===t.toolbar.charAt(0)?t.toolbar:bt[t.toolbar]}})()}),t.modules){const n=(()=>{var e,n;const r={};if(Array.isArray(t.modules))for(const o of t.modules)r[o.name]=null!==(e=o.options)&&void 0!==e?e:{};else r[t.modules.name]=null!==(n=t.modules.options)&&void 0!==n?n:{};return r})();e.modules=Object.assign({},e.modules,n)}return Object.assign({},t.globalOptions,t.options,e)},u=t=>"object"==typeof t&&t?t.slice():t;let s;const c=t=>{if(typeof s==typeof t){if(t===s)return!0;if("object"==typeof t&&t&&"object"==typeof s&&s)return e=s.diff(t),!Object.values(e.ops).some((t=>!t.retain||1!==Object.keys(t).length))}var e;return!1},f=(n,r,o)=>{s=u(y()),c(t.content)||e.emit("update:content",s),e.emit("textChange",{delta:n,oldContents:r,source:o})},h=n.ref(),p=(t,n,o)=>{h.value=!!(null==r?void 0:r.hasFocus()),e.emit("selectionChange",{range:t,oldRange:n,source:o})};n.watch(h,(t=>{t?e.emit("focus",i):e.emit("blur",i)}));const d=(...t)=>{"text-change"===t[0]&&e.emit("editorChange",{name:t[0],delta:t[1],oldContents:t[2],source:t[3]}),"selection-change"===t[0]&&e.emit("editorChange",{name:t[0],range:t[1],oldRange:t[2],source:t[3]})},y=(e,n)=>"html"===t.contentType?b():"text"===t.contentType?g(e,n):null==r?void 0:r.getContents(e,n),v=(e,n="api")=>{const o=e||("delta"===t.contentType?new mt:"");"html"===t.contentType?A(o):"text"===t.contentType?m(o,n):null==r||r.setContents(o,n),s=u(o)},g=(t,e)=>{var n;return null!==(n=null==r?void 0:r.getText(t,e))&&void 0!==n?n:""},m=(t,e="api")=>{null==r||r.setText(t,e)},b=()=>{var t;return null!==(t=null==r?void 0:r.root.innerHTML)&&void 0!==t?t:""},A=t=>{r&&(r.root.innerHTML=t)};return n.watch((()=>t.content),(t=>{if(!r||!t||c(t))return;const e=r.getSelection();e&&n.nextTick((()=>null==r?void 0:r.setSelection(e))),v(t)}),{deep:!0}),n.watch((()=>t.enable),(t=>{r&&r.enable(t)})),{editor:i,getEditor:()=>i.value,getToolbar:()=>{var t;return null===(t=null==r?void 0:r.getModule("toolbar"))||void 0===t?void 0:t.container},getQuill:()=>{if(r)return r;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:y,setContents:v,getHTML:b,setHTML:A,pasteHTML:(t,e="api")=>{const n=null==r?void 0:r.clipboard.convert(t);n&&(null==r||r.setContents(n,e))},focus:()=>{null==r||r.focus()},getText:g,setText:m,reinit:()=>{n.nextTick((()=>{var t;!e.slots.toolbar&&r&&(null===(t=r.getModule("toolbar"))||void 0===t||t.container.remove()),l()}))}}},render(){var t,e;return[null===(e=(t=this.$slots).toolbar)||void 0===e?void 0:e.call(t),n.h("div",{ref:"editor",...this.$attrs})]}}),kt={modelValue:{default:"",type:String},token:{default:"",type:String},readonly:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},wt=n.defineComponent({name:"TextEditor",components:{QuillEditor:At},emits:["update:modelValue","textChange"],props:kt,setup:(t,e)=>new Et(t,e)});let Et=class extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"fileApi",new o.FileApi),u(this,"uploadApi",new o.UploadApi),u(this,"business",this.storageInfo.getCurrentInsTree()),u(this,"componentShow",n.ref(!1)),u(this,"content",n.ref("")),u(this,"theme",n.ref("snow")),u(this,"QuillEditorRef",n.ref()),u(this,"options",n.reactive({modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{size:["small",!1,"large","huge"]}],[{font:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{header:1},{header:2}],["image"],[{color:[]}],[{background:[]}]]}}})),u(this,"textChange",(()=>{this.ctx.emit("update:modelValue",this.content.value),this.ctx.emit("textChange",this.content.value)})),u(this,"getText",(()=>this.QuillEditorRef.value.getHTML())),u(this,"saveTextData",(async()=>{let t=JSON.stringify(this.content.value);const e=this.uploadApi.getBaseFilePo(this.props.token,"content","默认");await this.uploadApi.writeFile(this.props.token+"","json",t,e)})),u(this,"deleteTextData",(async()=>{await this.fileApi.deleteByToken(this.props.token)})),u(this,"deleteTextDataByToken",(async t=>{await this.fileApi.deleteByToken(t)})),u(this,"clearTextData",(async()=>{this.content.value="",this.QuillEditorRef.value.setHTML("")})),this.props=t,this.ctx=e,this.init()}init(){n.onMounted((()=>{this.loadTextData(),n.watchEffect((()=>{this.componentShow.value=!1,this.props.readonly?this.theme.value="bubble":this.theme.value="snow",n.nextTick((()=>{this.componentShow.value=!0}))}))}))}async loadTextData(){if(!this.utilities.isNull(this.props.token)){const t=this.utilities.parseApiResult(await this.fileApi.readText(this.props.token));t&&(this.content.value=JSON.parse(t))}}};const Nt=h(wt,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("QuillEditor");return n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},class:n.normalizeClass({"text-edit-border":t.border&&t.readonly})},[t.componentShow?(n.openBlock(),n.createBlock(a,{key:0,content:t.content,"onUpdate:content":e[0]||(e[0]=e=>t.content=e),readOnly:t.readonly,theme:t.theme,onTextChange:t.textChange,contentType:"html",ref:"QuillEditorRef",options:t.options},null,8,["content","readOnly","theme","onTextChange","options"])):n.createCommentVNode("",!0)],2)}],["__scopeId","data-v-5812cc0f"]]),Ot=new i.DictionaryDetailApi,xt=async(t,e,n,o)=>{e||(e=[]),l.utilities.isNull(o)&&(o=r.storageInfo.getCurrentPlatform().Id);const i=l.utilities.parseApiResult(await Ot.getOptions(o,t));return n?(e.splice(0,0,...l.utilities.arrayHelper.parseIViewOptions(i,"DetailInfor","DetailValue")),e):i},It={code:{type:String,default:""},platformId:{type:Number,default:null},value:{type:String,default:""},readonly:{type:Boolean,default:!1}},Tt=n.defineComponent({name:"NvDicSelect",components:{},emits:["input","change"],props:It,setup:(t,e)=>new St(t,e)});class St extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"DicValue",n.ref("")),u(this,"dicOptions",n.ref([])),u(this,"DicSelectChange",(()=>{this.ctx.emit("input",this.DicValue.value),this.ctx.emit("change",this.DicValue.value)})),this.props=t,this.ctx=e,this.loadDicData()}async loadDicData(){this.dicOptions.value=await xt(this.props.code,[],!0,this.props.platformId)}}const Rt=h(Tt,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Option"),u=n.resolveComponent("Select");return n.openBlock(),n.createBlock(u,{disabled:t.readonly,modelValue:t.DicValue,"onUpdate:modelValue":e[0]||(e[0]=e=>t.DicValue=e),transfer:"",onOnChange:t.DicSelectChange},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.dicOptions,(t=>(n.openBlock(),n.createBlock(a,{value:t.value,key:t.value},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["disabled","modelValue","onOnChange"])}]]);var Bt={Identity:function(t){return t},True:function(){return!0},Blank:function(){}},jt="boolean",Ct="number",Mt="string",Dt="undefined",Lt="function",Pt={"":Bt.Identity},Ft=function(t){if(null==t)return Bt.Identity;if(typeof t===Mt){let e=Pt[t];if(null!=e)return e;if(-1===t.indexOf("=>")){const n=new RegExp("[$]+","g");let r,o=0;for(;null!=(r=n.exec(t));)r[0].length>o&&(o=r[0].length);const i=[];for(let t=1;t<=o;t++){let e="";for(let n=0;n<t;n++)e+="$";i.push(e)}const l=i.join(",");return e=new Function(l,"return "+t),Pt[t]=e,e}{const n=t.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return e=new Function(n[1],n[2].match(/\breturn\b/)?n[2]:"return "+n[2]),Pt[t]=e,e}}return t},Ut=function(t,e,n){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})},Vt=function(t,e){return t===e?0:t>e?1:-1},Zt=function(t){null!=t&&t.dispose()},Gt=function(){return"undefined"!=typeof Symbol&&void 0!==Symbol.iterator},Qt=0,zt=1,Yt=2,Wt=function(t,e,n){var r=new qt,o=Qt;this.current=r.current,this.moveNext=function(){try{switch(o){case Qt:o=zt,t();case zt:return!!e.apply(r)||(this.dispose(),!1);case Yt:return!1}}catch(n){throw this.dispose(),n}},this.dispose=function(){if(o==zt)try{n()}finally{o=Yt}}},qt=function(){var t=null;this.current=function(){return t},this.yieldReturn=function(e){return t=e,!0},this.yieldBreak=function(){return!1}},Ht=function(t){this.getEnumerator=t};(Ht.Utils={}).createLambda=function(t){return Ft(t)},Ht.Utils.createEnumerable=function(t){return new Ht(t)},Ht.Utils.createEnumerator=function(t,e,n){return new Wt(t,e,n)},Ht.Utils.extendTo=function(t){var e,n=t.prototype;t===Array?(e=Kt.prototype,Ut(n,"getSource",(function(){return this}))):(e=Ht.prototype,Ut(n,"getEnumerator",(function(){return Ht.from(this).getEnumerator()})));for(let r in e){const t=e[r];n[r]!=t&&(null!=n[r]&&(r+="ByLinq",n[r]==t)||t instanceof Function&&Ut(n,r,t))}},Ht.Utils.recallFrom=function(t){var e,n=t.prototype;t===Array?(e=Kt.prototype,delete n.getSource):(e=Ht.prototype,delete n.getEnumerator);for(const r in e){const t=e[r];n[r+"ByLinq"]?delete n[r+"ByLinq"]:n[r]==t&&t instanceof Function&&delete n[r]}},Ht.choice=function(){var t=arguments;return new Ht((function(){return new Wt((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return this.yieldReturn(t[Math.floor(Math.random()*t.length)])}),Bt.Blank)}))},Ht.cycle=function(){var t=arguments;return new Ht((function(){var e=0;return new Wt((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return e>=t.length&&(e=0),this.yieldReturn(t[e++])}),Bt.Blank)}))},Ht.empty=function(){return new Ht((function(){return new Wt(Bt.Blank,(function(){return!1}),Bt.Blank)}))},Ht.from=function(t){if(null==t)return Ht.empty();if(t instanceof Ht)return t;if(typeof t==Ct||typeof t==jt)return Ht.repeat(t,1);if(typeof t==Mt)return new Ht((function(){var e=0;return new Wt(Bt.Blank,(function(){return e<t.length&&this.yieldReturn(t.charAt(e++))}),Bt.Blank)}));if(typeof t!=Lt){if(typeof t.length==Ct)return new Kt(t);if("undefined"!=typeof Symbol&&void 0!==t[Symbol.iterator])return new Ht((function(){return new Wt(Bt.Blank,(function(){var e=t.next();return!e.done&&this.yieldReturn(e.value)}),Bt.Blank)}))}return new Ht((function(){var e=[],n=0;return new Wt((function(){for(const n in t){const r=t[n];r instanceof Function||!Object.prototype.hasOwnProperty.call(t,n)||e.push({key:n,value:r})}}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),Bt.Blank)}))},Ht.make=function(t){return Ht.repeat(t,1)},Ht.matches=function(t,e,n){return null==n&&(n=""),e instanceof RegExp&&(n+=e.ignoreCase?"i":"",n+=e.multiline?"m":"",e=e.source),-1===n.indexOf("g")&&(n+="g"),new Ht((function(){var r;return new Wt((function(){r=new RegExp(e,n)}),(function(){var e=r.exec(t);return!!e&&this.yieldReturn(e)}),Bt.Blank)}))},Ht.range=function(t,e,n){return null==n&&(n=1),new Ht((function(){var r,o=0;return new Wt((function(){r=t-n}),(function(){return o++<e?this.yieldReturn(r+=n):this.yieldBreak()}),Bt.Blank)}))},Ht.rangeDown=function(t,e,n){return null==n&&(n=1),new Ht((function(){var r,o=0;return new Wt((function(){r=t+n}),(function(){return o++<e?this.yieldReturn(r-=n):this.yieldBreak()}),Bt.Blank)}))},Ht.rangeTo=function(t,e,n){return null==n&&(n=1),new Ht(t<e?function(){var r;return new Wt((function(){r=t-n}),(function(){var t=r+=n;return t<=e?this.yieldReturn(t):this.yieldBreak()}),Bt.Blank)}:function(){var r;return new Wt((function(){r=t+n}),(function(){var t=r-=n;return t>=e?this.yieldReturn(t):this.yieldBreak()}),Bt.Blank)})},Ht.repeat=function(t,e){return null!=e?Ht.repeat(t).take(e):new Ht((function(){return new Wt(Bt.Blank,(function(){return this.yieldReturn(t)}),Bt.Blank)}))},Ht.repeatWithFinalize=function(t,e){return t=Ft(t),e=Ft(e),new Ht((function(){var n;return new Wt((function(){n=t()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(e(n),n=null)}))}))},Ht.generate=function(t,e){return null!=e?Ht.generate(t).take(e):(t=Ft(t),new Ht((function(){return new Wt(Bt.Blank,(function(){return this.yieldReturn(t())}),Bt.Blank)})))},Ht.toInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new Ht((function(){var n;return new Wt((function(){n=t-e}),(function(){return this.yieldReturn(n+=e)}),Bt.Blank)}))},Ht.toNegativeInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new Ht((function(){var n;return new Wt((function(){n=t+e}),(function(){return this.yieldReturn(n-=e)}),Bt.Blank)}))},Ht.unfold=function(t,e){return e=Ft(e),new Ht((function(){var n,r=!0;return new Wt(Bt.Blank,(function(){return r?(r=!1,n=t,this.yieldReturn(n)):(n=e(n),this.yieldReturn(n))}),Bt.Blank)}))},Ht.defer=function(t){return new Ht((function(){var e;return new Wt((function(){e=Ht.from(t()).getEnumerator()}),(function(){return e.moveNext()?this.yieldReturn(e.current()):this.yieldBreak()}),(function(){Zt(e)}))}))},Ht.prototype.traverseBreadthFirst=function(t,e){var n=this;return t=Ft(t),e=Ft(e),new Ht((function(){var r,o=0,i=[];return new Wt((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext())return i.push(r.current()),this.yieldReturn(e(r.current(),o));const n=Ht.from(i).selectMany((function(e){return t(e)}));if(!n.any())return!1;o++,i=[],Zt(r),r=n.getEnumerator()}}),(function(){Zt(r)}))}))},Ht.prototype.traverseDepthFirst=function(t,e){var n=this;return t=Ft(t),e=Ft(e),new Ht((function(){var r,o=[];return new Wt((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext()){const n=e(r.current(),o.length);return o.push(r),r=Ht.from(t(r.current())).getEnumerator(),this.yieldReturn(n)}if(o.length<=0)return!1;Zt(r),r=o.pop()}}),(function(){try{Zt(r)}finally{Ht.from(o).forEach((function(t){t.dispose()}))}}))}))},Ht.prototype.flatten=function(){var t=this;return new Ht((function(){var e,n=null;return new Wt((function(){e=t.getEnumerator()}),(function(){for(;;){if(null!=n){if(n.moveNext())return this.yieldReturn(n.current());n=null}if(e.moveNext()){if(e.current()instanceof Array){Zt(n),n=Ht.from(e.current()).selectMany(Bt.Identity).flatten().getEnumerator();continue}return this.yieldReturn(e.current())}return!1}}),(function(){try{Zt(e)}finally{Zt(n)}}))}))},Ht.prototype.pairwise=function(t){var e=this;return t=Ft(t),new Ht((function(){var n;return new Wt((function(){(n=e.getEnumerator()).moveNext()}),(function(){var e=n.current();return!!n.moveNext()&&this.yieldReturn(t(e,n.current()))}),(function(){Zt(n)}))}))},Ht.prototype.scan=function(t,e){var n;null==e?(e=Ft(t),n=!1):(e=Ft(e),n=!0);var r=this;return new Ht((function(){var o,i,l=!0;return new Wt((function(){o=r.getEnumerator()}),(function(){if(l){if(l=!1,n)return this.yieldReturn(i=t);if(o.moveNext())return this.yieldReturn(i=o.current())}return!!o.moveNext()&&this.yieldReturn(i=e(i,o.current()))}),(function(){Zt(o)}))}))},Ht.prototype.select=function(t){if((t=Ft(t)).length<=1)return new te(this,null,t);var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(t(n.current(),r++))}),(function(){Zt(n)}))}))},Ht.prototype.selectMany=function(t,e){var n=this;return t=Ft(t),null==e&&(e=function(t,e){return e}),e=Ft(e),new Ht((function(){var r,o=void 0,i=0;return new Wt((function(){r=n.getEnumerator()}),(function(){if(void 0===o&&!r.moveNext())return!1;do{if(null==o){const e=t(r.current(),i++);o=Ht.from(e).getEnumerator()}if(o.moveNext())return this.yieldReturn(e(r.current(),o.current()));Zt(o),o=null}while(r.moveNext());return!1}),(function(){try{Zt(r)}finally{Zt(o)}}))}))},Ht.prototype.where=function(t){if((t=Ft(t)).length<=1)return new $t(this,t);var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)if(t(n.current(),r++))return this.yieldReturn(n.current());return!1}),(function(){Zt(n)}))}))},Ht.prototype.choose=function(t){t=Ft(t);var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){const e=t(n.current(),r++);if(null!=e)return this.yieldReturn(e)}return this.yieldBreak()}),(function(){Zt(n)}))}))},Ht.prototype.ofType=function(t){var e;switch(t){case Number:e=Ct;break;case String:e=Mt;break;case Boolean:e=jt;break;case Function:e=Lt;break;default:e=null}return null===e?this.where((function(e){return e instanceof t})):this.where((function(t){return typeof t===e}))},Ht.prototype.zip=function(){var t=arguments,e=Ft(arguments[arguments.length-1]),n=this;if(2==arguments.length){const t=arguments[0];return new Ht((function(){var r,o,i=0;return new Wt((function(){r=n.getEnumerator(),o=Ht.from(t).getEnumerator()}),(function(){return!(!r.moveNext()||!o.moveNext())&&this.yieldReturn(e(r.current(),o.current(),i++))}),(function(){try{Zt(r)}finally{Zt(o)}}))}))}return new Ht((function(){var r,o=0;return new Wt((function(){var e=Ht.make(n).concat(Ht.from(t).takeExceptLast().select(Ht.from)).select((function(t){return t.getEnumerator()})).toArray();r=Ht.from(e)}),(function(){if(r.all((function(t){return t.moveNext()}))){const t=r.select((function(t){return t.current()})).toArray();return t.push(o++),this.yieldReturn(e.apply(null,t))}return this.yieldBreak()}),(function(){Ht.from(r).forEach(Zt)}))}))},Ht.prototype.merge=function(){var t=arguments,e=this;return new Ht((function(){var n,r=-1;return new Wt((function(){n=Ht.make(e).concat(Ht.from(t).select(Ht.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){r=r>=n.length-1?0:r+1;const t=n[r];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),n.splice(r--,1)}return this.yieldBreak()}),(function(){Ht.from(n).forEach(Zt)}))}))},Ht.prototype.join=function(t,e,n,r,o){e=Ft(e),n=Ft(n),r=Ft(r),o=Ft(o);var i=this;return new Ht((function(){var l,a,u=null,s=0;return new Wt((function(){l=i.getEnumerator(),a=Ht.from(t).toLookup(n,Bt.Identity,o)}),(function(){for(;;){if(null!=u){let t=u[s++];if(void 0!==t)return this.yieldReturn(r(l.current(),t));t=null,s=0}if(!l.moveNext())return!1;{const t=e(l.current());u=a.get(t).toArray()}}}),(function(){Zt(l)}))}))},Ht.prototype.leftJoin=function(t,e,n,r,o){e=Ft(e),n=Ft(n),r=Ft(r),o=Ft(o);var i=this;return new Ht((function(){var l,a,u=null,s=0;return new Wt((function(){l=i.getEnumerator(),a=Ht.from(t).toLookup(n,Bt.Identity,o)}),(function(){for(;;){if(null!=u){let t=u[s++];if(void 0!==t)return this.yieldReturn(r(l.current(),t));t=null,s=0}if(!l.moveNext())return!1;{const t=e(l.current());if(null==(u=a.get(t).toArray())||0==u.length)return this.yieldReturn(r(l.current(),null))}}}),(function(){Zt(l)}))}))},Ht.prototype.groupJoin=function(t,e,n,r,o){e=Ft(e),n=Ft(n),r=Ft(r),o=Ft(o);var i=this;return new Ht((function(){var l=i.getEnumerator(),a=null;return new Wt((function(){l=i.getEnumerator(),a=Ht.from(t).toLookup(n,Bt.Identity,o)}),(function(){if(l.moveNext()){const t=a.get(e(l.current()));return this.yieldReturn(r(l.current(),t))}return!1}),(function(){Zt(l)}))}))},Ht.prototype.all=function(t){t=Ft(t);var e=!0;return this.forEach((function(n){if(!t(n))return e=!1,!1})),e},Ht.prototype.any=function(t){t=Ft(t);var e=this.getEnumerator();try{if(0==arguments.length)return e.moveNext();for(;e.moveNext();)if(t(e.current()))return!0;return!1}finally{Zt(e)}},Ht.prototype.isEmpty=function(){return!this.any()},Ht.prototype.concat=function(){var t=this;if(1==arguments.length){const e=arguments[0];return new Ht((function(){var n,r;return new Wt((function(){n=t.getEnumerator()}),(function(){if(null==r){if(n.moveNext())return this.yieldReturn(n.current());r=Ht.from(e).getEnumerator()}return!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){try{Zt(n)}finally{Zt(r)}}))}))}{const e=arguments;return new Ht((function(){var n;return new Wt((function(){n=Ht.make(t).concat(Ht.from(e).select(Ht.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){const t=n[0];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),n.splice(0,1)}return this.yieldBreak()}),(function(){Ht.from(n).forEach(Zt)}))}))}},Ht.prototype.insert=function(t,e){var n=this;return new Ht((function(){var r,o,i=0,l=!1;return new Wt((function(){r=n.getEnumerator(),o=Ht.from(e).getEnumerator()}),(function(){return i==t&&o.moveNext()?(l=!0,this.yieldReturn(o.current())):r.moveNext()?(i++,this.yieldReturn(r.current())):!(l||!o.moveNext())&&this.yieldReturn(o.current())}),(function(){try{Zt(r)}finally{Zt(o)}}))}))},Ht.prototype.alternate=function(t){var e=this;return new Ht((function(){var n,r,o,i;return new Wt((function(){o=t instanceof Array||null!=t.getEnumerator?Ht.from(Ht.from(t).toArray()):Ht.make(t),(r=e.getEnumerator()).moveNext()&&(n=r.current())}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.current());i=null}if(null!=n||!r.moveNext()){if(null!=n){const t=n;return n=null,this.yieldReturn(t)}return this.yieldBreak()}n=r.current(),i=o.getEnumerator()}}),(function(){try{Zt(r)}finally{Zt(i)}}))}))},Ht.prototype.contains=function(t,e){e=Ft(e);var n=this.getEnumerator();try{for(;n.moveNext();)if(e(n.current())===t)return!0;return!1}finally{Zt(n)}},Ht.prototype.defaultIfEmpty=function(t){var e=this;return void 0===t&&(t=null),new Ht((function(){var n,r=!0;return new Wt((function(){n=e.getEnumerator()}),(function(){return n.moveNext()?(r=!1,this.yieldReturn(n.current())):!!r&&(r=!1,this.yieldReturn(t))}),(function(){Zt(n)}))}))},Ht.prototype.distinct=function(t){return this.except(Ht.empty(),t)},Ht.prototype.distinctUntilChanged=function(t){t=Ft(t);var e=this;return new Ht((function(){var n,r;return new Wt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){const e=t(n.current());if(r!==e)return r=e,this.yieldReturn(n.current())}return this.yieldBreak()}),(function(){Zt(n)}))}))},Ht.prototype.except=function(t,e){e=Ft(e);var n=this;return new Ht((function(){var r,o;return new Wt((function(){r=n.getEnumerator(),o=new ee(e),Ht.from(t).forEach((function(t){o.add(t)}))}),(function(){for(;r.moveNext();){const t=r.current();if(!o.contains(t))return o.add(t),this.yieldReturn(t)}return!1}),(function(){Zt(r)}))}))},Ht.prototype.intersect=function(t,e){e=Ft(e);var n=this;return new Ht((function(){var r,o,i;return new Wt((function(){r=n.getEnumerator(),o=new ee(e),Ht.from(t).forEach((function(t){o.add(t)})),i=new ee(e)}),(function(){for(;r.moveNext();){const t=r.current();if(!i.contains(t)&&o.contains(t))return i.add(t),this.yieldReturn(t)}return!1}),(function(){Zt(r)}))}))},Ht.prototype.sequenceEqual=function(t,e){e=Ft(e);var n=this.getEnumerator();try{const r=Ht.from(t).getEnumerator();try{for(;n.moveNext();)if(!r.moveNext()||e(n.current())!==e(r.current()))return!1;return!r.moveNext()}finally{Zt(r)}}finally{Zt(n)}},Ht.prototype.union=function(t,e){e=Ft(e);var n=this;return new Ht((function(){var r,o,i;return new Wt((function(){r=n.getEnumerator(),i=new ee(e)}),(function(){var e;if(void 0===o){for(;r.moveNext();)if(e=r.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);o=Ht.from(t).getEnumerator()}for(;o.moveNext();)if(e=o.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);return!1}),(function(){try{Zt(r)}finally{Zt(o)}}))}))},Ht.prototype.orderBy=function(t,e){return new _t(this,t,e,!1)},Ht.prototype.orderByDescending=function(t,e){return new _t(this,t,e,!0)},Ht.prototype.reverse=function(){var t=this;return new Ht((function(){var e,n;return new Wt((function(){e=t.toArray(),n=e.length}),(function(){return n>0&&this.yieldReturn(e[--n])}),Bt.Blank)}))},Ht.prototype.shuffle=function(){var t=this;return new Ht((function(){var e;return new Wt((function(){e=t.toArray()}),(function(){if(e.length>0){const t=Math.floor(Math.random()*e.length);return this.yieldReturn(e.splice(t,1)[0])}return!1}),Bt.Blank)}))},Ht.prototype.weightedSample=function(t){t=Ft(t);var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.choose((function(e){var n=t(e);return n<=0?null:{value:e,bound:r+=n}})).toArray()}),(function(){if(n.length>0){const t=Math.floor(Math.random()*r)+1;let e=-1,o=n.length;for(;o-e>1;){const r=Math.floor((e+o)/2);n[r].bound>=t?o=r:e=r}return this.yieldReturn(n[o].value)}return this.yieldBreak()}),Bt.Blank)}))},Ht.prototype.groupBy=function(t,e,n,r){var o=this;return t=Ft(t),e=Ft(e),null!=n&&(n=Ft(n)),r=Ft(r),new Ht((function(){var i;return new Wt((function(){i=o.toLookup(t,e,r).toEnumerable().getEnumerator()}),(function(){for(;i.moveNext();)return null==n?this.yieldReturn(i.current()):this.yieldReturn(n(i.current().key(),i.current()));return!1}),(function(){Zt(i)}))}))},Ht.prototype.partitionBy=function(t,e,n,r){var o,i=this;return t=Ft(t),e=Ft(e),r=Ft(r),null==n?(o=!1,n=function(t,e){return new re(t,e)}):(o=!0,n=Ft(n)),new Ht((function(){var l,a,u,s=[];return new Wt((function(){(l=i.getEnumerator()).moveNext()&&(a=t(l.current()),u=r(a),s.push(e(l.current())))}),(function(){for(var i;1==(i=l.moveNext())&&u===r(t(l.current()));)s.push(e(l.current()));if(s.length>0){const c=n(a,o?Ht.from(s):s);return i?(a=t(l.current()),u=r(a),s=[e(l.current())]):s=[],this.yieldReturn(c)}return!1}),(function(){Zt(l)}))}))},Ht.prototype.buffer=function(t){var e=this;return new Ht((function(){var n;return new Wt((function(){n=e.getEnumerator()}),(function(){for(var e=[],r=0;n.moveNext();)if(e.push(n.current()),++r>=t)return this.yieldReturn(e);return e.length>0&&this.yieldReturn(e)}),(function(){Zt(n)}))}))},Ht.prototype.aggregate=function(t,e,n){return(n=Ft(n))(this.scan(t,e,n).last())},Ht.prototype.average=function(t){t=Ft(t);var e=0,n=0;return this.forEach((function(r){e+=t(r),++n})),e/n},Ht.prototype.count=function(t){t=null==t?Bt.True:Ft(t);var e=0;return this.forEach((function(n,r){t(n,r)&&++e})),e},Ht.prototype.max=function(t){return null==t&&(t=Bt.Identity),this.select(t).aggregate((function(t,e){return t>e?t:e}))},Ht.prototype.min=function(t){return null==t&&(t=Bt.Identity),this.select(t).aggregate((function(t,e){return t<e?t:e}))},Ht.prototype.maxBy=function(t){return t=Ft(t),this.aggregate((function(e,n){return t(e)>t(n)?e:n}))},Ht.prototype.minBy=function(t){return t=Ft(t),this.aggregate((function(e,n){return t(e)<t(n)?e:n}))},Ht.prototype.sum=function(t){return null==t&&(t=Bt.Identity),this.select(t).aggregate(0,(function(t,e){return t+e}))},Ht.prototype.elementAt=function(t){var e,n=!1;if(this.forEach((function(r,o){if(o==t)return e=r,n=!0,!1})),!n)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return e},Ht.prototype.elementAtOrDefault=function(t,e){var n;void 0===e&&(e=null);var r=!1;return this.forEach((function(e,o){if(o==t)return n=e,r=!0,!1})),r?n:e},Ht.prototype.first=function(t){if(null!=t)return this.where(t).first();var e,n=!1;if(this.forEach((function(t){return e=t,n=!0,!1})),!n)throw new Error("first:No element satisfies the condition.");return e},Ht.prototype.firstOrDefault=function(t,e){if(void 0!==t){if(typeof t===Lt||typeof Ft(t)===Lt)return this.where(t).firstOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){return n=t,r=!0,!1})),r?n:e},Ht.prototype.last=function(t){if(null!=t)return this.where(t).last();var e,n=!1;if(this.forEach((function(t){n=!0,e=t})),!n)throw new Error("last:No element satisfies the condition.");return e},Ht.prototype.lastOrDefault=function(t,e){if(void 0!==t){if(typeof t===Lt||typeof Ft(t)===Lt)return this.where(t).lastOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){r=!0,n=t})),r?n:e},Ht.prototype.single=function(t){if(null!=t)return this.where(t).single();var e,n=!1;if(this.forEach((function(t){if(n)throw new Error("single:sequence contains more than one element.");n=!0,e=t})),!n)throw new Error("single:No element satisfies the condition.");return e},Ht.prototype.singleOrDefault=function(t,e){if(void 0===e&&(e=null),null!=t)return this.where(t).singleOrDefault(null,e);var n,r=!1;return this.forEach((function(t){if(r)throw new Error("single:sequence contains more than one element.");r=!0,n=t})),r?n:e},Ht.prototype.skip=function(t){var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){for(n=e.getEnumerator();r++<t&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Zt(n)}))}))},Ht.prototype.skipWhile=function(t){t=Ft(t);var e=this;return new Ht((function(){var n,r=0,o=!1;return new Wt((function(){n=e.getEnumerator()}),(function(){for(;!o;){if(!n.moveNext())return!1;if(!t(n.current(),r++))return o=!0,this.yieldReturn(n.current())}return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Zt(n)}))}))},Ht.prototype.take=function(t){var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){return!!(r++<t&&n.moveNext())&&this.yieldReturn(n.current())}),(function(){Zt(n)}))}))},Ht.prototype.takeWhile=function(t){t=Ft(t);var e=this;return new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){return!(!n.moveNext()||!t(n.current(),r++))&&this.yieldReturn(n.current())}),(function(){Zt(n)}))}))},Ht.prototype.takeExceptLast=function(t){null==t&&(t=1);var e=this;return new Ht((function(){if(t<=0)return e.getEnumerator();var n,r=[];return new Wt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){if(r.length==t)return r.push(n.current()),this.yieldReturn(r.shift());r.push(n.current())}return!1}),(function(){Zt(n)}))}))},Ht.prototype.takeFromLast=function(t){if(t<=0||null==t)return Ht.empty();var e=this;return new Ht((function(){var n,r,o=[];return new Wt((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)o.length==t&&o.shift(),o.push(n.current());return null==r&&(r=Ht.from(o).getEnumerator()),!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){Zt(r)}))}))},Ht.prototype.indexOf=function(t){var e=null;return typeof t===Lt?this.forEach((function(n,r){if(t(n,r))return e=r,!1})):this.forEach((function(n,r){if(n===t)return e=r,!1})),null!==e?e:-1},Ht.prototype.lastIndexOf=function(t){var e=-1;return typeof t===Lt?this.forEach((function(n,r){t(n,r)&&(e=r)})):this.forEach((function(n,r){n===t&&(e=r)})),e},Ht.prototype.cast=function(){return this},Ht.prototype.asEnumerable=function(){return Ht.from(this)},Ht.prototype.toArray=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},Ht.prototype.toLookup=function(t,e,n){t=Ft(t),e=Ft(e),n=Ft(n);var r=new ee(n);return this.forEach((function(n){var o=t(n),i=e(n),l=r.get(o);void 0!==l?l.push(i):r.add(o,[i])})),new ne(r)},Ht.prototype.toObject=function(t,e){t=Ft(t),e=Ft(e);var n={};return this.forEach((function(r){n[t(r)]=e(r)})),n},Ht.prototype.toDictionary=function(t,e,n){t=Ft(t),e=Ft(e),n=Ft(n);var r=new ee(n);return this.forEach((function(n){r.add(t(n),e(n))})),r},Ht.prototype.toJSONString=function(t,e){if(typeof JSON===Dt||null==JSON.stringify)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),t,e)},Ht.prototype.toJoinedString=function(t,e){return null==t&&(t=""),null==e&&(e=Bt.Identity),this.select(e).toArray().join(t)},Ht.prototype.doAction=function(t){var e=this;return t=Ft(t),new Ht((function(){var n,r=0;return new Wt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&(t(n.current(),r++),this.yieldReturn(n.current()))}),(function(){Zt(n)}))}))},Ht.prototype.forEach=function(t){t=Ft(t);var e=0,n=this.getEnumerator();try{for(;n.moveNext()&&!1!==t(n.current(),e++););}finally{Zt(n)}},Ht.prototype.force=function(){var t=this.getEnumerator();try{for(;t.moveNext(););}finally{Zt(t)}},Ht.prototype.letBind=function(t){t=Ft(t);var e=this;return new Ht((function(){var n;return new Wt((function(){n=Ht.from(t(e)).getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){Zt(n)}))}))},Ht.prototype.share=function(){var t,e=this,n=!1;return new Xt((function(){return new Wt((function(){null==t&&(t=e.getEnumerator())}),(function(){if(n)throw new Error("enumerator is disposed");return!!t.moveNext()&&this.yieldReturn(t.current())}),Bt.Blank)}),(function(){n=!0,Zt(t)}))},Ht.prototype.memoize=function(){var t,e,n=this,r=!1;return new Xt((function(){var o=-1;return new Wt((function(){null==e&&(e=n.getEnumerator(),t=[])}),(function(){if(r)throw new Error("enumerator is disposed");return o++,t.length<=o?!!e.moveNext()&&this.yieldReturn(t[o]=e.current()):this.yieldReturn(t[o])}),Bt.Blank)}),(function(){r=!0,Zt(e),t=null}))},Gt()&&(Ht.prototype[Symbol.iterator]=function(){return{enumerator:this.getEnumerator(),next:function(){return this.enumerator.moveNext()?{done:!1,value:this.enumerator.current()}:{done:!0}}}}),Ht.prototype.catchError=function(t){t=Ft(t);var e=this;return new Ht((function(){var n;return new Wt((function(){n=e.getEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.current())}catch(e){return t(e),!1}}),(function(){Zt(n)}))}))},Ht.prototype.finallyAction=function(t){t=Ft(t);var e=this;return new Ht((function(){var n;return new Wt((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){try{Zt(n)}finally{t()}}))}))},Ht.prototype.log=function(t){return t=Ft(t),this.doAction((function(t){}))},Ht.prototype.trace=function(t,e){return null==t&&(t="Trace"),e=Ft(e),this.doAction((function(t){}))};var _t=function(t,e,n,r,o){this.source=t,this.keySelector=Ft(e),this.descending=r,this.parent=o,n&&(this.comparer=Ft(n))};_t.prototype=new Ht,_t.prototype.createOrderedEnumerable=function(t,e,n){return new _t(this.source,t,e,n,this)},_t.prototype.thenBy=function(t,e){return this.createOrderedEnumerable(t,e,!1)},_t.prototype.thenByDescending=function(t,e){return this.createOrderedEnumerable(t,e,!0)},_t.prototype.getEnumerator=function(){var t,e,n=this,r=0;return new Wt((function(){t=[],e=[],n.source.forEach((function(n,r){t.push(n),e.push(r)}));var r=Jt.create(n,null);r.GenerateKeys(t),e.sort((function(t,e){return r.compare(t,e)}))}),(function(){return r<e.length&&this.yieldReturn(t[e[r++]])}),Bt.Blank)};var Jt=function(t,e,n,r){this.keySelector=t,this.descending=n,this.child=r,this.comparer=e,this.keys=null};Jt.create=function(t,e){var n=new Jt(t.keySelector,t.comparer,t.descending,e);return null!=t.parent?Jt.create(t.parent,n):n},Jt.prototype.GenerateKeys=function(t){var e=t.length,n=this.keySelector,r=new Array(e);for(let o=0;o<e;o++)r[o]=n(t[o]);this.keys=r,null!=this.child&&this.child.GenerateKeys(t)},Jt.prototype.compare=function(t,e){var n=this.comparer?this.comparer(this.keys[t],this.keys[e]):Vt(this.keys[t],this.keys[e]);return 0==n?null!=this.child?this.child.compare(t,e):Vt(t,e):this.descending?-n:n};var Xt=function(t,e){this.dispose=e,Ht.call(this,t)};Xt.prototype=new Ht;var Kt=function(t){this.getSource=function(){return t}};Kt.prototype=new Ht,Kt.prototype.any=function(t){return null==t?this.getSource().length>0:Ht.prototype.any.apply(this,arguments)},Kt.prototype.count=function(t){return null==t?this.getSource().length:Ht.prototype.count.apply(this,arguments)},Kt.prototype.elementAt=function(t){var e=this.getSource();return 0<=t&&t<e.length?e[t]:Ht.prototype.elementAt.apply(this,arguments)},Kt.prototype.elementAtOrDefault=function(t,e){void 0===e&&(e=null);var n=this.getSource();return 0<=t&&t<n.length?n[t]:e},Kt.prototype.first=function(t){var e=this.getSource();return null==t&&e.length>0?e[0]:Ht.prototype.first.apply(this,arguments)},Kt.prototype.firstOrDefault=function(t,e){if(void 0!==t)return Ht.prototype.firstOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[0]:e},Kt.prototype.last=function(t){var e=this.getSource();return null==t&&e.length>0?e[e.length-1]:Ht.prototype.last.apply(this,arguments)},Kt.prototype.lastOrDefault=function(t,e){if(void 0!==t)return Ht.prototype.lastOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[n.length-1]:e},Kt.prototype.skip=function(t){var e=this.getSource();return new Ht((function(){var n;return new Wt((function(){n=t<0?0:t}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),Bt.Blank)}))},Kt.prototype.takeExceptLast=function(t){return null==t&&(t=1),this.take(this.getSource().length-t)},Kt.prototype.takeFromLast=function(t){return this.skip(this.getSource().length-t)},Kt.prototype.reverse=function(){var t=this.getSource();return new Ht((function(){var e;return new Wt((function(){e=t.length}),(function(){return e>0&&this.yieldReturn(t[--e])}),Bt.Blank)}))},Kt.prototype.sequenceEqual=function(t,e){return(!(t instanceof Kt||t instanceof Array)||null!=e||Ht.from(t).count()==this.count())&&Ht.prototype.sequenceEqual.apply(this,arguments)},Kt.prototype.toJoinedString=function(t,e){var n=this.getSource();return null==e&&n instanceof Array?(null==t&&(t=""),n.join(t)):Ht.prototype.toJoinedString.apply(this,arguments)},Kt.prototype.getEnumerator=function(){var t=this.getSource(),e=-1;return{current:function(){return t[e]},moveNext:function(){return++e<t.length},dispose:Bt.Blank}};var $t=function(t,e){this.prevSource=t,this.prevPredicate=e};$t.prototype=new Ht,$t.prototype.where=function(t){if((t=Ft(t)).length<=1){const e=this.prevPredicate,n=function(n){return e(n)&&t(n)};return new $t(this.prevSource,n)}return Ht.prototype.where.call(this,t)},$t.prototype.select=function(t){return(t=Ft(t)).length<=1?new te(this.prevSource,this.prevPredicate,t):Ht.prototype.select.call(this,t)},$t.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSource;return new Wt((function(){t=n.getEnumerator()}),(function(){for(;t.moveNext();)if(e(t.current()))return this.yieldReturn(t.current());return!1}),(function(){Zt(t)}))};var te=function(t,e,n){this.prevSource=t,this.prevPredicate=e,this.prevSelector=n};te.prototype=new Ht,te.prototype.where=function(t){return(t=Ft(t)).length<=1?new $t(this,t):Ht.prototype.where.call(this,t)},te.prototype.select=function(t){if((t=Ft(t)).length<=1){const e=this.prevSelector,n=function(n){return t(e(n))};return new te(this.prevSource,this.prevPredicate,n)}return Ht.prototype.select.call(this,t)},te.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSelector,r=this.prevSource;return new Wt((function(){t=r.getEnumerator()}),(function(){for(;t.moveNext();)if(null==e||e(t.current()))return this.yieldReturn(n(t.current()));return!1}),(function(){Zt(t)}))};var ee=function(){var t=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e=function(t){return null===t?"null":void 0===t?"undefined":typeof t.toString===Lt?t.toString():Object.prototype.toString.call(t)},n=function(t,e){this.key=t,this.value=e,this.prev=null,this.next=null},r=function(){this.first=null,this.last=null};r.prototype={addLast:function(t){null!=this.last?(this.last.next=t,t.prev=this.last,this.last=t):this.first=this.last=t},replace:function(t,e){null!=t.prev?(t.prev.next=e,e.prev=t.prev):this.first=e,null!=t.next?(t.next.prev=e,e.next=t.next):this.last=e},remove:function(t){null!=t.prev?t.prev.next=t.next:this.first=t.next,null!=t.next?t.next.prev=t.prev:this.last=t.prev}};var o=function(t){this.countField=0,this.entryList=new r,this.buckets={},this.compareSelector=null==t?Bt.Identity:t};return o.prototype={add:function(r,o){var i=this.compareSelector(r),l=e(i),a=new n(r,o);if(t(this.buckets,l)){const t=this.buckets[l];for(let e=0;e<t.length;e++)if(this.compareSelector(t[e].key)===i)return this.entryList.replace(t[e],a),void(t[e]=a);t.push(a)}else this.buckets[l]=[a];this.countField++,this.entryList.addLast(a)},get:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o)){var i=this.buckets[o];for(let t=0;t<i.length;t++){const e=i[t];if(this.compareSelector(e.key)===r)return e.value}}},set:function(r,o){var i=this.compareSelector(r),l=e(i);if(t(this.buckets,l)){const t=this.buckets[l];for(let e=0;e<t.length;e++)if(this.compareSelector(t[e].key)===i){const i=new n(r,o);return this.entryList.replace(t[e],i),t[e]=i,!0}}return!1},contains:function(n){var r=this.compareSelector(n),o=e(r);if(!t(this.buckets,o))return!1;var i=this.buckets[o];for(let t=0;t<i.length;t++)if(this.compareSelector(i[t].key)===r)return!0;return!1},clear:function(){this.countField=0,this.buckets={},this.entryList=new r},remove:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o)){var i=this.buckets[o];for(let t=0;t<i.length;t++)if(this.compareSelector(i[t].key)===r)return this.entryList.remove(i[t]),i.splice(t,1),0==i.length&&delete this.buckets[o],void this.countField--}},count:function(){return this.countField},toEnumerable:function(){var t=this;return new Ht((function(){var e;return new Wt((function(){e=t.entryList.first}),(function(){if(null!=e){const t={key:e.key,value:e.value};return e=e.next,this.yieldReturn(t)}return!1}),Bt.Blank)}))}},o}(),ne=function(t){this.count=function(){return t.count()},this.get=function(e){return Ht.from(t.get(e))},this.contains=function(e){return t.contains(e)},this.toEnumerable=function(){return t.toEnumerable().select((function(t){return new re(t.key,t.value)}))}},re=function(t,e){this.key=function(){return t},Kt.call(this,e)};re.prototype=new Kt;const oe={readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},dataValue:{type:Array||Number,default:!0}},ie=n.defineComponent({name:"NvStructureTypeSelect",components:{},emits:["update","on-change"],props:oe,setup:(t,e)=>new le(t,e)});class le extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"selWidth",n.ref(100)),u(this,"StructureTypeSel",n.ref()),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeDataAll",[]),u(this,"StructureTypeData",n.ref([])),u(this,"StructureTypeCheckData",n.ref([])),u(this,"searchView",n.ref(!1)),u(this,"searchValue",n.ref("")),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structrueTypeLevGroup",n.ref([])),u(this,"activeTypeItem",n.ref({})),u(this,"TypeTextValue",n.ref("")),u(this,"typeItemClick",((t,e)=>{if(t.level=e,1==e&&(this.activeTypeItem.value=t),this.structrueTypeLevGroup.value.find((t=>t.level==e))){let n=Ht.from(this.structrueTypeLevGroup.value).indexOf((t=>t.level==e));this.structrueTypeLevGroup.value[n]=t,this.structrueTypeLevGroup.value.splice(n+1,this.structrueTypeLevGroup.value.length)}else this.structrueTypeLevGroup.value.push(t);n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)}})),this.TypeValue.value=[this.activeTypeItem.value.value].concat(this.structrueTypeLevGroup.value.map((t=>t.value))),this.props.multiple||(this.StructureTypeCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"typeCheckFun",((t,e)=>{if(e)this.StructureTypeCheckData.value.push(t);else{let e=Ht.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));this.StructureTypeCheckData.value.splice(e,1)}this.doSelectedAfterFun()})),u(this,"removeStructureType",(t=>{this.changeTreeItem(this.StructureTypeData.value,t.value,"checked",!1);let e=Ht.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));this.StructureTypeCheckData.value.splice(e,1)})),u(this,"poptipVisChange",(()=>{n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)}}))})),u(this,"poptipHideFun",(()=>{this.searchValue.value&&0==this.searchTypeList.value.length&&(this.searchView.value=!1,this.searchValue.value="")})),u(this,"searchTypeList",n.ref([])),u(this,"searchTypeFun",(()=>{let t=this.StructureTypeDataAll.filter((t=>t.NodeName.indexOf(this.searchValue.value)>=0));this.searchTypeList.value=t.map((t=>(t.checked=!!this.StructureTypeCheckData.value.find((e=>e.value==t.Id)),t))),n.nextTick((()=>{if(this.StructureTypeSel.value){let t=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(t)+16}}))})),u(this,"toSelectSearchType",(t=>{this.TypeValue.value=t.parentPath.concat([t.Id]),this.StructureTypeCheckData.value=[{value:t.Id,label:t.NodeName,parentPath:t.parentPath}],this.doSelectedAfterFun(),this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value),this.poptipVisChange(),this.searchValue.value="",this.searchView.value=!1,this.searchTypeList.value=[]})),u(this,"toCheckSearchType",((t,e)=>{let n=Ht.from(this.StructureTypeCheckData.value).indexOf((e=>e.value==t.value));e||n>=0?(this.StructureTypeCheckData.value.push({value:t.Id,label:t.NodeName,parentPath:t.parentPath}),this.changeTreeItem(this.StructureTypeData.value,t.Id,"checked",!0)):(this.StructureTypeCheckData.value.splice(n,1),this.changeTreeItem(this.StructureTypeData.value,t.Id,"checked",!1))})),u(this,"confirmSearchTypeData",(()=>{this.doSelectedAfterFun(),this.searchValue.value="",this.searchView.value=!1,this.structrueTypeLevGroup.value=[],this.searchTypeList.value=[],this.poptipVisChange()})),this.props=t,this.ctx=e,this.loadSelectData()}async loadSelectData(){let t=window.G_StructureTypeData;t&&0!=t.length||(t=this.utilities.parseApiResult(await this.dataStructureApi.getEntities((new r.QueryWrapper).select(["Id","PId","NodeName"]).orderBy(["OrderNo"]))),window.G_StructureTypeData=t),this.StructureTypeDataAll=t,this.StructureTypeData.value=this.formatToIViewCascaderData(t,0,"Id","NodeName"),this.props.multiple||this.loadTypeLevGroupData(this.StructureTypeData.value),n.watch((()=>this.props.dataValue),((t,e)=>{this.setStructureTypeCheckData(this.StructureTypeData.value),this.props.multiple||(this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value))}),{immediate:!0})}loadTypeLevGroupData(t){t.map((t=>{if(this.StructureTypeCheckData.value[0]){this.StructureTypeCheckData.value[0].parentPath.includes(t.value)&&this.structrueTypeLevGroup.value.push(t),t.children&&t.children.length>0&&this.loadTypeLevGroupData(t.children)}}))}doSelectedAfterFun(){this.props.multiple?this.ctx.emit("on-change",this.StructureTypeCheckData.value.map((t=>t.value))):this.ctx.emit("on-change",this.StructureTypeCheckData.value[0].value)}formatToIViewCascaderData(t,e=0,n,r,o=[]){let i=t.filter((t=>t.PId==e)),l=JSON.parse(JSON.stringify(o));return e>0&&l.push(e),i=i.map((e=>{let o={};o.value=e[n],o.label=e[r],o.parentPath=JSON.parse(JSON.stringify(l));let i=Ht.from(this.StructureTypeDataAll).indexOf((t=>t.Id==o.value));return this.StructureTypeDataAll[i].parentPath=o.parentPath,o.level=o.parentPath.length+1,this.props.multiple?(o.checked=!!this.props.dataValue.find((t=>t==o.value)),o.checked&&this.StructureTypeCheckData.value.push(o)):this.props.dataValue==o.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(l)).concat([o.value]),this.StructureTypeCheckData.value=[o]),t.filter((t=>t.PId==e.Id)).length>0?o.children=this.formatToIViewCascaderData(t,e.Id,n,r,l):o.children=[],o})),i}setStructureTypeCheckData(t){t.map((t=>{this.props.multiple?(t.checked=!!this.props.dataValue.find((e=>e==t.value)),t.checked&&this.StructureTypeCheckData.value.push(t)):this.props.dataValue==t.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(t.parentPath)).concat([t.value]),this.StructureTypeCheckData.value=[t]),t.children&&t.children.length>0&&this.setStructureTypeCheckData(t.children)}))}changeTreeItem(t,e,n,r){t.map((t=>{t.value!=e?t.children&&t.children.length>0&&this.changeTreeItem(t.children,e,n,r):t[n]=r}))}}const ae={key:0},ue={key:0,ref:"StructureTypeSel",style:{height:"220px",display:"inline-block"}},se={class:"nv-cascader-box nv-overflow-auto"},ce=["onClick"],fe={key:0,class:"nv-cascader-box nv-overflow-auto"},he=["onClick"],pe={key:1,ref:"StructureTypeSel",style:{display:"inline-block"}},de={key:0,style:{padding:"5px 10px",color:"#c5c8ce","text-align":"center",width:"150px"}},ye={key:1},ve={class:"nv-overflow-auto",style:{"max-height":"220px"}},ge=["onClick"],me={key:0,class:"nv-text-r",style:{"padding-right":"10px"}};const be=h(ie,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Tag"),u=n.resolveComponent("Checkbox"),s=n.resolveComponent("Icon"),c=n.resolveComponent("Button"),f=n.resolveComponent("Poptip");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(f,{placement:"bottom-start","transfer-class-name":"nvstructuretype-sel-box",width:t.selWidth,transfer:"",disabled:t.readonly,onOnPopperShow:e[6]||(e[6]=e=>t.poptipVisChange()),onOnPopperHide:t.poptipHideFun},{content:n.withCtx((()=>[t.searchValue?(n.openBlock(),n.createElementBlock("div",pe,[0==t.searchTypeList.length?(n.openBlock(),n.createElementBlock("div",de,"无匹配数据")):(n.openBlock(),n.createElementBlock("div",ye,[n.createElementVNode("div",ve,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.searchTypeList,((r,o)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-cascader-item nv-c-p",onClick:e=>t.multiple?null:t.toSelectSearchType(r)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:r.checked,"onUpdate:modelValue":t=>r.checked=t,onClick:e[5]||(e[5]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.toCheckSearchType(r,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.NodeName),1)],8,ge)))),256))]),t.multiple?(n.openBlock(),n.createElementBlock("div",me,[n.createVNode(c,{type:"primary",size:"small",onClick:t.confirmSearchTypeData},{default:n.withCtx((()=>[n.createTextVNode("确认")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0)]))],512)):(n.openBlock(),n.createElementBlock("div",ue,[n.createElementVNode("div",se,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.StructureTypeData,(r=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:t.TypeValue.includes(r.value)}]),key:r.value,onClick:e=>t.typeItemClick(r,1)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:r.checked,"onUpdate:modelValue":t=>r.checked=t,onClick:e[3]||(e[3]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.typeCheckFun(r,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.label)+" ",1),r.children&&r.children.length>0?(n.openBlock(),n.createBlock(s,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,ce)))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.structrueTypeLevGroup,(r=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[r&&r.children&&r.children.length>0?(n.openBlock(),n.createElementBlock("div",fe,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.children,(o=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:t.TypeValue.includes(o.value)}]),key:o.value,onClick:e=>t.typeItemClick(o,r.level+1)},[t.multiple?(n.openBlock(),n.createBlock(u,{key:0,modelValue:o.checked,"onUpdate:modelValue":t=>o.checked=t,onClick:e[4]||(e[4]=n.withModifiers((()=>{}),["stop"])),onOnChange:e=>t.typeCheckFun(o,e)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(o.label)+" ",1),o.children&&o.children.length>0?(n.openBlock(),n.createBlock(s,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,he)))),128))])):n.createCommentVNode("",!0)],64)))),256))],512))])),default:n.withCtx((()=>[n.createElementVNode("div",{class:"nv-c-p structuretype-sel-box",onClick:e[2]||(e[2]=e=>t.readonly?null:t.searchView=!0)},[0!=t.StructureTypeCheckData.length||t.searchValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.multiple?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(t.StructureTypeCheckData,((e,r)=>n.withDirectives((n.openBlock(),n.createBlock(a,{style:{position:"relative","z-index":"5"},closable:!t.readonly,key:r,onOnClose:n=>t.removeStructureType(e)},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.label),1)])),_:2},1032,["closable","onOnClose"])),[[n.vShow,!t.searchValue]]))),128)):(n.openBlock(),n.createElementBlock("div",{key:1,style:n.normalizeStyle({visibility:t.searchValue?"hidden":"visible"}),class:"nv-text-nowrap"},n.toDisplayString(t.StructureTypeCheckData[0]?t.StructureTypeCheckData[0].label:""),5))],64)):(n.openBlock(),n.createElementBlock("div",ae,"选择构件类别")),t.searchView?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,class:"nv-pos-a searchinput",style:{top:"0",left:"0",width:"100%"},"onUpdate:modelValue":e[0]||(e[0]=e=>t.searchValue=e),onInput:e[1]||(e[1]=(...e)=>t.searchTypeFun&&t.searchTypeFun(...e))},null,544)),[[n.vModelText,t.searchValue]]):n.createCommentVNode("",!0)])])),_:1},8,["width","disabled","onOnPopperHide"])])}],["__scopeId","data-v-ef373745"]]),Ae={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},dataValue:{type:Array||Number,default:!0}},ke=n.defineComponent({name:"NvStructureSelect",components:{},emits:["update","on-change"],props:Ae,setup:(t,e)=>new we(t,e)});class we extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstanceApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{this.unitData.value=this.TypeGroupData.value.find((t=>t.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async t=>{this.activeUnitName=this.unitData.value.find((e=>e.Id==t)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let e=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",t)));this.StructureInstanceData.value=e.map((t=>(t.title=t.NodeName,t.UnitName=this.activeUnitName,t.loading=!1,t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children=[],t))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(t,e)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",t.Id)));if(0==n.length)return t.children=void 0,void e([]);n=n.map((t=>(t.title=t.NodeName,t.loading=!1,t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children=[],t))),e(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((t,e)=>{e.checked?this.StructureInstanceCheckData.value.push(e):this.removeStructureInstance(e),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((t,e)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[e],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(t=>{t.checked=!1;let e=Ht.from(this.StructureInstanceCheckData.value).indexOf((e=>e.Id==t.Id));this.StructureInstanceCheckData.value.splice(e,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=t,this.ctx=e,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName"]).eq("PId",0)));if(this.TypeGroupData.value=Ht.from(t).groupBy((t=>t.NodeTypeName)).select((t=>({NodeTypeName:t.key(),UnitData:t.getSource()}))).toArray(),1!=this.props.selType){if(this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let t="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId"]).in("Id",t))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((t=>{let e=this.unitData.value.find((e=>e.Id==t.RootId));return t.UnitName=e?e.NodeName:"",t}))}}else this.UnitValue.value=this.props.dataValue}unitSelectChange(){this.doSelectedAfterFun()}treeChStateChange(t){t.map((t=>{t.checked=!!this.StructureInstanceCheckData.value.find((e=>e.Id==t.Id)),t.children&&t.children.length>0&&this.treeChStateChange(t.children)}))}doSelectedAfterFun(){1==this.props.selType?this.ctx.emit("on-change",this.UnitValue.value):this.ctx.emit("on-change",this.StructureInstanceCheckData.value.map((t=>t.Id)))}}const Ee={key:1},Ne={class:"nv-pos-r"},Oe={class:"nv-c-p structure-sel-box"},xe={key:0},Ie={key:0,class:"nv-text-nowrap"},Te={key:1},Se={key:0},Re={key:1},Be={key:0,style:{"margin-bottom":"10px"}},je={class:"nv-flex",style:{height:"280px"}},Ce={class:"nv-flex-1 nv-flex-col nv-full-h"},Me=(t=>(n.pushScopeId("data-v-fbbaca53"),t=t(),n.popScopeId(),t))((()=>n.createElementVNode("div",null,"单位工程:",-1))),De={class:"nv-flex-1 nv-overflow-auto"},Le={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Pe={key:0},Fe={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},Ue={key:0},Ve={key:1};const Ze=h(ke,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Option"),u=n.resolveComponent("OptionGroup"),s=n.resolveComponent("Select"),c=n.resolveComponent("Radio"),f=n.resolveComponent("RadioGroup"),h=n.resolveComponent("nvLoading"),p=n.resolveComponent("Tree"),d=n.resolveComponent("Poptip"),y=n.resolveComponent("Icon");return 1==t.selType?(n.openBlock(),n.createBlock(s,{key:0,modelValue:t.UnitValue,"onUpdate:modelValue":e[0]||(e[0]=e=>t.UnitValue=e),multiple:t.multiple,transfer:"",filterable:"",clearable:"",onOnChange:t.unitSelectChange,disabled:t.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.TypeGroupData,((t,e)=>(n.openBlock(),n.createBlock(u,{label:t.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.UnitData,(t=>(n.openBlock(),n.createBlock(a,{value:t.Id,key:t.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):(n.openBlock(),n.createElementBlock("div",Ee,[n.createVNode(d,{placement:"bottom-start",width:700,transfer:""},{content:n.withCtx((()=>[t.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",Be,[n.createVNode(f,{modelValue:t.activeNodeType,"onUpdate:modelValue":e[1]||(e[1]=e=>t.activeNodeType=e),type:"button",size:"small","button-style":"solid",onOnChange:t.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.TypeGroupData,((t,e)=>(n.openBlock(),n.createBlock(c,{key:e,label:t.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",je,[n.createElementVNode("div",Ce,[Me,n.createElementVNode("div",De,[n.createVNode(f,{modelValue:t.activeUnit,"onUpdate:modelValue":e[2]||(e[2]=e=>t.activeUnit=e),vertical:"",onOnChange:t.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.unitData,((t,e)=>(n.openBlock(),n.createBlock(c,{label:t.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(t.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==t.selType?(n.openBlock(),n.createElementBlock("div",Le,[t.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(p,{key:1,style:{width:"calc(100% - 30px)"},data:t.StructureInstanceData,"load-data":t.loadStructureInstance,"check-strictly":!0,"show-checkbox":t.multiple,onOnCheckChange:t.StructureInstanceCheckFun,onOnSelectChange:t.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",Ne,[n.createElementVNode("div",Oe,[0==t.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",xe,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.multiple?(n.openBlock(),n.createElementBlock("div",Ie," 已选择"+n.toDisplayString(t.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(t.StructureInstanceCheckData.map((t=>t.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",Te,[n.createTextVNode(n.toDisplayString(t.StructureInstanceCheckData[0].NodeName)+" ",1),t.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",Se,"["+n.toDisplayString(t.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",Re,"["+n.toDisplayString(t.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1}),t.multiple?(n.openBlock(),n.createElementBlock("div",Pe,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.StructureInstanceCheckData,((e,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[t.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(y,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>t.removeStructureInstance(e)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",Fe,[n.createTextVNode(n.toDisplayString(e.NodeName)+" ",1),e.NodeTypeName?(n.openBlock(),n.createElementBlock("span",Ue,"["+n.toDisplayString(e.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.UnitName?(n.openBlock(),n.createElementBlock("span",Ve,"["+n.toDisplayString(e.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-fbbaca53"]]),Ge={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"}},Qe=n.defineComponent({name:"UploadFileList",components:{filePreview:y},emits:["success","returnFileList"],props:Ge,setup:(t,e)=>new ze(t,e)});class ze extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"isShowEye",n.ref(!0)),u(this,"isShowtrash",n.ref(!0)),u(this,"isShowUpBtn",n.ref(!0)),u(this,"mainGridApi",""),u(this,"uploadListGridRef",n.ref([])),u(this,"uploadListGridOption",n.reactive({api:this.mainGridApi,setting:{searchConfig:{btnSpan:6,labelWidth:120,defaultShowSearch:!1},isPagination:!1,toolbarConfig:{isButtonGroup:!1},editConfig:{trigger:"click",mode:"row",showStatus:!0,beforeEditMethod:({row:t})=>!this.props.readonly},rowConfig:{isCurrent:!0,isHover:!0}},searchOptions:[],toolbars:[],rightToolbars:[{name:"refresh",isShow:()=>!1}],columns:[{colType:"seq"},{colType:"ed",title:"文件名称",field:"FileName",align:"left",minWidth:100},{colType:"ro",title:"创建日期",field:"CreateTime",align:"center",format:(t,e)=>t("span",{},e.row.CreateTime?e.row.CreateTime.slice(0,10):"")},{title:"操作",width:this.isShowtrash.value?160:120,rowButtons:[{name:"edit_",text:"预览",type:"primary",onclick:t=>{this.doView(t)},isShow:t=>this.isShowEye.value},{name:"view_",text:"下载",onclick:t=>{this.doDwonload(t)},isShow:t=>!0},{name:"delete_",text:"删除",type:"error",onclick:t=>{this.doRemove(t)},isShow:t=>!this.isShowtrash.value}]}],event:{}})),u(this,"getuploadListGridRef",((t,e)=>{t&&(this.uploadListGridRef.value[e]=t)})),u(this,"loadUploadListData",(()=>{let t=this.getGroupFiles("默认");this.uploadListGridRef.value[0].loadData((async e=>{e.success(t)}))})),u(this,"uploadGridSave",(async()=>{let t=this.uploadListGridRef.value[0].getSaveDatas();if((null==t?void 0:t.length)<=0)return this.message.warning("没有需要保存的数据");this.uploading.value=!0,this.utilities.parseApiResult(await this.fileInfoApi.saves(t))>0?(this.loadFileList(!0),this.message.success("附件信息修改成功!"),this.uploading.value=!1):(this.message.error("附件信息修改失败"),this.uploading.value=!1)})),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!1)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((t,e,n)=>{const r=this.utilities.parseApiResult(t);this.uploading.value=!1,"0"==r.Code?(this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)):this.message.error(r.Msg)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"doBeforeUpload",(()=>{this.message.info("文件上传中,请稍等"),this.uploading.value=!0})),u(this,"doRemove",(t=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${t.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const e=await this.fileApi.deleteFile(t.Token,t.Id);this.utilities.parseApiResult(e)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(t=>{const e=this.fileApi.getFileUrl(t.Token,t.Id);window.open(e)})),u(this,"getGroupFiles",(t=>"默认"==t?this.fileList.value:this.fileList.value.filter((e=>e.GroupName==t)))),u(this,"getSingle",(t=>{const e=this.getGroupFiles(t);return this.props.single&&e.length>0})),u(this,"getFirstFile",(t=>{const e=this.getGroupFiles(t);return 0==e.length?void 0:e[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(t=>{const e=t.FileExt;return"jpg"==e||"png"==e||"jpeg"==e||"gif"==e||"svg"==e})),u(this,"getImgUrl",(t=>this.fileApi.getFileUrl(t.Token,t.Id))),u(this,"getThumbnailUrl",(t=>this.isImage(t)?this.getImgUrl(t):this.getFileIcon(t.FileExt))),u(this,"getFileIcon",(t=>{const e={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjRCOTIzMDEwNzE5RTExRTdBOEQ5Q0NFM0IyNDAxOEEyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjRCOTIzMDExNzE5RTExRTdBOEQ5Q0NFM0IyNDAxOEEyIj4gPHhtcE1NOk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Cc10vli/oQ6xvL1TFeGCXZJYOC5K5BRiL/os5nixxtUKnT8aQGDqkWw4nLjKWMbWZhgQPGQJEKlyM41FP4MgKg4LziswgnWTgIjWNtp8kG8ugblGCpNrosKDJORZyAk41AFWFRGxBK2VkVjW07w2mRAugoi7IMR+cXYScSVXH9VQTHHfLdrhatunrmcivSIW+s+aDcqV9Y9vZ2Yn29nYI9Q/rtZBlQblZLDOKtrY2NDc3k1hCopEUsQDlKtz7PNauOaR35uHel/S0b7lYjjLhE7h0ZDGS/XvBORaCYUUL0ExKB79AMvgNPK1vgXcvt1xsxpox2Y9o3zuWBVW7LEAWIAsQvUE6nuKQyhi7B5IEDI1qPykw+kNHhjS3CpwiJYDkbAxOQYHLIVe22IzZ4KXBxWwIgmMr/9ICl5imJAYxQk2E1bIBUhz33hI8KbmBDkD2Re8jna3sL8oVlYHc+AYdgARHI6J1HyAjVQaSojAISc/A2/IcPWne17oB4eBKxAK74GKvkKAtlQEMi6TchPScnZi35Fn6mlWvfwXgP6I/yFCOV/HwDAM7U74X0uQDpGpiGPNXoB2CYar6zTqK4Rh0+vTpy9FoNHE7tBShUOiaYUAdHR3xnp6eK7IsK7UMJxgMjm/cuPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let h="";switch(t){case"rar":case"zip":h=l.img;break;case"doc":case"docx":h=e.img;break;case"xls":case"xlsx":h=n.img;break;case"pdf":h=o.img;break;case"ppt":case"pptx":h=r.img;break;case"png":case"jpg":h=i.img;break;case"mov":h=a.img;break;case"mp3":h=u.img;break;case"mp4":h=s.img;break;case"html":case"htm":h=c.img;break;default:h=f.img}return h})),u(this,"doView",(t=>{this.previewFileInfo=t,this.previewVisible.value=!0,this.previewIndex.value=t.PreviewIndex})),this.props=t,this.ctx=e,this.useUploadFile()}async useUploadFile(){n.watch((()=>this.props.token),((t,e)=>{this.setCurrentToken(),this.setUploadFilePos()})),n.watchEffect((()=>{this.isShowtrash.value=this.props.readonly})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`,this.action.value=this.uploadApi.getUploadFileUrl()}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const t of this.props.groups){const e=this.getUploadFilePo(t);this.uploadFilePos[t]=e}}getUploadFilePo(t){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,t,this.props.extraInfo,this.props.isCompress)}async loadFileList(t=!1){this.uploading.value=!0;let e=this.currentToken.split(",");const n=await this.fileInfoApi.getEntities(r.QueryWrapper.create().in("Token",e));this.fileList.value=this.utilities.parseApiResult(n),this.uploading.value=!1,t&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.loadUploadListData(),this.setPreviewList()}setPreviewList(){let t=0;this.previewList.value=[];for(const e of this.fileList.value)this.isImage(e)&&(e.PreviewIndex=t,this.previewList.value.push(this.getImgUrl(e)),t++)}}const Ye={class:"uploadFileList"},We={class:"up-btn-box"};const qe=h(Qe,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("Spin"),u=n.resolveComponent("Button"),s=n.resolveComponent("Upload"),c=n.resolveComponent("NvGrid"),f=n.resolveComponent("Card"),h=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",Ye,[t.uploading?(n.openBlock(),n.createBlock(a,{key:0,fix:"",size:"large"})):n.createCommentVNode("",!0),t.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode("附件列表暂不支持分组")],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(t.groups,((e,r)=>(n.openBlock(),n.createBlock(f,{"dis-hover":"",key:r,style:{"margin-bottom":"8px",height:"100%"}},n.createSlots({default:n.withCtx((()=>[n.createElementVNode("div",We,[t.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:t.multiple,"show-upload-list":!1,format:t.format,"max-size":t.maxSize,action:t.action,headers:t.headers,data:t.uploadFilePos[e],"on-success":t.doSuccess,"on-format-error":t.doFormatError,"on-exceeded-size":t.doMaxSize,"before-upload":t.doBeforeUpload,style:{display:"inline-block",width:"54px"}},{default:n.withCtx((()=>[t.isShowUpBtn?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",size:"small"},{default:n.withCtx((()=>[n.createTextVNode("上传")])),_:1})):n.createCommentVNode("",!0)])),_:2},1032,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])),t.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:1,type:"primary",size:"small",onClick:t.uploadGridSave},{default:n.withCtx((()=>[n.createTextVNode("保存")])),_:1},8,["onClick"]))]),n.createVNode(c,{ref_for:!0,ref:e=>t.getuploadListGridRef(e,r),option:t.uploadListGridOption},null,8,["option"])])),_:2},["默认"!=e?{name:"title",fn:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e),1)])),key:"0"}:void 0]),1024)))),128)),n.createVNode(h,{modelValue:t.previewVisible,"onUpdate:modelValue":e[0]||(e[0]=e=>t.previewVisible=e),"preview-list":t.previewList,"preview-index":t.previewIndex,"file-info":t.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-cd979ed3"]]),He={onlyView:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>{}}},_e=n.defineComponent({name:"NvComFormUp",components:{UploadFile:S,TextEditor:Nt,NvDicSelect:Rt,NvStructureTypeSelect:be,NvStructureSelect:Ze,UploadFileList:qe},emits:["textChange","TokenChange"],props:He,setup:(t,e)=>new Je(t,e)});class Je extends e.BaseInstance{constructor(t,e){super(),u(this,"props"),u(this,"ctx"),u(this,"textEditorRef",n.ref()),u(this,"saveTextData",(async()=>{this.textEditorRef.value.saveTextData()})),u(this,"clearTextData",(async()=>{this.textEditorRef.value.clearTextData()})),u(this,"deleteTextData",(async()=>{this.textEditorRef.value.deleteTextData()})),u(this,"deleteTextDataByToken",(async t=>{this.textEditorRef.value.deleteTextDataByToken(t)})),u(this,"getText",(()=>this.textEditorRef.value.getText())),u(this,"tokenList",((t,e)=>{this.ctx.emit("TokenChange",t),t.list.length>0?this.props.formModel[e.model]=t.token:this.props.formModel[e.model]=""})),u(this,"textChange",((t,e)=>{var n;null==(n=t.textEditorProp)||n.onChange(e)})),u(this,"StructureOnChange",((t,e)=>{this.props.formModel[t.model]=e})),u(this,"getPropValue",((t,e,n)=>this.utilities.isNull(t)?n:t[e])),this.props=t,this.ctx=e}}const Xe=h(_e,[["render",function(t,e,r,o,i,l){const a=n.resolveComponent("UploadFile"),u=n.resolveComponent("TextEditor"),s=n.resolveComponent("NvDicSelect"),c=n.resolveComponent("NvStructureTypeSelect"),f=n.resolveComponent("NvStructureSelect"),h=n.resolveComponent("UploadFileList"),p=n.resolveComponent("NvComForm");return n.openBlock(),n.createBlock(p,{onlyView:t.onlyView,formItems:t.formItems,formModel:t.formModel},{extend:n.withCtx((({item:e})=>["UploadFile"===e.type?(n.openBlock(),n.createBlock(a,{key:0,readonly:t.getPropValue(e.uploadFileProp,"readonly")||t.onlyView,token:t.formModel[e.model],multiple:t.getPropValue(e.uploadFileProp,"multiple"),onReturnFileList:n=>t.tokenList(n,e)},null,8,["readonly","token","multiple","onReturnFileList"])):n.createCommentVNode("",!0),"TextEditor"===e.type?(n.openBlock(),n.createBlock(u,{key:1,ref:"textEditorRef",readonly:t.getPropValue(e.textEditorProp,"readonly")||t.onlyView,style:n.normalizeStyle({height:`${e.textEditorProp&&e.textEditorProp.textHeight?e.textEditorProp.textHeight:"300"}px`}),token:t.formModel[e.model],border:t.getPropValue(e.textEditorProp,"textBorder"),onTextChange:n=>t.textChange(e,n)},null,8,["readonly","style","token","border","onTextChange"])):n.createCommentVNode("",!0),"DicSelect"===e.type?(n.openBlock(),n.createBlock(s,{key:2,readonly:t.getPropValue(e.dicSelProp,"readonly")||t.onlyView,code:t.getPropValue(e.dicSelProp,"code"),platformId:t.getPropValue(e.dicSelProp,"platformId"),modelValue:t.formModel[e.model],"onUpdate:modelValue":n=>t.formModel[e.model]=n},null,8,["readonly","code","platformId","modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0),"StructureType"===e.type?(n.openBlock(),n.createBlock(c,{key:3,readonly:t.getPropValue(e.structureTypeProp,"readonly")||t.onlyView,dataValue:t.formModel[e.model],multiple:t.getPropValue(e.structureTypeProp,"multiple"),onOnChange:n=>t.StructureOnChange(e,n)},null,8,["readonly","dataValue","multiple","onOnChange"])):n.createCommentVNode("",!0),"Structure"===e.type?(n.openBlock(),n.createBlock(f,{key:4,readonly:t.getPropValue(e.structureProp,"readonly")||t.onlyView,dataValue:t.formModel[e.model],multiple:t.getPropValue(e.structureProp,"multiple"),selType:t.getPropValue(e.structureProp,"selType"),onOnChange:n=>t.StructureOnChange(e,n)},null,8,["readonly","dataValue","multiple","selType","onOnChange"])):n.createCommentVNode("",!0),"UploadFileList"===e.type?(n.openBlock(),n.createBlock(h,{key:5,style:{height:"200px"},readonly:t.getPropValue(e.uploadFileListProp,"readonly")||t.onlyView,token:t.formModel[e.model],onReturnFileList:n=>t.tokenList(n,e)},null,8,["readonly","token","onReturnFileList"])):n.createCommentVNode("",!0)])),_:1},8,["onlyView","formItems","formModel"])}]]);t.FilePreview=y,t.NvComFormUp=Xe,t.NvDicSelect=Rt,t.NvStructureSelect=Ze,t.NvStructureTypeSelect=be,t.TextEditor=Nt,t.UploadFile=S,t.UploadFileList=qe,t.loadDictionaryData=xt,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|