JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-} .
LIBYA CYBER ARMY
Logo of a company Instagram@3g86    Server : Apache
System : Linux uta-edu.server.ly 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : utripoli ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/utripoli/public_html/journalDEL/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/utripoli/public_html/journalDEL/js/build.js
(function(){var e={6086:function(e,t,n){n(7658),n(2801),function(t,n){e.exports=n()}(0,(function(){"use strict";var e,t=(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=a=t;;){if(o>=a.length)break;a[o++].apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}return this}}]),e}(),o=function(e){function o(e,t){r(this,o);var i,a=n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),s=void 0;if(a.element=e,a.version=o.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(a),a.element.dropzone=a;var u,l=null!=(i=o.optionsForElement(a.element))?i:{};if(a.options=o.extend({},a.defaultOptions,l,null!=t?t:{}),a.options.forceFallback||!o.isBrowserSupported())return u=a.options.fallback.call(a),n(a,u);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(s=a.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=o.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=o.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),t(o,null,[{key:"initClass",value:function(){this.prototype.Emitter=i,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=o.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var i=e.getElementsByTagName("span")[0];return i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,i.srcWidth))/(n=Math.min(n,i.srcHeight));if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>a?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*a):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>a?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=o.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var i=r[n++];i.textContent=e.name}for(var a=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(i=s[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=o.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===o.UPLOADING?o.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?o.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},l=0,c=c=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(l>=c.length)break;c[l++].addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var i=r[n++];i.alt=e.name,i.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,i=i=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=i.length)break;var o=i[r++];"PROGRESS"===o.nodeName?o.value=t:o.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=o=n;;){if(i>=o.length)break;var a=o[i++];for(var s in a){var u=a[s];e[s]=u}}return e}}]),t(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===o.UPLOADING||e.status===o.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",o.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,i=i=n;!(r>=i.length);){var o=i[r++];e.addFile(o)}return e.emit("addedfiles",n),t()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var i=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return i(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",i(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return i(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||o.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,i=i=this.getActiveFiles();;){if(r>=i.length)break;var o=i[r++];t+=o.upload.bytesSent,n+=o.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=o.createElement(n);return"FORM"!==this.element.tagName?(t=o.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,i=t[n];if(r=e(this.element.getElementsByTagName(i)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],i=0;i<r.length;i++){var o=r[i];if(e>=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,i=i=e;;){if(r>=i.length)break;var o,a=i[r++];null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?n.push(t.addFile(a.getAsFile())):o.isDirectory?n.push(t._addFilesFromDirectory(o,o.name)):n.push(void 0):null==a.getAsFile||null!=a.kind&&"file"!==a.kind?n.push(void 0):n.push(t.addFile(a.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var i=0,o=o=r;!(i>=o.length);){var a=o[i++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),i)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:o.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=o.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==o.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===o.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==o.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,i){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return i(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=l.restore(e.dataURL,s)),i(o.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var a=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,i,o);null!=o&&o(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(a=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(i){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,r),c=document.createElement("canvas"),d=c.getContext("2d");switch(c.width=a.trgWidth,c.height=a.trgHeight,i>4&&(c.width=a.trgHeight,c.height=a.trgWidth),i){case 2:d.translate(c.width,0),d.scale(-1,1);break;case 3:d.translate(c.width,c.height),d.rotate(Math.PI);break;case 4:d.translate(0,c.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-c.width);break;case 7:d.rotate(.5*Math.PI),d.translate(c.height,-c.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c.height,0)}u(d,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var f=c.toDataURL("image/png");if(null!=o)return o(f,c)}))},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=o.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===o.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=o.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var i=0,a=a=t;;){if(i>=a.length)break;var s=a[i++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==o.ADDED&&e.status!==o.QUEUED||(e.status=o.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],i=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){var a=n*t.options.chunkSize,s=Math.min(a+t.options.chunkSize,r.size),u={name:t._getParamName(0),data:i.webkitSlice?i.webkitSlice(a,s):i.slice(a,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:u,status:o.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(r.upload.finishedChunkUpload=function(n){var i=!0;n.status=o.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<r.upload.totalChunkCount;s++){if(void 0===r.upload.chunks[s])return a();r.upload.chunks[s].status!==o.SUCCESS&&(i=!1)}i&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<r.upload.totalChunkCount;s++)a();else a()}else{for(var u=[],l=0;l<e.length;l++)u[l]={name:t._getParamName(l),data:n[l],filename:e[l].upload.filename};t._uploadData(e,u)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,i=0,a=a=e;;){if(i>=a.length)break;a[i++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);r.open(s,u,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var l={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var c in this.options.headers&&o.extend(l,this.options.headers),l){var d=l[c];d&&r.setRequestHeader(c,d)}var f=new FormData;if(this.options.params){var h=this.options.params;for(var p in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var m=h[p];f.append(p,m)}}for(var g=0,v=v=e;;){if(g>=v.length)break;var _=v[g++];this.emit("sending",_,r,f)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,f),this._addFormElementData(f);for(var b=0;b<t.length;b++){var y=t[b];f.append(y.name,y.data,y.filename)}this.submitRequest(r,f,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],i=0,o=function(o){n.options.transformFile.call(n,e[o],(function(n){r[o]=n,++i===e.length&&t(r)}))},a=0;a<e.length;a++)o(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],i=r.getAttribute("name"),o=r.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=i)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,s=s=r.options;;){if(a>=s.length)break;var u=s[a++];u.selected&&e.append(i,u.value)}else(!o||"checkbox"!==o&&"radio"!==o||r.checked)&&e.append(i,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded,i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var a=0;a<i.upload.totalChunkCount;a++)void 0!==i.upload.chunks[a]&&void 0!==i.upload.chunks[a].progress&&(i.upload.progress+=i.upload.chunks[a].progress,i.upload.total+=i.upload.chunks[a].total,i.upload.bytesSent+=i.upload.chunks[a].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else for(var s=0,u=u=e;;){if(s>=u.length)break;var l=u[s++];l.upload.progress=r,l.upload.total=n.total,l.upload.bytesSent=n.loaded}for(var c=0,d=d=e;;){if(c>=d.length)break;var f=d[c++];this.emit("uploadprogress",f,f.upload.progress,f.upload.bytesSent)}}else{var h=!0;r=100;for(var p=0,m=m=e;;){if(p>=m.length)break;var g=m[p++];100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(h=!1),g.upload.progress=r,g.upload.bytesSent=g.upload.total}if(h)return;for(var v=0,_=_=e;;){if(v>=_.length)break;var b=_[v++];this.emit("uploadprogress",b,r,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==o.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==o.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var i=0,a=a=e;;){if(i>=a.length)break;a[i++],this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),o}();o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(e){return e.getAttribute("id")?o.options[s(e.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!0,o.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,i=i=t;;){if(r>=i.length)break;var o=i[r++];/(^| )dropzone($| )/.test(o.className)?n.push(e.push(o)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var i=r[n++];!1!==o.optionsForElement(i)?t.push(new o(i)):t.push(void 0)}return t}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=o.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},o.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,a=t.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},o.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=0,o=o=e;!(i>=o.length);)n=o[i++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,s=s=document.querySelectorAll(e);!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},o.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},o.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=0,o=o=t;;){if(i>=o.length)break;var a=o[i++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new o(this,e)}))}),null!==e?e.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var u=function(e,t,n,r,i,o,a,s,u,l){var c=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t).data,o=0,a=t,s=t;s>o;)0===i[4*(s-1)+3]?a=s:o=s,s=a+o>>1;var u=s/t;return 0===u?1:u}(t);return e.drawImage(t,n,r,i,o,a,s,u,l/c)},l=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,a=void 0,s=void 0,u="",l=0;o=(n=e[l++])>>2,a=(3&n)<<4|(r=e[l++])>>4,s=(15&r)<<2|(i=e[l++])>>6,u=63&i,isNaN(r)?s=u=64:isNaN(i)&&(u=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(u),n=r=i="",o=a=s=u="",l<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return(s=s.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,a="",s=0,u=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&i)<<4|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),u.push(t),64!==o&&u.push(n),64!==a&&u.push(r),t=n=r="",i=o=a="",s<e.length;);return u}}]),e}();l.initClass(),o._autoDiscoverFunction=function(){if(o.autoDiscover)return o.discover()},function(e,t){var n=!1,r=!0,i=e.document,o=i.documentElement,a=i.addEventListener?"addEventListener":"attachEvent",s=i.addEventListener?"removeEventListener":"detachEvent",u=i.addEventListener?"":"on",l=function r(o){if("readystatechange"!==o.type||"complete"===i.readyState)return("load"===o.type?e:i)[s](u+o.type,r,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==i.readyState){if(i.createEventObject&&o.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return l("poll")}()}i[a](u+"DOMContentLoaded",l,!1),i[a](u+"readystatechange",l,!1),e[a](u+"load",l,!1)}}(window,o._autoDiscoverFunction)}(e={exports:{}},e.exports),e.exports),n={getSignedURL(e,t){let n={filePath:e.name,contentType:e.type};return new Promise(((r,i)=>{var o=new FormData;let a=new XMLHttpRequest,s="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;a.open("POST",s),a.onload=function(){200==a.status?r(JSON.parse(a.response)):i(a.statusText)},a.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),i(e)},!0===t.withCredentials&&(a.withCredentials=!0),Object.entries(t.headers||{}).forEach((([e,t])=>{a.setRequestHeader(e,t)})),n=Object.assign(n,t.params||{}),Object.entries(n).forEach((([e,t])=>{o.append(e,t)})),a.send(o)}))},sendFile(e,t,n){var r=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then((t=>r(t,e))).catch((e=>e))},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,r=e.signature;return Object.keys(r).forEach((function(e){n.append(e,r[e])})),n.append("file",t),new Promise(((t,r)=>{let i=new XMLHttpRequest;i.open("POST",e.postEndpoint),i.onload=function(){if(201==i.status){var e=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[0].innerHTML;r({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},i.onerror=function(e){var t=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[1].innerHTML;r({success:!1,message:t})},i.send(n)}))}};return t.autoDiscover=!1,function(e,t,n,r,i,o,a,s,u,l){"boolean"!=typeof a&&(u=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):t&&(c=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(d.functional){var f=d.render;d.render=function(e,t){return c.call(t),f(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?t("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(t){e[t]=this.options[t]}),this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=e=>e[0].s3Url)),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",(function(t,n){e.$emit("vdropzone-thumbnail",t,n)})),this.dropzone.on("addedfile",(function(t){var n,r;if(e.duplicateCheck&&this.files.length)for(n=0,r=this.files.length;n<r-1;n++)this.files[n].name===t.name&&this.files[n].size===t.size&&this.files[n].lastModifiedDate.toString()===t.lastModifiedDate.toString()&&(this.removeFile(t),e.$emit("vdropzone-duplicate-file",t));e.$emit("vdropzone-file-added",t),e.isS3&&e.wasQueueAutoProcess&&!t.manuallyAdded&&e.getSignedAndUploadToS3(t)})),this.dropzone.on("addedfiles",(function(t){e.$emit("vdropzone-files-added",t)})),this.dropzone.on("removedfile",(function(t){e.$emit("vdropzone-removed-file",t),t.manuallyAdded&&null!==e.dropzone.options.maxFiles&&e.dropzone.options.maxFiles++})),this.dropzone.on("success",(function(t,n){if(e.$emit("vdropzone-success",t,n),e.isS3){if(e.isS3OverridesServerPropagation){var r=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",r)}e.wasQueueAutoProcess&&e.setOption("autoProcessQueue",!1)}})),this.dropzone.on("successmultiple",(function(t,n){e.$emit("vdropzone-success-multiple",t,n)})),this.dropzone.on("error",(function(t,n,r){e.$emit("vdropzone-error",t,n,r),this.isS3&&e.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(t,n,r){e.$emit("vdropzone-error-multiple",t,n,r)})),this.dropzone.on("sending",(function(t,n,r){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach((function(t){r.append(t,e[t])}))}else r.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,n,r)})),this.dropzone.on("sendingmultiple",(function(t,n,r){e.$emit("vdropzone-sending-multiple",t,n,r)})),this.dropzone.on("complete",(function(t){e.$emit("vdropzone-complete",t)})),this.dropzone.on("completemultiple",(function(t){e.$emit("vdropzone-complete-multiple",t)})),this.dropzone.on("canceled",(function(t){e.$emit("vdropzone-canceled",t)})),this.dropzone.on("canceledmultiple",(function(t){e.$emit("vdropzone-canceled-multiple",t)})),this.dropzone.on("maxfilesreached",(function(t){e.$emit("vdropzone-max-files-reached",t)})),this.dropzone.on("maxfilesexceeded",(function(t){e.$emit("vdropzone-max-files-exceeded",t)})),this.dropzone.on("processing",(function(t){e.$emit("vdropzone-processing",t)})),this.dropzone.on("processingmultiple",(function(t){e.$emit("vdropzone-processing-multiple",t)})),this.dropzone.on("uploadprogress",(function(t,n,r){e.$emit("vdropzone-upload-progress",t,n,r)})),this.dropzone.on("totaluploadprogress",(function(t,n,r){e.$emit("vdropzone-total-upload-progress",t,n,r)})),this.dropzone.on("reset",(function(){e.$emit("vdropzone-reset")})),this.dropzone.on("queuecomplete",(function(){e.$emit("vdropzone-queue-complete")})),this.dropzone.on("drop",(function(t){e.$emit("vdropzone-drop",t)})),this.dropzone.on("dragstart",(function(t){e.$emit("vdropzone-drag-start",t)})),this.dropzone.on("dragend",(function(t){e.$emit("vdropzone-drag-end",t)})),this.dropzone.on("dragenter",(function(t){e.$emit("vdropzone-drag-enter",t)})),this.dropzone.on("dragover",(function(t){e.$emit("vdropzone-drag-over",t)})),this.dropzone.on("dragleave",(function(t){e.$emit("vdropzone-drag-leave",t)})),e.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e);let n=!1;if((t.indexOf(".svg")>-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var r=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),i=0;i<r.length;i++)r[i].style.width=this.dropzoneSettings.thumbnailWidth+"px",r[i].style.height=this.dropzoneSettings.thumbnailHeight+"px",r[i].style["object-fit"]="contain"}this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){let e=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach((e=>{this.getSignedAndUploadToS3(e)})):this.dropzone.processQueue(),this.dropzone.on("success",(function(){e.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){e.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=n.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then((()=>{setTimeout((()=>this.dropzone.processFile(e)))})):t.then((t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout((()=>this.dropzone.processFile(e))),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")})),t.catch((e=>{alert(e)}))},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},void 0,!1,void 0,void 0,void 0)}))},7757:function(e,t,n){
/*!
 * Chart.js v2.9.4
 * https://www.chartjs.org
 * (c) 2020 Chart.js Contributors
 * Released under the MIT License
 */
(function(t,r){e.exports=r(function(){try{return n(381)}catch(e){}}())})(0,(function(e){"use strict";function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){return e&&e["default"]||e}e=e&&e.hasOwnProperty("default")?e["default"]:e;var r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},i=t((function(e){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[r[n]]=n);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=i[o].channels,s=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:a}),Object.defineProperty(i[o],"labels",{value:s})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}i.rgb.hsl=function(e){var t,n,r,i=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(i,o,a),u=Math.max(i,o,a),l=u-s;return u===s?t=0:i===u?t=(o-a)/l:o===u?t=2+(a-i)/l:a===u&&(t=4+(i-o)/l),t=Math.min(60*t,360),t<0&&(t+=360),r=(s+u)/2,n=u===s?0:r<=.5?l/(u+s):l/(2-u-s),[t,100*n,100*r]},i.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),d=function(e){return(l-e)/6/c+.5};return 0===c?i=o=0:(o=c/l,t=d(a),n=d(s),r=d(u),a===l?i=r-n:s===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*a,100*r]},i.rgb.cmyk=function(e){var t,n,r,i,o=e[0]/255,a=e[1]/255,s=e[2]/255;return i=Math.min(1-o,1-a,1-s),t=(1-o-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,[100*t,100*n,100*r,100*i]},i.rgb.keyword=function(e){var n=t[e];if(n)return n;var i,o=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],l=u(e,s);l<o&&(o=l,i=a)}return i},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*t+.3576*n+.1805*r,o=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*i,100*o,100*a]},i.rgb.lab=function(e){var t,n,r,o=i.rgb.xyz(e),a=o[0],s=o[1],u=o[2];return a/=95.047,s/=100,u/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,t=116*s-16,n=500*(a-s),r=200*(s-u),[t,n,r]},i.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0===s)return o=255*u,[o,o,o];n=u<.5?u*(1+s):u+s-u*s,t=2*u-n,i=[0,0,0];for(var l=0;l<3;l++)r=a+1/3*-(l-1),r<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*o;return i},i.hsl.hsv=function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100,a=i,s=Math.max(o,.01);return o*=2,i*=o<=1?o:2-o,a*=s<=1?s:2-s,n=(o+i)/2,t=0===o?2*a/(s+a):2*i/(o+i),[r,100*t,100*n]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,t=(2-o)*s,n=o*s,n/=t<=1?t:2-t,n=n||0,r/=2,[i,100*n,100*r]},i.hwb.rgb=function(e){var t,n,r,i,o,a,s,u=e[0]/360,l=e[1]/100,c=e[2]/100,d=l+c;switch(d>1&&(l/=d,c/=d),t=Math.floor(6*u),n=1-c,r=6*u-t,0!==(1&t)&&(r=1-r),i=l+r*(n-l),t){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i;break}return[255*o,255*a,255*s]},i.cmyk.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},i.xyz.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(i-o),r=200*(o-a),[t,n,r]},i.lab.xyz=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];n=(i+16)/116,t=o/500+n,r=n-a/200;var s=Math.pow(n,3),u=Math.pow(t,3),l=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(o*o+a*a),[i,r,n]},i.lch.lab=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return r=a/360*2*Math.PI,t=o*Math.cos(r),n=o*Math.sin(r),[i,t,n]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(o=Math.round(o/50),0===o)return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;e-=16;var r=Math.floor(e/36)/5*255,i=Math.floor((n=e%36)/6)/5*255,o=n%6/5*255;return[r,i,o]},i.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=255&r;return[i,o,a]},i.rgb.hcg=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(r,i),o),s=Math.min(Math.min(r,i),o),u=a-s;return t=u<1?s/(1-u):0,n=u<=0?0:a===r?(i-o)/u%6:a===i?2+(o-r)/u:4+(r-i)/u+4,n/=6,n%=1,[360*n,100*u,100*t]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],o=t%1*6,a=o%1,s=1-a,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},i.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},i.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},i.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,i=r-t,o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],100*i,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}}));i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;function o(){for(var e={},t=Object.keys(i),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a(e){var t=o(),n=[e];t[e].distance=0;while(n.length)for(var r=n.pop(),a=Object.keys(i[r]),s=a.length,u=0;u<s;u++){var l=a[u],c=t[l];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,n.unshift(l))}return t}function s(e,t){return function(n){return t(e(n))}}function u(e,t){var n=[t[e].parent,e],r=i[t[e].parent][e],o=t[e].parent;while(t[o].parent)n.unshift(t[o].parent),r=s(i[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var l=function(e){for(var t=a(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var s=r[o],l=t[s];null!==l.parent&&(n[s]=u(s,t))}return n},c={},d=Object.keys(i);function f(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function h(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}d.forEach((function(e){c[e]={},Object.defineProperty(c[e],"channels",{value:i[e].channels}),Object.defineProperty(c[e],"labels",{value:i[e].labels});var t=l(e),n=Object.keys(t);n.forEach((function(n){var r=t[n];c[e][n]=h(r),c[e][n].raw=f(r)}))}));var p=c,m={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},g={getRgba:v,getHsla:_,getRgb:y,getHsl:x,getHwb:b,getAlpha:w,hexString:k,rgbString:M,rgbaString:S,percentString:L,percentaString:C,hslString:T,hslaString:D,hwbString:O,keyword:E};function v(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/(\w+)/,a=[0,0,0],s=1,u=e.match(t),l="";if(u){u=u[1],l=u[3];for(var c=0;c<a.length;c++)a[c]=parseInt(u[c]+u[c],16);l&&(s=Math.round(parseInt(l+l,16)/255*100)/100)}else if(u=e.match(n)){l=u[2],u=u[1];for(c=0;c<a.length;c++)a[c]=parseInt(u.slice(2*c,2*c+2),16);l&&(s=Math.round(parseInt(l,16)/255*100)/100)}else if(u=e.match(r)){for(c=0;c<a.length;c++)a[c]=parseInt(u[c+1]);s=parseFloat(u[4])}else if(u=e.match(i)){for(c=0;c<a.length;c++)a[c]=Math.round(2.55*parseFloat(u[c+1]));s=parseFloat(u[4])}else if(u=e.match(o)){if("transparent"==u[1])return[0,0,0,0];if(a=m[u[1]],!a)return}for(c=0;c<a.length;c++)a[c]=A(a[c],0,255);return s=s||0==s?A(s,0,1):1,a[3]=s,a}}function _(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=A(parseInt(n[1]),0,360),o=A(parseFloat(n[2]),0,100),a=A(parseFloat(n[3]),0,100),s=A(isNaN(r)?1:r,0,1);return[i,o,a,s]}}}function b(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=A(parseInt(n[1]),0,360),o=A(parseFloat(n[2]),0,100),a=A(parseFloat(n[3]),0,100),s=A(isNaN(r)?1:r,0,1);return[i,o,a,s]}}}function y(e){var t=v(e);return t&&t.slice(0,3)}function x(e){var t=_(e);return t&&t.slice(0,3)}function w(e){var t=v(e);return t||(t=_(e))||(t=b(e))?t[3]:void 0}function k(e,t){t=void 0!==t&&3===e.length?t:e[3];return"#"+P(e[0])+P(e[1])+P(e[2])+(t>=0&&t<1?P(Math.round(255*t)):"")}function M(e,t){return t<1||e[3]&&e[3]<1?S(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function S(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function L(e,t){if(t<1||e[3]&&e[3]<1)return C(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"}function C(e,t){var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgba("+n+"%, "+r+"%, "+i+"%, "+(t||e[3]||1)+")"}function T(e,t){return t<1||e[3]&&e[3]<1?D(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function D(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function O(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function E(e){return F[e.slice(0,3)]}function A(e,t,n){return Math.min(Math.max(t,e),n)}function P(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var F={};for(var I in m)F[m[I]]=I;var Y=function(e){return e instanceof Y?e:this instanceof Y?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof e?(t=g.getRgba(e),t?this.setValues("rgb",t):(t=g.getHsla(e))?this.setValues("hsl",t):(t=g.getHwb(e))&&this.setValues("hwb",t)):"object"===typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new Y(e);var t};Y.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return g.hexString(this.values.rgb)},rgbString:function(){return g.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return g.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return g.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return g.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return g.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return g.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return g.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(299*e[0]+587*e[1]+114*e[2])/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return this.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new Y,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],t={}.toString.call(e),"[object Array]"===t?i[o]=e.slice(0):"[object Number]"===t?i[o]=e:console.error("unexpected color value:",e));return n}},Y.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Y.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Y.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},Y.prototype.setValues=function(e,t){var n,r,i=this.values,o=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)i[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)i[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var u=o[e];for(n=0;n<e.length;n++)i[e][n]=t[u[n]];s=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(a[e][n],i[e][n])),i[e][n]=Math.round(r);for(var l in o)l!==e&&(i[l]=p[e][l](i[e]));return!0},Y.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"===typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},Y.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!==typeof window&&(window.Color=Y);var R=Y;function N(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var H={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||"undefined"===typeof e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"===typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return"undefined"===typeof e?t:e},valueAtIndexOrDefault:function(e,t,n){return H.valueOrDefault(H.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var i,o,a;if(H.isArray(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(H.isObject(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])},arrayEquals:function(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i instanceof Array&&o instanceof Array){if(!H.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(e){if(H.isArray(e))return e.map(H.clone);if(H.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=H.clone(e[n[i]]);return t}return e},_merger:function(e,t,n,r){if(N(e)){var i=t[e],o=n[e];H.isObject(i)&&H.isObject(o)?H.merge(i,o,r):t[e]=H.clone(o)}},_mergerIf:function(e,t,n){if(N(e)){var r=t[e],i=n[e];H.isObject(r)&&H.isObject(i)?H.mergeIf(r,i):t.hasOwnProperty(e)||(t[e]=H.clone(i))}},merge:function(e,t,n){var r,i,o,a,s,u=H.isArray(t)?t:[t],l=u.length;if(!H.isObject(e))return e;for(n=n||{},r=n.merger||H._merger,i=0;i<l;++i)if(t=u[i],H.isObject(t))for(o=Object.keys(t),s=0,a=o.length;s<a;++s)r(o[s],e,t,n);return e},mergeIf:function(e,t){return H.merge(e,t,{merger:H._mergerIf})},extend:Object.assign||function(e){return H.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=H.inherits,e&&H.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},z=H;H.callCallback=H.callback,H.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},H.getValueOrDefault=H.valueOrDefault,H.getValueAtIndexOrDefault=H.valueAtIndexOrDefault;var j={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2===(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-j.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*j.easeInBounce(2*e):.5*j.easeOutBounce(2*e-1)+.5}},B={effects:j};z.easingEffects=j;var V=Math.PI,$=V/180,U=2*V,W=V/2,q=V/4,G=2*V/3,K={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=t+a,u=n+a,l=t+r-a,c=n+i-a;e.moveTo(t,u),s<l&&u<c?(e.arc(s,u,a,-V,-W),e.arc(l,u,a,-W,0),e.arc(l,c,a,0,W),e.arc(s,c,a,W,V)):s<l?(e.moveTo(s,n),e.arc(l,u,a,-W,W),e.arc(s,u,a,W,V+W)):u<c?(e.arc(s,u,a,-V,0),e.arc(s,c,a,0,V)):e.arc(s,u,a,-V,V),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)},drawPoint:function(e,t,n,r,i,o){var a,s,u,l,c,d=(o||0)*$;if(t&&"object"===typeof t&&(a=t.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(r,i),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,i,n,0,U),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*n,i-Math.cos(d)*n),d+=G,e.lineTo(r+Math.sin(d)*n,i-Math.cos(d)*n),d+=G,e.lineTo(r+Math.sin(d)*n,i-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=.516*n,l=n-c,s=Math.cos(d+q)*l,u=Math.sin(d+q)*l,e.arc(r-s,i-u,c,d-V,d-W),e.arc(r+u,i-s,c,d-W,d),e.arc(r+s,i+u,c,d,d+W),e.arc(r-u,i+s,c,d+W,d+V),e.closePath();break;case"rect":if(!o){l=Math.SQRT1_2*n,e.rect(r-l,i-l,2*l,2*l);break}d+=q;case"rectRot":s=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-s,i-u),e.lineTo(r+u,i-s),e.lineTo(r+s,i+u),e.lineTo(r-u,i+s),e.closePath();break;case"crossRot":d+=q;case"cross":s=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-s,i-u),e.lineTo(r+s,i+u),e.moveTo(r+u,i-s),e.lineTo(r-u,i+s);break;case"star":s=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-s,i-u),e.lineTo(r+s,i+u),e.moveTo(r+u,i-s),e.lineTo(r-u,i+s),d+=q,s=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-s,i-u),e.lineTo(r+s,i+u),e.moveTo(r+u,i-s),e.lineTo(r-u,i+s);break;case"line":s=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-s,i-u),e.lineTo(r+s,i+u);break;case"dash":e.moveTo(r,i),e.lineTo(r+Math.cos(d)*n,i+Math.sin(d)*n);break}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var i=n.steppedLine;if(i){if("middle"===i){var o=(t.x+n.x)/2;e.lineTo(o,r?n.y:t.y),e.lineTo(o,r?t.y:n.y)}else"after"===i&&!r||"after"!==i&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},J=K;z.clear=K.clear,z.drawRoundedRectangle=function(e){e.beginPath(),K.roundedRect.apply(K,arguments)};var X={_set:function(e,t){return z.merge(this[e]||(this[e]={}),t)}};X._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var Q=X,Z=z.valueOrDefault;function ee(e){return!e||z.isNullOrUndef(e.size)||z.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var te={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e},toPadding:function(e){var t,n,r,i;return z.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,i=+e.left||0):t=n=r=i=+e||0,{top:t,right:n,bottom:r,left:i,height:t+r,width:i+n}},_parseFont:function(e){var t=Q.global,n=Z(e.fontSize,t.defaultFontSize),r={family:Z(e.fontFamily,t.defaultFontFamily),lineHeight:z.options.toLineHeight(Z(e.lineHeight,t.defaultLineHeight),n),size:n,style:Z(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=ee(r),r},resolve:function(e,t,n,r){var i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(a=e[i],void 0!==a&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&z.isArray(a)&&(a=a[n],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}},ne={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t),r=e===Math.pow(10,n);return r?n:t}},re=ne;z.log10=ne.log10;var ie=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},oe=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},ae=function(e,t,n){return e?ie(t,n):oe()},se=function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},ue=function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))},le={getRtlAdapter:ae,overrideTextDirection:se,restoreTextDirection:ue},ce=z,de=B,fe=J,he=te,pe=re,me=le;function ge(e,t,n,r){var i,o,a,s,u,l,c,d,f,h=Object.keys(n);for(i=0,o=h.length;i<o;++i)if(a=h[i],l=n[a],t.hasOwnProperty(a)||(t[a]=l),s=t[a],s!==l&&"_"!==a[0]){if(e.hasOwnProperty(a)||(e[a]=s),u=e[a],c=typeof l,c===typeof u)if("string"===c){if(d=R(u),d.valid&&(f=R(l),f.valid)){t[a]=f.mix(d,r).rgbString();continue}}else if(ce.isFinite(u)&&ce.isFinite(l)){t[a]=u+(l-u)*r;continue}t[a]=l}}ce.easing=de,ce.canvas=fe,ce.options=he,ce.math=pe,ce.rtl=me;var ve=function(e){ce.extend(this,e),this.initialize.apply(this,arguments)};ce.extend(ve.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ce.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,i=t._view;return n&&1!==e?(i||(i=t._view={}),r||(r=t._start={}),ge(r,i,n,e),t):(t._view=ce.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ce.isNumber(this._model.x)&&ce.isNumber(this._model.y)}}),ve.extend=ce.inherits;var _e=ve,be=_e.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ye=be;Object.defineProperty(be.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(be.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),Q._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ce.noop,onComplete:ce.noop}});var xe={animations:[],request:null,addAnimation:function(e,t,n,r){var i,o,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===e)return void(a[i]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=ce.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=ce.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){var e,t,n,r,i=this.animations,o=0;while(o<i.length)e=i[o],t=e.chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),ce.callback(e.render,[t,e],t),ce.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ce.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},we=ce.options.resolve,ke=["push","pop","shift","splice","unshift"];function Me(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ke.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=r.apply(this,t);return ce.each(e._chartjs.listeners,(function(e){"function"===typeof e[n]&&e[n].apply(e,t)})),i}})})))}function Se(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(ke.forEach((function(t){delete e[t]})),delete e._chartjs)}}var Le=function(e,t){this.initialize(e,t)};ce.extend(Le.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,i=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!i.xAxisID||(t.xAxisID=i.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!i.yAxisID||(t.yAxisID=i.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Se(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),i=n.getDataset().data||[],o=r.data;for(e=0,t=i.length;e<t;++e)o[e]=o[e]||n.createMetaData(e);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&Se(e._data,e),n&&Object.isExtensible(n)&&Me(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=ce.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&ce._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:ce.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,i=0;i<r;++i)n[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this,r=n.getMeta(),i=r.dataset;return n._configure(),i&&void 0===e?t=n._resolveDatasetElementOptions(i||{}):(e=e||0,t=n._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,i,o,a=this,s=a.chart,u=a._config,l=e.custom||{},c=s.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,f={},h={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,r=d.length;n<r;++n)i=d[n],o=t?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,f[i]=we([l[o],u[o],c[o]],h);return f},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,i=n._cachedDataOpts;if(i&&!r)return i;var o,a,s,u,l=n.chart,c=n._config,d=l.options.elements[n.dataElementType.prototype._type]||{},f=n._dataElementOptions,h={},p={chart:l,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!r};if(r=r||{},ce.isArray(f))for(a=0,s=f.length;a<s;++a)u=f[a],h[u]=we([r[u],c[u],d[u]],p,t,m);else for(o=Object.keys(f),a=0,s=o.length;a<s;++a)u=o[a],h[u]=we([r[u],c[f[u]],c[u],d[u]],p,t,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(h)),h},removeHoverStyle:function(e){ce.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},i=e._model,o=ce.getHoverColor;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=we([r.hoverBackgroundColor,t.hoverBackgroundColor,o(i.backgroundColor)],void 0,n),i.borderColor=we([r.hoverBorderColor,t.hoverBorderColor,o(i.borderColor)],void 0,n),i.borderWidth=we([r.hoverBorderWidth,t.hoverBorderWidth,i.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,i,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,i=this._resolveDatasetElementOptions(a,!0),r=Object.keys(i),e=0,t=r.length;e<t;++e)n=r[e],s[n]=o[n],o[n]=i[n];a.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,r=t.data.length,i=n.length;i<r?t.data.splice(i,r-i):i>r&&e.insertElements(r,i-r)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),Le.extend=ce.inherits;var Ce=Le,Te=2*Math.PI;function De(e,t){var n=t.startAngle,r=t.endAngle,i=t.pixelMargin,o=i/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-o,r+o),t.innerRadius>i?(o=i/t.innerRadius,e.arc(a,s,t.innerRadius-i,r+o,n-o,!0)):e.arc(a,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Oe(e,t,n,r){var i,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+Te,De(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=Te,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+Te,n.startAngle,!0),i=0;i<n.fullCircles;++i)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+Te),i=0;i<n.fullCircles;++i)e.stroke()}function Ee(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Oe(e,t,n,r),r&&De(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}Q._set("global",{elements:{arc:{backgroundColor:Q.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ae=_e.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){var r=ce.getAngleFromPoint(n,{x:e,y:t}),i=r.angle,o=r.distance,a=n.startAngle,s=n.endAngle;while(s<a)s+=Te;while(i>s)i-=Te;while(i<a)i+=Te;var u=i>=a&&i<=s,l=o>=n.innerRadius&&o<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/Te)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+Te,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;e<i.fullCircles;++e)t.fill();i.endAngle=i.startAngle+n.circumference%Te}t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Ee(t,n,i),t.restore()}}),Pe=ce.valueOrDefault,Fe=Q.global.defaultColor;Q._set("global",{elements:{line:{tension:.4,backgroundColor:Fe,borderWidth:3,borderColor:Fe,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Ie=_e.extend({_type:"line",draw:function(){var e,t,n,r=this,i=r._view,o=r._chart.ctx,a=i.spanGaps,s=r._children.slice(),u=Q.global,l=u.elements.line,c=-1,d=r._loop;if(s.length){if(r._loop){for(e=0;e<s.length;++e)if(t=ce.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=a;break}d&&s.push(s[0])}for(o.save(),o.lineCap=i.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||l.borderDash),o.lineDashOffset=Pe(i.borderDashOffset,l.borderDashOffset),o.lineJoin=i.borderJoinStyle||l.borderJoinStyle,o.lineWidth=Pe(i.borderWidth,l.borderWidth),o.strokeStyle=i.borderColor||u.defaultColor,o.beginPath(),n=s[0]._view,n.skip||(o.moveTo(n.x,n.y),c=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===c?ce.previousItem(s,e):s[c],n.skip||(c!==e-1&&!a||-1===c?o.moveTo(n.x,n.y):ce.canvas.lineTo(o,t._view,n),c=e);d&&o.closePath(),o.stroke(),o.restore()}}}),Ye=ce.valueOrDefault,Re=Q.global.defaultColor;function Ne(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function He(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}Q._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Re,borderColor:Re,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ze=_e.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Ne,inXRange:Ne,inYRange:He,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,i=t.rotation,o=t.radius,a=t.x,s=t.y,u=Q.global,l=u.defaultColor;t.skip||(void 0===e||ce.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=Ye(t.borderWidth,u.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,ce.canvas.drawPoint(n,r,o,a,s,i))}}),je=Q.global.defaultColor;function Be(e){return e&&void 0!==e.width}function Ve(e){var t,n,r,i,o;return Be(e)?(o=e.width/2,t=e.x-o,n=e.x+o,r=Math.min(e.y,e.base),i=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-o,i=e.y+o),{left:t,top:r,right:n,bottom:i}}function $e(e,t,n){return e===t?n:e===n?t:e}function Ue(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=$e(t,"left","right")):e.base<e.y&&(t=$e(t,"bottom","top")),n[t]=!0,n):n}function We(e,t,n){var r,i,o,a,s=e.borderWidth,u=Ue(e);return ce.isObject(s)?(r=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):r=i=o=a=+s||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>n?n:o,l:u.left||a<0?0:a>t?t:a}}function qe(e){var t=Ve(e),n=t.right-t.left,r=t.bottom-t.top,i=We(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}function Ge(e,t,n){var r=null===t,i=null===n,o=!(!e||r&&i)&&Ve(e);return o&&(r||t>=o.left&&t<=o.right)&&(i||n>=o.top&&n<=o.bottom)}Q._set("global",{elements:{rectangle:{backgroundColor:je,borderColor:je,borderSkipped:"bottom",borderWidth:0}}});var Ke=_e.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=qe(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Ge(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Be(n)?Ge(n,e,null):Ge(n,null,t)},inXRange:function(e){return Ge(this._view,e,null)},inYRange:function(e){return Ge(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Be(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Be(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Je={},Xe=Ae,Qe=Ie,Ze=ze,et=Ke;Je.Arc=Xe,Je.Line=Qe,Je.Point=Ze,Je.Rectangle=et;var tt=ce._deprecated,nt=ce.valueOrDefault;function rt(e,t){var n,r,i,o,a=e._length;for(i=1,o=t.length;i<o;++i)a=Math.min(a,Math.abs(t[i]-t[i-1]));for(i=0,o=e.getTicks().length;i<o;++i)r=e.getPixelForTick(i),a=i>0?Math.min(a,Math.abs(r-n)):a,n=r;return a}function it(e,t,n){var r,i,o=n.barThickness,a=t.stackCount,s=t.pixels[e],u=ce.isNullOrUndef(o)?rt(t.scale,t.pixels):-1;return ce.isNullOrUndef(o)?(r=u*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}function ot(e,t,n){var r,i,o=t.pixels,a=o[e],s=e>0?o[e-1]:null,u=e<o.length-1?o[e+1]:null,l=n.categoryPercentage;return null===s&&(s=a-(null===u?t.end-t.start:u-a)),null===u&&(u=a+a-s),r=a-(a-Math.min(s,u))/2*l,i=Math.abs(u-s)/2*l,{chunk:i/t.stackCount,ratio:n.barPercentage,start:r}}Q._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),Q._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var at=Ce.extend({dataElementType:Je.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;Ce.prototype.initialize.apply(n,arguments),e=n.getMeta(),e.stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,tt("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),tt("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),tt("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),tt("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),tt("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,i=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e)},updateElement:function(e,t,n){var r=this,i=r.getMeta(),o=r.getDataset(),a=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(i.xAxisID),e._yScale=r.getScaleForId(i.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[t]},ce.isArray(o.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,r){var i=this,o=e._model,a=i._getValueScale(),s=a.getBasePixel(),u=a.isHorizontal(),l=i._ruler||i.getRuler(),c=i.calculateBarValuePixels(i.index,t,r),d=i.calculateBarIndexPixels(i.index,t,l,r);o.horizontal=u,o.base=n?s:c.base,o.x=u?n?s:c.head:d.center,o.y=u?d.center:n?s:c.head,o.height=u?d.size:void 0,o.width=u?void 0:d.size},_getStacks:function(e){var t,n,r=this,i=r._getIndexScale(),o=i._getMatchingVisibleMetas(r._type),a=i.options.stacked,s=o.length,u=[];for(t=0;t<s;++t)if(n=o[t],(!1===a||-1===u.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&u.push(n.stack),n.index===e)break;return u},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this,r=n._getIndexScale(),i=[];for(e=0,t=n.getMeta().data.length;e<t;++e)i.push(r.getPixelForValue(null,e,n.index));return{pixels:i,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,n){var r,i,o,a,s,u,l,c=this,d=c.chart,f=c._getValueScale(),h=f.isHorizontal(),p=d.data.datasets,m=f._getMatchingVisibleMetas(c._type),g=f._parseValue(p[e].data[t]),v=n.minBarLength,_=f.options.stacked,b=c.getMeta().stack,y=void 0===g.start?0:g.max>=0&&g.min>=0?g.min:g.max,x=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,w=m.length;if(_||void 0===_&&void 0!==b)for(r=0;r<w;++r){if(i=m[r],i.index===e)break;i.stack===b&&(l=f._parseValue(p[i.index].data[t]),o=void 0===l.start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(g.min<0&&o<0||g.max>=0&&o>0)&&(y+=o))}return a=f.getPixelForValue(y),s=f.getPixelForValue(y+x),u=s-a,void 0!==v&&Math.abs(u)<v&&(u=v,s=x>=0&&!h||x<0&&h?a-v:a+v),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(e,t,n,r){var i=this,o="flex"===r.barThickness?ot(t,n,r):it(t,n,r),a=i.getStackIndex(e,i.getMeta().stack),s=o.start+o.chunk*a+o.chunk/2,u=Math.min(nt(r.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-u/2,head:s+u/2,center:s,size:u}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,i=e.getDataset(),o=r.length,a=0;for(ce.canvas.clipArea(t.ctx,t.chartArea);a<o;++a){var s=n._parseValue(i.data[a]);isNaN(s.min)||isNaN(s.max)||r[a].draw()}ce.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=ce.extend({},Ce.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=nt(n.barPercentage,t.barPercentage),t.barThickness=nt(n.barThickness,t.barThickness),t.categoryPercentage=nt(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=nt(n.maxBarThickness,t.maxBarThickness),t.minBarLength=nt(r.minBarLength,t.minBarLength),t}}),st=ce.valueOrDefault,ut=ce.options.resolve;Q._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var lt=Ce.extend({dataElementType:Je.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta(),r=n.data;ce.each(r,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,i=r.getMeta(),o=e.custom||{},a=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),u=r._resolveDataElementOptions(e,t),l=r.getDataset().data[t],c=r.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"===typeof l?l:NaN,t,c),f=n?s.getBasePixel():s.getPixelForValue(l,t,c);e._xScale=a,e._yScale=s,e._options=u,e._datasetIndex=c,e._index=t,e._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:n?0:u.radius,skip:o.skip||isNaN(d)||isNaN(f),x:d,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=ce.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=st(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,i=n.getDataset(),o=e.custom||{},a=i.data[t]||{},s=Ce.prototype._resolveDataElementOptions.apply(n,arguments),u={chart:r,dataIndex:t,dataset:i,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=ce.extend({},s)),s.radius=ut([o.radius,a.r,n._config.radius,r.options.elements.point.radius],u,t),s}}),ct=ce.valueOrDefault,dt=Math.PI,ft=2*dt,ht=dt/2;Q._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,i,o=document.createElement("ul"),a=e.data,s=a.datasets,u=a.labels;if(o.setAttribute("class",e.id+"-legend"),s.length)for(t=0,n=s[0].data.length;t<n;++t)r=o.appendChild(document.createElement("li")),i=r.appendChild(document.createElement("span")),i.style.backgroundColor=s[0].backgroundColor[t],u[t]&&r.appendChild(document.createTextNode(u[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var i=e.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)i=a.getDatasetMeta(n),i.data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-ht,circumference:ft,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return ce.isArray(n)?(n=n.slice(),n[0]+=r):n+=r,n}}}});var pt=Ce.extend({dataElementType:Je.Arc,linkScales:ce.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,i,o=this,a=o.chart,s=a.chartArea,u=a.options,l=1,c=1,d=0,f=0,h=o.getMeta(),p=h.data,m=u.cutoutPercentage/100||0,g=u.circumference,v=o._getRingWeight(o.index);if(g<ft){var _=u.rotation%ft;_+=_>=dt?-ft:_<-dt?ft:0;var b=_+g,y=Math.cos(_),x=Math.sin(_),w=Math.cos(b),k=Math.sin(b),M=_<=0&&b>=0||b>=ft,S=_<=ht&&b>=ht||b>=ft+ht,L=_===-dt||b>=dt,C=_<=-ht&&b>=-ht||b>=dt+ht,T=L?-1:Math.min(y,y*m,w,w*m),D=C?-1:Math.min(x,x*m,k,k*m),O=M?1:Math.max(y,y*m,w,w*m),E=S?1:Math.max(x,x*m,k,k*m);l=(O-T)/2,c=(E-D)/2,d=-(O+T)/2,f=-(E+D)/2}for(r=0,i=p.length;r<i;++r)p[r]._options=o._resolveDataElementOptions(p[r],r);for(a.borderWidth=o.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/l,n=(s.bottom-s.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*m,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=f*a.outerRadius,h.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*v,0),r=0,i=p.length;r<i;++r)o.updateElement(p[r],r,e)},updateElement:function(e,t,n){var r=this,i=r.chart,o=i.chartArea,a=i.options,s=a.animation,u=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=a.rotation,d=a.rotation,f=r.getDataset(),h=n&&s.animateRotate||e.hidden?0:r.calculateCircumference(f.data[t])*(a.circumference/ft),p=n&&s.animateScale?0:r.innerRadius,m=n&&s.animateScale?0:r.outerRadius,g=e._options||{};ce.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:u+i.offsetX,y:l+i.offsetY,startAngle:c,endAngle:d,circumference:h,outerRadius:m,innerRadius:p,label:ce.valueAtIndexOrDefault(f.label,t,i.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?a.rotation:r.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return ce.each(n.data,(function(n,i){e=t.data[i],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?ft*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,o,a,s,u,l=this,c=0,d=l.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){r=d.getDatasetMeta(t),e=r.data,t!==l.index&&(o=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)i=e[t],o?(o._configure(),a=o._resolveDataElementOptions(i,t)):a=i._options,"inner"!==a.borderAlign&&(s=a.borderWidth,u=a.hoverBorderWidth,c=s>c?s:c,c=u>c?u:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=ce.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=ct(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=ct(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=ct(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(ct(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});Q._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),Q._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var mt=at.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),gt=ce.valueOrDefault,vt=ce.options.resolve,_t=ce.canvas._isPointInArea;function bt(e,t){var n=e&&e.options.ticks||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function yt(e,t,n){var r=n/2,i=bt(e,r),o=bt(t,r);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function xt(e){var t,n,r,i;return ce.isObject(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i}}Q._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var wt=Ce.extend({datasetElementType:Je.Line,dataElementType:Je.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.options,u=r._config,l=r._showLine=gt(u.showLine,s.showLines);for(r._xScale=r.getScaleForId(i.xAxisID),r._yScale=r.getScaleForId(i.yAxisID),l&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=r._yScale,o._datasetIndex=r.index,o._children=a,o._model=r._resolveDatasetElementOptions(o),o.pivot()),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e);for(l&&0!==o._model.tension&&r.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var r,i,o=this,a=o.getMeta(),s=e.custom||{},u=o.getDataset(),l=o.index,c=u.data[t],d=o._xScale,f=o._yScale,h=a.dataset._model,p=o._resolveDataElementOptions(e,t);r=d.getPixelForValue("object"===typeof c?c:NaN,t,l),i=n?f.getBasePixel():o.calculatePointY(c,t,l),e._xScale=d,e._yScale=f,e._options=p,e._datasetIndex=l,e._index=t,e._model={x:r,y:i,skip:s.skip||isNaN(r)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:gt(s.tension,h?h.tension:0),steppedLine:!!h&&h.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},i=t.chart.options,o=i.elements.line,a=Ce.prototype._resolveDatasetElementOptions.apply(t,arguments);return a.spanGaps=gt(n.spanGaps,i.spanGaps),a.tension=gt(n.lineTension,o.tension),a.steppedLine=vt([r.steppedLine,n.steppedLine,o.stepped]),a.clip=xt(gt(n.clip,yt(t._xScale,t._yScale,a.borderWidth))),a},calculatePointY:function(e,t,n){var r,i,o,a,s,u,l,c=this,d=c.chart,f=c._yScale,h=0,p=0;if(f.options.stacked){for(s=+f.getRightValue(e),u=d._getSortedVisibleDatasetMetas(),l=u.length,r=0;r<l;++r){if(o=u[r],o.index===n)break;i=d.data.datasets[o.index],"line"===o.type&&o.yAxisID===f.id&&(a=+f.getRightValue(i.data[t]),a<0?p+=a||0:h+=a||0)}return s<0?f.getPixelForValue(p+s):f.getPixelForValue(h+s)}return f.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,i=this,o=i.chart,a=i.getMeta(),s=a.dataset._model,u=o.chartArea,l=a.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(s.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===s.cubicInterpolationMode)ce.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,r=ce.splineCurve(ce.previousItem(l,e)._model,n,ce.nextItem(l,e)._model,s.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(o.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,_t(n,u)&&(e>0&&_t(l[e-1]._model,u)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=c(n.controlPointPreviousY,u.top,u.bottom)),e<l.length-1&&_t(l[e+1]._model,u)&&(n.controlPointNextX=c(n.controlPointNextX,u.left,u.right),n.controlPointNextY=c(n.controlPointNextY,u.top,u.bottom)))},draw:function(){var e,t=this,n=t.chart,r=t.getMeta(),i=r.data||[],o=n.chartArea,a=n.canvas,s=0,u=i.length;for(t._showLine&&(e=r.dataset._model.clip,ce.canvas.clipArea(n.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?a.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?a.height:o.bottom+e.bottom}),r.dataset.draw(),ce.canvas.unclipArea(n.ctx));s<u;++s)i[s].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ce.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=gt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=gt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=gt(n.hoverBorderWidth,n.borderWidth),t.radius=gt(n.hoverRadius,n.radius)}}),kt=ce.options.resolve;Q._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,i,o=document.createElement("ul"),a=e.data,s=a.datasets,u=a.labels;if(o.setAttribute("class",e.id+"-legend"),s.length)for(t=0,n=s[0].data.length;t<n;++t)r=o.appendChild(document.createElement("li")),i=r.appendChild(document.createElement("span")),i.style.backgroundColor=s[0].backgroundColor[t],u[t]&&r.appendChild(document.createTextNode(u[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var i=e.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(t.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)i=a.getDatasetMeta(n),i.data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Mt=Ce.extend({dataElementType:Je.Arc,linkScales:ce.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,i=this,o=i.getDataset(),a=i.getMeta(),s=i.chart.options.startAngle||0,u=i._starts=[],l=i._angles=[],c=a.data;for(i._updateRadius(),a.count=i.countVisibleElements(),t=0,n=o.data.length;t<n;t++)u[t]=s,r=i._computeAngle(t),l[t]=r,s+=r;for(t=0,n=c.length;t<n;++t)c[t]._options=i._resolveDataElementOptions(c[t],t),i.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,i=r.chart,o=r.getDataset(),a=i.options,s=a.animation,u=i.scale,l=i.data.labels,c=u.xCenter,d=u.yCenter,f=a.startAngle,h=e.hidden?0:u.getDistanceFromCenterForValue(o.data[t]),p=r._starts[t],m=p+(e.hidden?0:r._angles[t]),g=s.animateScale?0:u.getDistanceFromCenterForValue(o.data[t]),v=e._options||{};ce.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:c,y:d,innerRadius:0,outerRadius:n?g:h,startAngle:n&&s.animateRotate?f:p,endAngle:n&&s.animateRotate?f:m,label:ce.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ce.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=ce.getHoverColor,i=ce.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=i(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=i(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=i(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),i=t.getMeta();if(isNaN(r.data[e])||i.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return kt([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});Q._set("pie",ce.clone(Q.doughnut)),Q._set("pie",{cutoutPercentage:0});var St=pt,Lt=ce.valueOrDefault;Q._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ct=Ce.extend({datasetElementType:Je.Line,dataElementType:Je.Point,linkScales:ce.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.scale,u=r._config;for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=a,o._loop=!0,o._model=r._resolveDatasetElementOptions(o),o.pivot(),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e);for(r.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var r=this,i=e.custom||{},o=r.getDataset(),a=r.chart.scale,s=a.getPointPositionForValue(t,o.data[t]),u=r._resolveDataElementOptions(e,t),l=r.getMeta().dataset._model,c=n?a.xCenter:s.x,d=n?a.yCenter:s.y;e._scale=a,e._options=u,e._datasetIndex=r.index,e._index=t,e._model={x:c,y:d,skip:i.skip||isNaN(c)||isNaN(d),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:Lt(i.tension,l?l.tension:0),hitRadius:u.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=Ce.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=Lt(t.spanGaps,n.spanGaps),r.tension=Lt(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,i=this,o=i.getMeta(),a=i.chart.chartArea,s=o.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}for(o.dataset._model.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),e=0,t=s.length;e<t;++e)n=s[e]._model,r=ce.splineCurve(ce.previousItem(s,e,!0)._model,n,ce.nextItem(s,e,!0)._model,n.tension),n.controlPointPreviousX=u(r.previous.x,a.left,a.right),n.controlPointPreviousY=u(r.previous.y,a.top,a.bottom),n.controlPointNextX=u(r.next.x,a.left,a.right),n.controlPointNextY=u(r.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ce.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Lt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Lt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Lt(n.hoverBorderWidth,n.borderWidth),t.radius=Lt(n.hoverRadius,n.radius)}});Q._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),Q._set("global",{datasets:{scatter:{showLine:!1}}});var Tt=wt,Dt={bar:at,bubble:lt,doughnut:pt,horizontalBar:mt,line:wt,polarArea:Mt,pie:St,radar:Ct,scatter:Tt};function Ot(e,t){return e.native?{x:e.x,y:e.y}:ce.getRelativePosition(e,t)}function Et(e,t){var n,r,i,o,a,s,u=e._getSortedVisibleDatasetMetas();for(r=0,o=u.length;r<o;++r)for(n=u[r].data,i=0,a=n.length;i<a;++i)s=n[i],s._view.skip||t(s)}function At(e,t){var n=[];return Et(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function Pt(e,t,n,r){var i=Number.POSITIVE_INFINITY,o=[];return Et(e,(function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),s=r(t,a);s<i?(o=[e],i=s):s===i&&o.push(e)}})),o}function Ft(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function It(e,t,n){var r=Ot(t,e);n.axis=n.axis||"x";var i=Ft(n.axis),o=n.intersect?At(e,r):Pt(e,r,!1,i),a=[];return o.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[o[0]._index];t&&!t._view.skip&&a.push(t)})),a):[]}var Yt={modes:{single:function(e,t){var n=Ot(t,e),r=[];return Et(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:It,index:It,dataset:function(e,t,n){var r=Ot(t,e);n.axis=n.axis||"xy";var i=Ft(n.axis),o=n.intersect?At(e,r):Pt(e,r,!1,i);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return It(e,t,{intersect:!1})},point:function(e,t){var n=Ot(t,e);return At(e,n)},nearest:function(e,t,n){var r=Ot(t,e);n.axis=n.axis||"xy";var i=Ft(n.axis);return Pt(e,r,n.intersect,i)},x:function(e,t,n){var r=Ot(t,e),i=[],o=!1;return Et(e,(function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(e,t,n){var r=Ot(t,e),i=[],o=!1;return Et(e,(function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}},Rt=ce.extend;function Nt(e,t){return ce.where(e,(function(e){return e.pos===t}))}function Ht(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function zt(e){var t,n,r,i=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],i.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return i}function jt(e,t){var n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight}function Bt(e){var t=zt(e),n=Ht(Nt(t,"left"),!0),r=Ht(Nt(t,"right")),i=Ht(Nt(t,"top"),!0),o=Ht(Nt(t,"bottom"));return{leftAndTop:n.concat(i),rightAndBottom:r.concat(o),chartArea:Nt(t,"chartArea"),vertical:n.concat(r),horizontal:i.concat(o)}}function Vt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function $t(e,t,n){var r,i,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=t.outerWidth-Vt(a,e,"left","right"),i=t.outerHeight-Vt(a,e,"top","bottom"),r!==e.w||i!==e.h){e.w=r,e.h=i;var u=n.horizontal?[r,e.w]:[i,e.h];return u[0]!==u[1]&&(!isNaN(u[0])||!isNaN(u[1]))}}function Ut(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Wt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function qt(e,t,n){var r,i,o,a,s,u,l=[];for(r=0,i=e.length;r<i;++r)o=e[r],a=o.box,a.update(o.width||t.w,o.height||t.h,Wt(o.horizontal,t)),$t(t,n,o)&&(u=!0,l.length&&(s=!0)),a.fullWidth||l.push(o);return s&&qt(l,t,n)||u}function Gt(e,t,n){var r,i,o,a,s=n.padding,u=t.x,l=t.y;for(r=0,i=e.length;r<i;++r)o=e[r],a=o.box,o.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=l,a.bottom=l+a.height,a.width=a.right-a.left,l=a.bottom):(a.left=u,a.right=u+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,u=a.right);t.x=u,t.y=l}Q._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Kt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},i=ce.options.toPadding(r.padding),o=t-i.width,a=n-i.height,s=Bt(e.boxes),u=s.vertical,l=s.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,vBoxMaxWidth:o/2/u.length,hBoxMaxHeight:a/2}),d=Rt({maxPadding:Rt({},i),w:o,h:a,x:i.left,y:i.top},i);jt(u.concat(l),c),qt(u,d,c),qt(l,d,c)&&qt(u,d,c),Ut(d),Gt(s.leftAndTop,d,c),d.x+=d.w,d.y+=d.h,Gt(s.rightAndBottom,d,c),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},ce.each(s.chartArea,(function(t){var n=t.box;Rt(n,e.chartArea),n.update(d.w,d.h)}))}}},Jt={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Xt="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Qt=Object.freeze({__proto__:null,default:Xt}),Zt=n(Qt),en="$chartjs",tn="chartjs-",nn=tn+"size-monitor",rn=tn+"render-monitor",on=tn+"render-animation",an=["animationstart","webkitAnimationStart"],sn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function un(e,t){var n=ce.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function ln(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[en]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var o=un(e,"width");void 0!==o&&(e.width=o)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=un(e,"height");void 0!==o&&(e.height=a)}return e}var cn=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}(),dn=!!cn&&{passive:!0};function fn(e,t,n){e.addEventListener(t,n,dn)}function hn(e,t,n){e.removeEventListener(t,n,dn)}function pn(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function mn(e,t){var n=sn[e.type]||e.type,r=ce.getRelativePosition(e,t);return pn(n,t,r.x,r.y,e)}function gn(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,ce.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function vn(e){var t=document.createElement("div");return t.className=e||"",t}function _n(e){var t=1e6,n=vn(nn),r=vn(nn+"-expand"),i=vn(nn+"-shrink");r.appendChild(vn()),i.appendChild(vn()),n.appendChild(r),n.appendChild(i),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,i.scrollLeft=t,i.scrollTop=t};var o=function(){n._reset(),e()};return fn(r,"scroll",o.bind(r,"expand")),fn(i,"scroll",o.bind(i,"shrink")),n}function bn(e,t){var n=e[en]||(e[en]={}),r=n.renderProxy=function(e){e.animationName===on&&t()};ce.each(an,(function(t){fn(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add(rn)}function yn(e){var t=e[en]||{},n=t.renderProxy;n&&(ce.each(an,(function(t){hn(e,t,n)})),delete t.renderProxy),e.classList.remove(rn)}function xn(e,t,n){var r=e[en]||(e[en]={}),i=r.resizer=_n(gn((function(){if(r.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,o=i?i.clientWidth:0;t(pn("resize",n)),i&&i.clientWidth<o&&n.canvas&&t(pn("resize",n))}})));bn(e,(function(){if(r.resizer){var t=e.parentNode;t&&t!==i.parentNode&&t.insertBefore(i,t.firstChild),i._reset()}}))}function wn(e){var t=e[en]||{},n=t.resizer;delete t.resizer,yn(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function kn(e,t){var n=e[en]||(e[en]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}var Mn={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document,n=t.host?t:document.head;kn(n,Zt)}},acquireContext:function(e,t){"string"===typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),ln(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[en]){var n=t[en].initial;["height","width"].forEach((function(e){var r=n[e];ce.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),ce.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[en]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var i=n[en]||(n[en]={}),o=i.proxies||(i.proxies={}),a=o[e.id+"_"+t]=function(t){n(mn(t,e))};fn(r,t,a)}else xn(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var i=n[en]||{},o=i.proxies||{},a=o[e.id+"_"+t];a&&hn(r,t,a)}else wn(r)}};ce.addEvent=fn,ce.removeEvent=hn;var Sn=Mn._enabled?Mn:Jt,Ln=ce.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Sn);Q._set("global",{plugins:{}});var Cn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,i,o,a,s,u=this.descriptors(e),l=u.length;for(r=0;r<l;++r)if(i=u[r],o=i.plugin,s=o[t],"function"===typeof s&&(a=[e].concat(n||[]),a.push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],i=e&&e.config||{},o=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(e){var t=n.indexOf(e);if(-1===t){var i=e.id,a=o[i];!1!==a&&(!0===a&&(a=ce.clone(Q.global.plugins[i])),n.push(e),r.push({plugin:e,options:a||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Tn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ce.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ce.merge(Object.create(null),[Q.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ce.extend(n.defaults[e],t))},addScalesToLayout:function(e){ce.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Kt.addBox(e,t)}))}},Dn=ce.valueOrDefault,On=ce.rtl.getRtlAdapter;Q._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ce.noop,title:function(e,t){var n="",r=t.labels,i=r?r.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:ce.noop,beforeBody:ce.noop,beforeLabel:ce.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ce.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex),r=n.data[e.index],i=r._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ce.noop,afterBody:ce.noop,beforeFooter:ce.noop,footer:ce.noop,afterFooter:ce.noop}}});var En={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(e,t){var n,r,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var u=e[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),c=ce.distanceBetweenPoints(t,l);c<s&&(s=c,i=u)}}if(i){var d=i.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function An(e,t){return t&&(ce.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Pn(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Fn(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,i=e._datasetIndex,o=e._chart.getDatasetMeta(i).controller,a=o._getIndexScale(),s=o._getValueScale();return{xLabel:t?t.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",label:a?""+a.getLabelForIndex(r,i):"",value:s?""+s.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:e._model.x,y:e._model.y}}function In(e){var t=Q.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Dn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Dn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Dn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Dn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Dn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Dn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Dn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Dn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Dn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Yn(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,o=t.body,a=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,u=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;r+=s*l,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*t.bodySpacing:0,r+=u?t.footerMarginTop:0,r+=u*d,r+=u?(u-1)*t.footerSpacing:0;var f=0,h=function(e){i=Math.max(i,n.measureText(e).width+f)};return n.font=ce.fontString(l,t._titleFontStyle,t._titleFontFamily),ce.each(t.title,h),n.font=ce.fontString(c,t._bodyFontStyle,t._bodyFontFamily),ce.each(t.beforeBody.concat(t.afterBody),h),f=t.displayColors?c+2:0,ce.each(o,(function(e){ce.each(e.before,h),ce.each(e.lines,h),ce.each(e.after,h)})),f=0,n.font=ce.fontString(d,t._footerFontStyle,t._footerFontFamily),ce.each(t.footer,h),i+=2*t.xPadding,{width:i,height:r}}function Rn(e,t){var n,r,i,o,a,s=e._model,u=e._chart,l=e._chart.chartArea,c="center",d="center";s.y<t.height?d="top":s.y>u.height-t.height&&(d="bottom");var f=(l.left+l.right)/2,h=(l.top+l.bottom)/2;"center"===d?(n=function(e){return e<=f},r=function(e){return e>f}):(n=function(e){return e<=t.width/2},r=function(e){return e>=u.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>u.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=h?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",d=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}function Nn(e,t,n,r){var i=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,u=e.cornerRadius,l=n.xAlign,c=n.yAlign,d=a+s,f=u+s;return"right"===l?i-=t.width:"center"===l&&(i-=t.width/2,i+t.width>r.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===c?o+=d:o-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===l?i+=d:"right"===l&&(i-=d):"left"===l?i-=f:"right"===l&&(i+=f),{x:i,y:o}}function Hn(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function zn(e){return An([],Pn(e))}var jn=_e.extend({initialize:function(){this._model=In(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),i=n.title.apply(e,arguments),o=n.afterTitle.apply(e,arguments),a=[];return a=An(a,Pn(r)),a=An(a,Pn(i)),a=An(a,Pn(o)),a},getBeforeBody:function(){return zn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return ce.each(e,(function(e){var o={before:[],lines:[],after:[]};An(o.before,Pn(r.beforeLabel.call(n,e,t))),An(o.lines,r.label.call(n,e,t)),An(o.after,Pn(r.afterLabel.call(n,e,t))),i.push(o)})),i},getAfterBody:function(){return zn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),o=[];return o=An(o,Pn(n)),o=An(o,Pn(r)),o=An(o,Pn(i)),o},update:function(e){var t,n,r=this,i=r._options,o=r._model,a=r._model=In(i),s=r._active,u=r._data,l={xAlign:o.xAlign,yAlign:o.yAlign},c={x:o.x,y:o.y},d={width:o.width,height:o.height},f={x:o.caretX,y:o.caretY};if(s.length){a.opacity=1;var h=[],p=[];f=En[i.position].call(r,s,r._eventPosition);var m=[];for(t=0,n=s.length;t<n;++t)m.push(Fn(s[t]));i.filter&&(m=m.filter((function(e){return i.filter(e,u)}))),i.itemSort&&(m=m.sort((function(e,t){return i.itemSort(e,t,u)}))),ce.each(m,(function(e){h.push(i.callbacks.labelColor.call(r,e,r._chart)),p.push(i.callbacks.labelTextColor.call(r,e,r._chart))})),a.title=r.getTitle(m,u),a.beforeBody=r.getBeforeBody(m,u),a.body=r.getBody(m,u),a.afterBody=r.getAfterBody(m,u),a.footer=r.getFooter(m,u),a.x=f.x,a.y=f.y,a.caretPadding=i.caretPadding,a.labelColors=h,a.labelTextColors=p,a.dataPoints=m,d=Yn(this,a),l=Rn(this,d),c=Nn(a,d,l,r._chart)}else a.opacity=0;return a.xAlign=l.xAlign,a.yAlign=l.yAlign,a.x=c.x,a.y=c.y,a.width=d.width,a.height=d.height,a.caretX=f.x,a.caretY=f.y,r._model=a,e&&i.custom&&i.custom.call(r,a),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,o,a,s,u,l=n.caretSize,c=n.cornerRadius,d=n.xAlign,f=n.yAlign,h=e.x,p=e.y,m=t.width,g=t.height;if("center"===f)s=p+g/2,"left"===d?(r=h,i=r-l,o=r,a=s+l,u=s-l):(r=h+m,i=r+l,o=r,a=s-l,u=s+l);else if("left"===d?(i=h+c+l,r=i-l,o=i+l):"right"===d?(i=h+m-c-l,r=i-l,o=i+l):(i=n.caretX,r=i-l,o=i+l),"top"===f)a=p,s=a-l,u=a;else{a=p+g,s=a+l,u=a;var v=o;o=r,r=v}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(e,t,n){var r,i,o,a=t.title,s=a.length;if(s){var u=On(t.rtl,t.x,t.width);for(e.x=Hn(t,t._titleAlign),n.textAlign=u.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=ce.fontString(r,t._titleFontStyle,t._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],u.x(e.x),e.y+r/2),e.y+=r+i,o+1===s&&(e.y+=t.titleMarginBottom-i)}},drawBody:function(e,t,n){var r,i,o,a,s,u,l,c,d=t.bodyFontSize,f=t.bodySpacing,h=t._bodyAlign,p=t.body,m=t.displayColors,g=0,v=m?Hn(t,"left"):0,_=On(t.rtl,t.x,t.width),b=function(t){n.fillText(t,_.x(e.x+g),e.y+d/2),e.y+=d+f},y=_.textAlign(h);for(n.textAlign=h,n.textBaseline="middle",n.font=ce.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Hn(t,y),n.fillStyle=t.bodyFontColor,ce.each(t.beforeBody,b),g=m&&"right"!==y?"center"===h?d/2+1:d+2:0,s=0,l=p.length;s<l;++s){for(r=p[s],i=t.labelTextColors[s],o=t.labelColors[s],n.fillStyle=i,ce.each(r.before,b),a=r.lines,u=0,c=a.length;u<c;++u){if(m){var x=_.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(_.leftForLtr(x,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(_.leftForLtr(x,d),e.y,d,d),n.fillStyle=o.backgroundColor,n.fillRect(_.leftForLtr(_.xPlus(x,1),d-2),e.y+1,d-2,d-2),n.fillStyle=i}b(a[u])}ce.each(r.after,b)}g=0,ce.each(t.afterBody,b),e.y-=f},drawFooter:function(e,t,n){var r,i,o=t.footer,a=o.length;if(a){var s=On(t.rtl,t.x,t.width);for(e.x=Hn(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=ce.fontString(r,t._footerFontStyle,t._footerFontFamily),i=0;i<a;++i)n.fillText(o[i],s.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var i=t.xAlign,o=t.yAlign,a=e.x,s=e.y,u=r.width,l=r.height,c=t.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===o&&this.drawCaret(e,r),n.lineTo(a+u-c,s),n.quadraticCurveTo(a+u,s,a+u,s+c),"center"===o&&"right"===i&&this.drawCaret(e,r),n.lineTo(a+u,s+l-c),n.quadraticCurveTo(a+u,s+l,a+u-c,s+l),"bottom"===o&&this.drawCaret(e,r),n.lineTo(a+c,s+l),n.quadraticCurveTo(a,s+l,a,s+l-c),"center"===o&&"left"===i&&this.drawCaret(e,r),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,ce.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),ce.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),r=!ce.arrayEquals(t._active,t._lastActive),r&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Bn=En,Vn=jn;Vn.positioners=Bn;var $n=ce.valueOrDefault;function Un(){return ce.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,o,a,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i<s;++i)a=n[e][i],o=$n(a.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?ce.merge(t[e][i],[Tn.getScaleDefaults(o),a]):ce.merge(t[e][i],a)}else ce._merger(e,t,n,r)}})}function Wn(){return ce.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Un(i,o):"scale"===e?t[e]=ce.merge(i,[Tn.getScaleDefaults(o.type),o]):ce._merger(e,t,n,r)}})}function qn(e){e=e||Object.create(null);var t=e.data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Wn(Q.global,Q[e.type],e.options||{}),e}function Gn(e){var t=e.options;ce.each(e.scales,(function(t){Kt.removeBox(e,t)})),t=Wn(Q.global,Q[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Kn(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(ce.findIndex(e,i)>=0);return r}function Jn(e){return"top"===e||"bottom"===e}function Xn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}Q._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Qn=function(e,t){return this.construct(e,t),this};ce.extend(Qn.prototype,{construct:function(e,t){var n=this;t=qn(t);var r=Ln.acquireContext(e,t),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=ce.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Qn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Cn.notify(e,"beforeInit"),ce.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Cn.notify(e,"afterInit"),e},clear:function(){return ce.canvas.clear(this),this},stop:function(){return xe.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(ce.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:ce.getMaximumHeight(r)));if((t.width!==o||t.height!==a)&&(r.width=t.width=o,r.height=t.height=a,r.style.width=o+"px",r.style.height=a+"px",ce.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};Cn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;ce.each(t.xAxes,(function(e,n){e.id||(e.id=Kn(t.xAxes,"x-axis-",n))})),ce.each(t.yAxes,(function(e,n){e.id||(e.id=Kn(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ce.each(r,(function(t){var r=t.options,o=r.id,a=$n(r.type,t.dtype);Jn(r.position)!==Jn(t.dposition)&&(r.position=t.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)s=n[o],s.options=r,s.ctx=e.ctx,s.chart=e;else{var u=Tn.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),ce.each(i,(function(e,t){e||delete n[t]})),e.scales=n,Tn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e<t;e++){var o=i[e],a=n.getDatasetMeta(e),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=s,a.order=o.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var u=Dt[a.type];if(void 0===u)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new u(n,e),r.push(a.controller)}}return r},resetElements:function(){var e=this;ce.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]}),Gn(r),Cn._invalidate(r),!1!==Cn.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var i=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&ce.each(i,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],Cn.notify(r,"afterUpdate"),r._layers.sort(Xn("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==Cn.notify(e,"beforeLayout")&&(Kt.update(this,this.width,this.height),e._layers=[],ce.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),Cn.notify(e,"afterScaleUpdate"),Cn.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Cn.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);Cn.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),r={meta:n,index:e};!1!==Cn.notify(t,"beforeDatasetUpdate",[r])&&(n.controller._update(),Cn.notify(t,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=$n(e.duration,n&&n.duration),i=e.lazy;if(!1!==Cn.notify(t,"beforeRender")){var o=function(e){Cn.notify(t,"afterRender"),ce.callback(n&&n.onComplete,[e],t)};if(n&&r){var a=new ye({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=ce.easing.effects[t.easing],r=t.currentStep,i=r/t.numSteps;e.draw(n(i),i,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});xe.addAnimation(t,a,r,i)}else t.draw(),o(new ye({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),ce.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==Cn.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),Cn.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,r=(t.data.datasets||[]).length;n<r;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=this,i=r.data.datasets||[],o=[];for(t=0,n=i.length;t<n;++t)e&&!r.isDatasetVisible(t)||o.push(r.getDatasetMeta(t));return o.sort(Xn("order","index")),o},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,r=this;if(!1!==Cn.notify(r,"beforeDatasetsDraw",[e])){for(t=r._getSortedVisibleDatasetMetas(),n=t.length-1;n>=0;--n)r.drawDataset(t[n],e);Cn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==Cn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),Cn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==Cn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),Cn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Yt.modes.single(this,e)},getElementsAtEvent:function(e){return Yt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Yt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Yt.modes[t];return"function"===typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Yt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"===typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),ce.canvas.clear(n),Ln.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Cn.notify(n,"destroy"),delete Qn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Vn({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};ce.each(e.options.events,(function(r){Ln.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},Ln.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ce.each(t,(function(t,n){Ln.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,i,o,a=n?"set":"remove";for(i=0,o=e.length;i<o;++i)r=e[i],r&&this.getDatasetMeta(r._datasetIndex).controller[a+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Cn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),Cn.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},r=n.hover,i=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,r.mode,r),ce.callback(n.onHover||n.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,r.mode,!1),t.active.length&&r.mode&&t.updateHoverStyle(t.active,r.mode,!0),i=!ce.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,i}}),Qn.instances={};var Zn=Qn;Qn.Controller=Qn,Qn.types={},ce.configMerge=Wn,ce.scaleMerge=Un;var er=function(){function e(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return void 0!==e&&null!==e&&"none"!==e}function n(n,r,i){var o=document.defaultView,a=ce._getParentNode(n),s=o.getComputedStyle(n)[r],u=o.getComputedStyle(a)[r],l=t(s),c=t(u),d=Number.POSITIVE_INFINITY;return l||c?Math.min(l?e(s,n,i):d,c?e(u,a,i):d):"none"}ce.where=function(e,t){if(ce.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ce.each(e,(function(e){t(e)&&n.push(e)})),n},ce.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,i=e.length;r<i;++r)if(t.call(n,e[r],r,e))return r;return-1},ce.findNextWhere=function(e,t,n){ce.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var i=e[r];if(t(i))return i}},ce.findPreviousWhere=function(e,t,n){ce.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var i=e[r];if(t(i))return i}},ce.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ce.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ce.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},ce.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ce.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ce.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},ce.toRadians=function(e){return e*(Math.PI/180)},ce.toDegrees=function(e){return e*(180/Math.PI)},ce._decimalPlaces=function(e){if(ce.isFinite(e)){var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}},ce.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},ce.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ce.aliasPixel=function(e){return e%2===0?0:.5},ce._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},ce.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),l=s/(s+u),c=u/(s+u);l=isNaN(l)?0:l,c=isNaN(c)?0:c;var d=r*l,f=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}},ce.EPSILON=Number.EPSILON||1e-14,ce.splineCurveMonotone=function(e){var t,n,r,i,o,a,s,u,l,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=c.length;for(t=0;t<d;++t)if(r=c[t],!r.model.skip){if(n=t>0?c[t-1]:null,i=t<d-1?c[t+1]:null,i&&!i.model.skip){var f=i.model.x-r.model.x;r.deltaK=0!==f?(i.model.y-r.model.y)/f:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=c[t],i=c[t+1],r.model.skip||i.model.skip||(ce.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(o=r.mK/r.deltaK,a=i.mK/r.deltaK,u=Math.pow(o,2)+Math.pow(a,2),u<=9||(s=3/Math.sqrt(u),r.mK=o*s*r.deltaK,i.mK=a*s*r.deltaK)));for(t=0;t<d;++t)r=c[t],r.model.skip||(n=t>0?c[t-1]:null,i=t<d-1?c[t+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),i&&!i.model.skip&&(l=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},ce.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},ce.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ce.niceNum=function(e,t){var n,r=Math.floor(ce.log10(e)),i=e/Math.pow(10,r);return n=t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,r)},ce.requestAnimFrame=function(){return"undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),ce.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(ce.getStyle(o,"padding-left")),l=parseFloat(ce.getStyle(o,"padding-top")),c=parseFloat(ce.getStyle(o,"padding-right")),d=parseFloat(ce.getStyle(o,"padding-bottom")),f=a.right-a.left-u-c,h=a.bottom-a.top-l-d;return n=Math.round((n-a.left-u)/f*o.width/t.currentDevicePixelRatio),r=Math.round((r-a.top-l)/h*o.height/t.currentDevicePixelRatio),{x:n,y:r}},ce.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ce.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ce._calculatePadding=function(e,t,n){return t=ce.getStyle(e,t),t.indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ce._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ce.getMaximumWidth=function(e){var t=ce._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=ce._calculatePadding(t,"padding-left",n),i=ce._calculatePadding(t,"padding-right",n),o=n-r-i,a=ce.getConstraintWidth(e);return isNaN(a)?o:Math.min(o,a)},ce.getMaximumHeight=function(e){var t=ce._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=ce._calculatePadding(t,"padding-top",n),i=ce._calculatePadding(t,"padding-bottom",n),o=n-r-i,a=ce.getConstraintHeight(e);return isNaN(a)?o:Math.min(o,a)},ce.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ce.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},ce.fontString=function(e,t,n){return t+" "+e+"px "+n},ce.longestText=function(e,t,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var a,s,u,l,c,d=0,f=n.length;for(a=0;a<f;a++)if(l=n[a],void 0!==l&&null!==l&&!0!==ce.isArray(l))d=ce.measureText(e,i,o,d,l);else if(ce.isArray(l))for(s=0,u=l.length;s<u;s++)c=l[s],void 0===c||null===c||ce.isArray(c)||(d=ce.measureText(e,i,o,d,c));var h=o.length/2;if(h>n.length){for(a=0;a<h;a++)delete i[o[a]];o.splice(0,h)}return d},ce.measureText=function(e,t,n,r,i){var o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r},ce.numberOfLabelLines=function(e){var t=1;return ce.each(e,(function(e){ce.isArray(e)&&e.length>t&&(t=e.length)})),t},ce.color=R?function(e){return e instanceof CanvasGradient&&(e=Q.global.defaultColor),R(e)}:function(e){return console.error("Color.js not found!"),e},ce.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ce.color(e).saturate(.5).darken(.1).rgbString()}};function tr(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function nr(e){this.options=e||{}}ce.extend(nr.prototype,{formats:tr,parse:tr,format:tr,add:tr,diff:tr,startOf:tr,endOf:tr,_create:function(e){return e}}),nr.override=function(e){ce.extend(nr.prototype,e)};var rr=nr,ir={_date:rr},or={formatters:{values:function(e){return ce.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=ce.log10(Math.abs(r)),o="";if(0!==e){var a=Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]));if(a<1e-4){var s=ce.log10(Math.abs(e)),u=Math.floor(s)-Math.floor(i);u=Math.max(Math.min(u,20),0),o=e.toExponential(u)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(ce.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},ar=ce.isArray,sr=ce.isNullOrUndef,ur=ce.valueOrDefault,lr=ce.valueAtIndexOrDefault;function cr(e,t){for(var n=[],r=e.length/t,i=0,o=e.length;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function dr(e,t,n){var r,i=e.getTicks().length,o=Math.min(t,i-1),a=e.getPixelForTick(o),s=e._startPixel,u=e._endPixel,l=1e-6;if(!(n&&(r=1===i?Math.max(a-s,u-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,a+=o<t?r:-r,a<s-l||a>u+l)))return a}function fr(e,t){ce.each(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}function hr(e,t,n,r){var i,o,a,s,u,l,c,d,f,h,p,m,g,v=n.length,_=[],b=[],y=[],x=0,w=0;for(i=0;i<v;++i){if(s=n[i].label,u=n[i].major?t.major:t.minor,e.font=l=u.string,c=r[l]=r[l]||{data:{},gc:[]},d=u.lineHeight,f=h=0,sr(s)||ar(s)){if(ar(s))for(o=0,a=s.length;o<a;++o)p=s[o],sr(p)||ar(p)||(f=ce.measureText(e,c.data,c.gc,f,p),h+=d)}else f=ce.measureText(e,c.data,c.gc,f,s),h=d;_.push(f),b.push(h),y.push(d/2),x=Math.max(f,x),w=Math.max(h,w)}function k(e){return{width:_[e]||0,height:b[e]||0,offset:y[e]||0}}return fr(r,v),m=_.indexOf(x),g=b.indexOf(w),{first:k(0),last:k(v-1),widest:k(m),highest:k(g)}}function pr(e){return e.drawTicks?e.tickMarkLength:0}function mr(e){var t,n;return e.display?(t=ce.options._parseFont(e),n=ce.options.toPadding(e.padding),t.lineHeight+n.height):0}function gr(e,t){return ce.extend(ce.options._parseFont({fontFamily:ur(t.fontFamily,e.fontFamily),fontSize:ur(t.fontSize,e.fontSize),fontStyle:ur(t.fontStyle,e.fontStyle),lineHeight:ur(t.lineHeight,e.lineHeight)}),{color:ce.options.resolve([t.fontColor,e.fontColor,Q.global.defaultFontColor])})}function vr(e){var t=gr(e,e.minor),n=e.major.enabled?gr(e,e.major):t;return{minor:t,major:n}}function _r(e){var t,n,r,i=[];for(n=0,r=e.length;n<r;++n)t=e[n],"undefined"!==typeof t._index&&i.push(t);return i}function br(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}function yr(e,t,n,r){var i,o,a,s,u=br(e),l=(t.length-1)/r;if(!u)return Math.max(l,1);for(i=ce.math._factorize(u),a=0,s=i.length-1;a<s;a++)if(o=i[a],o>l)return o;return Math.max(l,1)}function xr(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}function wr(e,t,n){var r,i,o=0,a=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)i=e[r],r===a?(i._index=r,o++,a=t[o*n]):delete i.label}function kr(e,t,n,r){var i,o,a,s,u=ur(n,0),l=Math.min(ur(r,e.length),e.length),c=0;t=Math.ceil(t),r&&(i=r-n,t=i/Math.floor(i/t)),s=u;while(s<0)c++,s=Math.round(u+c*t);for(o=Math.max(u,0);o<l;o++)a=e[o],o===s?(a._index=o,c++,s=Math.round(u+c*t)):delete a.label}Q._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:or.formatters.values,minor:{},major:{}}});var Mr=_e.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ce.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,i,o,a,s,u=this,l=u.options.ticks,c=l.sampleSize;if(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=ce.extend({left:0,right:0,top:0,bottom:0},n),u._ticks=null,u.ticks=null,u._labelSizes=null,u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u._gridLineItems=null,u._labelItems=null,u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),a=u.buildTicks()||[],a=u.afterBuildTicks(a)||a,(!a||!a.length)&&u.ticks)for(a=[],r=0,i=u.ticks.length;r<i;++r)a.push({value:u.ticks[r],major:!1});return u._ticks=a,s=c<a.length,o=u._convertTicksToLabels(s?cr(a,c):a),u._configure(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?u._autoSkip(a):a,s&&(o=u._convertTicksToLabels(u._ticksToDraw)),u.ticks=o,u.afterUpdate(),u.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){ce.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ce.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){ce.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ce.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ce.noop,afterDataLimits:function(){ce.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ce.callback(this.options.beforeBuildTicks,[this])},buildTicks:ce.noop,afterBuildTicks:function(e){var t=this;return ar(e)&&e.length?ce.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ce.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ce.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ce.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ce.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,i,o,a,s=this,u=s.options,l=u.ticks,c=s.getTicks().length,d=l.minRotation||0,f=l.maxRotation,h=d;!s._isVisible()||!l.display||d>=f||c<=1||!s.isHorizontal()?s.labelRotation=d:(e=s._getLabelSizes(),t=e.widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),i=u.offset?s.maxWidth/c:r/(c-1),t+6>i&&(i=r/(c-(u.offset?.5:1)),o=s.maxHeight-pr(u.gridLines)-l.padding-mr(u.scaleLabel),a=Math.sqrt(t*t+n*n),h=ce.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),h=Math.max(d,Math.min(f,h))),s.labelRotation=h)},afterCalculateTickRotation:function(){ce.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ce.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=e._isVisible(),u="bottom"===r.position,l=e.isHorizontal();if(l?t.width=e.maxWidth:s&&(t.width=pr(a)+mr(o)),l?s&&(t.height=pr(a)+mr(o)):t.height=e.maxHeight,i.display&&s){var c=vr(i),d=e._getLabelSizes(),f=d.first,h=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,v=i.padding;if(l){var _=0!==e.labelRotation,b=ce.toRadians(e.labelRotation),y=Math.cos(b),x=Math.sin(b),w=x*p.width+y*(m.height-(_?m.offset:0))+(_?0:g);t.height=Math.min(e.maxHeight,t.height+w+v);var k,M,S=e.getPixelForTick(0)-e.left,L=e.right-e.getPixelForTick(e.getTicks().length-1);_?(k=u?y*f.width+x*f.offset:x*(f.height-f.offset),M=u?x*(h.height-h.offset):y*h.width+x*h.offset):(k=f.width/2,M=h.width/2),e.paddingLeft=Math.max((k-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((M-L)*e.width/(e.width-L),0)+3}else{var C=i.mirror?0:p.width+v+g;t.width=Math.min(e.maxWidth,t.width+C),e.paddingTop=f.height/2,e.paddingBottom=h.height/2}}e.handleMargins(),l?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){ce.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(sr(e))return NaN;if(("number"===typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=hr(e.ctx,vr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,i;return ar(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),i=Math.max(t,n)):(e=+this.getRightValue(e),t=void 0,n=e,r=e,i=e),{min:r,max:i,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:ce.noop,getPixelForValue:ce.noop,getValueForPixel:ce.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,r=t._ticks.length,i=1/Math.max(r-(n?0:1),1);return e<0||e>r-1?null:t.getPixelForDecimal(e*i+(n?i/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,i,o=this,a=o.options.ticks,s=o._length,u=a.maxTicksLimit||s/o._tickSize()+1,l=a.major.enabled?xr(e):[],c=l.length,d=l[0],f=l[c-1];if(c>u)return wr(e,l,c/u),_r(e);if(r=yr(l,e,s,u),c>0){for(t=0,n=c-1;t<n;t++)kr(e,r,l[t],l[t+1]);return i=c>1?(f-d)/(c-1):null,kr(e,r,ce.isNullOrUndef(i)?0:d-i,d),kr(e,r,f,ce.isNullOrUndef(i)?e.length:f+i),_r(e)}return kr(e,r),_r(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=ce.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,u=o?o.highest.height+a:0;return e.isHorizontal()?u*r>s*i?s/r:u/i:u*i<s*r?u/r:s/i},_isVisible:function(){var e,t,n,r=this,i=r.chart,o=r.options.display;if("auto"!==o)return!!o;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&(n=i.getDatasetMeta(e),n.xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,i,o,a,s,u,l,c,d,f,h,p,m,g,v,_=this,b=_.chart,y=_.options,x=y.gridLines,w=y.position,k=x.offsetGridLines,M=_.isHorizontal(),S=_._ticksToDraw,L=S.length+(k?1:0),C=pr(x),T=[],D=x.drawBorder?lr(x.lineWidth,0,0):0,O=D/2,E=ce._alignPixel,A=function(e){return E(b,e,D)};for("top"===w?(t=A(_.bottom),s=_.bottom-C,l=t-O,d=A(e.top)+O,h=e.bottom):"bottom"===w?(t=A(_.top),d=e.top,h=A(e.bottom)-O,s=t+O,l=_.top+C):"left"===w?(t=A(_.right),a=_.right-C,u=t-O,c=A(e.left)+O,f=e.right):(t=A(_.left),c=e.left,f=A(e.right)-O,a=t+O,u=_.left+C),n=0;n<L;++n)r=S[n]||{},sr(r.label)&&n<S.length||(n===_.zeroLineIndex&&y.offset===k?(p=x.zeroLineWidth,m=x.zeroLineColor,g=x.zeroLineBorderDash||[],v=x.zeroLineBorderDashOffset||0):(p=lr(x.lineWidth,n,1),m=lr(x.color,n,"rgba(0,0,0,0.1)"),g=x.borderDash||[],v=x.borderDashOffset||0),i=dr(_,r._index||n,k),void 0!==i&&(o=E(b,i,p),M?a=u=c=f=o:s=l=d=h=o,T.push({tx1:a,ty1:s,tx2:u,ty2:l,x1:c,y1:d,x2:f,y2:h,width:p,color:m,borderDash:g,borderDashOffset:v})));return T.ticksLength=L,T.borderValue=t,T},_computeLabelItems:function(){var e,t,n,r,i,o,a,s,u,l,c,d,f=this,h=f.options,p=h.ticks,m=h.position,g=p.mirror,v=f.isHorizontal(),_=f._ticksToDraw,b=vr(p),y=p.padding,x=pr(h.gridLines),w=-ce.toRadians(f.labelRotation),k=[];for("top"===m?(o=f.bottom-x-y,a=w?"left":"center"):"bottom"===m?(o=f.top+x+y,a=w?"right":"center"):"left"===m?(i=f.right-(g?0:x)-y,a=g?"left":"right"):(i=f.left+(g?0:x)+y,a=g?"right":"left"),e=0,t=_.length;e<t;++e)n=_[e],r=n.label,sr(r)||(s=f.getPixelForTick(n._index||e)+p.labelOffset,u=n.major?b.major:b.minor,l=u.lineHeight,c=ar(r)?r.length:1,v?(i=s,d="top"===m?((w?1:.5)-c)*l:(w?0:.5)*l):(o=s,d=(1-c)*l/2),k.push({x:i,y:o,rotation:w,label:r,font:u,textOffset:d,textAlign:a}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,i,o,a,s,u=t.ctx,l=t.chart,c=ce._alignPixel,d=n.drawBorder?lr(n.lineWidth,0,0):0,f=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(o=0,a=f.length;o<a;++o)s=f[o],r=s.width,i=s.color,r&&i&&(u.save(),u.lineWidth=r,u.strokeStyle=i,u.setLineDash&&(u.setLineDash(s.borderDash),u.lineDashOffset=s.borderDashOffset),u.beginPath(),n.drawTicks&&(u.moveTo(s.tx1,s.ty1),u.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(u.moveTo(s.x1,s.y1),u.lineTo(s.x2,s.y2)),u.stroke(),u.restore());if(d){var h,p,m,g,v=d,_=lr(n.lineWidth,f.ticksLength-1,1),b=f.borderValue;t.isHorizontal()?(h=c(l,t.left,v)-v/2,p=c(l,t.right,_)+_/2,m=g=b):(m=c(l,t.top,v)-v/2,g=c(l,t.bottom,_)+_/2,h=p=b),u.lineWidth=d,u.strokeStyle=lr(n.color,0),u.beginPath(),u.moveTo(h,m),u.lineTo(p,g),u.stroke()}}},_drawLabels:function(){var e=this,t=e.options.ticks;if(t.display){var n,r,i,o,a,s,u,l,c=e.ctx,d=e._labelItems||(e._labelItems=e._computeLabelItems());for(n=0,i=d.length;n<i;++n){if(a=d[n],s=a.font,c.save(),c.translate(a.x,a.y),c.rotate(a.rotation),c.font=s.string,c.fillStyle=s.color,c.textBaseline="middle",c.textAlign=a.textAlign,u=a.label,l=a.textOffset,ar(u))for(r=0,o=u.length;r<o;++r)c.fillText(""+u[r],0,l),l+=s.lineHeight;else c.fillText(u,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var i,o,a=ur(r.fontColor,Q.global.defaultFontColor),s=ce.options._parseFont(r),u=ce.options.toPadding(r.padding),l=s.lineHeight/2,c=n.position,d=0;if(e.isHorizontal())i=e.left+e.width/2,o="bottom"===c?e.bottom-l-u.bottom:e.top+l+u.top;else{var f="left"===c;i=f?e.left+l+u.top:e.right-l-u.top,o=e.top+e.height/2,d=f?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(i,o),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});Mr.prototype._draw=Mr.prototype.draw;var Sr=Mr,Lr=ce.isNullOrUndef,Cr={position:"bottom"},Tr=Sr.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,i=r.min,o=r.max,a=0,s=n.length-1;void 0!==i&&(e=n.indexOf(i),e>=0&&(a=e)),void 0!==o&&(e=n.indexOf(o),e>=0&&(s=e)),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;Sr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,o,a=this;return Lr(t)||Lr(n)||(e=a.chart.data.datasets[n].data[t]),Lr(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=ce.valueOrDefault(r,e),o=i.indexOf(e),t=-1!==o?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Dr=Cr;Tr._defaults=Dr;var Or=ce.noop,Er=ce.isNullOrUndef;function Ar(e,t){var n,r,i,o,a=[],s=1e-14,u=e.stepSize,l=u||1,c=e.maxTicks-1,d=e.min,f=e.max,h=e.precision,p=t.min,m=t.max,g=ce.niceNum((m-p)/c/l)*l;if(g<s&&Er(d)&&Er(f))return[p,m];o=Math.ceil(m/g)-Math.floor(p/g),o>c&&(g=ce.niceNum(o*g/c/l)*l),u||Er(h)?n=Math.pow(10,ce._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),r=Math.floor(p/g)*g,i=Math.ceil(m/g)*g,u&&(!Er(d)&&ce.almostWhole(d/g,g/1e3)&&(r=d),!Er(f)&&ce.almostWhole(f/g,g/1e3)&&(i=f)),o=(i-r)/g,o=ce.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(Er(d)?r:d);for(var v=1;v<o;++v)a.push(Math.round((r+v*g)*n)/n);return a.push(Er(f)?i:f),a}var Pr=Sr.extend({getRightValue:function(e){return"string"===typeof e?+e:Sr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options,n=t.ticks;if(n.beginAtZero){var r=ce.sign(e.min),i=ce.sign(e.max);r<0&&i<0?e.max=0:r>0&&i>0&&(e.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,a=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(null===e.min?e.min=n.suggestedMin:e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(null===e.max?e.max=n.suggestedMax:e.max=Math.max(e.max,n.suggestedMax)),o!==a&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,i=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Or,buildTicks:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit();r=Math.max(2,r);var i={maxTicks:r,min:n.min,max:n.max,precision:n.precision,stepSize:ce.valueOrDefault(n.fixedStepSize,n.stepSize)},o=e.ticks=Ar(i,e);e.handleDirectionalChanges(),e.max=ce.max(o),e.min=ce.min(o),n.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Sr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,i=t.max;Sr.prototype._configure.call(t),t.options.offset&&n.length&&(e=(i-r)/Math.max(n.length-1,1)/2,r-=e,i+=e),t._startValue=r,t._endValue=i,t._valueRange=i-r}}),Fr={position:"left",ticks:{callback:or.formatters.linear}},Ir=0,Yr=1;function Rr(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function Nr(e,t,n,r){var i,o,a=e.options,s=a.stacked,u=Rr(t,s,n),l=u.pos,c=u.neg,d=r.length;for(i=0;i<d;++i)o=e._parseValue(r[i]),isNaN(o.min)||isNaN(o.max)||n.data[i].hidden||(l[i]=l[i]||0,c[i]=c[i]||0,a.relativePoints?l[i]=100:o.min<0||o.max<0?c[i]+=o.min:l[i]+=o.max)}function Hr(e,t,n){var r,i,o=n.length;for(r=0;r<o;++r)i=e._parseValue(n[r]),isNaN(i.min)||isNaN(i.max)||t.data[r].hidden||(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}var zr=Pr.extend({determineDataLimits:function(){var e,t,n,r,i=this,o=i.options,a=i.chart,s=a.data.datasets,u=i._getMatchingVisibleMetas(),l=o.stacked,c={},d=u.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<d;++e)t=u[e],l=void 0!==t.stack;for(e=0;e<d;++e)t=u[e],n=s[t.index].data,l?Nr(i,c,t,n):Hr(i,t,n);ce.each(c,(function(e){r=e.pos.concat(e.neg),i.min=Math.min(i.min,ce.min(r)),i.max=Math.max(i.max,ce.max(r))})),i.min=ce.isFinite(i.min)&&!isNaN(i.min)?i.min:Ir,i.max=ce.isFinite(i.max)&&!isNaN(i.max)?i.max:Yr,i.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ce.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),jr=Fr;zr._defaults=jr;var Br=ce.valueOrDefault,Vr=ce.math.log10;function $r(e,t){var n,r,i=[],o=Br(e.min,Math.pow(10,Math.floor(Vr(t.min)))),a=Math.floor(Vr(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Vr(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(Vr(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),++r,10===r&&(r=1,++n,u=n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(n<a||n===a&&r<s);var l=Br(e.max,o);return i.push(l),i}var Ur={position:"left",ticks:{callback:or.formatters.logarithmic}};function Wr(e,t){return ce.isFinite(e)&&e>=0?e:t}var qr=Sr.extend({determineDataLimits:function(){var e,t,n,r,i,o,a=this,s=a.options,u=a.chart,l=u.data.datasets,c=a.isHorizontal();function d(e){return c?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var f=s.stacked;if(void 0===f)for(e=0;e<l.length;e++)if(t=u.getDatasetMeta(e),u.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){f=!0;break}if(s.stacked||f){var h={};for(e=0;e<l.length;e++){t=u.getDatasetMeta(e);var p=[t.type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(u.isDatasetVisible(e)&&d(t))for(void 0===h[p]&&(h[p]=[]),r=l[e].data,i=0,o=r.length;i<o;i++){var m=h[p];n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||t.data[i].hidden||n.min<0||n.max<0||(m[i]=m[i]||0,m[i]+=n.max)}}ce.each(h,(function(e){if(e.length>0){var t=ce.min(e),n=ce.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e<l.length;e++)if(t=u.getDatasetMeta(e),u.isDatasetVisible(e)&&d(t))for(r=l[e].data,i=0,o=r.length;i<o;i++)n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||t.data[i].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=ce.isFinite(a.min)?a.min:null,a.max=ce.isFinite(a.max)?a.max:null,a.minNotZero=ce.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,r=10;e.min=Wr(t.min,e.min),e.max=Wr(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Vr(e.min))-1),e.max=Math.pow(10,Math.floor(Vr(e.max))+1)):(e.min=n,e.max=r)),null===e.min&&(e.min=Math.pow(10,Math.floor(Vr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Vr(e.min))+1):r),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Vr(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Wr(t.min),max:Wr(t.max)},i=e.ticks=$r(r,e);e.max=ce.max(i),e.min=ce.min(i),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Sr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Vr(e)),n=Math.floor(e/Math.pow(10,t));return n*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;Sr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Br(e.options.ticks.fontSize,Q.global.defaultFontSize)/e._length),e._startValue=Vr(t),e._valueOffset=n,e._valueRange=(Vr(e.max)-Vr(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return e=+t.getRightValue(e),e>t.min&&e>0&&(n=(Vr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Gr=Ur;qr._defaults=Gr;var Kr=ce.valueOrDefault,Jr=ce.valueAtIndexOrDefault,Xr=ce.options.resolve,Qr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:or.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Zr(e){var t=e.ticks;return t.display&&e.display?Kr(t.fontSize,Q.global.defaultFontSize)+2*t.backdropPaddingY:0}function ei(e,t,n){return ce.isArray(n)?{w:ce.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function ti(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function ni(e){var t,n,r,i=ce.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=i.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){r=e.getPointPosition(t,e.drawingArea+5),n=ei(e.ctx,i.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var u=e.getIndexAngle(t),l=ce.toDegrees(u)%360,c=ti(l,r.x,n.w,0,180),d=ti(l,r.y,n.h,90,270);c.start<o.l&&(o.l=c.start,a.l=u),c.end>o.r&&(o.r=c.end,a.r=u),d.start<o.t&&(o.t=d.start,a.t=u),d.end>o.b&&(o.b=d.end,a.b=u)}e.setReductions(e.drawingArea,o,a)}function ri(e){return 0===e||180===e?"center":e<180?"left":"right"}function ii(e,t,n,r){var i,o,a=n.y+r/2;if(ce.isArray(t))for(i=0,o=t.length;i<o;++i)e.fillText(t[i],n.x,a),a+=r;else e.fillText(t,n.x,a)}function oi(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function ai(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=Zr(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=ce.options._parseFont(r);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,l=e.getPointPosition(s,o+u+5),c=Jr(r.fontColor,s,Q.global.defaultFontColor);t.fillStyle=c;var d=e.getIndexAngle(s),f=ce.toDegrees(d);t.textAlign=ri(f),oi(f,e._pointLabelSizes[s],l),ii(t,e.pointLabels[s],l,a.lineHeight)}t.restore()}function si(e,t,n,r){var i,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,u=Jr(t.color,r-1),l=Jr(t.lineWidth,r-1);if((a||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c<s;c++)i=e.getPointPosition(c,n),o.lineTo(i.x,i.y)}o.closePath(),o.stroke(),o.restore()}}function ui(e){return ce.isNumber(e)?e:0}var li=Pr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Zr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ce.each(t.data.datasets,(function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);ce.each(i.data,(function(t,i){var o=+e.getRightValue(t);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Zr(this.options))},convertTicksToLabels:function(){var e=this;Pr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=ce.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?ni(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=ui(i),o=ui(o),a=ui(a),s=ui(s),r.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,u=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=360/t.data.labels.length,r=t.options||{},i=r.startAngle||0,o=(e*n+i)%360;return(o<0?o+360:o)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(ce.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,u=Kr(s.lineWidth,a.lineWidth),l=Kr(s.color,a.color);if(o.pointLabels.display&&ai(r),a.display&&ce.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),si(r,a,t,n))})),s.display&&u&&l){for(i.save(),i.lineWidth=u,i.strokeStyle=l,i.setLineDash&&(i.setLineDash(Xr([s.borderDash,a.borderDash,[]])),i.lineDashOffset=Xr([s.borderDashOffset,a.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options,r=n.ticks;if(r.display){var i,o,a=e.getIndexAngle(0),s=ce.options._parseFont(r),u=Kr(r.fontColor,Q.global.defaultFontColor);t.save(),t.font=s.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",ce.each(e.ticks,(function(n,a){(0!==a||r.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[a]),r.showLabelBackdrop&&(o=t.measureText(n).width,t.fillStyle=r.backdropColor,t.fillRect(-o/2-r.backdropPaddingX,-i-s.size/2-r.backdropPaddingY,o+2*r.backdropPaddingX,s.size+2*r.backdropPaddingY)),t.fillStyle=u,t.fillText(n,0,-i))})),t.restore()}},_drawTitle:ce.noop}),ci=Qr;li._defaults=ci;var di=ce._deprecated,fi=ce.options.resolve,hi=ce.valueOrDefault,pi=Number.MIN_SAFE_INTEGER||-9007199254740991,mi=Number.MAX_SAFE_INTEGER||9007199254740991,gi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},vi=Object.keys(gi);function _i(e,t){return e-t}function bi(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t<n;++t)r=e[t],i[r]||(i[r]=!0,o.push(r));return o}function yi(e){return ce.valueOrDefault(e.time.min,e.ticks.min)}function xi(e){return ce.valueOrDefault(e.time.max,e.ticks.max)}function wi(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var i,o,a,s,u,l=[],c=[t];for(i=0,o=e.length;i<o;++i)s=e[i],s>t&&s<n&&c.push(s);for(c.push(n),i=0,o=c.length;i<o;++i)u=c[i+1],a=c[i-1],s=c[i],void 0!==a&&void 0!==u&&Math.round((u+a)/2)===s||l.push({time:s,pos:i/(o-1)});return l}function ki(e,t,n){var r,i,o,a=0,s=e.length-1;while(a>=0&&a<=s){if(r=a+s>>1,i=e[r-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]<n)a=r+1;else{if(!(i[t]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}function Mi(e,t,n,r){var i=ki(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],u=s?(n-o[t])/s:0,l=(a[r]-o[r])*u;return o[r]+l}function Si(e,t){var n=e._adapter,r=e.options.time,i=r.parser,o=i||r.format,a=t;return"function"===typeof i&&(a=i(a)),ce.isFinite(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!==typeof o||(a=o(t),ce.isFinite(a)||(a=n.parse(a))),a)}function Li(e,t){if(ce.isNullOrUndef(t))return null;var n=e.options.time,r=Si(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function Ci(e,t,n,r){var i,o,a,s=vi.length;for(i=vi.indexOf(e);i<s-1;++i)if(o=gi[vi[i]],a=o.steps?o.steps:mi,o.common&&Math.ceil((n-t)/(a*o.size))<=r)return vi[i];return vi[s-1]}function Ti(e,t,n,r,i){var o,a;for(o=vi.length-1;o>=vi.indexOf(n);o--)if(a=vi[o],gi[a].common&&e._adapter.diff(i,r,a)>=t-1)return a;return vi[n?vi.indexOf(n):0]}function Di(e){for(var t=vi.indexOf(e)+1,n=vi.length;t<n;++t)if(gi[vi[t]].common)return vi[t]}function Oi(e,t,n,r){var i,o=e._adapter,a=e.options,s=a.time,u=s.unit||Ci(s.minUnit,t,n,r),l=fi([s.stepSize,s.unitStepSize,1]),c="week"===u&&s.isoWeekday,d=t,f=[];if(c&&(d=+o.startOf(d,"isoWeek",c)),d=+o.startOf(d,c?"day":u),o.diff(n,t,u)>1e5*l)throw t+" and "+n+" are too far apart with stepSize of "+l+" "+u;for(i=d;i<n;i=+o.add(i,l,u))f.push(i);return i!==n&&"ticks"!==a.bounds||f.push(i),f}function Ei(e,t,n,r,i){var o,a,s=0,u=0;return i.offset&&t.length&&(o=Mi(e,"time",t[0],"pos"),s=1===t.length?1-o:(Mi(e,"time",t[1],"pos")-o)/2,a=Mi(e,"time",t[t.length-1],"pos"),u=1===t.length?a:(a-Mi(e,"time",t[t.length-2],"pos"))/2),{start:s,end:u,factor:1/(s+1+u)}}function Ai(e,t,n,r){var i,o,a=e._adapter,s=+a.startOf(t[0].value,r),u=t[t.length-1].value;for(i=s;i<=u;i=+a.add(i,1,r))o=n[i],o>=0&&(t[o].major=!0);return t}function Pi(e,t,n){var r,i,o=[],a={},s=t.length;for(r=0;r<s;++r)i=t[r],a[i]=r,o.push({value:i,major:!1});return 0!==s&&n?Ai(e,o,a,n):o}var Fi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Ii=Sr.extend({initialize:function(){this.mergeTicksOptions(),Sr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new ir._date(t.adapters.date);return di("time scale",n.format,"time.format","time.parser"),di("time scale",n.min,"time.min","ticks.min"),di("time scale",n.max,"time.max","ticks.max"),ce.mergeIf(n.displayFormats,r.formats()),Sr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),Sr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,o,a,s=this,u=s.chart,l=s._adapter,c=s.options,d=c.time.unit||"day",f=mi,h=pi,p=[],m=[],g=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)g.push(Li(s,v[e]));for(e=0,n=(u.data.datasets||[]).length;e<n;++e)if(u.isDatasetVisible(e))if(i=u.data.datasets[e].data,ce.isObject(i[0]))for(m[e]=[],t=0,r=i.length;t<r;++t)o=Li(s,i[t]),p.push(o),m[e][t]=o;else m[e]=g.slice(0),a||(p=p.concat(g),a=!0);else m[e]=[];g.length&&(f=Math.min(f,g[0]),h=Math.max(h,g[g.length-1])),p.length&&(p=n>1?bi(p).sort(_i):p.sort(_i),f=Math.min(f,p[0]),h=Math.max(h,p[p.length-1])),f=Li(s,yi(c))||f,h=Li(s,xi(c))||h,f=f===mi?+l.startOf(Date.now(),d):f,h=h===pi?+l.endOf(Date.now(),d)+1:h,s.min=Math.min(f,h),s.max=Math.max(f+1,h),s._table=[],s._timestamps={data:p,datasets:m,labels:g}},buildTicks:function(){var e,t,n,r=this,i=r.min,o=r.max,a=r.options,s=a.ticks,u=a.time,l=r._timestamps,c=[],d=r.getLabelCapacity(i),f=s.source,h=a.distribution;for(l="data"===f||"auto"===f&&"series"===h?l.data:"labels"===f?l.labels:Oi(r,i,o,d),"ticks"===a.bounds&&l.length&&(i=l[0],o=l[l.length-1]),i=Li(r,yi(a))||i,o=Li(r,xi(a))||o,e=0,t=l.length;e<t;++e)n=l[e],n>=i&&n<=o&&c.push(n);return r.min=i,r.max=o,r._unit=u.unit||(s.autoSkip?Ci(u.minUnit,r.min,r.max,d):Ti(r,c.length,u.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?Di(r._unit):void 0,r._table=wi(r._timestamps.data,i,o,h),r._offsets=Ei(r._table,c,i,o,a),s.reverse&&c.reverse(),Pi(r,c,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,i=n.chart.data,o=n.options.time,a=i.labels&&e<i.labels.length?i.labels[e]:"",s=i.datasets[t].data[e];return ce.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?r.format(Si(n,a),o.tooltipFormat):"string"===typeof a?a:r.format(Si(n,a),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var i=this,o=i._adapter,a=i.options,s=a.time.displayFormats,u=s[i._unit],l=i._majorUnit,c=s[l],d=n[t],f=a.ticks,h=l&&c&&d&&d.major,p=o.format(e,r||(h?c:u)),m=h?f.major:f.minor,g=fi([m.callback,m.userCallback,f.callback,f.userCallback]);return g?g(p,t,n):p},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t._offsets,r=Mi(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(e,t,n){var r=this,i=null;if(void 0!==t&&void 0!==n&&(i=r._timestamps.datasets[n][t]),null===i&&(i=Li(r,e)),null!==i)return r.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end,i=Mi(t._table,"pos",r,"time");return t._adapter._create(i)},_getLabelSize:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,i=ce.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=hi(n.fontSize,Q.global.defaultFontSize);return{w:r*o+s*a,h:r*a+s*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=t.tickFormatFunction(e,0,Pi(t,[e],t._majorUnit),i),a=t._getLabelSize(o),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&s--,s>0?s:1}}),Yi=Fi;Ii._defaults=Yi;var Ri={category:Tr,linear:zr,logarithmic:qr,radialLinear:li,time:Ii},Ni={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};ir._date.override("function"===typeof e?{_id:"moment",formats:function(){return Ni},parse:function(t,n){return"string"===typeof t&&"string"===typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),Q._set("global",{plugins:{filler:{propagate:!0}}});var Hi={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t),o=i&&r.dataset._children||[],a=o.length||0;return a?function(e,t){return t<a&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return ce.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function zi(e,t,n){var r,i=e._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function ji(e){var t,n=e.el._model||{},r=e.el._scale||{},i=e.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(ce.isFinite(o))return t=r.isHorizontal(),{x:t?o:null,y:t?null:o}}return null}function Bi(e){var t,n,r,i,o,a=e.el._scale,s=a.options,u=a.chart.data.labels.length,l=e.fill,c=[];if(!u)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,t),i=0;i<u;++i)o="start"===l||"end"===l?a.getPointPositionForValue(i,"start"===l?t:n):a.getBasePosition(i),s.gridLines.circular&&(o.cx=r.x,o.cy=r.y,o.angle=a.getIndexAngle(i)-Math.PI/2),c.push(o);return c}function Vi(e){var t=e.el._scale||{};return t.getPointPositionForValue?Bi(e):ji(e)}function $i(e,t,n){var r,i=e[t],o=i.fill,a=[t];if(!n)return o;while(!1!==o&&-1===a.indexOf(o)){if(!isFinite(o))return o;if(r=e[o],!r)return!1;if(r.visible)return o;a.push(o),o=r.fill}return!1}function Ui(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Hi[n](e))}function Wi(e){return e&&!e.skip}function qi(e,t,n,r,i){var o,a,s,u;if(r&&i){for(e.moveTo(t[0].x,t[0].y),o=1;o<r;++o)ce.canvas.lineTo(e,t[o-1],t[o]);if(void 0===n[0].angle)for(e.lineTo(n[i-1].x,n[i-1].y),o=i-1;o>0;--o)ce.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,u=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=i-1;o>0;--o)e.arc(a,s,u,n[o].angle,n[o-1].angle,!0)}}function Gi(e,t,n,r,i,o){var a,s,u,l,c,d,f,h,p=t.length,m=r.spanGaps,g=[],v=[],_=0,b=0;for(e.beginPath(),a=0,s=p;a<s;++a)u=a%p,l=t[u]._view,c=n(l,u,r),d=Wi(l),f=Wi(c),o&&void 0===h&&d&&(h=a+1,s=p+h),d&&f?(_=g.push(l),b=v.push(c)):_&&b&&(m?(d&&g.push(l),f&&v.push(c)):(qi(e,g,v,_,b),_=b=0,g=[],v=[]));qi(e,g,v,_,b),e.closePath(),e.fillStyle=i,e.fill()}var Ki={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,i,o,a=(e.data.datasets||[]).length,s=t.propagate,u=[];for(r=0;r<a;++r)n=e.getDatasetMeta(r),i=n.dataset,o=null,i&&i._model&&i instanceof Je.Line&&(o={visible:e.isDatasetVisible(r),fill:zi(i,r,a),chart:e,el:i}),n.$filler=o,u.push(o);for(r=0;r<a;++r)o=u[r],o&&(o.fill=$i(u,r,s),o.boundary=Vi(o),o.mapper=Ui(o))},beforeDatasetsDraw:function(e){var t,n,r,i,o,a,s,u=e._getSortedVisibleDatasetMetas(),l=e.ctx;for(n=u.length-1;n>=0;--n)t=u[n].$filler,t&&t.visible&&(r=t.el,i=r._view,o=r._children||[],a=t.mapper,s=i.backgroundColor||Q.global.defaultColor,a&&s&&o.length&&(ce.canvas.clipArea(l,e.chartArea),Gi(l,o,a,i,s,r._loop),ce.canvas.unclipArea(l)))}},Ji=ce.rtl.getRtlAdapter,Xi=ce.noop,Qi=ce.valueOrDefault;function Zi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i,o=document.createElement("ul"),a=e.data.datasets;for(o.setAttribute("class",e.id+"-legend"),t=0,n=a.length;t<n;t++)r=o.appendChild(document.createElement("li")),i=r.appendChild(document.createElement("span")),i.style.backgroundColor=a[t].backgroundColor,a[t].label&&r.appendChild(document.createTextNode(a[t].label));return o.outerHTML}});var eo=_e.extend({initialize:function(e){var t=this;ce.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Xi,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Xi,beforeSetDimensions:Xi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Xi,beforeBuildLabels:Xi,buildLabels:function(){var e=this,t=e.options.labels||{},n=ce.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Xi,beforeFit:Xi,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,i=e.ctx,o=ce.options._parseFont(n),a=o.size,s=e.legendHitBoxes=[],u=e.minSize,l=e.isHorizontal();if(l?(u.width=e.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=e.maxHeight),r){if(i.font=o.string,l){var c=e.lineWidths=[0],d=0;i.textAlign="left",i.textBaseline="middle",ce.each(e.legendItems,(function(e,t){var r=Zi(n,a),o=r+a/2+i.measureText(e.text).width;(0===t||c[c.length-1]+o+2*n.padding>u.width)&&(d+=a+n.padding,c[c.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:o,height:a},c[c.length-1]+=o+n.padding})),u.height+=d}else{var f=n.padding,h=e.columnWidths=[],p=e.columnHeights=[],m=n.padding,g=0,v=0;ce.each(e.legendItems,(function(e,t){var r=Zi(n,a),o=r+a/2+i.measureText(e.text).width;t>0&&v+a+2*f>u.height&&(m+=g+n.padding,h.push(g),p.push(v),g=0,v=0),g=Math.max(g,o),v+=a+f,s[t]={left:0,top:0,width:o,height:a}})),m+=g,h.push(g),p.push(v),u.width+=m}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:Xi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=Q.global,i=r.defaultColor,o=r.elements.line,a=e.height,s=e.columnHeights,u=e.width,l=e.lineWidths;if(t.display){var c,d=Ji(t.rtl,e.left,e.minSize.width),f=e.ctx,h=Qi(n.fontColor,r.defaultFontColor),p=ce.options._parseFont(n),m=p.size;f.textAlign=d.textAlign("left"),f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=h,f.fillStyle=h,f.font=p.string;var g=Zi(n,m),v=e.legendHitBoxes,_=function(e,t,r){if(!(isNaN(g)||g<=0)){f.save();var a=Qi(r.lineWidth,o.borderWidth);if(f.fillStyle=Qi(r.fillStyle,i),f.lineCap=Qi(r.lineCap,o.borderCapStyle),f.lineDashOffset=Qi(r.lineDashOffset,o.borderDashOffset),f.lineJoin=Qi(r.lineJoin,o.borderJoinStyle),f.lineWidth=a,f.strokeStyle=Qi(r.strokeStyle,i),f.setLineDash&&f.setLineDash(Qi(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,u=d.xPlus(e,g/2),l=t+m/2;ce.canvas.drawPoint(f,r.pointStyle,s,u,l,r.rotation)}else f.fillRect(d.leftForLtr(e,g),t,g,m),0!==a&&f.strokeRect(d.leftForLtr(e,g),t,g,m);f.restore()}},b=function(e,t,n,r){var i=m/2,o=d.xPlus(e,g+i),a=t+i;f.fillText(n.text,o,a),n.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(o,a),f.lineTo(d.xPlus(o,r),a),f.stroke())},y=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},x=e.isHorizontal();c=x?{x:e.left+y(u,l[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},ce.rtl.overrideTextDirection(e.ctx,t.textDirection);var w=m+n.padding;ce.each(e.legendItems,(function(t,r){var i=f.measureText(t.text).width,o=g+m/2+i,h=c.x,p=c.y;d.setWidth(e.minSize.width),x?r>0&&h+o+n.padding>e.left+e.minSize.width&&(p=c.y+=w,c.line++,h=c.x=e.left+y(u,l[c.line])):r>0&&p+w>e.top+e.minSize.height&&(h=c.x=h+e.columnWidths[c.line]+n.padding,c.line++,p=c.y=e.top+y(a,s[c.line]));var k=d.x(h);_(k,p,t),v[r].left=d.leftForLtr(k,v[r].width),v[r].top=p,b(k,p,t,i),x?c.x+=o+n.padding:c.y+=w})),ce.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(i=o.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function to(e,t){var n=new eo({ctx:e.ctx,options:t,chart:e});Kt.configure(e,n,t),Kt.addBox(e,n),e.legend=n}var no={id:"legend",_element:eo,beforeInit:function(e){var t=e.options.legend;t&&to(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ce.mergeIf(t,Q.global.legend),n?(Kt.configure(e,n,t),n.options=t):to(e,t)):n&&(Kt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},ro=ce.noop;Q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var io=_e.extend({initialize:function(e){var t=this;ce.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:ro,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:ro,beforeSetDimensions:ro,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:ro,beforeBuildLabels:ro,buildLabels:ro,afterBuildLabels:ro,beforeFit:ro,fit:function(){var e,t,n=this,r=n.options,i=n.minSize={},o=n.isHorizontal();r.display?(e=ce.isArray(r.text)?r.text.length:1,t=e*ce.options._parseFont(r).lineHeight+2*r.padding,n.width=i.width=o?n.maxWidth:t,n.height=i.height=o?t:n.maxHeight):n.width=i.width=n.height=i.height=0},afterFit:ro,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,o,a=ce.options._parseFont(n),s=a.lineHeight,u=s/2+n.padding,l=0,c=e.top,d=e.left,f=e.bottom,h=e.right;t.fillStyle=ce.valueOrDefault(n.fontColor,Q.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=d+(h-d)/2,o=c+u,r=h-d):(i="left"===n.position?d+u:h-u,o=c+(f-c)/2,r=f-c,l=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(ce.isArray(p))for(var m=0,g=0;g<p.length;++g)t.fillText(p[g],0,m,r),m+=s;else t.fillText(p,0,0,r);t.restore()}}});function oo(e,t){var n=new io({ctx:e.ctx,options:t,chart:e});Kt.configure(e,n,t),Kt.addBox(e,n),e.titleBlock=n}var ao={id:"title",_element:io,beforeInit:function(e){var t=e.options.title;t&&oo(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ce.mergeIf(t,Q.global.title),n?(Kt.configure(e,n,t),n.options=t):oo(e,t)):n&&(Kt.removeBox(e,n),delete e.titleBlock)}},so={},uo=Ki,lo=no,co=ao;for(var fo in so.filler=uo,so.legend=lo,so.title=co,Zn.helpers=ce,er(),Zn._adapters=ir,Zn.Animation=ye,Zn.animationService=xe,Zn.controllers=Dt,Zn.DatasetController=Ce,Zn.defaults=Q,Zn.Element=_e,Zn.elements=Je,Zn.Interaction=Yt,Zn.layouts=Kt,Zn.platform=Ln,Zn.plugins=Cn,Zn.Scale=Sr,Zn.scaleService=Tn,Zn.Ticks=or,Zn.Tooltip=Vn,Zn.helpers.each(Ri,(function(e,t){Zn.scaleService.registerScaleType(t,e,e._defaults)})),so)so.hasOwnProperty(fo)&&Zn.plugins.register(so[fo]);Zn.platform.initialize();var ho=Zn;return"undefined"!==typeof window&&(window.Chart=Zn),Zn.Chart=Zn,Zn.Legend=so.legend._element,Zn.Title=so.title._element,Zn.pluginService=Zn.plugins,Zn.PluginBase=Zn.Element.extend({}),Zn.canvasHelpers=Zn.helpers.canvas,Zn.layoutService=Zn.layouts,Zn.LinearScaleBase=Pr,Zn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Zn[e]=function(t,n){return new Zn(t,Zn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),ho}))},738:function(e,t,n){"use strict";const r=n(3341),i=n(6401),o=n(5299);function a(e,t){switch(i(e)){case"object":return s(e,t);case"array":return u(e,t);default:return r(e)}}function s(e,t){if("function"===typeof t)return t(e);if(t||o(e)){const n=new e.constructor;for(let r in e)n[r]=a(e[r],t);return n}return e}function u(e,t){const n=new e.constructor(e.length);for(let r=0;r<e.length;r++)n[r]=a(e[r],t);return n}e.exports=a},9662:function(e,t,n){var r=n(614),i=n(6330),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},6077:function(e,t,n){var r=n(614),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},5787:function(e,t,n){var r=n(7976),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},9670:function(e,t,n){var r=n(111),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),i=n(1400),o=n(6244),a=function(e){return function(t,n,a){var s,u=r(t),l=o(u),c=i(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),i=n(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},648:function(e,t,n){var r=n(1694),i=n(614),o=n(4326),a=n(5112),s=a("toStringTag"),u=Object,l="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=u(e),s))?n:l?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},9920:function(e,t,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=i(t),u=a.f,l=o.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||u(e,d,l(t,d))}}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var r=n(614),i=n(3070),o=n(6339),a=n(3072);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&o(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(c){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5117:function(e,t,n){"use strict";var r=n(6330),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw i("Cannot delete property "+r(t)+" of "+r(e))}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8988:function(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},3678:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(e,t,n){var r=n(1702),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),u=n(9920),l=n(6114);e.exports=function(e,t){var n,c,d,f,h,p,m=e.target,g=e.global,v=e.stat;if(c=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(d in t){if(h=t[d],e.dontCallGetSet?(p=i(c,d),f=p&&p.value):f=c[d],n=l(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1460:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},1702:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),i=n(614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),i=n(8554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9587:function(e,t,n){var r=n(614),i=n(111),o=n(7674);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},2788:function(e,t,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},9909:function(e,t,n){var r,i,o,a=n(4811),s=n(7854),u=n(111),l=n(8880),c=n(2597),d=n(5465),f=n(6200),h=n(3501),p="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return o(e)?i(e):r(e,{})},_=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw m(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var y=f("state");h[y]=!0,r=function(e,t){if(c(e,y))throw m(p);return t.facade=e,l(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:r,get:i,has:o,enforce:v,getterFor:_}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e,t,n){var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},6114:function(e,t,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),i=n(614),o=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,u=n(2788),l=n(9909),c=l.enforce,d=l.get,f=Object.defineProperty,h=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&o(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=c(e);return o(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return i(this)&&d(this).source||u(this)}),"toString")},8631:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(1460),o=n(5296),a=n(9114),s=n(5656),u=n(4948),l=n(2597),c=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(n){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),i=n(748),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);e.exports=function(e,t){var n,r=o(e),l=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&u(c,n);while(t.length>l)i(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),i=n(9670),o=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(1460),i=n(614),o=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},4488:function(e,t,n){var r=n(8554),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e,t,n){var r=n(8631);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:function(e,t,n){var r=n(1460),i=n(111),o=n(2190),a=n(8173),s=n(2140),u=n(5112),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},1340:function(e,t,n){var r=n(648),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var r=n(7854),i=n(614),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(6293),u=n(3307),l=i("wks"),c=r.Symbol,d=c&&c["for"],f=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(c,e)?l[e]=c[e]:l[e]=u&&d?d(t):f(t)}return l[e]}},7658:function(e,t,n){"use strict";var r=n(2109),i=n(7908),o=n(6244),a=n(3658),s=n(8988),u=n(7293),l=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},541:function(e,t,n){"use strict";var r=n(2109),i=n(7908),o=n(6244),a=n(3658),s=n(5117),u=n(8988),l=1!==[].unshift(0),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){u(n+r);var l=n;while(l--){var c=l+r;l in t?t[c]=t[l]:s(t,c)}for(var d=0;d<r;d++)t[d]=arguments[d]}return a(t,n+r)}})},2801:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(9114),s=n(3070).f,u=n(2597),l=n(5787),c=n(9587),d=n(6277),f=n(3678),h=n(1060),p=n(9781),m=n(1913),g="DOMException",v=o("Error"),_=o(g),b=function(){l(this,y);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new _(t,n),i=v(t);return i.name=g,s(r,"stack",a(1,h(i.stack,1))),c(r,this,b),r},y=b.prototype=_.prototype,x="stack"in v(g),w="stack"in new _(1,2),k=_&&p&&Object.getOwnPropertyDescriptor(i,g),M=!!k&&!(k.writable&&k.configurable),S=x&&!M&&!w;r({global:!0,constructor:!0,forced:m||S},{DOMException:S?b:_});var L=o(g),C=L.prototype;if(C.constructor!==L)for(var T in m||s(C,"constructor",a(1,L)),f)if(u(f,T)){var D=f[T],O=D.s;u(L,O)||s(L,O,a(6,D.c))}},296:function(e){function t(e,t,n){var r,i,o,a,s;function u(){var l=Date.now()-a;l<t&&l>=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var l=function(){o=this,i=arguments,a=Date.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},l}t.debounce=t,e.exports=t},7709:function(e){function t(e){var t=e.target||e.srcElement;t.__resizeRAF__&&cancelAnimationFrame(t.__resizeRAF__),t.__resizeRAF__=requestAnimationFrame((function(){var n=t.__resizeTrigger__,r=n&&n.__resizeListeners__;r&&r.forEach((function(t){t.call(n,e)}))}))}var n=function(e,n){var r,i=this,o=i.document,a=o.attachEvent;function s(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",t)}if("undefined"!==typeof navigator&&(r=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),!e.__resizeListeners__)if(e.__resizeListeners__=[],a)e.__resizeTrigger__=e,e.attachEvent("onresize",t);else{"static"===getComputedStyle(e).position&&(e.style.position="relative");var u=e.__resizeTrigger__=o.createElement("object");u.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),u.setAttribute("class","resize-sensor"),u.setAttribute("tabindex","-1"),u.setAttribute("title",""),u.__resizeElement__=e,u.onload=s,u.type="text/html",r&&e.appendChild(u),u.data="about:blank",r||e.appendChild(u)}e.__resizeListeners__.push(n)};e.exports="undefined"===typeof window?n:n.bind(window),e.exports.unbind=function(e,n){var r=document.attachEvent,i=e.__resizeListeners__||[];if(n){var o=i.indexOf(n);-1!==o&&i.splice(o,1)}else i=e.__resizeListeners__=[];if(!i.length){if(r)e.detachEvent("onresize",t);else if(e.__resizeTrigger__){var a=e.__resizeTrigger__.contentDocument,s=a&&a.defaultView;s&&(s.removeEventListener("resize",t),delete s.__resizeTrigger__),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__)}delete e.__resizeListeners__}}},5299:function(e,t,n){"use strict";
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var r=n(7798);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&(t=e.constructor,"function"===typeof t&&(n=t.prototype,!1!==i(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},7798:function(e){"use strict";
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},6401:function(e){var t=Object.prototype.toString;function n(e){return"function"===typeof e.constructor?e.constructor.name:null}function r(e){return Array.isArray?Array.isArray(e):e instanceof Array}function i(e){return e instanceof Error||"string"===typeof e.message&&e.constructor&&"number"===typeof e.constructor.stackTraceLimit}function o(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}function a(e){return e instanceof RegExp||"string"===typeof e.flags&&"boolean"===typeof e.ignoreCase&&"boolean"===typeof e.multiline&&"boolean"===typeof e.global}function s(e,t){return"GeneratorFunction"===n(e)}function u(e){return"function"===typeof e.throw&&"function"===typeof e.return&&"function"===typeof e.next}function l(e){try{if("number"===typeof e.length&&"function"===typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}function c(e){return!(!e.constructor||"function"!==typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var d=typeof e;if("boolean"===d)return"boolean";if("string"===d)return"string";if("number"===d)return"number";if("symbol"===d)return"symbol";if("function"===d)return s(e)?"generatorfunction":"function";if(r(e))return"array";if(c(e))return"buffer";if(l(e))return"arguments";if(o(e))return"date";if(i(e))return"error";if(a(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u(e))return"generator";switch(d=t.call(e),d){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return d.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8552:function(e,t,n){var r=n(852),i=n(5639),o=r(i,"DataView");e.exports=o},1989:function(e,t,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8407:function(e,t,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},7071:function(e,t,n){var r=n(852),i=n(5639),o=r(i,"Map");e.exports=o},3369:function(e,t,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},3818:function(e,t,n){var r=n(852),i=n(5639),o=r(i,"Promise");e.exports=o},8525:function(e,t,n){var r=n(852),i=n(5639),o=r(i,"Set");e.exports=o},8668:function(e,t,n){var r=n(3369),i=n(619),o=n(2385);function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6384:function(e,t,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype["delete"]=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},2705:function(e,t,n){var r=n(5639),i=r.Symbol;e.exports=i},1149:function(e,t,n){var r=n(5639),i=r.Uint8Array;e.exports=i},577:function(e,t,n){var r=n(852),i=n(5639),o=r(i,"WeakMap");e.exports=o},6874:function(e){function t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=t},4963:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=t},4636:function(e,t,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),l=Object.prototype,c=l.hasOwnProperty;function d(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),f=!n&&!l&&!d&&u(e),h=n||l||d||f,p=h?r(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}e.exports=d},2488:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},2908:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},6556:function(e,t,n){var r=n(9465),i=n(7813);function o(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=o},4865:function(e,t,n){var r=n(9465),i=n(7813),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},8470:function(e,t,n){var r=n(7813);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},9465:function(e,t,n){var r=n(8777);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},3118:function(e,t,n){var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},8483:function(e,t,n){var r=n(5063),i=r();e.exports=i},8866:function(e,t,n){var r=n(2488),i=n(1469);function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},4239:function(e,t,n){var r=n(2705),i=n(9607),o=n(2333),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}e.exports=l},9454:function(e,t,n){var r=n(4239),i=n(7005),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},939:function(e,t,n){var r=n(2492),i=n(7005);function o(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,a,o,s))}e.exports=o},2492:function(e,t,n){var r=n(6384),i=n(7114),o=n(8351),a=n(6096),s=n(4160),u=n(1469),l=n(4144),c=n(6719),d=1,f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,_){var b=u(e),y=u(t),x=b?h:s(e),w=y?h:s(t);x=x==f?p:x,w=w==f?p:w;var k=x==p,M=w==p,S=x==w;if(S&&l(e)){if(!l(t))return!1;b=!0,k=!1}if(S&&!k)return _||(_=new r),b||c(e)?i(e,t,n,m,v,_):o(e,t,x,n,m,v,_);if(!(n&d)){var L=k&&g.call(e,"__wrapped__"),C=M&&g.call(t,"__wrapped__");if(L||C){var T=L?e.value():e,D=C?t.value():t;return _||(_=new r),v(T,D,n,m,_)}}return!!S&&(_||(_=new r),a(e,t,n,m,v,_))}e.exports=v},8458:function(e,t,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,f=c.hasOwnProperty,h=RegExp("^"+d.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!o(e)||i(e))return!1;var t=r(e)?h:u;return t.test(a(e))}e.exports=p},8749:function(e,t,n){var r=n(4239),i=n(1780),o=n(7005),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",_="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",S="[object Int32Array]",L="[object Uint8Array]",C="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",O={};function E(e){return o(e)&&i(e.length)&&!!O[r(e)]}O[x]=O[w]=O[k]=O[M]=O[S]=O[L]=O[C]=O[T]=O[D]=!0,O[a]=O[s]=O[b]=O[u]=O[y]=O[l]=O[c]=O[d]=O[f]=O[h]=O[p]=O[m]=O[g]=O[v]=O[_]=!1,e.exports=E},280:function(e,t,n){var r=n(7360),i=n(6916),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},313:function(e,t,n){var r=n(3218),i=n(7360),o=n(3498),a=Object.prototype,s=a.hasOwnProperty;function u(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=u},2980:function(e,t,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),l=n(6390);function c(e,t,n,d,f){e!==t&&o(t,(function(o,u){if(f||(f=new r),s(o))a(e,t,u,n,c,d,f);else{var h=d?d(l(e,u),o,u+"",e,t,f):void 0;void 0===h&&(h=o),i(e,u,h)}}),u)}e.exports=c},9783:function(e,t,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),l=n(1469),c=n(9246),d=n(4144),f=n(3560),h=n(3218),p=n(8630),m=n(6719),g=n(6390),v=n(9881);function _(e,t,n,_,b,y,x){var w=g(e,n),k=g(t,n),M=x.get(k);if(M)r(e,n,M);else{var S=y?y(w,k,n+"",e,t,x):void 0,L=void 0===S;if(L){var C=l(k),T=!C&&d(k),D=!C&&!T&&m(k);S=k,C||T||D?l(w)?S=w:c(w)?S=a(w):T?(L=!1,S=i(k,!0)):D?(L=!1,S=o(k,!0)):S=[]:p(k)||u(k)?(S=w,u(w)?S=v(w):h(w)&&!f(w)||(S=s(k))):L=!1}L&&(x.set(k,S),b(S,k,_,y,x),x["delete"](k)),r(e,n,S)}}e.exports=_},5976:function(e,t,n){var r=n(6557),i=n(5357),o=n(61);function a(e,t){return o(i(e,t,r),e+"")}e.exports=a},6560:function(e,t,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},2545:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},1717:function(e){function t(e){return function(t){return e(t)}}e.exports=t},4757:function(e){function t(e,t){return e.has(t)}e.exports=t},4318:function(e,t,n){var r=n(1149);function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},4626:function(e,t,n){e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}e.exports=l},7133:function(e,t,n){var r=n(4318);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},278:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},8363:function(e,t,n){var r=n(4865),i=n(9465);function o(e,t,n,o){var a=!n;n||(n={});var s=-1,u=t.length;while(++s<u){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,c)}return n}e.exports=o},4429:function(e,t,n){var r=n(5639),i=r["__core-js_shared__"];e.exports=i},1463:function(e,t,n){var r=n(5976),i=n(6612);function o(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r<o){var u=n[r];u&&e(t,u,r,a)}return t}))}e.exports=o},5063:function(e){function t(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}e.exports=t},8777:function(e,t,n){var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},7114:function(e,t,n){var r=n(8668),i=n(2908),o=n(4757),a=1,s=2;function u(e,t,n,u,l,c){var d=n&a,f=e.length,h=t.length;if(f!=h&&!(d&&h>f))return!1;var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var g=-1,v=!0,_=n&s?new r:void 0;c.set(e,t),c.set(t,e);while(++g<f){var b=e[g],y=t[g];if(u)var x=d?u(y,b,g,t,e,c):u(b,y,g,e,t,c);if(void 0!==x){if(x)continue;v=!1;break}if(_){if(!i(t,(function(e,t){if(!o(_,t)&&(b===e||l(b,e,n,u,c)))return _.push(t)}))){v=!1;break}}else if(b!==y&&!l(b,y,n,u,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}e.exports=u},8351:function(e,t,n){var r=n(2705),i=n(1149),o=n(7813),a=n(7114),s=n(8776),u=n(1814),l=1,c=2,d="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",_="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=r?r.prototype:void 0,k=w?w.valueOf:void 0;function M(e,t,n,r,w,M,S){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!M(new i(e),new i(t)));case d:case f:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case g:case _:return e==t+"";case p:var L=s;case v:var C=r&l;if(L||(L=u),e.size!=t.size&&!C)return!1;var T=S.get(e);if(T)return T==t;r|=c,S.set(e,t);var D=a(L(e),L(t),r,w,M,S);return S["delete"](e),D;case b:if(k)return k.call(e)==k.call(t)}return!1}e.exports=M},6096:function(e,t,n){var r=n(8234),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n,o,s,u){var l=n&i,c=r(e),d=c.length,f=r(t),h=f.length;if(d!=h&&!l)return!1;var p=d;while(p--){var m=c[p];if(!(l?m in t:a.call(t,m)))return!1}var g=u.get(e),v=u.get(t);if(g&&v)return g==t&&v==e;var _=!0;u.set(e,t),u.set(t,e);var b=l;while(++p<d){m=c[p];var y=e[m],x=t[m];if(o)var w=l?o(x,y,m,t,e,u):o(y,x,m,e,t,u);if(!(void 0===w?y===x||s(y,x,n,o,u):w)){_=!1;break}b||(b="constructor"==m)}if(_&&!b){var k=e.constructor,M=t.constructor;k==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof M&&M instanceof M||(_=!1)}return u["delete"](e),u["delete"](t),_}e.exports=s},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:function(e,t,n){var r=n(8866),i=n(9551),o=n(3674);function a(e){return r(e,o,i)}e.exports=a},5050:function(e,t,n){var r=n(7019);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},852:function(e,t,n){var r=n(8458),i=n(7801);function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},5924:function(e,t,n){var r=n(5569),i=r(Object.getPrototypeOf,Object);e.exports=i},9607:function(e,t,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=u},9551:function(e,t,n){var r=n(4963),i=n(479),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=u},4160:function(e,t,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),l=n(346),c="[object Map]",d="[object Object]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",g=l(r),v=l(i),_=l(o),b=l(a),y=l(s),x=u;(r&&x(new r(new ArrayBuffer(1)))!=m||i&&x(new i)!=c||o&&x(o.resolve())!=f||a&&x(new a)!=h||s&&x(new s)!=p)&&(x=function(e){var t=u(e),n=t==d?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return m;case v:return c;case _:return f;case b:return h;case y:return p}return t}),e.exports=x},7801:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},1789:function(e,t,n){var r=n(4536);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},401:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},7667:function(e,t,n){var r=n(4536),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},1327:function(e,t,n){var r=n(4536),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},1866:function(e,t,n){var r=n(4536),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},8517:function(e,t,n){var r=n(3118),i=n(5924),o=n(7360);function a(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}e.exports=a},5776:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},6612:function(e,t,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);function s(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},7019:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},5346:function(e,t,n){var r=n(4429),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},7360:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},7040:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},4125:function(e,t,n){var r=n(8470),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},2117:function(e,t,n){var r=n(8470);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},7518:function(e,t,n){var r=n(8470);function i(e){return r(this.__data__,e)>-1}e.exports=i},4705:function(e,t,n){var r=n(8470);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},4785:function(e,t,n){var r=n(1989),i=n(8407),o=n(7071);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},1285:function(e,t,n){var r=n(5050);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},6e3:function(e,t,n){var r=n(5050);function i(e){return r(this,e).get(e)}e.exports=i},9916:function(e,t,n){var r=n(5050);function i(e){return r(this,e).has(e)}e.exports=i},5265:function(e,t,n){var r=n(5050);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},8776:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=t},4536:function(e,t,n){var r=n(852),i=r(Object,"create");e.exports=i},6916:function(e,t,n){var r=n(5569),i=r(Object.keys,Object);e.exports=i},3498:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u},2333:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},5569:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},5357:function(e,t,n){var r=n(6874),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);while(++a<s)u[a]=o[t+a];a=-1;var l=Array(t+1);while(++a<t)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}e.exports=o},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:function(e){function t(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=t},619:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},2385:function(e){function t(e){return this.__data__.has(e)}e.exports=t},1814:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=t},61:function(e,t,n){var r=n(6560),i=n(1275),o=i(r);e.exports=o},1275:function(e){var t=800,n=16,r=Date.now;function i(e){var i=0,o=0;return function(){var a=r(),s=n-(a-o);if(o=a,s>0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},7465:function(e,t,n){var r=n(8407);function i(){this.__data__=new r,this.size=0}e.exports=i},3779:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},7599:function(e){function t(e){return this.__data__.get(e)}e.exports=t},4758:function(e){function t(e){return this.__data__.has(e)}e.exports=t},4309:function(e,t,n){var r=n(8407),i=n(7071),o=n(3369),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},346:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},5703:function(e){function t(e){return function(){return e}}e.exports=t},7813:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},6557:function(e){function t(e){return e}e.exports=t},5694:function(e,t,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),i=n(1780);function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},9246:function(e,t,n){var r=n(8612),i=n(7005);function o(e){return i(e)&&r(e)}e.exports=o},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c},8446:function(e,t,n){var r=n(939);function i(e,t){return r(e,t)}e.exports=i},3560:function(e,t,n){var r=n(4239),i=n(3218),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}e.exports=l},1780:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},3218:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},7005:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},8630:function(e,t,n){var r=n(4239),i=n(5924),o=n(7005),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);function f(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}e.exports=f},6719:function(e,t,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:function(e,t,n){var r=n(4636),i=n(280),o=n(8612);function a(e){return o(e)?r(e):i(e)}e.exports=a},1704:function(e,t,n){var r=n(4636),i=n(313),o=n(8612);function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},3857:function(e,t,n){var r=n(2980),i=n(1463),o=i((function(e,t,n){r(e,t,n)}));e.exports=o},479:function(e){function t(){return[]}e.exports=t},5062:function(e){function t(){return!1}e.exports=t},9881:function(e,t,n){var r=n(8363),i=n(1704);function o(e){return r(e,i(e))}e.exports=o},2786:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},4130:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,i,o,a){var s=t(r),u=n[e][t(r)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],o=e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}});return o}))},6135:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},6440:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},7702:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},6040:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},7100:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},867:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),u=i[e][r(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},1083:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}});return n}))},9808:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r}))},8338:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},7438:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},6225:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return r}))},8905:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},r=e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return r}))},1560:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},r=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return r}))},1278:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+i(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function i(e,t){return 2===t?o(e):e}function o(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var a=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,l=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],f=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],h=e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:f,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:f,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:u,monthsShortStrictRegex:l,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}});return h}))},622:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},2468:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},5822:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!==~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},877:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},7373:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}});return t}))},4780:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},217:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},894:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},9740:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}var n=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},5300:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return r}))},837:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],i=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",i%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n}))},8348:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},7925:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},2243:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},6436:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},7207:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},4175:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:6}});return t}))},6319:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},1662:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},2915:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},5251:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return o}))},6112:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return o}))},1146:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return o}))},5655:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return o}))},5603:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},7763:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},6959:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return r}))},1897:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var o="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":o=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":o=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta";break}return o=i(e,r)+" "+o,o}function i(e,r){return e<10?r?n[e]:t[e]:e}var o=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},2549:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},4694:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},3049:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},2330:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},4470:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],o=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return o}))},5044:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),r=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return r}))},9295:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"],a=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return a}))},2101:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],o=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],a=e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return a}))},8794:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},7884:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?i[n][0]:i[n][1]}var n=e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}});return n}))},3168:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},5349:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"},r=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return r}))},4206:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},94:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],o=e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return o}))},316:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},2138:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var i=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},1423:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},9218:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return t}))},135:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100===11||e%10!==1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}var r=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},150:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},626:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},9183:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},4286:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},2105:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},7772:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},8758:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},r=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},9282:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"},r=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return r}))},3730:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},1408:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i=e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return i}))},3291:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},6841:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return i(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return i(e)}return e/=1e3,i(e)}var o=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},5466:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},7010:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(e){return e%10===0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,n,a){var s=e+" ";return 1===e?s+r(e,t,n[0],a):t?s+(i(e)?o(n)[1]:o(n)[0]):a?s+o(n)[1]:s+(i(e)?o(n)[1]:o(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},7595:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}function o(e,t){return t?"dažas sekundes":"dažām sekundēm"}var a=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:o,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},9861:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},5493:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},5966:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},7341:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},5115:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return n}))},370:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे";break}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां";break}return i.replace(/%d/i,e)}var i=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return i}))},1237:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},9847:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},2126:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},6165:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},r=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},4924:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},6744:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r}))},9814:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,o=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return o}))},3901:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,o=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return o}))},3877:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},2135:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},5858:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},r=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return r}))},4495:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}var a=e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},7971:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});return t}))},9520:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},6459:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},i=" ";return(e%100>=20||e>=100&&e%100===0)&&(i=" de "),e+i+r[n]}var n=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return n}))},1793:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(i[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],i=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return i}))},950:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},490:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},124:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return t}))},4249:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}var o=e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},4985:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund",i;case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami",i;case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami",i;case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi",i;case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci",i;case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti",i}}var n=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1104:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},9915:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&n&&"годину"===o?e+" година":e+" "+o)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},9131:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&n&&"godinu"===o?e+" godina":e+" "+o)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},5893:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},8760:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+n},week:{dow:1,doy:4}});return t}))},1172:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},7333:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},r=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return r}))},3110:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},2095:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},7321:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},9041:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},9005:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}});return n}))},5768:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},9444:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function i(e,t,n,r){var i=o(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function o(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}var a=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},2397:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}});return n}))},8254:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}return t}))},699:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},1106:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},9288:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},7691:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(i[r],+e)}function r(e,t){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r["nominative"].slice(1,7).concat(r["nominative"].slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",r[n][e.day()]):r["nominative"]}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var o=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return o}))},3795:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],r=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},588:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},6791:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},5666:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},4378:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},5805:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},3839:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},5726:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},9807:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},4152:function(e,t,n){(function(e,t){t(n(381))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},6700:function(e,t,n){var r={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":5655,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":5655,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":7884,"./gom-deva.js":7884,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":1793,"./ru.js":1793,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":5666,"./vi.js":5666,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=6700},381:function(e,t,n){e=n.nmd(e),function(t,n){e.exports=n()}(0,(function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=g()),e._pf}function _(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function b(e){var t=m(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=i.momentProperties=[],x=!1;function w(e,t){var n,r,i,o=y.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=v(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=y[n],i=t[r],c(i)||(e[r]=i);return e}function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,i.updateOffset(this),x=!1)}function M(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[],l=arguments.length;for(o=0;o<l;o++){if(r="","object"===typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])u(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,T={};function D(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(S(t),T[e]=!0)}function O(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)u(e,n)&&(t=e[n],O(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=p({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function P(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return O(r)?r.call(t,n):r}function Y(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},z={};function j(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(z[e]=i),t&&(z[t[0]]=function(){return Y(i.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=B(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}function $(e,t){return e.isValid()?(t=U(t,e.localeData()),H[t]=H[t]||V(t),H[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}N.lastIndex=0;while(n>=0&&N.test(e))e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function K(){return this._invalidDate}var J="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"===typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)u(e,n)&&(t=ie(n),t&&(r[t]=e[n]));return r}var ae={};function se(e,t){ae[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),i.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return e=ie(e),O(this[e])?this[e]():this}function ge(e,t){if("object"===typeof e){e=oe(e);var n,r=ue(e),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(e=ie(e),O(this[e]))return this[e](t);return this}var ve,_e=/\d/,be=/\d\d/,ye=/\d{3}/,xe=/\d{4}/,we=/[+-]?\d{6}/,ke=/\d\d?/,Me=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,Ce=/\d{1,4}/,Te=/[+-]?\d{1,6}/,De=/\d+/,Oe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,Pe=/[+-]?\d+(\.\d{1,3})?/,Fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ie(e,t,n){ve[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ye(e,t){return u(ve,e)?ve[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var He={};function ze(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=de(e)}),r=e.length,n=0;n<r;n++)He[e[n]]=i}function je(e,t){ze(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Be(e,t,n){null!=t&&u(He,e)&&He[e](t,n._a,n,e)}var Ve,$e=0,Ue=1,We=2,qe=3,Ge=4,Ke=5,Je=6,Xe=7,Qe=8;function Ze(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ze(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}Ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),j("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Ie("M",ke),Ie("MM",ke,be),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),ze(["M","MM"],(function(e,t){t[Ue]=de(e)-1})),ze(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ue]=i:v(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Fe,ot=Fe;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months["standalone"]}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function ut(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=Ve.call(this._shortMonthsParse,a),-1!==i?i:null):(i=Ve.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?(i=Ve.call(this._shortMonthsParse,a),-1!==i?i:(i=Ve.call(this._longMonthsParse,a),-1!==i?i:null)):(i=Ve.call(this._longMonthsParse,a),-1!==i?i:(i=Ve.call(this._shortMonthsParse,a),-1!==i?i:null))}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=de(t);else if(t=e.localeData().monthsParse(t),!d(t))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ct(this,e),i.updateOffset(this,!0),this):he(this,"Month")}function ft(){return et(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Ne(r[t]),i[t]=Ne(i[t]);for(t=0;t<24;t++)o[t]=Ne(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function gt(e){return le(e)?366:365}j("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Ie("Y",Oe),Ie("YY",ke,be),Ie("YYYY",Ce,xe),Ie("YYYYY",Te,we),Ie("YYYYYY",Te,we),ze(["YYYYY","YYYYYY"],$e),ze("YYYY",(function(e,t){t[$e]=2===e.length?i.parseTwoDigitYear(e):de(e)})),ze("YY",(function(e,t){t[$e]=i.parseTwoDigitYear(e)})),ze("Y",(function(e,t){t[$e]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var vt=fe("FullYear",!0);function _t(){return le(this.year())}function bt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function yt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n,i=(7+yt(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wt(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=xt(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=gt(o)+l):l>gt(e)?(o=e+1,a=l-gt(e)):(o=e,a=l),{year:o,dayOfYear:a}}function kt(e,t,n){var r,i,o=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Mt(i,t,n)):a>Mt(e.year(),t,n)?(r=a-Mt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Mt(e,t,n){var r=xt(e,t,n),i=xt(e+1,t,n);return(gt(e)-r+i)/7}function St(e){return kt(e,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Ie("w",ke),Ie("ww",ke,be),Ie("W",ke),Ie("WW",ke,be),je(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var Lt={dow:0,doy:6};function Ct(){return this._week.dow}function Tt(){return this._week.doy}function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function At(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("d",0,"do","day"),j("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),j("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),j("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ie("d",ke),Ie("e",ke),Ie("E",ke),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),je(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e})),je(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Fe,Nt=Fe,Ht=Fe;function zt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function jt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=Ve.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=Ve.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=Ve.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?(i=Ve.call(this._weekdaysParse,a),-1!==i?i:(i=Ve.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Ve.call(this._minWeekdaysParse,a),-1!==i?i:null))):"ddd"===t?(i=Ve.call(this._shortWeekdaysParse,a),-1!==i?i:(i=Ve.call(this._weekdaysParse,a),-1!==i?i:(i=Ve.call(this._minWeekdaysParse,a),-1!==i?i:null))):(i=Ve.call(this._minWeekdaysParse,a),-1!==i?i:(i=Ve.call(this._weekdaysParse,a),-1!==i?i:(i=Ve.call(this._shortWeekdaysParse,a),-1!==i?i:null)))}function $t(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=Ne(this.weekdaysMin(n,"")),i=Ne(this.weekdaysShort(n,"")),o=Ne(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function en(e,t){j(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Qt),j("k",["kk",2],0,Zt),j("hmm",0,0,(function(){return""+Qt.apply(this)+Y(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Qt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Ie("a",tn),Ie("A",tn),Ie("H",ke),Ie("h",ke),Ie("k",ke),Ie("HH",ke,be),Ie("hh",ke,be),Ie("kk",ke,be),Ie("hmm",Me),Ie("hmmss",Se),Ie("Hmm",Me),Ie("Hmmss",Se),ze(["H","HH"],qe),ze(["k","kk"],(function(e,t,n){var r=de(e);t[qe]=24===r?0:r})),ze(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ze(["h","hh"],(function(e,t,n){t[qe]=de(e),v(n).bigHour=!0})),ze("hmm",(function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Ge]=de(e.substr(r)),v(n).bigHour=!0})),ze("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Ge]=de(e.substr(r,2)),t[Ke]=de(e.substr(i)),v(n).bigHour=!0})),ze("Hmm",(function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Ge]=de(e.substr(r))})),ze("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Ge]=de(e.substr(r,2)),t[Ke]=de(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:F,longDateFormat:W,invalidDate:G,ordinal:J,dayOfMonthOrdinalParse:X,relativeTime:Z,months:tt,monthsShort:nt,week:Lt,weekdays:Ft,weekdaysMin:Yt,weekdaysShort:It,meridiemParse:rn},ln={},cn={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){var t,n,r,i,o=0;while(o<e.length){i=fn(e[o]).split("-"),t=i.length,n=fn(e[o+1]),n=n?n.split("-"):null;while(t>0){if(r=mn(i.slice(0,t).join("-")),r)return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}o++}return sn}function pn(e){return null!=e.match("^[^/\\\\]*$")}function mn(t){var r=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{r=sn._abbr,void 0,n(6700)("./"+t),gn(r)}catch(i){ln[t]=null}return ln[t]}function gn(e,t){var n;return e&&(n=c(t)?bn(e):vn(e,t),n?sn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function vn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(n=mn(t.parentLocale),null==n)return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new P(A(r,t)),cn[e]&&cn[e].forEach((function(e){vn(e.name,e.config)})),gn(e),ln[e]}return delete ln[e],null}function _n(e,t){if(null!=t){var n,r,i=un;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(A(ln[e]._config,t)):(r=mn(e),null!=r&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),n=new P(t),n.parentLocale=ln[e],ln[e]=n),gn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===gn()&&gn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=mn(e),t)return t;e=[e]}return hn(e)}function yn(){return C(ln)}function xn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[We]<1||n[We]>et(n[$e],n[Ue])?We:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Ge]||0!==n[Ke]||0!==n[Je])?qe:n[Ge]<0||n[Ge]>59?Ge:n[Ke]<0||n[Ke]>59?Ke:n[Je]<0||n[Je]>999?Je:-1,v(e)._overflowDayOfYear&&(t<$e||t>We)&&(t=We),v(e)._overflowWeeks&&-1===t&&(t=Xe),v(e)._overflowWeekday&&-1===t&&(t=Qe),v(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ln=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,i,o,a,s=e._i,u=wn.exec(s)||kn.exec(s),l=Sn.length,c=Ln.length;if(u){for(v(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(u[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Ln[t][1].exec(u[3])){o=(u[2]||" ")+Ln[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Mn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Bn(e)}else e._isValid=!1}function En(e,t,n,r,i,o){var a=[An(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Fn(e,t,n){if(e){var r=It.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return v(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function In(e,t,n){if(e)return Dn[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}function Yn(e){var t,n=Tn.exec(Pn(e._i));if(n){if(t=En(n[4],n[3],n[2],n[5],n[6],n[7]),!Fn(n[1],t,e))return;e._a=t,e._tzm=In(n[8],n[9],n[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=Cn.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Yn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Hn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Hn(e),e._w&&null==e._a[We]&&null==e._a[Ue]&&jn(e),null!=e._dayOfYear&&(o=Nn(e._a[$e],r[$e]),(e._dayOfYear>gt(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=yt(o,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Ge]&&0===e._a[Ke]&&0===e._a[Je]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?yt:bt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function jn(e){var t,n,r,i,o,a,s,u,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,a=4,n=Nn(t.GG,e._a[$e],kt(Jn(),1,4).year),r=Nn(t.W,1),i=Nn(t.E,1),(i<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,l=kt(Jn(),o,a),n=Nn(t.gg,e._a[$e],l.year),r=Nn(t.w,l.week),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Mt(n,o,a)?v(e)._overflowWeeks=!0:null!=u?v(e)._overflowWeekday=!0:(s=wt(n,r,i,o,a),e._a[$e]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,o,a,s,u,l=""+e._i,c=l.length,d=0;for(r=U(e._f,e._locale).match(R)||[],u=r.length,t=0;t<u;t++)o=r[t],n=(l.match(Ye(o,e))||[])[0],n&&(a=l.substr(0,l.indexOf(n)),a.length>0&&v(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),z[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),Be(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=c-d,l.length>0&&v(e).unusedInput.push(l),e._a[qe]<=12&&!0===v(e).bigHour&&e._a[qe]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[qe]=Vn(e._locale,e._a[qe],e._meridiem),s=v(e).era,null!==s&&(e._a[$e]=e._locale.erasConvertYear(s,e._a[$e])),zn(e),xn(e)}else Yn(e);else On(e)}function Vn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function $n(e){var t,n,r,i,o,a,s=!1,u=e._f.length;if(0===u)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Bn(t),_(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function Wn(e){var t=new k(xn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new k(xn(t)):(f(t)?e._d=t:a(n)?$n(e):n?Bn(e):Gn(e),_(e)||(e._d=null),e))}function Gn(e){var t=e._i;c(t)?e._d=new Date(i.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Rn(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):s(t)?Un(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Kn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Wn(o)}function Jn(e,t,n,r){return Kn(e,t,n,r,!1)}i.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Xn=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Qn=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Zn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){var e=[].slice.call(arguments,0);return Zn("isBefore",e)}function tr(){var e=[].slice.call(arguments,0);return Zn("isAfter",e)}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(u(e,t)&&(-1===Ve.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==de(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Dr(NaN)}function sr(e){var t=oe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function ur(e){return e instanceof sr}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&a++;return a+o}function dr(e,t){j(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}dr("Z",":"),dr("ZZ",""),Ie("Z",Ae),Ie("ZZ",Ae),ze(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(Ae,e)}));var fr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i,o=(t||"").match(e);return null===o?null:(n=o[o.length-1]||[],r=(n+"").match(fr)||["-",0,0],i=60*r[1]+de(r[2]),0===i?0:"+"===r[0]?i:-i)}function pr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||f(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Jn(e).local()}function mr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=hr(Ae,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=mr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Fr(this,Dr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function vr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _r(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hr(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xr(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),t=qn(t),t._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Lr(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}i.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(e,t){var n,r,i,o=e,a=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:de(a[We])*n,h:de(a[qe])*n,m:de(a[Ge])*n,s:de(a[Ke])*n,ms:de(lr(1e3*a[Je]))*n}):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,o={y:Or(a[2],n),M:Or(a[3],n),w:Or(a[4],n),d:Or(a[5],n),h:Or(a[6],n),m:Or(a[7],n),s:Or(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Ar(Jn(o.from),Jn(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new sr(o),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Er(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Er(e,t):(n=Er(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Dr(n,r),Fr(this,i,e),this}}function Fr(e,t,n,r){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(r=null==r||r,s&&ct(e,he(e,"Month")+s*n),a&&pe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Dr.fn=sr.prototype,Dr.invalid=ar;var Ir=Pr(1,"add"),Yr=Pr(-1,"subtract");function Rr(e){return"string"===typeof e||e instanceof String}function Nr(e){return M(e)||f(e)||Rr(e)||d(e)||zr(e)||Hr(e)||null===e||void 0===e}function Hr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)n=o[t],i=i||u(e,n);return r&&i}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Rr(e)})).length),t&&n}function jr(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Br(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Vr(e,t){1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):jr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),r=pr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Jn(n)))}function $r(){return new k(this)}function Ur(e,t){var n=M(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=M(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var i=M(e)?e:Jn(e),o=M(t)?t:Jn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function Gr(e,t){var n,r=M(e)?e:Jn(e);return!(!this.isValid()||!r.isValid())&&(t=ie(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Jr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=pr(e,this),!r.isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t),t){case"year":o=Qr(this,r)/12;break;case"month":o=Qr(this,r);break;case"quarter":o=Qr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ce(o)}function Qr(e,t){if(e.date()<t.date())return-Qr(t,e);var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(M(e)&&e.isValid()||Jn(e).isValid())?Dr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Jn(),e)}function oi(e,t){return this.isValid()&&(M(e)&&e.isValid()||Jn(e).isValid())?Dr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(Jn(),e)}function si(e){var t;return void 0===e?this._locale._abbr:(t=bn(e),null!=t&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ci=1e3,di=60*ci,fi=60*di,hi=3506328*fi;function pi(e,t){return(e%t+t)%t}function mi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function gi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function vi(e){var t,n;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*di),fi);break;case"minute":t=this._d.valueOf(),t-=pi(t,di);break;case"second":t=this._d.valueOf(),t-=pi(t,ci);break}return this._d.setTime(t),i.updateOffset(this,!0),this}function _i(e){var t,n;if(e=ie(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-pi(t+(this._isUTC?0:this.utcOffset()*di),fi)-1;break;case"minute":t=this._d.valueOf(),t+=di-pi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1;break}return this._d.setTime(t),i.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function yi(){return Math.floor(this.valueOf()/1e3)}function xi(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ki(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mi(){return this.isValid()?this.toISOString():null}function Si(){return _(this)}function Li(){return p({},v(this))}function Ci(){return v(this).overflow}function Ti(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Di(e,t){var n,r,o,a=this._eras||bn("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":o=i(a[n].since).startOf("day"),a[n].since=o.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf();break}}return a}function Oi(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r];break}else if([o,a,s].indexOf(e)>=0)return u[r]}function Ei(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ii(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()}function Yi(e){return u(this,"_erasNameRegex")||Vi.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return u(this,"_erasAbbrRegex")||Vi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ni(e){return u(this,"_erasNarrowRegex")||Vi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hi(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function ji(e,t){return t.erasNarrowRegex(e)}function Bi(e,t){return t._eraYearOrdinalRegex||De}function Vi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Ne(a[e].name)),n.push(Ne(a[e].abbr)),i.push(Ne(a[e].narrow)),o.push(Ne(a[e].name)),o.push(Ne(a[e].abbr)),o.push(Ne(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function $i(e,t){j(0,[e,e.length],0,t)}function Ui(e){return Xi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return Mt(this.year(),1,4)}function Gi(){return Mt(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return Mt(this.year(),e.dow,e.doy)}function Ji(){var e=this.localeData()._week;return Mt(this.weekYear(),e.dow,e.doy)}function Xi(e,t,n,r,i){var o;return null==e?kt(this,r,i).year:(o=Mt(e,r,i),t>o&&(t=o),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var o=wt(e,t,n,r,i),a=yt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Ie("N",Hi),Ie("NN",Hi),Ie("NNN",Hi),Ie("NNNN",zi),Ie("NNNNN",ji),ze(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Ie("y",De),Ie("yy",De),Ie("yyy",De),Ie("yyyy",De),Ie("yo",Bi),ze(["y","yy","yyy","yyyy"],$e),ze(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[$e]=n._locale.eraYearOrdinalParse(e,i):t[$e]=parseInt(e,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$i("gggg","weekYear"),$i("ggggg","weekYear"),$i("GGGG","isoWeekYear"),$i("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ie("G",Oe),Ie("g",Oe),Ie("GG",ke,be),Ie("gg",ke,be),Ie("GGGG",Ce,xe),Ie("gggg",Ce,xe),Ie("GGGGG",Te,we),Ie("ggggg",Te,we),je(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),je(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),j("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Ie("Q",_e),ze("Q",(function(e,t){t[Ue]=3*(de(e)-1)})),j("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Ie("D",ke),Ie("DD",ke,be),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ze(["D","DD"],We),ze("Do",(function(e,t){t[We]=de(e.match(ke)[0])}));var eo=fe("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Ie("DDD",Le),Ie("DDDD",ye),ze(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),j("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Ie("m",ke),Ie("mm",ke,be),ze(["m","mm"],Ge);var no=fe("Minutes",!1);j("s",["ss",2],0,"second"),re("second","s"),se("second",15),Ie("s",ke),Ie("ss",ke,be),ze(["s","ss"],Ke);var ro,io,oo=fe("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Ie("S",Le,_e),Ie("SS",Le,be),Ie("SSS",Le,ye),ro="SSSS";ro.length<=9;ro+="S")Ie(ro,De);function ao(e,t){t[Je]=de(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")ze(ro,ao);function so(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=fe("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var lo=k.prototype;function co(e){return Jn(1e3*e)}function fo(){return Jn.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Ir,lo.calendar=Vr,lo.clone=$r,lo.diff=Xr,lo.endOf=_i,lo.format=ni,lo.from=ri,lo.fromNow=ii,lo.to=oi,lo.toNow=ai,lo.get=me,lo.invalidAt=Ci,lo.isAfter=Ur,lo.isBefore=Wr,lo.isBetween=qr,lo.isSame=Gr,lo.isSameOrAfter=Kr,lo.isSameOrBefore=Jr,lo.isValid=Si,lo.lang=ui,lo.locale=si,lo.localeData=li,lo.max=Qn,lo.min=Xn,lo.parsingFlags=Li,lo.set=ge,lo.startOf=vi,lo.subtract=Yr,lo.toArray=wi,lo.toObject=ki,lo.toDate=xi,lo.toISOString=ei,lo.inspect=ti,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Mi,lo.toString=Zr,lo.unix=yi,lo.valueOf=bi,lo.creationData=Ti,lo.eraName=Ai,lo.eraNarrow=Pi,lo.eraAbbr=Fi,lo.eraYear=Ii,lo.year=vt,lo.isLeapYear=_t,lo.weekYear=Ui,lo.isoWeekYear=Wi,lo.quarter=lo.quarters=Zi,lo.month=dt,lo.daysInMonth=ft,lo.week=lo.weeks=Dt,lo.isoWeek=lo.isoWeeks=Ot,lo.weeksInYear=Ki,lo.weeksInWeekYear=Ji,lo.isoWeeksInYear=qi,lo.isoWeeksInISOWeekYear=Gi,lo.date=eo,lo.day=lo.days=Ut,lo.weekday=Wt,lo.isoWeekday=qt,lo.dayOfYear=to,lo.hour=lo.hours=on,lo.minute=lo.minutes=no,lo.second=lo.seconds=oo,lo.millisecond=lo.milliseconds=io,lo.utcOffset=gr,lo.utc=_r,lo.local=br,lo.parseZone=yr,lo.hasAlignedHourOffset=xr,lo.isDST=wr,lo.isLocal=Mr,lo.isUtcOffset=Sr,lo.isUtc=Lr,lo.isUTC=Lr,lo.zoneAbbr=so,lo.zoneName=uo,lo.dates=L("dates accessor is deprecated. Use date instead.",eo),lo.months=L("months accessor is deprecated. Use month instead",dt),lo.years=L("years accessor is deprecated. Use year instead",vt),lo.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),lo.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var po=P.prototype;function mo(e,t,n,r){var i=bn(),o=m().set(r,t);return i[n](o,e)}function go(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}function vo(e,t,n,r){"boolean"===typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return mo(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=mo(t,(i+a)%7,r,"day");return s}function _o(e,t){return go(e,t,"months")}function bo(e,t){return go(e,t,"monthsShort")}function yo(e,t,n){return vo(e,t,n,"weekdays")}function xo(e,t,n){return vo(e,t,n,"weekdaysShort")}function wo(e,t,n){return vo(e,t,n,"weekdaysMin")}po.calendar=I,po.longDateFormat=q,po.invalidDate=K,po.ordinal=Q,po.preparse=ho,po.postformat=ho,po.relativeTime=ee,po.pastFuture=te,po.set=E,po.eras=Di,po.erasParse=Oi,po.erasConvertYear=Ei,po.erasAbbrRegex=Ri,po.erasNameRegex=Yi,po.erasNarrowRegex=Ni,po.months=at,po.monthsShort=st,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=ht,po.week=St,po.firstDayOfYear=Tt,po.firstDayOfWeek=Ct,po.weekdays=zt,po.weekdaysMin=Bt,po.weekdaysShort=jt,po.weekdaysParse=$t,po.weekdaysRegex=Gt,po.weekdaysShortRegex=Kt,po.weekdaysMinRegex=Jt,po.isPM=nn,po.meridiem=an,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=L("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=L("moment.langData is deprecated. Use moment.localeData instead.",bn);var ko=Math.abs;function Mo(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function So(e,t,n,r){var i=Dr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Lo(e,t){return So(this,e,t,1)}function Co(e,t){return So(this,e,t,-1)}function To(e){return e<0?Math.floor(e):Math.ceil(e)}function Do(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*To(Eo(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=ce(o/1e3),u.seconds=e%60,t=ce(e/60),u.minutes=t%60,n=ce(t/60),u.hours=n%24,a+=ce(n/24),i=ce(Oo(a)),s+=i,a-=To(Eo(i)),r=ce(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Oo(e){return 4800*e/146097}function Eo(e){return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ie(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Eo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Po(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Fo(e){return function(){return this.as(e)}}var Io=Fo("ms"),Yo=Fo("s"),Ro=Fo("m"),No=Fo("h"),Ho=Fo("d"),zo=Fo("w"),jo=Fo("M"),Bo=Fo("Q"),Vo=Fo("y");function $o(){return Dr(this)}function Uo(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var qo=Wo("milliseconds"),Go=Wo("seconds"),Ko=Wo("minutes"),Jo=Wo("hours"),Xo=Wo("days"),Qo=Wo("months"),Zo=Wo("years");function ea(){return ce(this.days()/7)}var ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ia(e,t,n,r){var i=Dr(e).abs(),o=ta(i.as("s")),a=ta(i.as("m")),s=ta(i.as("h")),u=ta(i.as("d")),l=ta(i.as("M")),c=ta(i.as("w")),d=ta(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d],f[2]=t,f[3]=+e>0,f[4]=r,ra.apply(null,f)}function oa(e){return void 0===e?ta:"function"===typeof e&&(ta=e,!0)}function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},na,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=ia(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ua=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=ua(this._milliseconds)/1e3,l=ua(this._days),c=ua(this._months),d=this.asSeconds();return d?(e=ce(u/60),t=ce(e/60),u%=60,e%=60,n=ce(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var da=sr.prototype;return da.isValid=or,da.abs=Mo,da.add=Lo,da.subtract=Co,da.as=Ao,da.asMilliseconds=Io,da.asSeconds=Yo,da.asMinutes=Ro,da.asHours=No,da.asDays=Ho,da.asWeeks=zo,da.asMonths=jo,da.asQuarters=Bo,da.asYears=Vo,da.valueOf=Po,da._bubble=Do,da.clone=$o,da.get=Uo,da.milliseconds=qo,da.seconds=Go,da.minutes=Ko,da.hours=Jo,da.days=Xo,da.weeks=ea,da.months=Qo,da.years=Zo,da.humanize=sa,da.toISOString=ca,da.toString=ca,da.toJSON=ca,da.locale=si,da.localeData=li,da.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),da.lang=ui,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Ie("x",Oe),Ie("X",Pe),ze("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ze("x",(function(e,t,n){n._d=new Date(de(e))})),
//! moment.js
i.version="2.29.4",o(Jn),i.fn=lo,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=co,i.months=_o,i.isDate=f,i.locale=gn,i.invalid=b,i.duration=Dr,i.isMoment=M,i.weekdays=yo,i.parseZone=fo,i.localeData=bn,i.isDuration=ur,i.monthsShort=bo,i.weekdaysMin=wo,i.defineLocale=vn,i.updateLocale=_n,i.locales=yn,i.weekdaysShort=xo,i.normalizeUnits=ie,i.relativeTimeRounding=oa,i.relativeTimeThreshold=aa,i.calendarFormat=Br,i.prototype=lo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}))},3341:function(e,t,n){"use strict";
/*!
 * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
 *
 * Copyright (c) 2015-present, Jon Schlinkert.
 * Released under the MIT License.
 */const r=Symbol.prototype.valueOf,i=n(6401);function o(e,t){switch(i(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return l(e);case"symbol":return c(e);case"arraybuffer":return s(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return u(e);case"regexp":return a(e);case"error":return Object.create(e);default:return e}}function a(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,n=new e.constructor(e.source,t);return n.lastIndex=e.lastIndex,n}function s(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function u(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}function l(e){const t=e.length,n=Buffer.allocUnsafe?Buffer.allocUnsafe(t):Buffer.from(t);return e.copy(n),n}function c(e){return r?Object(r.call(e)):{}}e.exports=o},1474:function(e,t,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){return c(e)||d(e)||f()}function c(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,{MultiDrag:function(){return Nt},Sortable:function(){return Qe},Swap:function(){return Lt}});var h="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=p(/Edge/i),v=p(/firefox/i),_=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),y=p(/chrome/i)&&p(/android/i),x={capture:!1,passive:!1};function w(e,t,n){e.addEventListener(t,n,!m&&x)}function k(e,t,n){e.removeEventListener(t,n,!m&&x)}function M(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function S(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function L(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&M(e,t):M(e,t))||r&&e===n)return e;if(e===n)break}while(e=S(e))}return null}var C,T=/\s+/g;function D(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(T," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(T," ")}}function O(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function E(e,t){var n="";if("string"===typeof e)n=e;else do{var r=O(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function A(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function P(){var e=document.scrollingElement;return e||document.documentElement}function F(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,u,l,c,d;if(e!==window&&e!==P()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,u=o.bottom,l=o.right,c=o.height,d=o.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==O(i,"transform")||n&&"static"!==O(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(O(i,"border-top-width")),s-=f.left+parseInt(O(i,"border-left-width")),u=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=E(i||e),p=h&&h.a,g=h&&h.d;h&&(a/=g,s/=p,d/=p,c/=g,u=a+c,l=s+d)}return{top:a,left:s,bottom:u,right:l,width:d,height:c}}}function I(e,t,n){var r=j(e,!0),i=F(e)[t];while(r){var o=F(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===P())break;r=j(r,!1)}return!1}function Y(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Qe.ghost&&o[i]!==Qe.dragged&&L(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function R(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===O(n,"display")||t&&!M(n,t)))n=n.previousElementSibling;return n||null}function N(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Qe.clone||t&&!M(e,t)||n++;return n}function H(e){var t=0,n=0,r=P();if(e)do{var i=E(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function z(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function j(e,t){if(!e||!e.getBoundingClientRect)return P();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=O(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(r||t)return n;r=!0}}}while(n=n.parentNode);return P()}function B(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function V(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function $(e,t){return function(){if(!C){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),C=setTimeout((function(){C=void 0}),t)}}}function U(){clearTimeout(C),C=void 0}function W(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function G(e,t){O(e,"position","absolute"),O(e,"top",t.top),O(e,"left",t.left),O(e,"width",t.width),O(e,"height",t.height)}function K(e){O(e,"position",""),O(e,"top",""),O(e,"left",""),O(e,"width",""),O(e,"height","")}var J="Sortable"+(new Date).getTime();function X(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==O(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:F(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=E(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(z(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=F(n),u=n.prevFromRect,l=n.prevToRect,c=e.rect,d=E(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&V(u,s)&&!V(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=Z(c,u,l,r.options)),V(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){O(e,"transition",""),O(e,"transform","");var i=E(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),u=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!u,O(e,"transform","translate3d("+s+"px,"+u+"px,0)"),Q(e),O(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Q(e){return e.offsetWidth}function Z(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,u=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[J],t){var _,b=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||g?(_=document.createEvent("Event"),_.initEvent(r,!0,!0)):_=new CustomEvent(r,{bubbles:!0,cancelable:!0}),_.to=s||n,_.from=u||n,_.item=i||n,_.clone=o,_.oldIndex=l,_.newIndex=c,_.oldDraggableIndex=d,_.newDraggableIndex=f,_.originalEvent=h,_.pullMode=p?p.lastPutMode:void 0;var x=a({},v,ne.getEventProperties(r,t));for(var w in x)_[w]=x[w];n&&n.dispatchEvent(_),b[y]&&b[y].call(t,_)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=u(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,a({dragEl:ae,parentEl:se,ghostEl:ue,rootEl:le,nextEl:ce,lastDownEl:de,cloneEl:fe,cloneHidden:he,dragStarted:Le,putSortable:be,activeSortable:Qe.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve,hideGhostForTarget:Ge,unhideGhostForTarget:Ke,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:be,cloneEl:fe,targetEl:ae,rootEl:le,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve},e))}var ae,se,ue,le,ce,de,fe,he,pe,me,ge,ve,_e,be,ye,xe,we,ke,Me,Se,Le,Ce,Te,De,Oe,Ee=!1,Ae=!1,Pe=[],Fe=!1,Ie=!1,Ye=[],Re=!1,Ne=[],He="undefined"!==typeof document,ze=b,je=g||m?"cssFloat":"float",Be=He&&!y&&!b&&"draggable"in document.createElement("div"),Ve=function(){if(He){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),$e=function(e,t){var n=O(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Y(e,0,t),o=Y(e,1,t),a=i&&O(i),s=o&&O(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+F(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+F(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[je]||o&&"none"===n[je]&&u+l>r)?"vertical":"horizontal"},Ue=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,u=n?t.width:t.height;return r===a||i===s||r+o/2===a+u/2},We=function(e,t){var n;return Pe.some((function(r){if(!R(r)){var i=F(r),o=r[J].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},qe=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var u=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ge=function(){!Ve&&ue&&O(ue,"display","none")},Ke=function(){!Ve&&ue&&O(ue,"display","")};He&&document.addEventListener("click",(function(e){if(Ae)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ae=!1,!1}),!0);var Je=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[J]._onDragOver(n)}}},Xe=function(e){ae&&ae.parentNode[J]._isOutsideThisEl(e.target)};function Qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[J]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $e(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Qe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in qe(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Be,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(e,"pointerdown",this._onTapStart):(w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Pe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,X())}function Ze(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,a,s){var u,l,c=e[J],d=c.options.onMove;return!window.CustomEvent||m||g?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=i||t,u.relatedRect=o||F(t),u.willInsertAfter=s,u.originalEvent=a,e.dispatchEvent(u),d&&(l=d.call(c,u,a)),l}function tt(e){e.draggable=!1}function nt(){Re=!1}function rt(e,t,n){var r=F(R(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var u=r?e.clientY:e.clientX,l=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&De<l*i){if(!Fe&&(1===Te?u>c+l*o/2:u<d-l*o/2)&&(Fe=!0),Fe)f=!0;else if(1===Te?u<c+De:u>d-De)return-Te}else if(u>c+l*(1-i)/2&&u<d-l*(1-i)/2)return ot(t);return f=f||a,f&&(u<c+l*o/2||u>d-l*o/2)?u>c+l/2?1:-1:0}function ot(e){return N(ae)<N(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Ne.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Ne.push(r)}}function ut(e){return setTimeout(e,0)}function lt(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ce=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(s=L(s,r.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(pe=N(s),ge=N(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return oe({sortable:t,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=L(u,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),l))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!L(u,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var u=F(n);if(le=o,ae=n,se=ae.parentNode,ce=ae.nextSibling,de=n,_e=a.group,Qe.dragged=ae,ye={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Me=ye.clientX-u.left,Se=ye.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Qe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),D(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){A(ae,e.trim(),tt)})),w(s,"dragover",Je),w(s,"mousemove",Je),w(s,"touchmove",Je),w(s,"mouseup",i._onDrop),w(s,"touchend",i._onDrop),w(s,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(g||m))r();else{if(Qe.eventCanceled)return void this._onDrop();w(s,"mouseup",i._disableDelayedDrag),w(s,"touchend",i._disableDelayedDrag),w(s,"touchcancel",i._disableDelayedDrag),w(s,"mousemove",i._delayedDragTouchMoveHandler),w(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&w(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._disableDelayedDrag),k(e,"touchend",this._disableDelayedDrag),k(e,"touchcancel",this._disableDelayedDrag),k(e,"mousemove",this._delayedDragTouchMoveHandler),k(e,"touchmove",this._delayedDragTouchMoveHandler),k(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,t?"touchmove":"mousemove",this._onTouchMove):(w(ae,"dragend",this),w(le,"dragstart",this._onDragStart));try{document.selection?ut((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Ee=!1,le&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&w(document,"dragover",Xe);var n=this.options;!e&&D(ae,n.dragClass,!1),D(ae,n.ghostClass,!0),Qe.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(xe){this._lastX=xe.clientX,this._lastY=xe.clientY,Ge();var e=document.elementFromPoint(xe.clientX,xe.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(xe.clientX,xe.clientY),e===t)break;t=e}if(ae.parentNode[J]._isOutsideThisEl(e),t)do{if(t[J]){var n=void 0;if(n=t[J]._onDragOver({clientX:xe.clientX,clientY:xe.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ke()}},_onTouchMove:function(e){if(ye){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ue&&E(ue,!0),a=ue&&o&&o.a,s=ue&&o&&o.d,u=ze&&Oe&&H(Oe),l=(i.clientX-ye.clientX+r.x)/(a||1)+(u?u[0]-Ye[0]:0)/(a||1),c=(i.clientY-ye.clientY+r.y)/(s||1)+(u?u[1]-Ye[1]:0)/(s||1);if(!Qe.active&&!Ee){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ue){o?(o.e+=l-(we||0),o.f+=c-(ke||0)):o={a:1,b:0,c:0,d:1,e:l,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");O(ue,"webkitTransform",d),O(ue,"mozTransform",d),O(ue,"msTransform",d),O(ue,"transform",d),we=l,ke=c,xe=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ue){var e=this.options.fallbackOnBody?document.body:le,t=F(ae,!0,ze,!0,e),n=this.options;if(ze){Oe=e;while("static"===O(Oe,"position")&&"none"===O(Oe,"transform")&&Oe!==document)Oe=Oe.parentNode;Oe!==document.body&&Oe!==document.documentElement?(Oe===document&&(Oe=P()),t.top+=Oe.scrollTop,t.left+=Oe.scrollLeft):Oe=P(),Ye=H(Oe)}ue=ae.cloneNode(!0),D(ue,n.ghostClass,!1),D(ue,n.fallbackClass,!0),D(ue,n.dragClass,!0),O(ue,"transition",""),O(ue,"transform",""),O(ue,"box-sizing","border-box"),O(ue,"margin",0),O(ue,"top",t.top),O(ue,"left",t.left),O(ue,"width",t.width),O(ue,"height",t.height),O(ue,"opacity","0.8"),O(ue,"position",ze?"absolute":"fixed"),O(ue,"zIndex","100000"),O(ue,"pointerEvents","none"),Qe.ghost=ue,e.appendChild(ue),O(ue,"transform-origin",Me/parseInt(ue.style.width)*100+"% "+Se/parseInt(ue.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(ie("setupClone",this),Qe.eventCanceled||(fe=q(ae),fe.draggable=!1,fe.style["will-change"]="",this._hideClone(),D(fe,this.options.chosenClass,!1),Qe.clone=fe),n.cloneId=ut((function(){ie("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||le.insertBefore(fe,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&D(ae,i.dragClass,!0),t?(Ae=!0,n._loopId=setInterval(n._emulateDragOver,50)):(k(document,"mouseup",n._onDrop),k(document,"touchend",n._onDrop),k(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),w(document,"drop",n),O(ae,"transform","translateZ(0)")),Ee=!0,n._dragStartId=ut(n._dragStarted.bind(n,t,e)),w(document,"selectstart",n),Le=!0,_&&O(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,u=this.options,l=u.group,c=Qe.active,d=_e===l,f=u.sort,h=be||c,p=this,m=!1;if(!Re){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=L(s,u.draggable,o,!0),A("dragOver"),Qe.eventCanceled)return m;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return Y(!1);if(Ae=!1,c&&!u.disabled&&(d?f||(r=!le.contains(ae)):be===this||(this.lastPutMode=_e.checkPull(this,c,ae,e))&&l.checkPut(this,c,ae,e))){if(i="vertical"===this._getDirection(e,s),t=F(ae),A("dragOverValid"),Qe.eventCanceled)return m;if(r)return se=le,P(),this._hideClone(),A("revert"),Qe.eventCanceled||(ce?le.insertBefore(ae,ce):le.appendChild(ae)),Y(!0);var g=R(o,u.draggable);if(!g||rt(e,i,this)&&!g.animated){if(g===ae)return Y(!1);if(g&&o===e.target&&(s=g),s&&(n=F(s)),!1!==et(le,o,ae,t,s,n,e,!!s))return P(),o.appendChild(ae),se=o,H(),Y(!0)}else if(s.parentNode===o){n=F(s);var v,_,b=0,y=ae.parentNode!==o,x=!Ue(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),w=i?"top":"left",k=I(s,"top","top")||I(ae,"top","top"),M=k?k.scrollTop:void 0;if(Ce!==s&&(v=n[w],Fe=!1,Ie=!x&&u.invertSwap||y),b=it(e,s,n,i,x?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,Ie,Ce===s),0!==b){var S=N(ae);do{S-=b,_=se.children[S]}while(_&&("none"===O(_,"display")||_===ue))}if(0===b||_===s)return Y(!1);Ce=s,Te=b;var C=s.nextElementSibling,T=!1;T=1===b;var E=et(le,o,ae,t,s,n,e,T);if(!1!==E)return 1!==E&&-1!==E||(T=1===E),Re=!0,setTimeout(nt,30),P(),T&&!C?o.appendChild(ae):s.parentNode.insertBefore(ae,T?C:s),k&&W(k,0,M-k.scrollTop),se=ae.parentNode,void 0===v||Ie||(De=Math.abs(v-F(s)[w])),H(),Y(!0)}if(o.contains(ae))return Y(!1)}return!1}function A(u,l){ie(u,p,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:h,target:s,completed:Y,onMove:function(n,r){return et(le,o,ae,t,n,F(n),e,r)},changed:H},l))}function P(){A("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function Y(t){return A("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(p),p!==h&&(D(ae,be?be.options.ghostClass:c.options.ghostClass,!1),D(ae,u.ghostClass,!0)),be!==p&&p!==Qe.active?be=p:p===Qe.active&&be&&(be=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){A("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Ce=null),u.dragoverBubble||e.rootEl||s===document||(ae.parentNode[J]._isOutsideThisEl(e.target),!t&&Je(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){me=N(ae),ve=N(ae,u.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:me,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",Je),k(document,"mousemove",Je),k(document,"touchmove",Je)},_offUpEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._onDrop),k(e,"touchend",this._onDrop),k(e,"pointerup",this._onDrop),k(e,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=N(ae),ve=N(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,me=N(ae),ve=N(ae,n.draggable),Qe.eventCanceled||(Ee=!1,Ie=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),lt(this.cloneId),lt(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&O(document.body,"user-select",""),O(ae,"transform",""),e&&(Le&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ue&&ue.parentNode&&ue.parentNode.removeChild(ue),(le===se||be&&"clone"!==be.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ae&&(this.nativeDraggable&&k(ae,"dragend",this),tt(ae),ae.style["will-change"]="",Le&&!Ee&&D(ae,be?be.options.ghostClass:this.options.ghostClass,!1),D(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),le!==se?(me>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.save()):me!==pe&&me>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Qe.active&&(null!=me&&-1!==me||(me=pe,ve=ge),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),le=ae=se=ue=ce=fe=de=he=ye=xe=Le=me=ve=pe=ge=Ce=Te=be=_e=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=we=ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Ze(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],L(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];L(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return L(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&qe(n)},destroy:function(){ie("destroy",this);var e=this.el;e[J]=null,k(e,"mousedown",this._onTapStart),k(e,"touchstart",this._onTapStart),k(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(e,"dragover",this),k(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Pe.splice(Pe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ie("hideClone",this),Qe.eventCanceled)return;O(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ie("showClone",this),Qe.eventCanceled)return;le.contains(ae)&&!this.options.group.revertClone?le.insertBefore(fe,ae):ce?le.insertBefore(fe,ce):le.appendChild(fe),this.options.group.revertClone&&this.animate(ae,fe),O(fe,"display",""),he=!1}}else this._hideClone()}},He&&w(document,"touchmove",(function(e){(Qe.active||Ee)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:w,off:k,css:O,find:A,is:function(e,t){return!!L(e,t,e,!1)},extend:B,throttle:$,closest:L,toggleClass:D,clone:q,index:N,nextTick:ut,cancelNextTick:lt,detectDirection:$e,getChild:Y},Qe.get=function(e){return e[J]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Qe.utils=a({},Qe.utils,e.utils)),ne.mount(e)}))},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=h;var ct,dt,ft,ht,pt,mt,gt=[],vt=!1;function _t(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):t.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),yt(),bt(),U()},nulling:function(){pt=dt=ct=vt=mt=ft=ht=null,gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(pt=e,t||g||m||_){wt(e,this.options,o,t);var a=j(o,!0);!vt||mt&&r===ft&&i===ht||(mt&&yt(),mt=setInterval((function(){var o=j(document.elementFromPoint(r,i),!0);o!==a&&(a=o,bt()),wt(e,n.options,o,t)}),10),ft=r,ht=i)}else{if(!this.options.bubbleScroll||j(o,!0)===P())return void bt();wt(e,this.options,j(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){gt.forEach((function(e){clearInterval(e.pid)})),gt=[]}function yt(){clearInterval(mt)}var xt,wt=$((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,u=t.scrollSpeed,l=P(),c=!1;dt!==n&&(dt=n,bt(),ct=t.scroll,i=t.scrollFn,!0===ct&&(ct=j(n,!0)));var d=0,f=ct;do{var h=f,p=F(h),m=p.top,g=p.bottom,v=p.left,_=p.right,b=p.width,y=p.height,x=void 0,w=void 0,k=h.scrollWidth,M=h.scrollHeight,S=O(h),L=h.scrollLeft,C=h.scrollTop;h===l?(x=b<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),w=y<M&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=b<k&&("auto"===S.overflowX||"scroll"===S.overflowX),w=y<M&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=x&&(Math.abs(_-o)<=s&&L+b<k)-(Math.abs(v-o)<=s&&!!L),D=w&&(Math.abs(g-a)<=s&&C+y<M)-(Math.abs(m-a)<=s&&!!C);if(!gt[d])for(var E=0;E<=d;E++)gt[E]||(gt[E]={});gt[d].vx==T&&gt[d].vy==D&&gt[d].el===h||(gt[d].el=h,gt[d].vx=T,gt[d].vy=D,clearInterval(gt[d].pid),0==T&&0==D||(c=!0,gt[d].pid=setInterval(function(){r&&0===this.layer&&Qe.active._onTouchMove(pt);var t=gt[this.layer].vy?gt[this.layer].vy*u:0,n=gt[this.layer].vx?gt[this.layer].vx*u:0;"function"===typeof i&&"continue"!==i.call(Qe.dragged.parentNode[J],n,t,e,pt,gt[this.layer].el)||W(gt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=j(f,!1)));vt=c}}),30),kt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var u=n||i;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(l.clientX,l.clientY);s(),u&&!u.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Mt(){}function St(){}function Lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;xt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,u=this.options;if(n&&n!==s){var l=xt;!1!==r(n)?(D(n,u.swapClass,!0),xt=n):xt=null,l&&l!==xt&&D(l,u.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;xt&&D(xt,o.swapClass,!1),xt&&(o.swap||n&&n.options.swap)&&r!==xt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Ct(r,xt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){xt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:xt}}})}function Ct(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=N(e),r=N(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}Mt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Y(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:kt},o(Mt,{pluginName:"revertOnSpill"}),St.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:kt},o(St,{pluginName:"removeOnSpill"});var Tt,Dt,Ot,Et,At,Pt=[],Ft=[],It=!1,Yt=!1,Rt=!1;function Nt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?w(document,"pointerup",this._deselectMultiDrag):(w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag)),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Pt.length&&Dt===e?Pt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Ot=t},delayEnded:function(){this.isMultiDrag=~Pt.indexOf(Ot)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Pt.length;r++)Ft.push(q(Pt[r])),Ft[r].sortableIndex=Pt[r].sortableIndex,Ft[r].draggable=!1,Ft[r].style["will-change"]="",D(Ft[r],this.options.selectedClass,!1),Pt[r]===Ot&&D(Ft[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Pt.length&&Dt===t&&(zt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(zt(!1,n),Ft.forEach((function(e){O(e,"display","")})),t(),At=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Ft.forEach((function(e){O(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),At=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Dt&&Dt.multiDrag._deselectMultiDrag(),Pt.forEach((function(e){e.sortableIndex=N(e)})),Pt=Pt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Rt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Pt.forEach((function(e){e!==Ot&&O(e,"position","absolute")}));var r=F(Ot,!1,!0,!0);Pt.forEach((function(e){e!==Ot&&G(e,r)})),Yt=!0,It=!0}n.animateAll((function(){Yt=!1,It=!1,t.options.animation&&Pt.forEach((function(e){K(e)})),t.options.sort&&jt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Yt&&~Pt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Pt.length>1&&(Pt.forEach((function(e){r.addAnimationState({target:e,rect:Yt?F(e):i}),K(e),e.fromRect=i,t.removeAnimationState(e)})),Yt=!1,Ht(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),It=!1,s.animation&&Pt.length>1&&(Yt||!n&&!i.options.sort&&!a)){var u=F(Ot,!1,!0,!0);Pt.forEach((function(e){e!==Ot&&(G(e,u),o.appendChild(e))})),Yt=!0}if(!n)if(Yt||jt(),Pt.length>1){var l=At;i._showClone(t),i.options.animation&&!At&&l&&Ft.forEach((function(e){i.addAnimationState({target:e,rect:Et}),e.fromRect=Et,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Pt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Et=o({},t);var i=E(Ot,!0);Et.top-=i.f,Et.left-=i.e}},dragOverAnimationComplete:function(){Yt&&(Yt=!1,jt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,u=s||this.sortable;if(t){var l=this.options,c=r.children;if(!Rt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(Ot,l.selectedClass,!~Pt.indexOf(Ot)),~Pt.indexOf(Ot))Pt.splice(Pt.indexOf(Ot),1),Tt=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:Ot,originalEvt:t});else{if(Pt.push(Ot),re({sortable:i,rootEl:n,name:"select",targetEl:Ot,originalEvt:t}),t.shiftKey&&Tt&&i.el.contains(Tt)){var d,f,h=N(Tt),p=N(Ot);if(~h&&~p&&h!==p)for(p>h?(f=h,d=p):(f=p,d=h+1);f<d;f++)~Pt.indexOf(c[f])||(D(c[f],l.selectedClass,!0),Pt.push(c[f]),re({sortable:i,rootEl:n,name:"select",targetEl:c[f],originalEvt:t}))}else Tt=Ot;Dt=u}if(Rt&&this.isMultiDrag){if((r[J].options.sort||r!==n)&&Pt.length>1){var m=F(Ot),g=N(Ot,":not(."+this.options.selectedClass+")");if(!It&&l.animation&&(Ot.thisAnimationDuration=null),u.captureAnimationState(),!It&&(l.animation&&(Ot.fromRect=m,Pt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Ot){var t=Yt?F(e):m;e.fromRect=t,u.addAnimationState({target:e,rect:t})}}))),jt(),Pt.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===N(Ot))){var v=!1;Pt.forEach((function(e){e.sortableIndex===N(e)||(v=!0)})),v&&o("update")}Pt.forEach((function(e){K(e)})),u.animateAll()}Dt=u}(n===r||s&&"clone"!==s.lastPutMode)&&Ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Rt=!1,Ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),k(document,"pointerup",this._deselectMultiDrag),k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Rt||!Rt)&&Dt===this.sortable&&(!e||!L(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Pt.length){var t=Pt[0];D(t,this.options.selectedClass,!1),Pt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[J];t&&t.options.multiDrag&&!~Pt.indexOf(e)&&(Dt&&Dt!==t&&(Dt.multiDrag._deselectMultiDrag(),Dt=t),D(e,t.options.selectedClass,!0),Pt.push(e))},deselect:function(e){var t=e.parentNode[J],n=Pt.indexOf(e);t&&t.options.multiDrag&&~n&&(D(e,t.options.selectedClass,!1),Pt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Pt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Yt&&r!==Ot?-1:Yt?N(r,":not(."+e.options.selectedClass+")"):N(r),n.push({multiDragElement:r,index:i})})),{items:l(Pt),clones:[].concat(Ft),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Ht(e,t){Pt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function zt(e,t){Ft.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function jt(){Pt.forEach((function(e){e!==Ot&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new _t),Qe.mount(St,Mt),t["default"]=Qe},8785:function(){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},6890:function(e,t,n){n(8785)},8190:function(e,t,n){n(7440)},7440:function(){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){t(e,n.getData().code),n.close()}})},i=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},o=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return i(e),o(e),{}}))}a()})()},2170:function(e,t,n){n(3302)},3302:function(){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),u=r("array"),l=o(null),c=i("boolean"),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},h=i("function"),p=i("number"),m=function(){},g=function(e){return function(){return e}},v=function(e){return e},_=g(!1),b=g(!0),y=function(){return x},x=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:_,isNone:b,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:y,each:m,bind:y,exists:_,forall:b,filter:function(){return y()},toArray:function(){return[]},toString:g("none()")};return n}(),w=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:b,isNone:_,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return w(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:x},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},k=function(e){return null===e||void 0===e?x:w(e)},M={some:w,none:y,from:k},S=Object.keys,L=Object.hasOwnProperty,C=function(e,t){for(var n=S(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e){return function(t,n){e[n]=t}},D=function(e,t,n,r){var i={};return C(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},O=function(e,t){var n={};return D(e,t,T(n),m),n},E=function(e,t){return L.call(e,t)},A=function(e,t){return E(e,t)&&void 0!==e[t]&&null!==e[t]},P=Array.prototype.push,F=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!u(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);P.apply(t,e[n])}return t},I=function(e,t){return t>=0&&t<e.length?M.some(e[t]):M.none()},Y=function(e){return I(e,0)},R=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return M.none()};"undefined"!==typeof window?window:Function("return this;")();var N=function(e,t,n){if(!(a(n)||c(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},H=function(e,t,n){N(e.dom,t,n)},z=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return $(r.childNodes[0])},B=function(e,t){var n=t||document,r=n.createElement(e);return $(r)},V=function(e,t){var n=t||document,r=n.createTextNode(e);return $(r)},$=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},U=function(e,t,n){return M.from(e.dom.elementFromPoint(t,n)).map($)},W={fromHtml:j,fromTag:B,fromText:V,fromDom:$,fromPoint:U},q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),G=tinymce.util.Tools.resolve("tinymce.util.Promise"),K=tinymce.util.Tools.resolve("tinymce.util.URI"),J=tinymce.util.Tools.resolve("tinymce.util.XHR"),X=function(e){return e.getParam("image_dimensions",!0,"boolean")},Q=function(e){return e.getParam("image_advtab",!1,"boolean")},Z=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return f(e.getParam("images_upload_url"))},se=function(e){return f(e.getParam("images_upload_handler"))},ue=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},le=function(e){return e.getParam("automatic_uploads",!0,"boolean")},ce=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},de=function(e){return new G((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=ce(n.width,n.clientWidth),t=ce(n.height,n.clientHeight),i={width:e,height:t};r(G.resolve(i))},n.onerror=function(){r(G.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},fe=function(e){return e&&(e=e.replace(/px$/,"")),e},he=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},pe=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=function(e,t){var n=oe(e);a(n)?J.send({url:n,success:function(e){t(JSON.parse(e))}}):h(n)?n(t):t(n)},ge=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!X(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new G((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},_e=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},be=function(e,t){return K.isDomSafe(t,"img",e.settings)},ye=q.DOM,xe=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?fe(e.style.marginLeft):""},we=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?fe(e.style.marginTop):""},ke=function(e){return e.style.borderWidth?fe(e.style.borderWidth):""},Me=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Se=function(e,t){return e.style[t]?e.style[t]:""},Le=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Ce=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Te=function(e){var t=ye.create("figure",{class:"image"});ye.insertAfter(t,e),t.appendChild(e),t.appendChild(ye.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},De=function(e){var t=e.parentNode;ye.insertAfter(e,t),ye.remove(t)},Oe=function(e){Le(e)?De(e):Te(e)},Ee=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Ae=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=he(r),Ee(e,t)):Ce(e,n,r)}},Pe=function(e,t){return e.style[t]?fe(e.style[t]):Me(e,t)},Fe=function(e,t){var n=he(t);e.style.marginLeft=n,e.style.marginRight=n},Ie=function(e,t){var n=he(t);e.style.marginTop=n,e.style.marginBottom=n},Ye=function(e,t){var n=he(t);e.style.borderWidth=n},Re=function(e,t){e.style.borderStyle=t},Ne=function(e){return Se(e,"borderStyle")},He=function(e){return"FIGURE"===e.nodeName},ze=function(e){return"IMG"===e.nodeName},je=function(e){return 0===ye.getAttrib(e,"alt").length&&"presentation"===ye.getAttrib(e,"role")},Be=function(e){return je(e)?"":Me(e,"alt")},Ve=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},$e=function(e,t){var n=document.createElement("img");return Ce(n,"style",t.style),(xe(n)||""!==t.hspace)&&Fe(n,t.hspace),(we(n)||""!==t.vspace)&&Ie(n,t.vspace),(ke(n)||""!==t.border)&&Ye(n,t.border),(Ne(n)||""!==t.borderStyle)&&Re(n,t.borderStyle),e(n.getAttribute("style"))},Ue=function(e,n){var r=document.createElement("img");if(Xe(e,t(t({},n),{caption:!1}),r),Ge(r,n.alt,n.isDecorative),n.caption){var i=ye.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(ye.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},We=function(e,t){return{src:Me(t,"src"),alt:Be(t),title:Me(t,"title"),width:Pe(t,"width"),height:Pe(t,"height"),class:Me(t,"class"),style:e(Me(t,"style")),caption:Le(t),hspace:xe(t),vspace:we(t),border:ke(t),borderStyle:Se(t,"borderStyle"),isDecorative:je(t)}},qe=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ge=function(e,t,n){if(n){ye.setAttrib(e,"role","presentation");var r=W.fromDom(e);H(r,"alt","")}else{if(l(t)){r=W.fromDom(e);z(r,"alt")}else{r=W.fromDom(e);H(r,"alt",t)}"presentation"===ye.getAttrib(e,"role")&&ye.setAttrib(e,"role","")}},Ke=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ge(e,n.alt,n.isDecorative)},Je=function(e,t){return function(n,r,i){e(n,i),Ee(n,t)}},Xe=function(e,t,n){var r=We(e,n);qe(n,r,t,"caption",(function(e,t,n){return Oe(e)})),qe(n,r,t,"src",Ce),qe(n,r,t,"title",Ce),qe(n,r,t,"width",Ae("width",e)),qe(n,r,t,"height",Ae("height",e)),qe(n,r,t,"class",Ce),qe(n,r,t,"style",Je((function(e,t){return Ce(e,"style",t)}),e)),qe(n,r,t,"hspace",Je(Fe,e)),qe(n,r,t,"vspace",Je(Ie,e)),qe(n,r,t,"border",Je(Ye,e)),qe(n,r,t,"borderStyle",Je(Re,e)),Ke(n,r,t)},Qe=function(e,t){var n=e.dom.styles.parse(t),r=pe(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Ze=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||_e(t))?null:t},et=function(e,t){var n=e.dom,r=O(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return A(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Ze(e);return t?We((function(t){return Qe(e,t)}),t):Ve()},nt=function(e,t){var n=Ue((function(t){return Qe(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),He(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Ze(e);if(Xe((function(t){return Qe(e,t)}),t,n),rt(e,n),He(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),ge(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:be(e,r)?r:""})},st=function(e,n){var r=Ze(e);if(r){var i=We((function(t){return Qe(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},Ve()),n))},ut=function(e,t){var n=s(e)&&s(t);return n?ct(e,t):t},lt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)E(o,a)&&(r[a]=e(r[a],o[a]))}return r}},ct=lt(ut),dt=function(e){return e.length>0},ft=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ht=tinymce.util.Tools.resolve("tinymce.util.Tools"),pt=function(e){return a(e.value)?e.value:""},mt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},gt=function(e,t){var n=[];return ht.each(e,(function(e){var r=mt(e);if(void 0!==e.menu){var i=gt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},vt=function(e){return void 0===e&&(e=pt),function(t){return t?M.from(t).map((function(t){return gt(t,e)})):M.none()}},_t=function(e){return vt(pt)(e)},bt=function(e){return E(e,"items")},yt=function(e,t){return R(e,(function(e){return bt(e)?yt(e.items,t):e.value===t?M.some(e):M.none()}))},xt=function(e,t){return e.bind((function(e){return yt(e,t)}))},wt={sanitizer:vt,sanitize:_t,findEntry:xt},kt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Mt={makeTab:kt},St=function(e){var t=wt.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new G((function(n){me(e,(function(e){n(t(e).map((function(e){return F([[{text:"None",value:""}],e])})))}))})),r=wt.sanitize(te(e)),i=Q(e),o=Z(e),s=ae(e),u=se(e),l=tt(e),c=ne(e),d=re(e),f=X(e),h=ie(e),p=ue(e),m=le(e),g=M.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:l,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:u,hasDescription:c,hasImageTitle:d,hasDimensions:f,hasImageCaption:h,prependURL:g,hasAccessibilityOptions:p,automaticUploads:m}}))},Lt=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),l={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},c=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return F([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},c(e.classList.isSome()&&e.hasImageCaption)),{items:F([u.toArray(),e.hasImageCaption?[l]:[]])})]])},Ct=function(e){return{title:"General",name:"general",items:Lt(e)}},Tt={makeTab:Ct,makeItems:Lt},Dt=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},Ot={makeTab:Dt},Et=function(e){return{prevImage:wt.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},At=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Pt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Ft=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?M.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?M.some(e+t):M.none()}))},It=function(e,t){var n=t.getData();Ft(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Yt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&wt.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&c(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Rt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=ct({},n);Yt(e,i,r),t.setData(i)}},Nt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(dt(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},Ht=function(e,t,n){var r=n.getData(),i=wt.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},zt=function(e,t,n,r){It(t,r),Rt(t,r),Nt(e,t,n,r),Ht(t,n,r)},jt=function(e,t,n,r){var i=r.getData(),o=wt.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,zt(e,t,n,r)},Bt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?fe(String(e["margin-top"])):""},Vt=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?fe(String(e["margin-right"])):""},$t=function(e){return e["border-width"]?fe(String(e["border-width"])):""},Ut=function(e){return e["border-style"]?String(e["border-style"]):""},Wt=function(e,t,n){return t(e(t(n)))},qt=function(e,t,n){var r=pe(e(n.style)),i=ct({},n);return i.vspace=Bt(r),i.hspace=Vt(r),i.border=$t(r),i.borderstyle=Ut(r),i.style=Wt(e,t,r),i},Gt=function(e,t){var n=t.getData(),r=qt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Kt=function(e,t,n){var r=ct(At(t.image),n.getData()),i=$e(e.normalizeCss,Pt(r,!1));n.setData({style:i})},Jt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),Y(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),zt(e,t,n,r)};ve(i).then((function(n){var u=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(u).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(u),s(u.blobUri()),r.unblock())}))}))},Xt=function(e,t,n){return function(r,i){"src"===i.name?zt(e,t,n,r):"images"===i.name?jt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Gt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Kt(e,t,r):"fileinput"===i.name?Jt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Qt=function(e){return function(){e.open=!1}},Zt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:F([[Tt.makeTab(e)],e.hasAdvTab?[Mt.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Ot.makeTab(e)]:[]])};return t}var n={type:"panel",items:Tt.makeItems(e)};return n},en=function(e){return function(t){var n=Et(t);return{title:"Insert/Edit Image",size:"normal",body:Zt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:At(t.image),onSubmit:e.onSubmit(t),onChange:Xt(e,t,n),onClose:Qt(n)}}},tn=function(e){return function(t){return function(n){var r=ct(At(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Pt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return be(e,t)?de(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):G.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Qe(e,t)}},un=function(e){return function(t){return e.dom.parseStyle(t)}},ln=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},cn=function(e){return function(t){return ft(e).upload([t],!1).then((function(e){return 0===e.length?G.reject("Failed to upload image"):!1===e[0].status?G.reject(e[0].error.message):e[0]}))}},dn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:un(e),serializeStyle:ln(e),uploadImage:cn(e)},n=function(){St(e).then(en(t)).then(e.windowManager.open)};return{open:n}},fn=function(e){e.addCommand("mceImage",dn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},hn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},pn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];hn(i)&&(i.attr("contenteditable",e?"false":null),ht.each(i.getAll("figcaption"),r))}}},mn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",pn(!0)),e.serializer.addNodeFilter("figure",pn(!1))}))},gn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:dn(e).open,onSetup:function(t){return t.setActive(f(Ze(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:dn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return He(e)||ze(e)&&!_e(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){mn(e),gn(e),fn(e)}))}vn()})()},2682:function(e,t,n){n(7384)},7384:function(){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),u=o(null),l=i("boolean"),c=i("function"),d=function(){},f=function(e){return function(){return e}},h=function(e){return e},p=function(e,t){return e===t},m=f(!1),g=f(!0),v=function(){return _},_=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:d,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?_:b(e)},x={some:b,none:v,from:y},w=Array.prototype.indexOf,k=Array.prototype.push,M=function(e,t){return w.call(e,t)},S=function(e,t){return M(e,t)>-1},L=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},C=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t,n){return C(e,(function(e,r){n=t(n,e,r)})),n},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);k.apply(t,e[n])}return t},O=function(e,t){return D(L(e,t))},E=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return x.none()},A=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},P=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},F=function(e,t){return e?x.some(t):x.none()},I=function(e){var t=e.getParam("link_assume_external_targets",!1);return l(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},Y=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},R=function(e){return e.getParam("link_list")},N=function(e){return e.getParam("default_link_target")},H=function(e){return e.getParam("target_list",!0)},z=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},B=function(e){return e.getParam("link_title",!0,"boolean")},V=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},$=function(e){return e.getParam("link_quicklink",!1,"boolean")},U=function(e){return e.getParam("link_default_protocol","http","string")},W=tinymce.util.Tools.resolve("tinymce.util.Tools"),q=function(e){return a(e.value)?e.value:""},G=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},K=function(e,t){var n=[];return W.each(e,(function(e){var r=G(e);if(void 0!==e.menu){var i=K(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},J=function(e){return void 0===e&&(e=q),function(t){return x.from(t).map((function(t){return K(t,e)}))}},X=function(e){return J(q)(e)},Q=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Z={sanitize:X,sanitizeWith:J,createUi:Q,getValue:q},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),d),n},se=function(e,t){return ne.call(e,t)},ue=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},le=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ce=tinymce.util.Tools.resolve("tinymce.util.URI"),de=function(e){return e&&"a"===e.nodeName.toLowerCase()},fe=function(e){return de(e)&&!!me(e)},he=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new le(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},pe=function(e){return/^\w+:/i.test(e)},me=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},ge=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return W.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===W.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ve=function(e){return e.replace(/\uFEFF/g,"")},_e=function(e,t){return t=t||e.selection.getNode(),ke(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},be=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},ye=function(e){return W.grep(e,fe).length>0},xe=function(e){return he(e,fe).length>0},we=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!de(e)&&!se(t,e.nodeName.toLowerCase())},r=he(e.selection.getRng(),n);return 0===r.length},ke=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Me=function(e){var t=["title","rel","class","target"];return T(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},Se=function(e,t){return"http"!==t&&"https"!==t||pe(e)?e:t+"://"+e},Le=function(e,t){var n=ee({},t);if(!(z(e).length>0)&&!1===V(e)){var r=ge(n.rel,"_blank"===n.target);n.rel=r||null}return x.from(n.target).isNone()&&!1===H(e)&&(n.target=N(e)),n.href=Se(n.href,I(e)),n},Ce=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Te=function(e,t,n,r){ke(t)?Re(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},De=function(e,t,n){var r=e.selection.getNode(),i=_e(e,r),o=Le(e,Me(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Ce(e,i,n.text,o)):Te(e,r,n.text,o)}))},Oe=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},Ee=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();ke(t)?Ye(e,t):Oe(e),e.focus()}))},Ae=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===u(e)}))},Pe=function(e,t){var n=t.href;return ee(ee({},t),{href:ce.isDomSafe(n,"a",e.settings)?n:""})},Fe=function(e,t,n){var r=Pe(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Ae(r)):De(e,t,r)},Ie=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Ee(e)},Ye=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Re=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Ne=function(e){return ue(e,"items")},He=function(e,t){return E(t,(function(t){return Ne(t)?He(e,t.items):F(t.value===e,t)}))},ze=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?He(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:d}},text:o?e:t.text}})):x.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:x.none()},Be=function(e,t){var n={text:e.text,title:e.title},r=function(e){return F(n.title.length<=0,x.from(e.meta.title).getOr(""))},i=function(e){return F(n.text.length<=0,x.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?x.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):x.none()},a=function(e,r){var i=je(t,r.name).getOr([]);return ze(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):S(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],x.none()):x.none()};return{onChange:s}},Ve={init:Be,getDelta:ze},$e=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ue=tinymce.util.Tools.resolve("tinymce.util.Promise"),We=function(e,t,n){var r=e.selection.getRng();$e.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},qe=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?x.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):x.none()},Ge=function(e,t){return function(n){var r=n.href,i=1===e&&!pe(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?x.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):x.none()}},Ke=function(e,t){return E([qe,Ge(I(e),U(e))],(function(e){return e(t)})).fold((function(){return Ue.resolve(t)}),(function(n){return new Ue((function(r){We(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Je={preprocess:Ke},Xe=function(e){var t=e.dom.select("a:not([href])"),n=O(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?x.some([{text:"None",value:""}].concat(n)):x.none()},Qe={getAnchors:Xe},Ze=function(e){var t=j(e);return t.length>0?Z.sanitize(t):x.none()},et={getClasses:Ze},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return x.some(JSON.parse(e))}catch(t){return x.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=R(e);return new Ue((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(x.none())}}):c(n)?n((function(t){return e(x.some(t))})):e(x.from(n))})).then((function(e){return e.bind(Z.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=z(e);if(n.length>0){var r=A(t,"_blank"),i=!1===V(e),o=function(e){return ge(Z.getValue(e),r)},a=i?Z.sanitizeWith(o):Z.sanitize;return a(n)}return x.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ut=function(e){var t=H(e);return s(t)?Z.sanitize(t).orThunk((function(){return x.some(st)})):!1===t?x.none():x.some(st)},lt={getTargets:ut},ct=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?x.some(r):x.none()},dt=function(e,t){var n=e.dom,r=we(e),i=r?x.some(be(e.selection,t)):x.none(),o=t?x.some(n.getAttrib(t,"href")):x.none(),a=t?x.from(n.getAttrib(t,"target")):x.none(),s=ct(n,t,"rel"),u=ct(n,t,"class"),l=ct(n,t,"title");return{url:o,text:i,title:l,target:a,rel:s,linkClass:u}},ft=function(e,t){return it.getLinks(e).then((function(n){var r=dt(e,t);return{anchor:r,catalogs:{targets:lt.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Qe.getAnchors(e),link:n},optNode:x.from(t),flags:{titleEnabled:B(e)}}}))},ht={collect:ft},pt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Ie(e),void n.close();var i=function(e){return x.from(r[e]).filter((function(n){return!A(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:d};Je.preprocess(e,o).then((function(t){Fe(e,a,t)})),n.close()}},mt=function(e){var t=_e(e);return ht.collect(e,t)},gt=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=x.from(N(n)),s=gt(e,a),u=e.catalogs,l=Ve.init(s,u),c={type:"panel",items:D([r,i,o,P([u.anchor.map(Z.createUi("anchor","Anchors")),u.rels.map(Z.createUi("rel","Rel")),u.targets.map(Z.createUi("target","Open link in...")),u.link.map(Z.createUi("link","Link list")),u.classes.map(Z.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;l.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},_t=function(e){var t=mt(e);t.then((function(t){var n=pt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},bt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},yt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),bt(t,n)},xt=function(e,t){return e.dom.getParent(t,"a[href]")},wt=function(e){return xt(e,e.selection.getStart())},kt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},Mt=function(e,t){if(t){var n=me(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else yt(t.href)}},St=function(e){return function(){_t(e)}},Lt=function(e){return function(){Mt(e,wt(e))}},Ct=function(e){e.on("click",(function(n){var r=xt(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),Mt(e,r))})),e.on("keydown",(function(t){var n=wt(e);n&&13===t.keyCode&&kt(t)&&(t.preventDefault(),Mt(e,n))}))},Tt=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Dt=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==_e(e,e.selection.getNode()))};return n(),Tt(e,n)}},Ot=function(e){return function(t){var n=function(){return t.setDisabled(null===_e(e,e.selection.getNode()))};return n(),Tt(e,n)}},Et=function(e){return function(t){var n=function(t){return ye(t)||xe(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Tt(e,(function(e){return t.setDisabled(!n(e.parents))}))}},At=function(e){e.addCommand("mceLink",(function(){$(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):St(e)()}))},Pt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Ft=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:St(e),onSetup:Dt(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Lt(e),onSetup:Ot(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Ie(e)},onSetup:Et(e)})},It=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Lt(e),onSetup:Ot(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:St(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Ie(e)},onSetup:Et(e)})},Yt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return ye(e.dom.getParents(r,"a"))?t:n}})},Rt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!_e(e,n)),d},r=function(t){var n=_e(e),r=we(e);if(!n&&r){var i=be(e.selection,n);return x.some(i.length>0?i:t)}return x.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Dt(e)},label:"Link",predicate:function(t){return!!_e(e,t)&&Y(e)},initValue:function(){var t=_e(e);return t?me(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!_e(e,n)),Dt(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:d};Fe(e,a,{href:i,text:o,title:x.none(),rel:x.none(),target:x.none(),class:x.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Ie(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){Lt(e)(),t.hide()}}]})};function Nt(){e.add("link",(function(e){Ft(e),It(e),Yt(e),Rt(e),Ct(e),At(e),Pt(e)}))}Nt()})()},6552:function(e,t,n){n(7585)},7585:function(){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=n("object"),a=n("array"),s=r("boolean"),u=r("function"),l=r("number"),c=function(){},d=function(e){return function(){return e}},f=function(e){return e},h=function(e,t){return e===t},p=function(e){return function(t){return!e(t)}},m=d(!1),g=d(!0),v=function(){return _},_=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:c,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?_:b(e)},x={some:b,none:v,from:y},w=Array.prototype.slice,k=Array.prototype.push,M=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},S=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},L=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},C=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],u=t(s);u!==n&&(r.push(i),i=[]),n=u,i.push(s)}return 0!==i.length&&r.push(i),r},T=function(e,t,n){return S(e,(function(e,r){n=t(n,e,r)})),n},D=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return x.some(o);if(n(o,r))break}return x.none()},O=function(e,t){return D(e,t,m)},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);k.apply(t,e[n])}return t},A=function(e,t){return E(M(e,t))},P=function(e){var t=w.call(e,0);return t.reverse(),t},F=function(e,t){return t>=0&&t<e.length?x.some(e[t]):x.none()},I=function(e){return F(e,0)},Y=function(e){return F(e,e.length-1)},R=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return x.none()},N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N.apply(this,arguments)};function H(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var z=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},j=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!u,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!l&&!u&&!c;return{isiPad:d(i),isiPhone:d(o),isTablet:d(u),isPhone:d(l),isTouch:d(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:d(c),isDesktop:d(f)}},B=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},V=function(e,t){var n=B(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return W(r(1),r(2))},$=function(e,t){var n=String(t).toLowerCase();return 0===e.length?U():V(e,n)},U=function(){return W(0,0)},W=function(e,t){return{major:e,minor:t}},q={nu:W,detect:$,unknown:U},G=function(e,t){return R(t.brands,(function(t){var n=t.brand.toLowerCase();return O(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:q.nu(parseInt(t.version,10),0)}}))}))},K=function(e,t){var n=String(t).toLowerCase();return O(e,(function(e){return e.search(n)}))},J=function(e,t){return K(e,t).map((function(e){var n=q.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},X=function(e,t){return K(e,t).map((function(e){var n=q.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Q=function(e,t){return-1!==e.indexOf(t)},Z=function(e){return function(t){return t.replace(e,"")}},ee=Z(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ie=function(e){return function(t){return Q(t,e)}},oe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Q(e,"edge/")&&Q(e,"chrome")&&Q(e,"safari")&&Q(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return Q(e,"chrome")&&!Q(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Q(e,"msie")||Q(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ie("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Q(e,"safari")||Q(e,"mobile/"))&&Q(e,"applewebkit")}}],ae=[{name:"Windows",search:ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Q(e,"iphone")||Q(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ie("linux"),versionRegexes:[]},{name:"Solaris",search:ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:d(oe),oses:d(ae)},ue="Edge",le="Chrome",ce="IE",de="Opera",fe="Firefox",he="Safari",pe=function(){return me({current:void 0,version:q.unknown()})},me=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ue),isChrome:r(le),isIE:r(ce),isOpera:r(de),isFirefox:r(fe),isSafari:r(he)}},ge={unknown:pe,nu:me,edge:d(ue),chrome:d(le),ie:d(ce),opera:d(de),firefox:d(fe),safari:d(he)},ve="Windows",_e="iOS",be="Android",ye="Linux",xe="OSX",we="Solaris",ke="FreeBSD",Me="ChromeOS",Se=function(){return Le({current:void 0,version:q.unknown()})},Le=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ve),isiOS:r(_e),isAndroid:r(be),isOSX:r(xe),isLinux:r(ye),isSolaris:r(we),isFreeBSD:r(ke),isChromeOS:r(Me)}},Ce={unknown:Se,nu:Le,windows:d(ve),ios:d(_e),android:d(be),linux:d(ye),osx:d(xe),solaris:d(we),freebsd:d(ke),chromeos:d(Me)},Te=function(e,t,n){var r=se.browsers(),i=se.oses(),o=t.bind((function(e){return G(r,e)})).orThunk((function(){return J(r,e)})).fold(ge.unknown,ge.nu),a=X(i,e).fold(Ce.unknown,Ce.nu),s=j(a,o,e,n);return{browser:o,os:a,deviceType:s}},De={detect:Te},Oe=function(e){return window.matchMedia(e).matches},Ee=z((function(){return De.detect(navigator.userAgent,x.from(navigator.userAgentData),Oe)})),Ae=function(){return Ee()},Pe=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Fe=function(e,t){return Pe(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Ie=1,Ye=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return He(r.childNodes[0])},Re=function(e,t){var n=t||document,r=n.createElement(e);return He(r)},Ne=function(e,t){var n=t||document,r=n.createTextNode(e);return He(r)},He=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},ze=function(e,t,n){return x.from(e.dom.elementFromPoint(t,n)).map(He)},je={fromHtml:Ye,fromTag:Re,fromText:Ne,fromDom:He,fromPoint:ze},Be=function(e,t){var n=e.dom;if(n.nodeType!==Ie)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ve=function(e,t){return e.dom===t.dom},$e=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Ue=function(e,t){return Fe(e.dom,t.dom)},We=function(e,t){return Ae().browser.isIE()?Ue(e,t):$e(e,t)},qe=Be,Ge=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ke=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Je=tinymce.util.Tools.resolve("tinymce.util.VK"),Xe=Object.keys,Qe=function(e,t){for(var n=Xe(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ze=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var i={};return Qe(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},tt=function(e,t){var n={};return et(e,t,Ze(n),c),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},it=function(e){return function(t){return rt(t)===e}},ot=it(Ie),at=function(e){return function(t){return ot(t)&&nt(t)===e}},st=function(e,t,n){if(!(i(n)||s(n)||l(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ut=function(e,t){var n=e.dom;Qe(t,(function(e,t){st(n,t,e)}))},lt=function(e){return T(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},ct=function(e){return x.from(e.dom.parentNode).map(je.fromDom)},dt=function(e){return M(e.dom.childNodes,je.fromDom)},ft=function(e,t){var n=e.dom.childNodes;return x.from(n[t]).map(je.fromDom)},ht=function(e){return ft(e,0)},pt=function(e){return ft(e,e.dom.childNodes.length-1)},mt=function(e,t){var n=ct(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},gt=function(e,t){e.dom.appendChild(t.dom)},vt=function(e,t){S(t,(function(t){mt(e,t)}))},_t=function(e,t){S(t,(function(t){gt(e,t)}))},bt=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},yt=function(e,t){return je.fromDom(e.dom.cloneNode(t))},xt=function(e){return yt(e,!0)},wt=function(e,t){var n=je.fromTag(t),r=lt(e);return ut(n,r),n},kt=function(e,t){var n=wt(e,t);mt(e,n);var r=dt(e);return _t(n,r),bt(e),n},Mt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),St=tinymce.util.Tools.resolve("tinymce.util.Tools"),Lt=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},Ct=function(e){return function(t){return t&&e.test(t.nodeName)}},Tt=function(e){return e&&3===e.nodeType},Dt=Ct(/^(OL|UL|DL)$/),Ot=Ct(/^(OL|UL)$/),Et=Lt("ol"),At=Ct(/^(LI|DT|DD)$/),Pt=Ct(/^(DT|DD)$/),Ft=Ct(/^(TH|TD)$/),It=Lt("br"),Yt=function(e){return e.parentNode.firstChild===e},Rt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},Nt=function(e,t){return e&&e.nodeName in t},Ht=function(e,t){return!!It(t)&&(e.isBlock(t.nextSibling)&&!It(t.previousSibling))},zt=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},jt=function(e,t){return e.isChildOf(t,e.getRoot())},Bt=function(e){return e.getParam("lists_indent_on_tab",!0)},Vt=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},$t=function(e){return e.getParam("forced_root_block_attrs",{})},Ut=function(e,t){var n,r,i,o=e.dom,a=e.schema.getBlockElements(),s=o.createFragment(),u=Vt(e);if(u&&(r=o.create(u),r.tagName===u.toUpperCase()&&o.setAttribs(r,$t(e)),Nt(t.firstChild,a)||s.appendChild(r)),t)while(n=t.firstChild){var l=n.nodeName;i||"SPAN"===l&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),Nt(n,a)?(s.appendChild(n),r=null):u?(r||(r=o.create(u),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return u?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},Wt=Mt.DOM,qt=function(e,t,n){var r=function(e){St.each(i,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),Wt.remove(e)},i=Wt.select('span[data-mce-type="bookmark"]',t),o=Ut(e,n),a=Wt.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var s=a.extractContents(),u=s.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){Wt.remove(u);break}e.dom.isEmpty(s)||Wt.insertAfter(s,t),Wt.insertAfter(o,t),zt(e.dom,n.parentNode)&&r(n.parentNode),Wt.remove(n),zt(e.dom,t)&&Wt.remove(t)},Gt=at("dd"),Kt=at("dt"),Jt=function(e,t){Gt(t)?kt(t,"dt"):Kt(t)&&ct(t).each((function(n){return qt(e,n.dom,t.dom)}))},Xt=function(e){Kt(e)&&kt(e,"dd")},Qt=function(e,t,n){S(n,"Indent"===t?Xt:function(t){return Jt(e,t)})},Zt=function(e,t){if(Tt(e))return{container:e,offset:t};var n=Ge.getNode(e,t);return Tt(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Tt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Tt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Zt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Zt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",cn(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return L(e.querySelectorAll("ol,ul,dl"),Dt)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):L(n,(function(e){return Dt(e)&&t!==e}))},sn=function(e,t){var n=St.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",cn(e,t));return n||t}));return tn.unique(n)},un=function(e){var t=e.selection.getSelectedBlocks();return L(sn(e,t),At)},ln=function(e){return L(un(e),Pt)},cn=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},dn=function(e,t){var n=e.dom.getParents(t,"ol,ul",cn(e,t));return Y(n)},fn=function(e){var t=dn(e,e.selection.getStart()),n=L(e.selection.getSelectedBlocks(),Ot);return t.toArray().concat(n)},hn=function(e){var t=fn(e);return pn(e,t)},pn=function(e,t){var n=M(t,(function(t){return dn(e,t).getOr(t)}));return tn.unique(n)},mn=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},gn=function(e,t,n){return e.isSome()&&t.isSome()?x.some(n(e.getOrDie(),t.getOrDie())):x.none()},vn=function(e,t){var n=t||document,r=n.createDocumentFragment();return S(e,(function(e){r.appendChild(e.dom)})),je.fromDom(r)},_n=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},bn=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},yn=function(e,t,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);bn(e)&&e.style.setProperty(t,n)},xn=function(e,t,n){var r=e.dom;yn(r,t,n)},wn=function(e,t){gt(e.item,t.list)},kn=function(e){for(var t=1;t<e.length;t++)wn(e[t-1],e[t])},Mn=function(e,t){gn(Y(e),I(t),wn)},Sn=function(e,t){var n={list:je.fromTag(t,e),item:je.fromTag("li",e)};return gt(n.list,n.item),n},Ln=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(Sn(e,t.listType));return r},Cn=function(e,t){for(var n=0;n<e.length-1;n++)xn(e[n].item,"list-style-type","none");Y(e).each((function(e){ut(e.list,t.listAttributes),ut(e.item,t.itemAttributes),_t(e.item,t.content)}))},Tn=function(e,t){nt(e.list)!==t.listType&&(e.list=kt(e.list,t.listType)),ut(e.list,t.listAttributes)},Dn=function(e,t,n){var r=je.fromTag("li",e);return ut(r,t),_t(r,n),r},On=function(e,t){gt(e.list,t),e.item=t},En=function(e,t,n){var r=t.slice(0,n.depth);return Y(r).each((function(t){var r=Dn(e,n.itemAttributes,n.content);On(t,r),Tn(t,n)})),r},An=function(e,t,n){var r=Ln(e,n,n.depth-t.length);return kn(r),Cn(r,n),Mn(t,r),t.concat(r)},Pn=function(e,t){var n=T(t,(function(t,n){return n.depth>t.length?An(e,t,n):En(e,t,n)}),[]);return I(n).map((function(e){return e.list}))},Fn=function(e){return qe(e,"OL,UL")},In=function(e){return ht(e).exists(Fn)},Yn=function(e){return pt(e).exists(Fn)},Rn=function(e){return e.depth>0},Nn=function(e){return e.isSelected},Hn=function(e){var t=dt(e),n=Yn(e)?t.slice(0,-1):t;return M(n,xt)},zn=function(e,t,n){return ct(e).filter(ot).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:Hn(e),itemAttributes:lt(e),listAttributes:lt(r),listType:nt(r)}}))},jn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},Bn=function(e,t){e.listType=t.listType,e.listAttributes=N({},t.listAttributes)},Vn=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},$n=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},i=function(e){return e.depth<n};return D(P(e.slice(0,t)),r,i).orThunk((function(){return D(e.slice(t+1),r,i)}))},Un=function(e){return S(e,(function(t,n){$n(e,n).fold((function(){t.dirty&&Vn(t)}),(function(e){return Bn(t,e)}))})),e},Wn=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},qn=function(e,t,n,r){return ht(r).filter(Fn).fold((function(){t.each((function(e){Ve(e.start,r)&&n.set(!0)}));var i=zn(r,e,n.get());t.each((function(e){Ve(e.end,r)&&n.set(!1)}));var o=pt(r).filter(Fn).map((function(r){return Gn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Gn(e,t,n,r)}))},Gn=function(e,t,n,r){return A(dt(r),(function(r){var i=Fn(r)?Gn:qn,o=e+1;return i(o,t,n,r)}))},Kn=function(e,t){var n=Wn(!1),r=0;return M(e,(function(e){return{sourceList:e,entries:Gn(r,t,n,e)}}))},Jn=function(e,t){var n=Un(t);return M(n,(function(t){var n=vn(t.content);return je.fromDom(Ut(e,n.dom))}))},Xn=function(e,t){var n=Un(t);return Pn(e.contentDocument,n).toArray()},Qn=function(e,t){return A(C(t,Rn),(function(t){var n=I(t).exists(Rn);return n?Xn(e,t):Jn(e,t)}))},Zn=function(e,t){S(L(e,Nn),(function(e){return jn(t,e)}))},er=function(e){var t=M(un(e),je.fromDom);return gn(O(t,p(In)),O(P(t),p(In)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Kn(t,er(e));S(r,(function(t){Zn(t.entries,n);var r=Qn(e,t.entries);S(r,(function(t){_n(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),vt(t.sourceList,r),bt(t.sourceList)}))},nr=function(e,t){var n=M(hn(e),je.fromDom),r=M(ln(e),je.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();tr(e,n,t),Qt(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),i=!0}return i},rr=function(e){return nr(e,"Indent")},ir=function(e){return nr(e,"Outdent")},or=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),sr=Mt.DOM,ur=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var o=sr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(i=Math.min(i,r.childNodes.length-1),n?r.insertBefore(o,r.childNodes[i]):sr.insertAfter(o,r.childNodes[i])):r.appendChild(o),r=o,i=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},lr=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},i=n=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"];i&&(1===i.nodeType&&(o=r(i),i=i.parentNode,sr.remove(n),!i.hasChildNodes()&&sr.isBlock(i)&&i.appendChild(sr.create("br"))),e[t?"startContainer":"endContainer"]=i,e[t?"startOffset":"endOffset"]=o)};t(!0),t();var n=sr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},cr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},dr=function(e){return/\btox\-/.test(e.className)},fr=function(e,t,n){var r=function(e){var r=D(e.parents,Dt,Ft).filter((function(e){return e.nodeName===t&&!dr(e)})).isSome();n(r)},i=e.dom.getParents(e.selection.getNode());return r({parents:i}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},hr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},pr=function(e,t){St.each(t,(function(t,n){e.setAttribute(n,t)}))},mr=function(e,t,n){pr(t,n["list-attributes"]),St.each(e.select("li",t),(function(e){pr(e,n["list-item-attributes"])}))},gr=function(e,t,n){hr(e,t,n),mr(e,t,n)},vr=function(e,t,n){St.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},_r=function(e,t,n,r){var i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&It(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(Rt(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},br=function(e,t,n){for(var r,i=[],o=e.dom,a=_r(e,t,!0,n),s=_r(e,t,!1,n),u=[],l=a;l;l=l.nextSibling)if(u.push(l),l===s)break;return St.each(u,(function(t){if(Rt(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||It(t))return It(t)&&o.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Dt(a)||Rt(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},yr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},xr=function(e,t,n){var r=e.selection.getRng(),i="LI",o=cn(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(i="DT");var s=ur(r),u=br(e,r,o);St.each(u,(function(r){var o,s=r.previousSibling,u=r.parentNode;At(u)||(s&&Dt(s)&&s.nodeName===t&&yr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),gr(a,o,n),Lr(e.dom,o))})),e.selection.setRng(lr(s))}},wr=function(e,t){return e&&t&&Dt(e)&&e.nodeName===t.nodeName},kr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},Mr=function(e,t){return e.className===t.className},Sr=function(e,t,n){return wr(t,n)&&kr(e,t,n)&&Mr(t,n)},Lr=function(e,t){var n,r;if(n=t.nextSibling,Sr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Sr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Cr=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);gr(e.dom,i,r),_n(e,cr(n),i)}else gr(e.dom,t,r),_n(e,cr(n),t)},Tr=function(e,t,n,r,i){var o=Dt(t);if(o&&t.nodeName===r&&!Dr(i))or(e);else{xr(e,r,i);var a=ur(e.selection.getRng()),s=o?H([t],n,!0):n;St.each(s,(function(t){Cr(e,t,r,i)})),e.selection.setRng(lr(a))}},Dr=function(e){return"list-style-type"in e},Or=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Dr(r)||dr(t)){var i=ur(e.selection.getRng());gr(e.dom,t,r);var o=e.dom.rename(t,n);Lr(e.dom,o),e.selection.setRng(lr(i)),xr(e,n,r),_n(e,cr(n),o)}else or(e);else xr(e,n,r),_n(e,cr(n),t)},Er=function(e,t,n){var r=nn(e),i=an(e),a=o(n)?n:{};i.length>0?Tr(e,r,i,t,a):Or(e,r,t,a)},Ar=Mt.DOM,Pr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),zt(e,n)&&Ar.remove(n)):Ar.setStyle(n,"listStyleType","none")}if(Dt(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Fr=function(e,t){var n=St.grep(e.select("ol,ul",t));St.each(n,(function(t){Pr(e,t)}))},Ir=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(Tt(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=Ge.getNode(i,o));var s=new Ke(i,r);n&&Ht(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(Tt(i)&&i.data.length>0)return i}},Yr=function(e,t){var n=t.childNodes;return 1===n.length&&!Dt(n[0])&&e.isBlock(n[0])},Rr=function(e,t){Yr(e,t)&&e.remove(t.firstChild,!0)},Nr=function(e,t,n){var r,i=Yr(e,n)?n.firstChild:n;if(Rr(e,t),!zt(e,t,!0))while(r=t.firstChild)i.appendChild(r)},Hr=function(e,t,n){var r,i=t.parentNode;if(jt(e,t)&&jt(e,n)){Dt(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&It(i.previousSibling)&&e.remove(i.previousSibling);var o=n.lastChild;o&&It(o)&&t.hasChildNodes()&&e.remove(o),zt(e,n,!0)&&e.$(n).empty(),Nr(e,t,n),r&&n.appendChild(r);var a=We(je.fromDom(n),je.fromDom(t)),s=a?e.getParents(t,Dt,n):[];e.remove(t),S(s,(function(t){zt(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},zr=function(e,t,n){e.dom.$(n).empty(),Hr(e.dom,t,n),e.selection.setCursorLocation(n,0)},jr=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))zr(e,n,r);else{var o=ur(t);Hr(i,n,r),e.selection.setRng(lr(o))}},Br=function(e,t,n,r){var i=ur(t);Hr(e.dom,n,r);var o=lr(i);e.selection.setRng(o)},Vr=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=cn(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&zt(n,s))return!0;var u=en(r.getRng()),l=n.getParent(Ir(e,u,t,o),"LI",o);if(l&&l!==a)return e.undoManager.transact((function(){t?jr(e,u,l,a):Yt(a)?ir(e):Br(e,u,a,l)})),!0;if(!l&&!t&&0===u.startOffset&&0===u.endOffset)return e.undoManager.transact((function(){or(e)})),!0}return!1},$r=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Ur=function(e,t){var n=e.dom,r=e.selection.getStart(),i=cn(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=en(e.selection.getRng()),s=n.getParent(Ir(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){$r(n,o,i),Lr(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},Wr=function(e,t){return Vr(e,t)||Ur(e,t)},qr=function(e){var t=e.selection.getStart(),n=cn(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||un(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Fr(e.dom,e.getBody())})),!0)},Gr=function(e,t){return e.selection.isCollapsed()?Wr(e,t):qr(e)},Kr=function(e){e.on("keydown",(function(t){t.keyCode===Je.BACKSPACE?Gr(e,!1)&&t.preventDefault():t.keyCode===Je.DELETE&&Gr(e,!0)&&t.preventDefault()}))},Jr=function(e){return{backspaceDelete:function(t){Gr(e,t)}}},Xr=function(e,t){var n=nn(e);e.undoManager.transact((function(){o(t.styles)&&e.dom.setStyles(n,t.styles),o(t.attrs)&&Qe(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Qr=function(e){var t=P(ee(e).split("")),n=M(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return T(n,(function(e,t){return e+t}),0)},Zr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Zr(n),i=String.fromCharCode("A".charCodeAt(0)+t);return r+i},ei=function(e){return/^[A-Z]+$/.test(e)},ti=function(e){return/^[a-z]+$/.test(e)},ni=function(e){return/^[0-9]+$/.test(e)},ri=function(e){return ni(e)?2:ei(e)?0:ti(e)?1:ne(e)?3:4},ii=function(e){switch(ri(e)){case 2:return x.some({listStyleType:x.none(),start:e});case 0:return x.some({listStyleType:x.some("upper-alpha"),start:Qr(e).toString()});case 1:return x.some({listStyleType:x.some("lower-alpha"),start:Qr(e).toString()});case 3:return x.some({listStyleType:x.none(),start:""});case 4:return x.none()}},oi=function(e){var t=parseInt(e.start,10);return mn(e.listStyleType,"upper-alpha")?Zr(t):mn(e.listStyleType,"lower-alpha")?Zr(t).toLowerCase():e.start},ai=function(e){var t=nn(e);Et(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:oi({start:e.dom.getAttrib(t,"start","1"),listStyleType:x.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();ii(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},si=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},ui=function(e){e.addCommand("mceListProps",(function(){ai(e)}))},li=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&ir(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Er(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Er(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Er(e,"DL",n)})),e.addCommand("RemoveList",(function(){or(e)})),ui(e),e.addCommand("mceListUpdate",(function(t,n){o(n)&&Xr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",si(e,"UL")),e.addQueryStateHandler("InsertOrderedList",si(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",si(e,"DL"))},ci=function(e){e.on("keydown",(function(t){t.keyCode!==Je.TAB||Je.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?ir(e):rr(e))&&t.preventDefault()}))}))},di=function(e){Bt(e)&&ci(e),Kr(e)},fi=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return fr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return fr(e,"UL",t.setActive)}}))},hi=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return fr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return Et(n)?["listprops"]:[]}})};function pi(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(di(e),li(e)):ui(e),fi(e),hi(e),Jr(e)}))}pi()})()},5031:function(e,t,n){n(7814)},7814:function(){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(e){return e.getParam("noneditable_noneditable_class","mceNonEditable")},r=function(e){return e.getParam("noneditable_editable_class","mceEditable")},i=function(e){var t=e.getParam("noneditable_regexp",[]);return t&&t.constructor===RegExp?[t]:t},o=function(e){return function(t){return-1!==(" "+t.attr("class")+" ").indexOf(e)}},a=function(e,t,n){return function(r){var i=arguments,o=i[i.length-2],a=o>0?t.charAt(o-1):"";if('"'===a)return r;if(">"===a){var s=t.lastIndexOf("<",o);if(-1!==s){var u=t.substring(s,o);if(-1!==u.indexOf('contenteditable="false"'))return r}}return'<span class="'+n+'" data-mce-content="'+e.dom.encode(i[0])+'">'+e.dom.encode("string"===typeof i[1]?i[1]:i[0])+"</span>"}},s=function(e,t,r){var i=t.length,o=r.content;if("raw"!==r.format){while(i--)o=o.replace(t[i],a(e,o,n(e)));r.content=o}},u=function(e){var a="contenteditable",u=" "+t.trim(r(e))+" ",l=" "+t.trim(n(e))+" ",c=o(u),d=o(l),f=i(e);e.on("PreInit",(function(){f.length>0&&e.on("BeforeSetContent",(function(t){s(e,f,t)})),e.parser.addAttributeFilter("class",(function(e){var t,n=e.length;while(n--)t=e[n],c(t)?t.attr(a,"true"):d(t)&&t.attr(a,"false")})),e.serializer.addAttributeFilter(a,(function(e){var t,n=e.length;while(n--)t=e[n],(c(t)||d(t))&&(f.length>0&&t.attr("data-mce-content")?(t.name="#text",t.type=3,t.raw=!0,t.value=t.attr("data-mce-content")):t.attr(a,null))}))}))};function l(){e.add("noneditable",(function(e){u(e)}))}l()})()},2875:function(e,t,n){n(5103)},5103:function(){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return!!e.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(e){return{clipboard:e}},i=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return i(t)===e}},a=function(e){return function(t){return typeof t===e}},s=o("array"),u=function(e){return null===e||void 0===e},l=function(e){return!u(e)},c=a("function"),d=function(){},f=function(e){return function(){return e}},h=function(e){return e},p=f(!1),m=f(!0),g=function(){return v},v=function(){var e=function(e){return e()},t=h,n={fold:function(e,t){return e()},isSome:p,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:g,each:d,bind:g,exists:p,forall:m,filter:function(){return g()},toArray:function(){return[]},toString:f("none()")};return n}(),_=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:m,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},b=function(e){return null===e||void 0===e?v:_(e)},y={some:_,none:g,from:b},x=Array.prototype.slice,w=Array.prototype.push,k=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},M=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},S=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},L=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},C=function(e,t,n){return S(e,(function(e,r){n=t(n,e,r)})),n},T=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);w.apply(t,e[n])}return t},D=function(e,t){return T(M(e,t))},O=c(Array.from)?Array.from:function(e){return x.call(e)},E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E.apply(this,arguments)},A=function(t){var n=e(y.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(y.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(y.some(e))};return{clear:i,isSet:o,get:a,set:s}},P=function(){var e=A(d),t=function(t){return e.get().each(t)};return E(E({},e),{on:t})},F=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},I=function(e,t){return F(e,t,0)},Y=function(e,t){return F(e,t,e.length-t.length)},R=function(e,t){return t<=0?"":new Array(t+1).join(e)},N=tinymce.util.Tools.resolve("tinymce.Env"),H=tinymce.util.Tools.resolve("tinymce.util.Delay"),z=tinymce.util.Tools.resolve("tinymce.util.Promise"),j=tinymce.util.Tools.resolve("tinymce.util.VK"),B=function(e,t,n,r){return e.fire("PastePreProcess",{content:t,internal:n,wordContent:r})},V=function(e,t,n,r){return e.fire("PastePostProcess",{node:t,internal:n,wordContent:r})},$=function(e,t){return e.fire("PastePlainTextToggle",{state:t})},U=function(e,t){return e.fire("paste",{ieFake:t})},W=tinymce.util.Tools.resolve("tinymce.util.Tools"),q=function(e){return e.getParam("paste_block_drop",!1)},G=function(e){return e.getParam("paste_data_images",!1)},K=function(e){return e.getParam("paste_filter_drop",!0)},J=function(e){return e.getParam("paste_preprocess")},X=function(e){return e.getParam("paste_postprocess")},Q=function(e){return e.getParam("paste_webkit_styles")},Z=function(e){return e.getParam("paste_remove_styles_if_webkit",!0)},ee=function(e){return e.getParam("paste_merge_formats",!0)},te=function(e){return e.getParam("smart_paste",!0)},ne=function(e){return e.getParam("paste_as_text",!1)},re=function(e){return e.getParam("paste_retain_style_properties")},ie=function(e){var t="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return e.getParam("paste_word_valid_elements",t)},oe=function(e){return e.getParam("paste_convert_word_fake_lists",!0)},ae=function(e){return e.getParam("paste_enable_default_filters",!0)},se=function(e){return e.getParam("validate")},ue=function(e){return e.getParam("allow_html_data_urls",!1,"boolean")},le=function(e){return e.getParam("paste_data_images",!1,"boolean")},ce=function(e){return e.getParam("images_dataimg_filter")},de=function(e){return e.getParam("images_reuse_filename")},fe=function(e){return e.getParam("forced_root_block")},he=function(e){return e.getParam("forced_root_block_attrs")},pe=function(e){return e.getParam("paste_tab_spaces",4,"number")},me=function(e){var t="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return W.explode(e.getParam("images_file_types",t,"string"))},ge="x-tinymce/html",ve="\x3c!-- "+ge+" --\x3e",_e=function(e){return ve+e},be=function(e){return e.replace(ve,"")},ye=function(e){return-1!==e.indexOf(ve)},xe=f(ge),we=Object.hasOwnProperty,ke=function(e,t){return we.call(e,t)},Me=tinymce.util.Tools.resolve("tinymce.html.Entities"),Se=function(e){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e)},Le=function(e){return e.replace(/\r?\n/g,"<br>")},Ce=function(e,t){var n=[],r="<"+e;if("object"===typeof t){for(var i in t)ke(t,i)&&n.push(i+'="'+Me.encodeAllRaw(t[i])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"},Te=function(e,t,n){var r=e.split(/\n\n/),i=Ce(t,n),o="</"+t+">",a=W.map(r,(function(e){return e.split(/\n/).join("<br />")})),s=function(e){return i+e+o};return 1===a.length?a[0]:W.map(a,s).join("")},De=function(e,t,n){return t?Te(e,!0===t?"p":t,n):Le(e)},Oe=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Ee=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Ae=" ",Pe=tinymce.util.Tools.resolve("tinymce.html.Node"),Fe=tinymce.util.Tools.resolve("tinymce.html.Schema"),Ie=function(e){return e.constructor===RegExp},Ye=function(e,t){return W.each(t,(function(t){e=Ie(t)?e.replace(t,""):e.replace(t[0],t[1])})),e},Re=function(e){var t=Fe(),n=Oe({},t),r="",i=t.getShortEndedElements(),o=W.makeMap("script noscript style textarea video audio iframe object"," "),a=t.getBlockElements(),s=function(e){var t=e.name,n=e;if("br"!==t){if("wbr"!==t)if(i[t]&&(r+=" "),o[t])r+=" ";else{if(3===e.type&&(r+=e.value),!e.shortEnded&&(e=e.firstChild))do{s(e)}while(e=e.next);a[t]&&n.next&&(r+="\n","p"===t&&(r+="\n"))}}else r+="\n"};return e=Ye(e,[/<!\[[^\]]+\]>/g]),s(n.parse(e)),r},Ne=function(e){var t=function(e,t,n){return t||n?Ae:" "};return e=Ye(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i]),e},He=function(e){var t=0;return function(){return e+t++}},ze=function(e){var t=e.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return W.hasOwn(n,t)?"image/"+n[t]:"image/"+t},je=function(e){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(e)||/class="OutlineElement/.test(e)||/id="?docs\-internal\-guid\-/.test(e)},Be=function(e){var t=!1,n=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return e=e.replace(/^[\u00a0 ]+/,""),W.each(n,(function(n){if(n.test(e))return t=!0,!1})),t},Ve=function(e){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(e)},$e=function(e){var t,n,r=1,i=function(e){var t="";if(3===e.type)return e.value;if(e=e.firstChild)do{t+=i(e)}while(e=e.next);return t},o=function(e,t){if(3===e.type&&t.test(e.value))return e.value=e.value.replace(t,""),!1;if(e=e.firstChild)do{if(!o(e,t))return!1}while(e=e.next);return!0},a=function(e){if(e._listIgnore)e.remove();else if(e=e.firstChild)do{a(e)}while(e=e.next)},s=function(e,i,s){var u=e._listLevel||r;u!==r&&(u<r?t&&(t=t.parent.parent):(n=t,t=null)),t&&t.name===i?t.append(e):(n=n||t,t=new Pe(i,1),s>1&&t.attr("start",""+s),e.wrap(t)),e.name="li",u>r&&n&&n.lastChild.append(t),r=u,a(e),o(e,/^\u00a0+/),o(e,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),o(e,/^\u00a0+/)},u=[],l=e.firstChild;while("undefined"!==typeof l&&null!==l)if(u.push(l),l=l.walk(),null!==l)while("undefined"!==typeof l&&l.parent!==e)l=l.walk();for(var c=0;c<u.length;c++)if(e=u[c],"p"===e.name&&e.firstChild){var d=i(e);if(Ve(d)){s(e,"ul");continue}if(Be(d)){var f=/([0-9]+)\./.exec(d),h=1;f&&(h=parseInt(f[1],10)),s(e,"ol",h);continue}if(e._listLevel){s(e,"ul",1);continue}t=null}else n=t,t=null},Ue=function(e,t,n,r){var i={},o=e.dom.parseStyle(r);W.each(o,(function(o,a){switch(a){case"mso-list":var s=/\w+ \w+([0-9]+)/i.exec(r);s&&(n._listLevel=parseInt(s[1],10)),/Ignore/i.test(o)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==o&&(i[a]=o));case"mso-element":if(/^(comment|comment-list)$/i.test(o))return void n.remove();break}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===re(e)||t&&t[a])&&(i[a]=o):n.remove()})),/(bold)/i.test(i["font-weight"])&&(delete i["font-weight"],n.wrap(new Pe("b",1))),/(italic)/i.test(i["font-style"])&&(delete i["font-style"],n.wrap(new Pe("i",1)));var a=e.dom.serializeStyle(i,n.name);return a||null},We=function(e,t){var n,r=re(e);r&&(n=W.makeMap(r.split(/[, ]/))),t=Ye(t,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,Ae],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(Ae):""}]]);var i=ie(e),o=Fe({valid_elements:i,valid_children:"-li[p]"});W.each(o.elements,(function(e){e.attributes.class||(e.attributes.class={},e.attributesOrder.push("class")),e.attributes.style||(e.attributes.style={},e.attributesOrder.push("style"))}));var a=Oe({},o);a.addAttributeFilter("style",(function(t){var r,i=t.length;while(i--)r=t[i],r.attr("style",Ue(e,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&t.remove(),t.attr("class",null)})),a.addNodeFilter("del",(function(e){var t=e.length;while(t--)e[t].remove()})),a.addNodeFilter("a",(function(e){var t,n,r,i=e.length;while(i--)if(t=e[i],n=t.attr("href"),r=t.attr("name"),n&&-1!==n.indexOf("#_msocom_"))t.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){t.unwrap();continue}t.attr({href:n,name:r})}else t.unwrap()}));var s=a.parse(t);return oe(e)&&$e(s),t=Ee({validate:se(e)},o).serialize(s),t},qe=function(e,t){return ae(e)?We(e,t):t},Ge=function(e,t){var n=Oe({},e.schema);n.addNodeFilter("meta",(function(e){W.each(e,(function(e){e.remove()}))}));var r=n.parse(t,{forced_root_block:!1,isRootContent:!0});return Ee({validate:se(e)},e.schema).serialize(r)},Ke=function(e,t){return{content:e,cancelled:t}},Je=function(e,t,n,r){var i=e.dom.create("div",{style:"display:none"},t),o=V(e,i,n,r);return Ke(o.node.innerHTML,o.isDefaultPrevented())},Xe=function(e,t,n,r){var i=B(e,t,n,r),o=Ge(e,i.content);return e.hasEventListeners("PastePostProcess")&&!i.isDefaultPrevented()?Je(e,o,n,r):Ke(o,i.isDefaultPrevented())},Qe=function(e,t,n){var r=je(t),i=r?qe(e,t):t;return Xe(e,i,n,r)},Ze=function(e,t){return e.insertContent(t,{merge:ee(e),paste:!0}),!0},et=function(e){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e)},tt=function(e,t){return et(t)&&k(me(e),(function(e){return Y(t.toLowerCase(),"."+e.toLowerCase())}))},nt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.insertContent('<img src="'+t+'">')})),!0},rt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.execCommand("mceInsertLink",!1,t)})),!0},it=function(e,t,n){return!(!1!==e.selection.isCollapsed()||!et(t))&&rt(e,t,n)},ot=function(e,t,n){return!!tt(e,t)&&nt(e,t,n)},at=function(e,t){W.each([it,ot,Ze],(function(n){return!0!==n(e,t,Ze)}))},st=function(e,t,n){n||!1===te(e)?Ze(e,t):at(e,t)},ut=function(e){return-1!==" \f\t\v".indexOf(e)},lt=function(e){return"\n"===e||"\r"===e},ct=function(e,t){return t<e.length&&t>=0&&lt(e[t])},dt=function(e,t){var n=R(" ",pe(e)),r=t.replace(/\t/g,n),i=C(r,(function(e,t){return ut(t)||t===Ae?e.pcIsSpace||""===e.str||e.str.length===r.length-1||ct(r,e.str.length+1)?{pcIsSpace:!1,str:e.str+Ae}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:lt(t),str:e.str+t}}),{pcIsSpace:!1,str:""});return i.str},ft=function(e,t,n,r){var i=Qe(e,t,n);!1===i.cancelled&&st(e,i.content,r)},ht=function(e,t,n){var r=n||ye(t);ft(e,be(t),r,!1)},pt=function(e,t){var n=e.dom.encode(t).replace(/\r\n/g,"\n"),r=dt(e,n),i=De(r,fe(e),he(e));ft(e,i,!1,!0)},mt=function(e){var t={},n="data:text/mce-internal,";if(e){if(e.getData){var r=e.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(t["text/plain"]=r)}if(e.types)for(var i=0;i<e.types.length;i++){var o=e.types[i];try{t[o]=e.getData(o)}catch(a){t[o]=""}}}return t},gt=function(e,t){return mt(t.clipboardData||e.getDoc().dataTransfer)},vt=function(e,t){return t in e&&e[t].length>0},_t=function(e){return vt(e,"text/html")||vt(e,"text/plain")},bt=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(e);return t?{type:t[1],data:decodeURIComponent(t[2])}:{type:null,data:null}},yt=function(e,t){var n=ce(e);return!n||n(t)},xt=function(e,t){var n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return l(n)?e.dom.encode(n[1]):null},wt=He("mceclip"),kt=function(e,t){var n=bt(t.uri),r=n.data,i=n.type,o=wt(),a=t.blob,s=new Image;if(s.src=t.uri,yt(e,s)){var u=e.editorUpload.blobCache,c=void 0,d=u.getByData(r,i);if(d)c=d;else{var f=de(e)&&l(a.name),h=f?xt(e,a.name):o,p=f?a.name:void 0;c=u.create(o,a,r,h,p),u.add(c)}ht(e,'<img src="'+c.blobUri()+'">',!1)}else ht(e,'<img src="'+t.uri+'">',!1)},Mt=function(e){return"paste"===e.type},St=function(e){return l(e.getAsFile)},Lt=function(e){return z.all(M(e,(function(e){return new z((function(t){var n=St(e)?e.getAsFile():e,r=new window.FileReader;r.onload=function(){t({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},Ct=function(e){var t=me(e);return function(e){return I(e.type,"image/")&&k(t,(function(t){return ze(t)===e.type}))}},Tt=function(e,t){var n=t.items?D(O(t.items),(function(e){return"file"===e.kind?[e.getAsFile()]:[]})):[],r=t.files?O(t.files):[];return L(n.length>0?n:r,Ct(e))},Dt=function(e,t,n){var r=Mt(t)?t.clipboardData:t.dataTransfer;if(le(e)&&r){var i=Tt(e,r);if(i.length>0)return t.preventDefault(),Lt(i).then((function(t){n&&e.selection.setRng(n),S(t,(function(t){kt(e,t)}))})),!0}return!1},Ot=function(e){var t=e.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&t&&t.items&&0===t.items.length},Et=function(e){return j.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode},At=function(e,t,n){var r,i=P(),o=P();e.on("keyup",o.clear),e.on("keydown",(function(n){var a=function(e){Et(e)&&!e.isDefaultPrevented()&&t.remove()};if(Et(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&N.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),i.set(n),o.set(!0),N.ie&&r)return n.preventDefault(),void U(e,!0);t.remove(),t.create(),e.once("keyup",a),e.once("paste",(function(){e.off("keyup",a)}))}}));var a=function(e,n,r,i,o){var a;vt(n,"text/html")?a=n["text/html"]:(a=t.getHtml(),o=o||ye(a),t.isDefaultContent(a)&&(i=!0)),a=Ne(a),t.remove();var s=!1===o&&Se(a),u=et(a);(!a.length||s&&!u)&&(i=!0),(i||u)&&(a=vt(n,"text/plain")&&s?n["text/plain"]:Re(a)),t.isDefaultContent(a)?r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):i?pt(e,a):ht(e,a,o)},s=function(){return t.getLastRng()||e.selection.getRng()};e.on("paste",(function(u){var l=i.isSet()||o.isSet();l&&i.clear();var c=gt(e,u),d="text"===n.get()||r,f=vt(c,xe());r=!1,u.isDefaultPrevented()||Ot(u)?t.remove():_t(c)||!Dt(e,u,s())?(l||u.preventDefault(),!N.ie||l&&!u.ieFake||vt(c,"text/html")||(t.create(),e.dom.bind(t.getEl(),"paste",(function(e){e.stopPropagation()})),e.getDoc().execCommand("Paste",!1,null),c["text/html"]=t.getHtml()),vt(c,"text/html")?(u.preventDefault(),f||(f=ye(c["text/html"])),a(e,c,l,d,f)):H.setEditorTimeout(e,(function(){a(e,c,l,d,f)}),0)):t.remove()}))},Pt=function(e,t,n){var r;At(e,t,n),e.parser.addNodeFilter("img",(function(t,n,i){var o=function(e){return e.data&&!0===e.data.paste},a=function(e){e.attr("data-mce-object")||r===N.transparentSrc||e.remove()},s=function(e){return 0===e.indexOf("webkit-fake-url")},u=function(e){return 0===e.indexOf("data:")};if(!le(e)&&o(i)){var l=t.length;while(l--)r=t[l].attr("src"),r&&(s(r)||!ue(e)&&u(r))&&a(t[l])}}))},Ft=function(e){return N.ie&&e.inline?document.body:e.getBody()},It=function(e){return Ft(e)!==e.getBody()},Yt=function(e,t,n){It(e)&&e.dom.bind(t,"paste keyup",(function(t){Vt(e,n)||e.fire("paste")}))},Rt=function(e,t,n){var r=e.dom,i=e.getBody();t.set(e.selection.getRng());var o=e.dom.add(Ft(e),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(N.ie||N.gecko)&&r.setStyle(o,"left","rtl"===r.getStyle(i,"direction",!0)?65535:-65535),r.bind(o,"beforedeactivate focusin focusout",(function(e){e.stopPropagation()})),Yt(e,o,n),o.focus(),e.selection.select(o,!0)},Nt=function(e,t){if(Ht(e)){var n=void 0,r=t.get();while(n=e.dom.get("mcepastebin"))e.dom.remove(n),e.dom.unbind(n);r&&e.selection.setRng(r)}t.set(null)},Ht=function(e){return e.dom.get("mcepastebin")},zt=function(e){var t=function(t,n){t.appendChild(n),e.dom.remove(n,!0)},n=W.grep(Ft(e).childNodes,(function(e){return"mcepastebin"===e.id})),r=n.shift();W.each(n,(function(e){t(r,e)}));for(var i=e.dom.select("div[id=mcepastebin]",r),o=i.length-1;o>=0;o--){var a=e.dom.create("div");r.insertBefore(a,i[o]),t(a,i[o])}return r?r.innerHTML:""},jt=function(e,t){return t===e},Bt=function(e){return e&&"mcepastebin"===e.id},Vt=function(e,t){var n=Ht(e);return Bt(n)&&jt(t,n.innerHTML)},$t=function(t){var n=e(null),r="%MCEPASTEBIN%";return{create:function(){return Rt(t,n,r)},remove:function(){return Nt(t,n)},getEl:function(){return Ht(t)},getHtml:function(){return zt(t)},getLastRng:n.get,isDefault:function(){return Vt(t,r)},isDefaultContent:function(e){return jt(r,e)}}},Ut=function(e,t){var n=$t(e);return e.on("PreInit",(function(){return Pt(e,n,t)})),{pasteFormat:t,pasteHtml:function(t,n){return ht(e,t,n)},pasteText:function(t){return pt(e,t)},pasteImageData:function(t,n){return Dt(e,t,n)},getDataTransferItems:mt,hasHtmlOrText:_t,hasContentType:vt}},Wt=function(e,t){"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),$(e,!1)):(t.pasteFormat.set("text"),$(e,!0)),e.focus()},qt=function(e,t){e.addCommand("mceTogglePlainTextPaste",(function(){Wt(e,t)})),e.addCommand("mceInsertClipboardContent",(function(e,n){n.content&&t.pasteHtml(n.content,n.internal),n.text&&t.pasteText(n.text)}))},Gt=function(e){return!1===N.iOS&&"function"===typeof(null===e||void 0===e?void 0:e.setData)},Kt=function(e,t,n){if(!Gt(e))return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(xe(),t),!0}catch(r){return!1}},Jt=function(e,t,n,r){Kt(e.clipboardData,t.html,t.text)?(e.preventDefault(),r()):n(t.html,r)},Xt=function(e){return function(t,n){var r=_e(t),i=e.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),o=e.dom.create("div",{contenteditable:"true"},r);e.dom.setStyles(i,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),i.appendChild(o),e.dom.add(e.getBody(),i);var a=e.selection.getRng();o.focus();var s=e.dom.createRng();s.selectNodeContents(o),e.selection.setRng(s),H.setTimeout((function(){e.selection.setRng(a),i.parentNode.removeChild(i),n()}),0)}},Qt=function(e){return{html:e.selection.getContent({contextual:!0}),text:e.selection.getContent({format:"text"})}},Zt=function(e){return!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody())},en=function(e){return!e.selection.isCollapsed()||Zt(e)},tn=function(e){return function(t){en(e)&&Jt(t,Qt(e),Xt(e),(function(){if(N.browser.isChrome()||N.browser.isFirefox()){var t=e.selection.getRng();H.setEditorTimeout(e,(function(){e.selection.setRng(t),e.execCommand("Delete")}),0)}else e.execCommand("Delete")}))}},nn=function(e){return function(t){en(e)&&Jt(t,Qt(e),Xt(e),d)}},rn=function(e){e.on("cut",tn(e)),e.on("copy",nn(e))},on=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),an=function(e,t){return on.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc())},sn=function(e){var t=e["text/plain"];return!!t&&0===t.indexOf("file://")},un=function(e,t){e.focus(),e.selection.setRng(t)},ln=function(e,t,n){q(e)&&e.on("dragend dragover draggesture dragdrop drop drag",(function(e){e.preventDefault(),e.stopPropagation()})),G(e)||e.on("drop",(function(e){var t=e.dataTransfer;t&&t.files&&t.files.length>0&&e.preventDefault()})),e.on("drop",(function(r){var i=an(e,r);if(!r.isDefaultPrevented()&&!n.get()){var o=t.getDataTransferItems(r.dataTransfer),a=t.hasContentType(o,xe());if((t.hasHtmlOrText(o)&&!sn(o)||!t.pasteImageData(r,i))&&i&&K(e)){var s=o["mce-internal"]||o["text/html"]||o["text/plain"];s&&(r.preventDefault(),H.setEditorTimeout(e,(function(){e.undoManager.transact((function(){o["mce-internal"]&&e.execCommand("Delete"),un(e,i),s=Ne(s),o["text/html"]?t.pasteHtml(s,a):t.pasteText(s)}))})))}}})),e.on("dragstart",(function(e){n.set(!0)})),e.on("dragover dragend",(function(t){G(e)&&!1===n.get()&&(t.preventDefault(),un(e,an(e,t))),"dragend"===t.type&&n.set(!1)}))},cn=function(e){var t=e.plugins.paste,n=J(e);n&&e.on("PastePreProcess",(function(e){n.call(t,t,e)}));var r=X(e);r&&e.on("PastePostProcess",(function(e){r.call(t,t,e)}))},dn=function(e,t){e.on("PastePreProcess",(function(n){n.content=t(e,n.content,n.internal,n.wordContent)}))},fn=function(e,t){e.on("PastePostProcess",(function(n){t(e,n.node)}))},hn=function(e,t){if(!je(t))return t;var n=[];W.each(e.schema.getBlockElements(),(function(e,t){n.push(t)}));var r=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return t=Ye(t,[[r,"$1"]]),t=Ye(t,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),t},pn=function(e,t,n,r){if(r||n)return t;var i,o=Q(e);if(!1===Z(e)||"all"===o)return t;if(o&&(i=o.split(/[, ]/)),i){var a=e.dom,s=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(e,t,n,r){var o=a.parseStyle(a.decode(n)),u={};if("none"===i)return t+r;for(var l=0;l<i.length;l++){var c=o[i[l]],d=a.getStyle(s,i[l],!0);/color/.test(i[l])&&(c=a.toHex(c),d=a.toHex(d)),d!==c&&(u[i[l]]=c)}var f=a.serializeStyle(u,"span");return f?t+' style="'+f+'"'+r:t+r}))}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(e,t,n,r){return t+' style="'+n+'"'+r})),t},mn=function(e,t){e.$("a",t).find("font,u").each((function(t,n){e.dom.remove(n,!0)}))},gn=function(e){N.webkit&&dn(e,pn),N.ie&&(dn(e,hn),fn(e,mn))},vn=function(e,t){return function(n){n.setActive("text"===t.pasteFormat.get());var r=function(e){return n.setActive(e.state)};return e.on("PastePlainTextToggle",r),function(){return e.off("PastePlainTextToggle",r)}}},_n=function(e,t){var n=function(){return e.execCommand("mceTogglePlainTextPaste")};e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:vn(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:vn(e,t)})};function bn(){t.add("paste",(function(t){if(!1===n(t)){var i=e(!1),o=e(ne(t)?"text":"html"),a=Ut(t,o);return gn(t),_n(t,a),qt(t,a),cn(t),rn(t),ln(t,a,i),r(a)}}))}bn()})()},8860:function(e,t,n){n(1768)},1768:function(e,t,n){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},r=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},o=t("string"),a=t("object"),s=t("array"),u=i(null),l=r("boolean"),c=i(void 0),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},h=r("function"),p=r("number"),m=function(e,t){if(s(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},g=function(){},v=function(e){return function(){return e()}},_=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},b=function(e,t){return function(n){return e(t(n))}},y=function(e){return function(){return e}},x=function(e){return e},w=function(e,t){return e===t};function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var M=function(e){return function(t){return!e(t)}},S=function(e){return function(){throw new Error(e)}},L=y(!1),C=y(!0),T=tinymce.util.Tools.resolve("tinymce.ThemeManager"),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};function O(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var A=function(){return P},P=function(){var e=function(e){return e()},t=x,n={fold:function(e,t){return e()},isSome:L,isNone:C,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:t,orThunk:e,map:A,each:g,bind:A,exists:L,forall:C,filter:function(){return A()},toArray:function(){return[]},toString:y("none()")};return n}(),F=function(e){var t=y(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:C,isNone:L,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return F(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:P},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},I=function(e){return null===e||void 0===e?P:F(e)},Y={some:F,none:A,from:I},R=Array.prototype.slice,N=Array.prototype.indexOf,H=Array.prototype.push,z=function(e,t){return N.call(e,t)},j=function(e,t){var n=z(e,t);return-1===n?Y.none():Y.some(n)},B=function(e,t){return z(e,t)>-1},V=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},$=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},U=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=R.call(e,r,r+t);n.push(i)}return n},W=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},G=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},K=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},J=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},X=function(e,t,n){return G(e,(function(e,r){n=t(n,e,r)})),n},Q=function(e,t,n){return q(e,(function(e,r){n=t(n,e,r)})),n},Z=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return Y.some(o);if(n(o,r))break}return Y.none()},ee=function(e,t){return Z(e,t,L)},te=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return Y.some(n)}return Y.none()},ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);H.apply(t,e[n])}return t},re=function(e,t){return ne(W(e,t))},ie=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},oe=function(e){var t=R.call(e,0);return t.reverse(),t},ae=function(e,t){return J(e,(function(e){return!B(t,e)}))},se=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},ue=function(e){return[e]},le=function(e,t){var n=R.call(e,0);return n.sort(t),n},ce=function(e,t){return t>=0&&t<e.length?Y.some(e[t]):Y.none()},de=function(e){return ce(e,0)},fe=function(e){return ce(e,e.length-1)},he=h(Array.from)?Array.from:function(e){return R.call(e)},pe=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return Y.none()},me=Object.keys,ge=Object.hasOwnProperty,ve=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},_e=function(e,t){return be(e,(function(e,n){return{k:n,v:t(e,n)}}))},be=function(e,t){var n={};return ve(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},ye=function(e){return function(t,n){e[n]=t}},xe=function(e,t,n,r){var i={};return ve(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},we=function(e,t){var n={};return xe(e,t,ye(n),g),n},ke=function(e,t){var n=[];return ve(e,(function(e,r){n.push(t(e,r))})),n},Me=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return Y.some(a)}return Y.none()},Se=function(e){return ke(e,x)},Le=function(e,t){return Ce(e,t)?Y.from(e[t]):Y.none()},Ce=function(e,t){return ge.call(e,t)},Te=function(e,t){return Ce(e,t)&&void 0!==e[t]&&null!==e[t]},De=function(e,t,n){return void 0===n&&(n=w),e.exists((function(e){return n(e,t)}))},Oe=function(e,t,n){return void 0===n&&(n=w),Pe(e,t,n).getOr(e.isNone()&&t.isNone())},Ee=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Ae=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return Y.none();t.push(r.getOrDie())}return Y.some(t)},Pe=function(e,t,n){return e.isSome()&&t.isSome()?Y.some(n(e.getOrDie(),t.getOrDie())):Y.none()},Fe=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?Y.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):Y.none()},Ie=function(e,t){return void 0!==e&&null!==e?Y.some(t(e)):Y.none()},Ye=function(e,t){return e?Y.some(t):Y.none()},Re=function(e,t){return e+t},Ne=function(e,t){return e.substring(t)},He=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ze=function(e,t){return Ve(e,t)?Ne(e,t.length):e},je=function(e,t){return $e(e,t)?e:Re(e,t)},Be=function(e,t){return-1!==e.indexOf(t)},Ve=function(e,t){return He(e,t,0)},$e=function(e,t){return He(e,t,e.length-t.length)},Ue=function(e){return function(t){return t.replace(e,"")}},We=Ue(/^\s+|\s+$/g),qe=function(e){return e.length>0},Ge=function(e){return!qe(e)},Ke=function(e){return void 0!==e.style&&h(e.style.getPropertyValue)},Je=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ze(r.childNodes[0])},Xe=function(e,t){var n=t||document,r=n.createElement(e);return Ze(r)},Qe=function(e,t){var n=t||document,r=n.createTextNode(e);return Ze(r)},Ze=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},et=function(e,t,n){return Y.from(e.dom.elementFromPoint(t,n)).map(Ze)},tt={fromHtml:Je,fromTag:Xe,fromText:Qe,fromDom:Ze,fromPoint:et};"undefined"!==typeof window?window:Function("return this;")();var nt,rt=9,it=11,ot=1,at=3,st=function(e){var t=e.dom.nodeName;return t.toLowerCase()},ut=function(e){return e.dom.nodeType},lt=function(e){return function(t){return ut(t)===e}},ct=lt(ot),dt=lt(at),ft=lt(rt),ht=lt(it),pt=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},mt=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!u,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!u&&!c;return{isiPad:y(i),isiPhone:y(o),isTablet:y(u),isPhone:y(l),isTouch:y(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:y(c),isDesktop:y(d)}},gt=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},vt=function(e,t){var n=gt(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return yt(r(1),r(2))},_t=function(e,t){var n=String(t).toLowerCase();return 0===e.length?bt():vt(e,n)},bt=function(){return yt(0,0)},yt=function(e,t){return{major:e,minor:t}},xt={nu:yt,detect:_t,unknown:bt},wt=function(e,t){return pe(t.brands,(function(t){var n=t.brand.toLowerCase();return ee(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:xt.nu(parseInt(t.version,10),0)}}))}))},kt=function(e,t){var n=String(t).toLowerCase();return ee(e,(function(e){return e.search(n)}))},Mt=function(e,t){return kt(e,t).map((function(e){var n=xt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},St=function(e,t){return kt(e,t).map((function(e){var n=xt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Lt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ct=function(e){return function(t){return Be(t,e)}},Tt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Be(e,"edge/")&&Be(e,"chrome")&&Be(e,"safari")&&Be(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Lt],search:function(e){return Be(e,"chrome")&&!Be(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Be(e,"msie")||Be(e,"trident")}},{name:"Opera",versionRegexes:[Lt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ct("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ct("firefox")},{name:"Safari",versionRegexes:[Lt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Be(e,"safari")||Be(e,"mobile/"))&&Be(e,"applewebkit")}}],Dt=[{name:"Windows",search:Ct("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Be(e,"iphone")||Be(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ct("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ct("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ct("linux"),versionRegexes:[]},{name:"Solaris",search:Ct("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ct("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ct("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ot={browsers:y(Tt),oses:y(Dt)},Et="Edge",At="Chrome",Pt="IE",Ft="Opera",It="Firefox",Yt="Safari",Rt=function(){return Nt({current:void 0,version:xt.unknown()})},Nt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Et),isChrome:r(At),isIE:r(Pt),isOpera:r(Ft),isFirefox:r(It),isSafari:r(Yt)}},Ht={unknown:Rt,nu:Nt,edge:y(Et),chrome:y(At),ie:y(Pt),opera:y(Ft),firefox:y(It),safari:y(Yt)},zt="Windows",jt="iOS",Bt="Android",Vt="Linux",$t="OSX",Ut="Solaris",Wt="FreeBSD",qt="ChromeOS",Gt=function(){return Kt({current:void 0,version:xt.unknown()})},Kt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(zt),isiOS:r(jt),isAndroid:r(Bt),isOSX:r($t),isLinux:r(Vt),isSolaris:r(Ut),isFreeBSD:r(Wt),isChromeOS:r(qt)}},Jt={unknown:Gt,nu:Kt,windows:y(zt),ios:y(jt),android:y(Bt),linux:y(Vt),osx:y($t),solaris:y(Ut),freebsd:y(Wt),chromeos:y(qt)},Xt=function(e,t,n){var r=Ot.browsers(),i=Ot.oses(),o=t.bind((function(e){return wt(r,e)})).orThunk((function(){return Mt(r,e)})).fold(Ht.unknown,Ht.nu),a=St(i,e).fold(Jt.unknown,Jt.nu),s=mt(a,o,e,n);return{browser:o,os:a,deviceType:s}},Qt={detect:Xt},Zt=function(e){return window.matchMedia(e).matches},en=pt((function(){return Qt.detect(navigator.userAgent,Y.from(navigator.userAgentData),Zt)})),tn=function(){return en()},nn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},rn=function(e,t){return nn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(e,t){var n=e.dom;if(n.nodeType!==ot)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},an=function(e){return e.nodeType!==ot&&e.nodeType!==rt&&e.nodeType!==it||0===e.childElementCount},sn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?[]:W(n.querySelectorAll(e),tt.fromDom)},un=function(e,t){var n=void 0===t?document:t.dom;return an(n)?Y.none():Y.from(n.querySelector(e)).map(tt.fromDom)},ln=function(e,t){return e.dom===t.dom},cn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},dn=function(e,t){return rn(e.dom,t.dom)},fn=function(e,t){return tn().browser.isIE()?dn(e,t):cn(e,t)},hn=function(e){return tt.fromDom(e.dom.ownerDocument)},pn=function(e){return ft(e)?e:hn(e)},mn=function(e){return tt.fromDom(pn(e).dom.documentElement)},gn=function(e){return tt.fromDom(pn(e).dom.defaultView)},vn=function(e){return Y.from(e.dom.parentNode).map(tt.fromDom)},_n=function(e){return vn(e)},bn=function(e){return Y.from(e.dom.offsetParent).map(tt.fromDom)},yn=function(e){return Y.from(e.dom.nextSibling).map(tt.fromDom)},xn=function(e){return W(e.dom.childNodes,tt.fromDom)},wn=function(e,t){var n=e.dom.childNodes;return Y.from(n[t]).map(tt.fromDom)},kn=function(e){return wn(e,0)},Mn=function(e,t){return{element:e,offset:t}},Sn=function(e,t){var n=xn(e);return n.length>0&&t<n.length?Mn(n[t],0):Mn(e,t)},Ln=function(e){return ht(e)&&f(e.dom.host)},Cn=h(Element.prototype.attachShadow)&&h(Node.prototype.getRootNode),Tn=y(Cn),Dn=Cn?function(e){return tt.fromDom(e.dom.getRootNode())}:pn,On=function(e){return Ln(e)?e:tt.fromDom(pn(e).dom.body)},En=function(e){return An(e).isSome()},An=function(e){var t=Dn(e);return Ln(t)?Y.some(t):Y.none()},Pn=function(e){return tt.fromDom(e.dom.host)},Fn=function(e){if(Tn()&&f(e.target)){var t=tt.fromDom(e.target);if(ct(t)&&In(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return de(n)}}return Y.from(e.target)},In=function(e){return f(e.dom.shadowRoot)},Yn=function(e){var t=dt(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return An(tt.fromDom(t)).fold((function(){return n.body.contains(t)}),b(Yn,Pn))},Rn=function(){return Nn(tt.fromDom(document))},Nn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tt.fromDom(t)},Hn=function(e,t,n){if(!(o(n)||l(n)||p(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},zn=function(e,t,n){Hn(e.dom,t,n)},jn=function(e,t){var n=e.dom;ve(t,(function(e,t){Hn(n,t,e)}))},Bn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Vn=function(e,t){return Y.from(Bn(e,t))},$n=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Un=function(e,t){e.dom.removeAttribute(t)},Wn=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Ke(e)&&e.style.setProperty(t,n)},qn=function(e,t){Ke(e)&&e.style.removeProperty(t)},Gn=function(e,t,n){var r=e.dom;Wn(r,t,n)},Kn=function(e,t){var n=e.dom;ve(t,(function(e,t){Wn(n,t,e)}))},Jn=function(e,t){var n=e.dom;ve(t,(function(e,t){e.fold((function(){qn(n,t)}),(function(e){Wn(n,t,e)}))}))},Xn=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Yn(e)?i:Qn(n,t)},Qn=function(e,t){return Ke(e)?e.style.getPropertyValue(t):""},Zn=function(e,t){var n=e.dom,r=Qn(n,t);return Y.from(r).filter((function(e){return e.length>0}))},er=function(e){var t={},n=e.dom;if(Ke(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},tr=function(e,t,n){var r=tt.fromTag(e);Gn(r,t,n);var i=Zn(r,t);return i.isSome()},nr=function(e,t){var n=e.dom;qn(n,t),De(Vn(e,"style").map(We),"")&&Un(e,"style")},rr=function(e){return e.dom.offsetWidth},ir=function(e,t){var n=function(t,n){if(!p(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Ke(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Xn(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return Q(t,(function(t,n){var r=Xn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},or=ir("height",(function(e){var t=e.dom;return Yn(e)?t.getBoundingClientRect().height:t.offsetHeight})),ar=function(e){return or.get(e)},sr=function(e){return or.getOuter(e)},ur=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=or.max(e,t,n);Gn(e,"max-height",r+"px")},lr=function(e,t){var n=function(n,r){return lr(e+n,t+r)};return{left:e,top:t,translate:n}},cr=lr,dr=function(e){var t=e.getBoundingClientRect();return cr(t.left,t.top)},fr=function(e,t){return void 0!==e?e:void 0!==t?t:0},hr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return cr(n.offsetLeft,n.offsetTop);var o=fr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=fr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=fr(i.clientTop,n.clientTop),u=fr(i.clientLeft,n.clientLeft);return pr(e).translate(a-u,o-s)},pr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?cr(r.offsetLeft,r.offsetTop):Yn(e)?dr(t):cr(0,0)},mr=ir("width",(function(e){return e.dom.offsetWidth})),gr=function(e,t){return mr.set(e,t)},vr=function(e){return mr.get(e)},_r=function(e){return mr.getOuter(e)},br=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=mr.max(e,t,n);Gn(e,"max-width",r+"px")},yr=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},xr=function(e){var t=tt.fromDom(Fn(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=_(r,n);return yr(t,e.clientX,e.clientY,n,r,i,e)},wr=function(e,t){return function(n){e(n)&&t(xr(n))}},kr=function(e,t,n,r,i){var o=wr(n,r);return e.dom.addEventListener(t,o,i),{unbind:k(Lr,e,t,o,i)}},Mr=function(e,t,n,r){return kr(e,t,n,r,!1)},Sr=function(e,t,n,r){return kr(e,t,n,r,!0)},Lr=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Cr=function(e,t){var n=vn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Tr=function(e,t){var n=yn(e);n.fold((function(){var n=vn(e);n.each((function(e){Or(e,t)}))}),(function(e){Cr(e,t)}))},Dr=function(e,t){var n=kn(e);n.fold((function(){Or(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Or=function(e,t){e.dom.appendChild(t.dom)},Er=function(e,t,n){wn(e,n).fold((function(){Or(e,t)}),(function(e){Cr(e,t)}))},Ar=function(e,t){q(t,(function(t){Cr(e,t)}))},Pr=function(e,t){q(t,(function(t){Or(e,t)}))},Fr=function(e){e.dom.textContent="",q(xn(e),(function(e){Ir(e)}))},Ir=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Yr=function(e){var t=xn(e);t.length>0&&Ar(e,t),Ir(e)},Rr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return cr(n,r)},Nr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Hr=function(e){var t=void 0===e?window:e;return tn().browser.isFirefox()?Y.none():Y.from(t["visualViewport"])},zr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},jr=function(e){var t=void 0===e?window:e,n=t.document,r=Rr(tt.fromDom(n));return Hr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return zr(r.left,r.top,n,i)}),(function(e){return zr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Br=function(e,t){var n=e.view(t);return n.fold(y([]),(function(t){var n=e.owner(t),r=Br(e,n);return[t].concat(r)}))},Vr=function(e,t){var n=t.owner(e),r=Br(t,n);return Y.some(r)},$r=function(e){var t,n=e.dom===document?Y.none():Y.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tt.fromDom)},Ur=function(e){return hn(e)},Wr=Object.freeze({__proto__:null,view:$r,owner:Ur}),qr=function(e){var t=tt.fromDom(document),n=Rr(t),r=Vr(e,Wr);return r.fold(k(hr,e),(function(t){var r=pr(e),i=X(t,(function(e,t){var n=pr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return cr(i.left+r.left+n.left,i.top+r.top+n.top)}))},Gr=function(e,t,n){return{point:e,width:t,height:n}},Kr=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},Jr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Xr=function(e){var t=hr(e),n=_r(e),r=sr(e);return Jr(t.left,t.top,n,r)},Qr=function(e){var t=qr(e),n=_r(e),r=sr(e);return Jr(t.left,t.top,n,r)},Zr=function(){return jr(window)},ei=function(e){var t=function(t){return ei(e)},n=function(t){return ei(e)},r=function(t){return ei(t(e))},i=function(t){return ei(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},u=function(t){return t(e)},l=function(t){return t(e)},c=function(){return Y.some(e)};return{isValue:C,isError:L,getOr:y(e),getOrThunk:y(e),getOrDie:y(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:l,toOptional:c}},ti=function(e){var t=function(e){return e()},n=function(){return S(String(e))()},r=x,i=function(e){return e()},o=function(t){return ti(e)},a=function(t){return ti(t(e))},s=function(t){return ti(e)},u=function(t,n){return t(e)};return{isValue:L,isError:C,getOr:x,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:g,bind:s,exists:L,forall:C,toOptional:Y.none}},ni=function(e,t){return e.fold((function(){return ti(t)}),ei)},ri={value:ei,error:ti,fromOption:ni};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(nt||(nt={}));var ii=function(e,t,n){return e.stype===nt.Error?t(e.serror):n(e.svalue)},oi=function(e){var t=[],n=[];return q(e,(function(e){ii(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},ai=function(e,t){return e.stype===nt.Error?{stype:nt.Error,serror:t(e.serror)}:e},si=function(e,t){return e.stype===nt.Value?{stype:nt.Value,svalue:t(e.svalue)}:e},ui=function(e,t){return e.stype===nt.Value?t(e.svalue):e},li=function(e,t){return e.stype===nt.Error?t(e.serror):e},ci=function(e){return{stype:nt.Value,svalue:e}},di=function(e){return{stype:nt.Error,serror:e}},fi=function(e){return ii(e,ri.error,ri.value)},hi=function(e){return e.fold(di,ci)},pi={fromResult:hi,toResult:fi,svalue:ci,partition:oi,serror:di,bind:ui,bindError:li,map:si,mapError:ai,fold:ii},mi=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},gi=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},vi=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},_i=function(e,t){return t},bi=function(e,t){var n=a(e)&&a(t);return n?xi(e,t):t},yi=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ce(o,a)&&(r[a]=e(r[a],o[a]))}return r}},xi=yi(bi),wi=yi(_i),ki=function(){return{tag:"required",process:{}}},Mi=function(e){return{tag:"defaultedThunk",process:e}},Si=function(e){return Mi(y(e))},Li=function(){return{tag:"option",process:{}}},Ci=function(e){return{tag:"mergeWithThunk",process:e}},Ti=function(e){return Ci(y(e))},Di=function(e,t){return e.length>0?pi.svalue(xi(t,wi.apply(void 0,e))):pi.svalue(t)},Oi=function(e){return _(pi.serror,ne)(e)},Ei=function(e,t){var n=pi.partition(e);return n.errors.length>0?Oi(n.errors):Di(n.values,t)},Ai=function(e){var t=pi.partition(e);return t.errors.length>0?Oi(t.errors):pi.svalue(t.values)},Pi={consolidateObj:Ei,consolidateArr:Ai},Fi=function(e){return a(e)&&me(e).length>100?" removed due to size":JSON.stringify(e,null,2)},Ii=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:y("... (only showing first ten failures)")}]):e;return W(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},Yi=function(e,t){return pi.serror([{path:e,getErrorInfo:t}])},Ri=function(e,t,n){return Yi(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+Fi(n)}))},Ni=function(e,t){return Yi(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},Hi=function(e,t,n){return Yi(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Fi(t)}))},zi=function(e,t){return Yi(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},ji=function(e,t){return Yi(e,y(t))},Bi=function(e){var t=function(t,n){return pi.bindError(e(n),(function(e){return ji(t,e)}))},n=y("val");return{extract:t,toString:n}},Vi=Bi(pi.svalue),$i=function(e,t,n,r){return Le(t,n).fold((function(){return Ri(e,n,t)}),r)},Ui=function(e,t,n,r){var i=Le(e,t).getOrThunk((function(){return n(e)}));return r(i)},Wi=function(e,t,n){return n(Le(e,t))},qi=function(e,t,n,r){var i=Le(e,t).map((function(t){return!0===t?n(e):t}));return r(i)},Gi=function(e,t,n,r,i){var o=function(e){return i.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return pi.svalue(Y.none())}),(function(e){var n=i.extract(t.concat([r]),e);return pi.map(n,Y.some)}))};switch(e.tag){case"required":return $i(t,n,r,o);case"defaultedThunk":return Ui(n,r,e.process,o);case"option":return Wi(n,r,a);case"defaultedOptionThunk":return qi(n,r,e.process,a);case"mergeWithThunk":return Ui(n,r,y({}),(function(t){var r=xi(e.process(n),t);return o(r)}))}},Ki=function(e,t,n){for(var r={},i=[],o=0,a=n;o<a.length;o++){var s=a[o];vi(s,(function(n,o,a,s){var u=Gi(a,e,t,n,s);pi.fold(u,(function(e){i.push.apply(i,e)}),(function(e){r[o]=e}))}),(function(e,n){r[e]=n(t)}))}return i.length>0?pi.serror(i):pi.svalue(r)},Ji=function(e){var t=function(t,n){return e().extract(t,n)},n=function(){return e().toString()};return{extract:t,toString:n}},Xi=function(e){return me(we(e,f))},Qi=function(e){var t=Zi(e),n=X(e,(function(e,t){return vi(t,(function(t){var n;return xi(e,(n={},n[t]=!0,n))}),y(e))}),{}),r=function(e,r){var i=l(r)?[]:Xi(r),o=J(i,(function(e){return!Te(n,e)}));return 0===o.length?t.extract(e,r):zi(e,o)};return{extract:r,toString:t.toString}},Zi=function(e){var t=function(t,n){return Ki(t,n,e)},n=function(){var t=W(e,(function(e){return vi(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},eo=function(e){var t=function(t,n){var r=W(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Pi.consolidateArr(r)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},to=function(e){var t=function(t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.extract(t,n);if(s.stype===nt.Value)return s;r.push(s)}return Pi.consolidateArr(r)},n=function(){return"oneOf("+W(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},no=function(e,t){var n=function(t,n){return eo(Bi(e)).extract(t,n)},r=function(e,r){var i=me(r),o=n(e,i);return pi.bind(o,(function(n){var i=W(n,(function(e){return mi(e,e,ki(),t)}));return Zi(i).extract(e,r)}))},i=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:i}},ro=function(e,t){var n=pt(t),r=function(e,t){return n().extract(e,t)},i=function(){return n().toString()};return{extract:r,toString:i}},io=_(eo,Zi),oo=y(Vi),ao=function(e,t){return Bi((function(n){var r=typeof n;return e(n)?pi.svalue(n):pi.serror("Expected type: "+t+" but got: "+r)}))},so=ao(p,"number"),uo=ao(o,"string"),lo=ao(l,"boolean"),co=ao(h,"function"),fo=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return fo(e[t])}));default:return!1}},ho=Bi((function(e){return fo(e)?pi.svalue(e):pi.serror("Expected value to be acceptable for sending via postMessage")})),po=function(e,t,n,r){var i=Le(n,r);return i.fold((function(){return Hi(e,n,r)}),(function(n){return n.extract(e.concat(["branch: "+r]),t)}))},mo=function(e,t){var n=function(n,r){var i=Le(r,e);return i.fold((function(){return Ni(n,e)}),(function(e){return po(n,r,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+me(t)};return{extract:n,toString:r}},go=function(){return eo(Vi)},vo=function(e){return Bi((function(t){return e(t).fold(pi.serror,pi.svalue)}))},_o=function(e,t){return no((function(t){return pi.fromResult(e(t))}),t)},bo=function(e,t,n){var r=t.extract([e],n);return pi.mapError(r,(function(e){return{input:n,errors:e}}))},yo=function(e,t,n){return pi.toResult(bo(e,t,n))},xo=function(e){return e.fold((function(e){throw new Error(ko(e))}),x)},wo=function(e,t,n){return xo(yo(e,t,n))},ko=function(e){return"Errors: \n"+Ii(e.errors).join("\n")+"\n\nInput object: "+Fi(e.input)},Mo=function(e,t){return mo(e,_e(t,Zi))},So=function(e,t){return ro(e,t)},Lo=mi,Co=gi,To=function(e){return vo((function(t){return B(e,t)?ri.value(t):ri.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Do=function(e){return Lo(e,e,ki(),oo())},Oo=function(e,t){return Lo(e,e,ki(),t)},Eo=function(e){return Oo(e,so)},Ao=function(e){return Oo(e,uo)},Po=function(e,t){return Lo(e,e,ki(),To(t))},Fo=function(e){return Oo(e,lo)},Io=function(e){return Oo(e,co)},Yo=function(e,t){return Lo(e,e,Li(),Bi((function(n){return pi.serror("The field: "+e+" is forbidden. "+t)})))},Ro=function(e,t){return Lo(e,e,ki(),Zi(t))},No=function(e,t){return Lo(e,e,ki(),io(t))},Ho=function(e,t){return Lo(e,e,ki(),eo(t))},zo=function(e){return Lo(e,e,Li(),oo())},jo=function(e,t){return Lo(e,e,Li(),t)},Bo=function(e){return jo(e,so)},Vo=function(e){return jo(e,uo)},$o=function(e){return jo(e,co)},Uo=function(e,t){return jo(e,eo(t))},Wo=function(e,t){return jo(e,Zi(t))},qo=function(e,t){return jo(e,Qi(t))},Go=function(e,t){return Lo(e,e,Si(t),oo())},Ko=function(e,t,n){return Lo(e,e,Si(t),n)},Jo=function(e,t){return Ko(e,t,so)},Xo=function(e,t){return Ko(e,t,uo)},Qo=function(e,t,n){return Ko(e,t,To(n))},Zo=function(e,t){return Ko(e,t,lo)},ea=function(e,t){return Ko(e,t,co)},ta=function(e,t){return Ko(e,t,ho)},na=function(e,t,n){return Ko(e,t,eo(n))},ra=function(e,t,n){return Ko(e,t,Zi(n))},ia=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},oa=function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return q(e,(function(r,i){var o=me(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!s(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+o);var s=function(e){var r=me(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ie(t,(function(e){return B(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:s,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},aa={generate:oa};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var sa,ua=function(e){var t=[],n=[];return q(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}},la=function(e,t){var n={};return ve(e,(function(e,r){B(t,r)||(n[r]=e)})),n},ca=function(e,t){var n;return n={},n[e]=t,n},da=function(e){var t={};return q(e,(function(e){t[e.key]=e.value})),t},fa=function(e,t){return la(e,t)},ha=function(e,t){return ca(e,t)},pa=function(e){return da(e)},ma=function(e,t){return 0===e.length?ri.value(t):ri.value(xi(t,wi.apply(void 0,e)))},ga=function(e){return ri.error(ne(e))},va=function(e,t){var n=ua(e);return n.errors.length>0?ga(n.errors):ma(n.values,t)},_a=function(e){return h(e)?e:L},ba=function(e,t,n){var r=e.dom,i=_a(n);while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return Y.none()},ya=function(e,t,n){var r=t(e),i=_a(n);return r.orThunk((function(){return i(e)?Y.none():ba(e,t,i)}))},xa=function(e,t){return ln(e.element,t.event.target)},wa={can:C,abort:L,run:g},ka=function(e){if(!Te(e,"can")&&!Te(e,"abort")&&!Te(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return D(D({},wa),e)},Ma=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Q(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},Sa=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Q(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},La=function(e){return h(e)?{can:C,abort:L,run:e}:e},Ca=function(e){var t=Ma(e,(function(e){return e.can})),n=Sa(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];q(e,(function(e){e.run.apply(void 0,t)}))};return{can:t,abort:n,run:r}},Ta=y,Da=Ta("touchstart"),Oa=Ta("touchmove"),Ea=Ta("touchend"),Aa=Ta("touchcancel"),Pa=Ta("mousedown"),Fa=Ta("mousemove"),Ia=Ta("mouseout"),Ya=Ta("mouseup"),Ra=Ta("mouseover"),Na=Ta("focusin"),Ha=Ta("focusout"),za=Ta("keydown"),ja=Ta("keyup"),Ba=Ta("input"),Va=Ta("change"),$a=Ta("click"),Ua=Ta("transitioncancel"),Wa=Ta("transitionend"),qa=Ta("transitionstart"),Ga=Ta("selectstart"),Ka=function(e){return y("alloy."+e)},Ja={tap:Ka("tap")},Xa=Ka("focus"),Qa=Ka("blur.post"),Za=Ka("paste.post"),es=Ka("receive"),ts=Ka("execute"),ns=Ka("focus.item"),rs=Ja.tap,is=Ka("longpress"),os=Ka("sandbox.close"),as=Ka("typeahead.cancel"),ss=Ka("system.init"),us=Ka("system.touchmove"),ls=Ka("system.touchend"),cs=Ka("system.scroll"),ds=Ka("system.resize"),fs=Ka("system.attached"),hs=Ka("system.detached"),ps=Ka("system.dismissRequested"),ms=Ka("system.repositionRequested"),gs=Ka("focusmanager.shifted"),vs=Ka("slotcontainer.visibility"),_s=Ka("change.tab"),bs=Ka("dismiss.tab"),ys=Ka("highlight"),xs=Ka("dehighlight"),ws=function(e,t){Ls(e,e.element,t,{})},ks=function(e,t,n){Ls(e,e.element,t,n)},Ms=function(e){ws(e,ts())},Ss=function(e,t,n){Ls(e,t,n,{})},Ls=function(e,t,n,r){var i=D({target:t},r);e.getSystem().triggerEvent(n,t,i)},Cs=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},Ts=function(e){return pa(e)},Ds=function(e,t){return{key:e,value:ka({abort:t})}},Os=function(e,t){return{key:e,value:ka({can:t})}},Es=function(e){return{key:e,value:ka({run:function(e,t){t.event.prevent()}})}},As=function(e,t){return{key:e,value:ka({run:t})}},Ps=function(e,t,n){return{key:e,value:ka({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},Fs=function(e){return function(t){return As(e,t)}},Is=function(e){return function(t){return{key:e,value:ka({run:function(e,n){xa(e,n)&&t(e,n)}})}}},Ys=function(e,t){return As(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){Cs(t,t.element,e,r)}))}))},Rs=function(e,t,n){var r=t.partUids[n];return Ys(e,r)},Ns=function(e,t){return As(e,(function(e,n){var r=n.event,i=e.getSystem().getByDom(r.target).getOrThunk((function(){var t=ya(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),L);return t.getOr(e)}));t(e,i,n)}))},Hs=function(e){return As(e,(function(e,t){t.cut()}))},zs=function(e){return As(e,(function(e,t){t.stop()}))},js=function(e,t){return Is(e)(t)},Bs=Is(fs()),Vs=Is(hs()),$s=Is(ss()),Us=Fs(ts()),Ws=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,xn(tt.fromDom(r))},qs=function(e){return e.dom.innerHTML},Gs=function(e,t){var n=hn(e),r=n.dom,i=tt.fromDom(r.createDocumentFragment()),o=Ws(t,r);Pr(i,o),Fr(e),Or(e,i)},Ks=function(e){var t=tt.fromTag("div"),n=tt.fromDom(e.dom.cloneNode(!0));return Or(t,n),qs(t)},Js=function(e,t){return tt.fromDom(e.dom.cloneNode(t))},Xs=function(e){return Js(e,!1)},Qs=function(e){if(Ln(e))return"#shadow-root";var t=Xs(e);return Ks(t)},Zs=function(e){return Qs(e)},eu=function(e,t,n){return ln(t,e.element)&&!ln(t,n)},tu=Ts([Os(Xa(),(function(e,t){var n=t.event,r=n.originator,i=n.target;return!eu(e,r,i)||(console.warn(Xa()+" did not get interpreted by the desired target. \nOriginator: "+Zs(r)+"\nTarget: "+Zs(i)+"\nCheck the "+Xa()+" event handlers"),!1)}))]),nu=Object.freeze({__proto__:null,events:tu}),ru=0,iu=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return ru++,e+"_"+r+ru+String(n)},ou=y("alloy-id-"),au=y("data-alloy-id"),su=ou(),uu=au(),lu=function(e,t){var n=iu(su+e);return cu(t,n),n},cu=function(e,t){Object.defineProperty(e.dom,uu,{value:t,writable:!0})},du=function(e){var t=ct(e)?e.dom[uu]:null;return Y.from(t)},fu=function(e){return iu(e)},hu=x,pu=function(e){var t=function(t){return"The component must be in a context to execute: "+t+(e?"\n"+Zs(e().element)+" is not in context.":"")},n=function(e){return function(){throw new Error(t(e))}},r=function(e){return function(){console.warn(t(e))}};return{debugInfo:y("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:L}},mu=pu(),gu=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vu(a.slice(0,1).concat(a.slice(3)))}},e},vu=function(e){return W(e,(function(e){return $e(e,"/*")?e.substring(0,e.length-"/*".length):e}))},_u=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vu(o)}},e},bu=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:vu(o.slice(1))}},e},yu=iu("alloy-premade"),xu=function(e){return ha(yu,e)},wu=function(e){return Le(e,yu)},ku=function(e){return bu((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,E([t.getApis(),t],n,!1))}),e)},Mu={init:function(){return Su({readState:y("No State required")})}},Su=function(e){return e},Lu=function(e,t){var n=W(t,(function(e){return Wo(e.name(),[Do("config"),Go("state",Mu)])})),r=yo("component.behaviours",Zi(n),e.behaviours).fold((function(t){throw new Error(ko(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),x);return{list:t,data:_e(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return y(t)}))}},Cu=function(e){return e.list},Tu=function(e){return e.data},Du=function(e,t){var n={};return ve(e,(function(e,r){ve(e,(function(e,i){var o=Le(n,i).getOr([]);n[i]=o.concat([t(r,e)])}))})),n},Ou=function(e){return{classes:c(e.classes)?[]:e.classes,attributes:c(e.attributes)?{}:e.attributes,styles:c(e.styles)?{}:e.styles}},Eu=function(e,t){return D(D({},e),{attributes:D(D({},e.attributes),t.attributes),styles:D(D({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},Au=function(e,t,n,r){var i=D({},t);q(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=Du(i,(function(e,t){return{name:e,modification:t}})),a=function(e){return X(e,(function(e,t){return D(D({},t.modification),e)}),{})},s=X(o.classes,(function(e,t){return t.modification.concat(e)}),[]),u=a(o.attributes),l=a(o.styles);return Ou({classes:s,attributes:u,styles:l})},Pu=function(e,t,n,r){try{var i=le(n,(function(n,i){var o=n[t],a=i[t],s=r.indexOf(o),u=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===u)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<u?-1:u<s?1:0}));return ri.value(i)}catch(o){return ri.error([o])}},Fu=function(e,t){return{handler:e,purpose:t}},Iu=function(e,t){return{cHandler:e,purpose:t}},Yu=function(e,t){return Iu(k.apply(void 0,[e.handler].concat(t)),e.purpose)},Ru=function(e){return e.cHandler},Nu=function(e,t){return{name:e,handler:t}},Hu=function(e,t){var n={};return q(e,(function(e){n[e.name()]=e.handlers(t)})),n},zu=function(e,t,n){var r=D(D({},n),Hu(t,e));return Du(r,Nu)},ju=function(e,t,n,r){var i=zu(e,n,r);return Uu(i,t)},Bu=function(e){var t=La(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},Vu=function(e,t){return ri.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(W(t,(function(e){return e.name})),null,2)])},$u=function(e,t,n){var r=t[n];return r?Pu("Event: "+n,"name",e,r).map((function(e){var t=W(e,(function(e){return e.handler}));return Ca(t)})):Vu(n,e)},Uu=function(e,t){var n=ke(e,(function(e,n){var r=1===e.length?ri.value(e[0].handler):$u(e,t,n);return r.map((function(r){var i=Bu(r),o=e.length>1?J(t[n],(function(t){return V(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ha(n,Fu(i,o))}))}));return va(n,{})},Wu="alloy.base.behaviour",qu=Zi([Lo("dom","dom",ki(),Zi([Do("tag"),Go("styles",{}),Go("classes",[]),Go("attributes",{}),zo("value"),zo("innerHtml")])),Do("components"),Do("uid"),Go("events",{}),Go("apis",{}),Lo("eventOrder","eventOrder",Ti((sa={},sa[ts()]=["disabling",Wu,"toggling","typeaheadevents"],sa[Xa()]=[Wu,"focusing","keying"],sa[ss()]=[Wu,"disabling","toggling","representing"],sa[Ba()]=[Wu,"representing","streaming","invalidating"],sa[hs()]=[Wu,"representing","item-events","tooltipping"],sa[Pa()]=["focusing",Wu,"item-type-events"],sa[Da()]=["focusing",Wu,"item-type-events"],sa[Ra()]=["item-type-events","tooltipping"],sa[es()]=["receiving","reflecting","tooltipping"],sa)),oo()),zo("domModification")]),Gu=function(e){return yo("custom.definition",qu,e)},Ku=function(e){return D(D({},e.dom),{uid:e.uid,domChildren:W(e.components,(function(e){return e.element}))})},Ju=function(e){return e.domModification.fold((function(){return Ou({})}),Ou)},Xu=function(e){return e.events},Qu=function(e,t){var n=Bn(e,t);return void 0===n||""===n?[]:n.split(" ")},Zu=function(e,t,n){var r=Qu(e,t),i=r.concat([n]);return zn(e,t,i.join(" ")),!0},el=function(e,t,n){var r=J(Qu(e,t),(function(e){return e!==n}));return r.length>0?zn(e,t,r.join(" ")):Un(e,t),!1},tl=function(e){return void 0!==e.dom.classList},nl=function(e){return Qu(e,"class")},rl=function(e,t){return Zu(e,"class",t)},il=function(e,t){return el(e,"class",t)},ol=function(e,t){tl(e)?e.dom.classList.add(t):rl(e,t)},al=function(e){var t=tl(e)?e.dom.classList:nl(e);0===t.length&&Un(e,"class")},sl=function(e,t){if(tl(e)){var n=e.dom.classList;n.remove(t)}else il(e,t);al(e)},ul=function(e,t){return tl(e)&&e.dom.classList.contains(t)},ll=function(e,t){q(t,(function(t){ol(e,t)}))},cl=function(e,t){q(t,(function(t){sl(e,t)}))},dl=function(e,t){return ie(t,(function(t){return ul(e,t)}))},fl=function(e){return e.dom.value},hl=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},pl=function(e){var t=tt.fromTag(e.tag);jn(t,e.attributes),ll(t,e.classes),Kn(t,e.styles),e.innerHtml.each((function(e){return Gs(t,e)}));var n=e.domChildren;return Pr(t,n),e.value.each((function(e){hl(t,e)})),e.uid,cu(t,e.uid),t},ml=function(e){var t=Le(e,"behaviours").getOr({});return re(me(t),(function(e){var n=t[e];return f(n)?[n.me]:[]}))},gl=function(e,t){return Lu(e,t)},vl=function(e){var t=ml(e);return gl(e,t)},_l=function(e,t,n){var r=Ku(e),i=Ju(e),o={"alloy.base.modification":i},a=t.length>0?Au(n,o,t,r):i;return Eu(r,a)},bl=function(e,t,n){var r={"alloy.base.behaviour":Xu(e)};return ju(n,e.eventOrder,t,r).getOrDie()},yl=function(e){var t=function(){return b},n=ia(mu),r=xo(Gu(e)),i=vl(e),o=Cu(i),a=Tu(i),s=_l(r,o,a),u=pl(s),l=bl(r,o,a),c=ia(r.components),d=function(e){n.set(e)},f=function(){n.set(pu(t))},p=function(){var e=xn(u),t=re(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),ue)}));c.set(t)},m=function(t){var n=a,r=h(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},g=function(e){return h(a[e.name()])},v=function(){return r.apis},_=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},b={uid:e.uid,getSystem:n.get,config:m,hasConfigured:g,spec:e,readState:_,getApis:v,connect:d,disconnect:f,element:u,syncComponents:p,components:c.get,events:l};return b},xl=function(e){var t=Le(e,"components").getOr([]);return W(t,Cl)},wl=function(e){var t=hu(e),n=t.events,r=O(t,["events"]),i=xl(r),o=D(D({},r),{events:D(D({},nu),n),components:i});return ri.value(yl(o))},kl=function(e){var t=tt.fromText(e);return Ml({element:t})},Ml=function(e){var t=wo("external.component",Qi([Do("element"),zo("uid")]),e),n=ia(pu()),r=function(e){n.set(e)},i=function(){n.set(pu((function(){return a})))},o=t.uid.getOrThunk((function(){return fu("external")}));cu(t.element,o);var a={uid:o,getSystem:n.get,config:Y.none,hasConfigured:L,connect:r,disconnect:i,getApis:function(){return{}},element:t.element,spec:e,readState:y("No state"),syncComponents:g,components:y([]),events:{}};return xu(a)},Sl=fu,Ll=function(e){return Ce(e,"uid")},Cl=function(e){return wu(e).getOrThunk((function(){var t=Ll(e)?e:D({uid:Sl("")},e);return wl(t).getOrDie()}))},Tl=xu;function Dl(e,t,n,r,i){return e(n,r)?Y.some(n):h(i)&&i(n)?Y.none():t(n,r,i)}var Ol,El=function(e,t,n){var r=e.dom,i=h(n)?n:L;while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r);if(t(o))return Y.some(o);if(i(o))break}return Y.none()},Al=function(e,t,n){var r=function(e,t){return t(e)};return Dl(r,El,e,t,n)},Pl=function(e,t){var n=function(e){return t(tt.fromDom(e))},r=ee(e.dom.childNodes,n);return r.map(tt.fromDom)},Fl=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=tt.fromDom(e.childNodes[r]);if(t(i))return Y.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return Y.none()};return n(e.dom)},Il=function(e,t,n){return Al(e,t,n).isSome()},Yl=function(e,t,n){return El(e,(function(e){return on(e,t)}),n)},Rl=function(e,t){return Pl(e,(function(e){return on(e,t)}))},Nl=function(e,t){return un(t,e)},Hl=function(e,t,n){var r=function(e,t){return on(e,t)};return Dl(r,Yl,e,t,n)},zl=function(e){var t=Al(e,(function(e){if(!ct(e))return!1;var t=Bn(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=Bn(e,"id"),n=Dn(e);return Nl(n,'[aria-owns="'+t+'"]')}))},jl=function(){var e=iu("aria-owns"),t=function(t){zn(t,"aria-owns",e)},n=function(e){Un(e,"aria-owns")};return{id:e,link:t,unlink:n}},Bl=function(e,t){return zl(t).exists((function(t){return Vl(e,t)}))},Vl=function(e,t){return Il(t,(function(t){return ln(t,e.element)}),L)||Bl(e,t)},$l="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(Ol||(Ol={}));var Ul=ia({}),Wl=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var i=(new Date).getTime();B(["mousemove","mouseover","mouseout",ss()],e)||console.log(e,{event:e,time:i-r,target:t.dom,sequence:W(n,(function(e){return B(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Zs(e.target)+")":e.outcome}))})}}},ql=function(e,t,n){var r=Le(Ul.get(),e).orThunk((function(){var t=me(Ul.get());return pe(t,(function(t){return e.indexOf(t)>-1?Y.some(Ul.get()[t]):Y.none()}))})).getOr(Ol.NORMAL);switch(r){case Ol.NORMAL:return n(Ql());case Ol.LOGGING:var i=Wl(e,t),o=n(i);return i.write(),o;case Ol.STOP:return!0}},Gl=["alloy/data/Fields","alloy/debugging/Debugging"],Kl=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return ee(t,(function(e){return e.indexOf("alloy")>0&&!V(Gl,(function(t){return e.indexOf(t)>-1}))})).getOr($l)}return $l},Jl={logEventCut:g,logEventStopped:g,logNoParent:g,logEventNoHandlers:g,logEventResponse:g,write:g},Xl=function(e,t,n){return ql(e,t,n)},Ql=y(Jl),Zl=y([Do("menu"),Do("selectedMenu")]),ec=y([Do("item"),Do("selectedItem")]);y(Zi(ec().concat(Zl())));var tc=y(Zi(ec())),nc=Ro("initSize",[Do("numColumns"),Do("numRows")]),rc=function(){return Oo("markers",tc())},ic=function(){return Ro("markers",[Do("backgroundMenu")].concat(Zl()).concat(ec()))},oc=function(e){return Ro("markers",W(e,Do))},ac=function(e,t,n){return Kl(),Lo(t,t,n,vo((function(e){return ri.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},sc=function(e){return ac("onHandler",e,Si(g))},uc=function(e){return ac("onKeyboardHandler",e,Si(Y.none))},lc=function(e){return ac("onHandler",e,ki())},cc=function(e){return ac("onKeyboardHandler",e,ki())},dc=function(e,t){return Co(e,y(t))},fc=function(e){return Co(e,x)},hc=y(nc),pc=function(e,t,n,r,i,o,a,s){return void 0===s&&(s=!1),{x:e,y:t,bubble:n,direction:r,placement:i,restriction:o,label:a+"-"+i,alwaysFit:s}},mc=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),gc=function(e,t,n,r,i,o,a,s,u){return e.fold(t,n,r,i,o,a,s,u)},vc=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},_c=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},bc=mc.southeast,yc=mc.southwest,xc=mc.northeast,wc=mc.northwest,kc=mc.south,Mc=mc.north,Sc=mc.east,Lc=mc.west,Cc=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},Tc=function(e,t,n){return Math.min(Math.max(e,t),n)},Dc=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},Oc=function(e,t){return se(["left","right","top","bottom"],(function(n){return Le(t,n).map((function(t){return Dc(e,t)}))}))},Ec=function(e,t,n){var r=function(r,i){return t[r].map((function(t){var o="top"===r||"bottom"===r,a=o?n.top:n.left,s="left"===r||"top"===r?Math.max:Math.min,u=s(t,i)+a;return o?Tc(u,e.y,e.bottom):Tc(u,e.x,e.right)})).getOr(i)},i=r("left",e.x),o=r("top",e.y),a=r("right",e.right),s=r("bottom",e.bottom);return Jr(i,o,a-i,s-o)},Ac="layout",Pc=function(e){return e.x},Fc=function(e,t){return e.x+e.width/2-t.width/2},Ic=function(e,t){return e.x+e.width-t.width},Yc=function(e,t){return e.y-t.height},Rc=function(e){return e.y+e.height},Nc=function(e,t){return e.y+e.height/2-t.height/2},Hc=function(e){return e.x+e.width},zc=function(e,t){return e.x-t.width},jc=function(e,t,n){return pc(Pc(e),Rc(e),n.southeast(),bc(),"southeast",Oc(e,{left:1,top:3}),Ac)},Bc=function(e,t,n){return pc(Ic(e,t),Rc(e),n.southwest(),yc(),"southwest",Oc(e,{right:0,top:3}),Ac)},Vc=function(e,t,n){return pc(Pc(e),Yc(e,t),n.northeast(),xc(),"northeast",Oc(e,{left:1,bottom:2}),Ac)},$c=function(e,t,n){return pc(Ic(e,t),Yc(e,t),n.northwest(),wc(),"northwest",Oc(e,{right:0,bottom:2}),Ac)},Uc=function(e,t,n){return pc(Fc(e,t),Yc(e,t),n.north(),Mc(),"north",Oc(e,{bottom:2}),Ac)},Wc=function(e,t,n){return pc(Fc(e,t),Rc(e),n.south(),kc(),"south",Oc(e,{top:3}),Ac)},qc=function(e,t,n){return pc(Hc(e),Nc(e,t),n.east(),Sc(),"east",Oc(e,{left:0}),Ac)},Gc=function(e,t,n){return pc(zc(e,t),Nc(e,t),n.west(),Lc(),"west",Oc(e,{right:1}),Ac)},Kc=function(){return[jc,Bc,Vc,$c,Wc,Uc,qc,Gc]},Jc=function(){return[Bc,jc,$c,Vc,Wc,Uc,qc,Gc]},Xc=function(){return[Vc,$c,jc,Bc,Uc,Wc]},Qc=function(){return[$c,Vc,Bc,jc,Uc,Wc]},Zc=function(){return[jc,Bc,Vc,$c,Wc,Uc]},ed=function(){return[Bc,jc,$c,Vc,Wc,Uc]},td=function(e,t){return t.universal?e:J(e,(function(e){return B(t.channels,e)}))},nd=function(e){return Ts([As(es(),(function(t,n){var r=e.channels,i=me(r),o=n,a=td(i,o);q(a,(function(e){var n=r[e],i=n.schema,a=wo("channel["+e+"] data\nReceiver: "+Zs(t.element),i,o.data);n.onReceive(t,a)}))}))])},rd=Object.freeze({__proto__:null,events:nd}),id=[Oo("channels",_o(ri.value,Qi([lc("onReceive"),Go("schema",oo())])))],od=function(e,t,n){return Us((function(r){n(r,e,t)}))},ad=function(e,t,n){return $s((function(r,i){n(r,e,t)}))},sd=function(e,t,n,r,i,o){var a=Qi(e),s=Wo(t,[qo("config",e)]);return dd(a,s,t,n,r,i,o)},ud=function(e,t,n,r,i,o){var a=e,s=Wo(t,[jo("config",e)]);return dd(a,s,t,n,r,i,o)},ld=function(e,t,n){var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=[r].concat(i);return r.config({name:y(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(a,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return gu(r,n,t)},cd=function(e){return{key:e,value:void 0}},dd=function(e,t,n,r,i,o,a){var s=function(e){return Te(e,n)?e[n]():Y.none()},u=_e(i,(function(e,t){return ld(n,e,t)})),l=_e(o,(function(e,t){return _u(e,t)})),c=D(D(D({},l),u),{revoke:k(cd,n),config:function(t){var r=wo(n+"-config",e,t);return{key:n,value:{config:r,me:c,configAsRaw:pt((function(){return wo(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:y(t),exhibit:function(e,t){return Pe(s(e),Le(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Ou({})}))},name:y(n),handlers:function(e){return s(e).map((function(e){var t=Le(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return c},fd=function(e){return pa(e)},hd=Qi([Do("fields"),Do("name"),Go("active",{}),Go("apis",{}),Go("state",Mu),Go("extra",{})]),pd=function(e){var t=wo("Creating behaviour: "+e.name,hd,e);return sd(t.fields,t.name,t.active,t.apis,t.extra,t.state)},md=Qi([Do("branchKey"),Do("branches"),Do("name"),Go("active",{}),Go("apis",{}),Go("state",Mu),Go("extra",{})]),gd=function(e){var t=wo("Creating behaviour: "+e.name,md,e);return ud(Mo(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},vd=y(void 0),_d=pd({fields:id,name:"receiving",active:rd}),bd=function(e,t){return Ou({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},yd=Object.freeze({__proto__:null,exhibit:bd}),xd=function(){return tt.fromDom(document)},wd=function(e){return e.dom.focus()},kd=function(e){return e.dom.blur()},Md=function(e){var t=Dn(e).dom;return e.dom===t.activeElement},Sd=function(e){return void 0===e&&(e=xd()),Y.from(e.dom.activeElement).map(tt.fromDom)},Ld=function(e){return Sd(Dn(e)).filter((function(t){return e.dom.contains(t.dom)}))},Cd=function(e,t){var n=Dn(t),r=Sd(n).bind((function(e){var n=function(t){return ln(e,t)};return n(t)?Y.some(t):Fl(t,n)})),i=e(t);return r.each((function(e){Sd(n).filter((function(t){return ln(t,e)})).fold((function(){wd(e)}),g)})),i},Td=function(e,t,n,r,i){var o=function(e){return e+"px"};return{position:e,left:t.map(o),top:n.map(o),right:r.map(o),bottom:i.map(o)}},Dd=function(e){return D(D({},e),{position:Y.some(e.position)})},Od=function(e,t){Jn(e,Dd(t))},Ed=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Ad=function(e,t,n,r,i,o){var a=t.rect,s=a.x-n,u=a.y-r,l=a.width,c=a.height,d=i-(s+l),f=o-(u+c),h=Y.some(s),p=Y.some(u),m=Y.some(d),g=Y.some(f),v=Y.none();return gc(t.direction,(function(){return Td(e,h,p,v,v)}),(function(){return Td(e,v,p,m,v)}),(function(){return Td(e,h,v,v,g)}),(function(){return Td(e,v,v,m,g)}),(function(){return Td(e,h,p,v,v)}),(function(){return Td(e,h,v,v,g)}),(function(){return Td(e,h,p,v,v)}),(function(){return Td(e,v,p,m,v)}))},Pd=function(e,t){return e.fold((function(){var e=t.rect;return Td("absolute",Y.some(e.x),Y.some(e.y),Y.none(),Y.none())}),(function(e,n,r,i){return Ad("absolute",t,e,n,r,i)}),(function(e,n,r,i){return Ad("fixed",t,e,n,r,i)}))},Fd=function(e,t){var n=k(qr,t),r=e.fold(n,n,(function(){var e=Rr();return qr(t).translate(-e.left,-e.top)})),i=_r(t),o=sr(t);return Jr(r.left,r.top,i,o)},Id=function(e,t){return t.fold((function(){return e.fold(Zr,Zr,Jr)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=Yd(e,n.x,n.y);return Jr(r.left,r.top,n.width,n.height)}))}))},Yd=function(e,t,n){var r=cr(t,n),i=function(){var e=Rr();return r.translate(-e.left,-e.top)};return e.fold(y(r),y(r),i)},Rd=function(e,t,n,r){return e.fold(t,n,r)};Ed.none;var Nd,Hd=Ed.relative,zd=Ed.fixed,jd=function(e,t){return{anchorBox:e,origin:t}},Bd=function(e,t){return jd(e,t)},Vd="data-alloy-placement",$d=function(e,t){zn(e,Vd,t)},Ud=function(e){return Vn(e,Vd)},Wd=function(e){return Un(e,Vd)},qd=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Gd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,u=e.right,l=e.bottom,c=e.width,d=e.height,f=a>=n&&a<=i,h=s>=r&&s<=o,p=f&&h,m=u<=i&&u>=n,g=l<=o&&l>=r,v=m&&g,_=Math.min(c,a>=n?i-a:u-n),b=Math.min(d,s>=r?o-s:l-r);return{originInBounds:p,sizeInBounds:v,visibleW:_,visibleH:b}},Kd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,u=e.width,l=e.height,c=Math.max(n,i-u),d=Math.max(r,o-l),f=Tc(a,n,c),h=Tc(s,r,d),p=Math.min(f+u,i)-f,m=Math.min(h+l,o)-h;return Jr(f,h,p,m)},Jd=function(e,t,n){var r=y(t.bottom-n.y),i=y(n.bottom-t.y),o=vc(e,i,i,r),a=y(t.right-n.x),s=y(n.right-t.x),u=_c(e,s,s,a);return{maxWidth:u,maxHeight:o}},Xd=function(e,t,n,r){var i=e.bubble,o=i.offset,a=Ec(r,e.restriction,o),s=e.x+o.left,u=e.y+o.top,l=Jr(s,u,t,n),c=Gd(l,a),d=c.originInBounds,f=c.sizeInBounds,h=c.visibleW,p=c.visibleH,m=d&&f,g=m?l:Kd(l,a),v=g.width>0&&g.height>0,_=Jd(e.direction,g,r),b=_.maxWidth,y=_.maxHeight,x={rect:g,maxHeight:y,maxWidth:b,direction:e.direction,placement:e.placement,classes:{on:i.classesOn,off:i.classesOff},layout:e.label,testY:u};return m||e.alwaysFit?qd.fit(x):qd.nofit(x,h,p,v)},Qd=function(e,t,n,r,i,o){var a=r.width,s=r.height,u=function(t,u,l,c,d){var f=t(n,r,i,e,o),h=Xd(f,a,s,o);return h.fold(y(h),(function(e,t,n,r){var i=d===r?n>c||t>l:!d&&r;return i?h:qd.nofit(u,l,c,d)}))},l=Q(t,(function(e,t){var n=k(u,t);return e.fold(y(e),n)}),qd.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:bc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return l.fold(x,x)},Zd=function(e){var t=ia(Y.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(Y.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(Y.some(e))};return{clear:r,isSet:i,get:o,set:a}},ef=function(){return Zd((function(e){return e.destroy()}))},tf=function(){return Zd((function(e){return e.unbind()}))},nf=function(){var e=ef(),t=function(t){return e.get().each(t)};return D(D({},e),{run:t})},rf=function(){var e=Zd(g),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},of=C,af=function(e,t,n){return Mr(e,t,of,n)},sf=function(e,t,n){return Sr(e,t,of,n)},uf=xr,lf=["top","bottom","right","left"],cf="data-alloy-transition-timer",df=function(e,t){return dl(e,t.classes)},ff=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))},hf=function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return Me(t,(function(t,r){var i=e[r].map(n),o=t.map(n);return!Oe(i,o)})).isSome()},pf=function(e){var t=function(t){var n=Xn(e,t),r=o(n)?n.split(/\s*,\s*/):[];return J(r,qe)},n=function(e){if(o(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return $e(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),i=t("transition-duration");return Q(i,(function(e,t,i){var o=n(r[i])+n(t);return Math.max(e,o)}),0)},mf=function(e,t){var n,r=tf(),i=tf(),o=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return ln(t.target,e)&&Ge(r)&&B(lf,t.raw.propertyName)},a=function(a){if(d(a)||o(a)){r.clear(),i.clear();var s=null===a||void 0===a?void 0:a.raw.type;(d(s)||s===Wa())&&(clearTimeout(n),Un(e,cf),cl(e,t.classes))}},s=function(){r.set(af(e,Wa(),a)),i.set(af(e,Ua(),a))};if("ontransitionstart"in e.dom)var u=af(e,qa(),(function(e){o(e)&&(u.unbind(),s())}));else s();var l=pf(e);requestAnimationFrame((function(){n=setTimeout(a,l+17),zn(e,cf,n)}))},gf=function(e,t){ll(e,t.classes),Vn(e,cf).each((function(t){clearTimeout(parseInt(t,10)),Un(e,cf)})),mf(e,t)},vf=function(e,t,n,r,i,o){var a=ff(r,i,o);if(a||df(e,r)){Gn(e,"position",n.position);var s=Fd(t,e),u=Pd(t,D(D({},i),{rect:s})),l=se(lf,(function(e){return u[e]}));hf(n,l)&&(Jn(e,l),a&&gf(e,r),rr(e))}else cl(e,r.classes)},_f=function(e){return{width:_r(e),height:sr(e)}},bf=function(e,t,n,r){nr(t,"max-height"),nr(t,"max-width");var i=_f(t);return Qd(t,r.preference,e,i,n,r.bounds)},yf=function(e,t){var n=t.classes;cl(e,n.off),ll(e,n.on)},xf=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},wf=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},kf=function(e,t,n){var r=Pd(n.origin,t);n.transition.each((function(i){vf(e,n.origin,r,i,t,n.lastPlacement)})),Od(e,r)},Mf=function(e,t){$d(e,t.placement)},Sf=function(e,t){ur(e,Math.floor(t))},Lf=y((function(e,t){Sf(e,t),Kn(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Cf=y((function(e,t){Sf(e,t)})),Tf=function(e,t,n){return void 0===e[t]?n:e[t]},Df=function(e,t,n,r,i,o,a,s){var u=Tf(a,"maxHeightFunction",Lf()),l=Tf(a,"maxWidthFunction",g),c=e.anchorBox,d=e.origin,f={bounds:Id(d,o),origin:d,preference:r,maxHeightFunction:u,maxWidthFunction:l,lastPlacement:i,transition:s};return Of(c,t,n,f)},Of=function(e,t,n,r){var i=bf(e,t,n,r);return kf(t,i,r),Mf(t,i),yf(t,i),xf(t,i,r),wf(t,i,r),{layout:i.layout,placement:i.placement}},Ef=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Af=function(e,t,n,r){void 0===r&&(r=1);var i=e*r,o=t*r,a=function(e){return Le(n,e).getOr([])},s=function(e,t,n){var r=ae(Ef,n);return{offset:cr(e,t),classesOn:re(n,a),classesOff:re(r,a)}};return{southeast:function(){return s(-e,t,["top","alignLeft"])},southwest:function(){return s(e,t,["top","alignRight"])},south:function(){return s(-e/2,t,["top","alignCentre"])},northeast:function(){return s(-e,-t,["bottom","alignLeft"])},northwest:function(){return s(e,-t,["bottom","alignRight"])},north:function(){return s(-e/2,-t,["bottom","alignCentre"])},east:function(){return s(e,-t/2,["valignCentre","left"])},west:function(){return s(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return s(i,o,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-i,o,["top","alignRight","inset"])},insetNorth:function(){return s(-i/2,o,["top","alignCentre","inset"])},insetSoutheast:function(){return s(i,-o,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-i,-o,["bottom","alignRight","inset"])},insetSouth:function(){return s(-i/2,-o,["bottom","alignCentre","inset"])},insetEast:function(){return s(-i,-o/2,["valignCentre","right","inset"])},insetWest:function(){return s(i,-o/2,["valignCentre","left","inset"])}}},Pf=function(){return Af(0,0,{})},Ff=x,If=function(e,t){return function(n){return"rtl"===Yf(n)?t:e}},Yf=function(e){return"rtl"===Xn(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(Nd||(Nd={}));var Rf="data-alloy-vertical-dir",Nf=function(e){return Il(e,(function(e){return ct(e)&&Bn(e,"data-alloy-vertical-dir")===Nd.BottomToTop}))},Hf=function(){return Wo("layouts",[Do("onLtr"),Do("onRtl"),zo("onBottomLtr"),zo("onBottomRtl")])},zf=function(e,t,n,r,i,o,a){var s=a.map(Nf).getOr(!1),u=t.layouts.map((function(t){return t.onLtr(e)})),l=t.layouts.map((function(t){return t.onRtl(e)})),c=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(u).getOr(i):u.getOr(n),d=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(l).getOr(o):l.getOr(r),f=If(c,d);return f(e)},jf=function(e,t,n){var r=t.hotspot,i=Fd(n,r.element),o=zf(e.element,t,Zc(),ed(),Xc(),Qc(),Y.some(t.hotspot.element));return Y.some(Ff({anchorBox:i,bubble:t.bubble.getOr(Pf()),overrides:t.overrides,layouts:o,placer:Y.none()}))},Bf=[Do("hotspot"),zo("bubble"),Go("overrides",{}),Hf(),dc("placement",jf)],Vf=function(e,t,n){var r=Yd(n,t.x,t.y),i=Jr(r.left,r.top,t.width,t.height),o=zf(e.element,t,Kc(),Jc(),Kc(),Jc(),Y.none());return Y.some(Ff({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:Y.none()}))},$f=[Do("x"),Do("y"),Go("height",0),Go("width",0),Go("bubble",Pf()),Go("overrides",{}),Hf(),dc("placement",Vf)],Uf=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Wf=function(e){return e.fold(x,(function(e,t,n){return e.translate(-t,-n)}))},qf=function(e){return e.fold(x,x)},Gf=function(e){return Q(e,(function(e,t){return e.translate(t.left,t.top)}),cr(0,0))},Kf=function(e){var t=W(e,Wf);return Gf(t)},Jf=function(e){var t=W(e,qf);return Gf(t)},Xf=Uf.screen,Qf=Uf.absolute,Zf=function(e,t,n){var r=gn(n.root).dom,i=function(t){var n=hn(t),r=hn(e.element);return ln(n,r)};return Y.from(r.frameElement).map(tt.fromDom).filter(i).map(hr)},eh=function(e,t,n){var r=hn(e.element),i=Rr(r),o=Zf(e,t,n).getOr(i);return Qf(o,i.left,i.top)},th=function(e,t,n,r){var i=Xf(cr(e,t));return Y.some(Gr(i,n,r))},nh=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point],a=Rd(r,(function(){return Jf(o)}),(function(){return Jf(o)}),(function(){return Kf(o)})),s=Kr(a.left,a.top,e.width,e.height),u=n.showAbove?Xc():Zc(),l=n.showAbove?Qc():ed(),c=zf(i,n,u,l,u,l,Y.none());return Ff({anchorBox:s,bubble:n.bubble.getOr(Pf()),overrides:n.overrides,layouts:c,placer:Y.none()})}))},rh=function(e,t,n){var r=eh(e,n,t);return t.node.filter(Yn).bind((function(i){var o=i.dom.getBoundingClientRect(),a=th(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element);return nh(a,r,t,n,s)}))},ih=[Do("node"),Do("root"),zo("bubble"),Hf(),Go("overrides",{}),Go("showAbove",!1),dc("placement",rh)],oh="\ufeff",ah=" ",sh=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},uh={create:sh},lh=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ch=function(e,t,n,r){return e.fold(t,n,r)},dh=function(e){return e.fold(x,x,x)},fh=lh.before,hh=lh.on,ph=lh.after,mh={before:fh,on:hh,after:ph,cata:ch,getStart:dh},gh=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vh=function(e){return gh.exact(e.start,e.soffset,e.finish,e.foffset)},_h=function(e){return e.match({domRange:function(e){return tt.fromDom(e.startContainer)},relative:function(e,t){return mh.getStart(e)},exact:function(e,t,n,r){return e}})},bh=gh.domRange,yh=gh.relative,xh=gh.exact,wh=function(e){var t=_h(e);return gn(t)},kh=uh.create,Mh={domRange:bh,relative:yh,exact:xh,exactFromRange:vh,getWin:wh,range:kh},Sh=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Lh=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Ch=function(e,t,n){var r=e.document.createRange();return Sh(r,t),Lh(r,n),r},Th=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},Dh=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Oh=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?Y.some(n).map(Dh):Y.none()},Eh=function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?Y.some(t).map(Dh):Y.none()},Ah=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ph=function(e,t,n){return t(tt.fromDom(n.startContainer),n.startOffset,tt.fromDom(n.endContainer),n.endOffset)},Fh=function(e,t){return t.match({domRange:function(e){return{ltr:y(e),rtl:Y.none}},relative:function(t,n){return{ltr:pt((function(){return Ch(e,t,n)})),rtl:pt((function(){return Y.some(Ch(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:pt((function(){return Th(e,t,n,r,i)})),rtl:pt((function(){return Y.some(Th(e,r,i,t,n))}))}}})},Ih=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Ah.rtl(tt.fromDom(e.endContainer),e.endOffset,tt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Ph(e,Ah.ltr,n)}))}return Ph(e,Ah.ltr,n)},Yh=function(e,t){var n=Fh(e,t);return Ih(e,n)},Rh=function(e,t){var n=Yh(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};Ah.ltr,Ah.rtl;var Nh,Hh=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?Y.from(t.dom.nodeValue):Y.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},zh=Hh(dt,"text"),jh=function(e){return zh.get(e)},Bh=function(e){return zh.getOption(e)},Vh=function(e){return"img"===st(e)?1:Bh(e).fold((function(){return xn(e).length}),(function(e){return e.length}))},$h=function(e){return Bh(e).filter((function(e){return 0!==e.trim().length||e.indexOf(ah)>-1})).isSome()},Uh=["img","br"],Wh=function(e){var t=$h(e);return t||B(Uh,st(e))},qh=function(e){return Gh(e,Wh)},Gh=function(e,t){var n=function(e){for(var r=xn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return Y.some(o);var a=n(o);if(a.isSome())return a}return Y.none()};return n(e)},Kh=function(e,t){return sn(t,e)},Jh=function(e,t,n,r){var i=hn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Xh=function(e,t,n,r){var i=Jh(e,t,n,r),o=ln(e,n)&&t===r;return i.collapsed&&!o},Qh=function(e){return Y.from(e.getSelection())},Zh=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return Y.some(uh.create(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(n.endContainer),n.endOffset))}return Y.none()},ep=function(e){if(null===e.anchorNode||null===e.focusNode)return Zh(e);var t=tt.fromDom(e.anchorNode),n=tt.fromDom(e.focusNode);return Xh(t,e.anchorOffset,n,e.focusOffset)?Y.some(uh.create(t,e.anchorOffset,n,e.focusOffset)):Zh(e)},tp=function(e){return Qh(e).filter((function(e){return e.rangeCount>0})).bind(ep)},np=function(e,t){var n=Rh(e,t);return Oh(n)},rp=function(e,t){var n=Rh(e,t);return Eh(n)},ip=function(e,t){return{element:e,offset:t}},op=function(e,t){var n=xn(e);if(0===n.length)return ip(e,t);if(t<n.length)return ip(n[t],0);var r=n[n.length-1],i=dt(r)?jh(r).length:xn(r).length;return ip(r,i)},ap=function(e,t){return dt(e)?ip(e,t):op(e,t)},sp=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return tp(e)}}));return n().map((function(e){var t=ap(e.start,e.soffset),n=ap(e.finish,e.foffset);return Mh.range(t.element,t.offset,n.element,n.offset)}))},up=function(e,t,n){var r=gn(t.root).dom,i=eh(e,n,t),o=sp(r,t).bind((function(e){var t=rp(r,Mh.exactFromRange(e)).orThunk((function(){var t=tt.fromText(oh);Cr(e.start,t);var n=np(r,Mh.exact(t,0,t,1));return Ir(t),n}));return t.bind((function(e){return th(e.left,e.top,e.width,e.height)}))})),a=sp(r,t).bind((function(e){return ct(e.start)?Y.some(e.start):_n(e.start)})),s=a.getOr(e.element);return nh(o,i,t,n,s)},lp=[zo("getSelection"),Do("root"),zo("bubble"),Hf(),Go("overrides",{}),Go("showAbove",!1),dc("placement",up)],cp="link-layout",dp=function(e){return e.x+e.width},fp=function(e,t){return e.x-t.width},hp=function(e,t){return e.y-t.height+e.height},pp=function(e){return e.y},mp=function(e,t,n){return pc(dp(e),pp(e),n.southeast(),bc(),"southeast",Oc(e,{left:0,top:2}),cp)},gp=function(e,t,n){return pc(fp(e,t),pp(e),n.southwest(),yc(),"southwest",Oc(e,{right:1,top:2}),cp)},vp=function(e,t,n){return pc(dp(e),hp(e,t),n.northeast(),xc(),"northeast",Oc(e,{left:0,bottom:3}),cp)},_p=function(e,t,n){return pc(fp(e,t),hp(e,t),n.northwest(),wc(),"northwest",Oc(e,{right:1,bottom:3}),cp)},bp=function(){return[mp,gp,vp,_p]},yp=function(){return[gp,mp,_p,vp]},xp=function(e,t,n){var r=Fd(n,t.item.element),i=zf(e.element,t,bp(),yp(),bp(),yp(),Y.none());return Y.some(Ff({anchorBox:r,bubble:Pf(),overrides:t.overrides,layouts:i,placer:Y.none()}))},wp=[Do("item"),Hf(),Go("overrides",{}),dc("placement",xp)],kp=Mo("type",{selection:lp,node:ih,hotspot:Bf,submenu:wp,makeshift:$f}),Mp=[Ho("classes",uo),Qo("mode","all",["all","layout","placement"])],Sp=[Go("useFixed",L),zo("getBounds")],Lp=[Oo("anchor",kp),Wo("transition",Mp)],Cp=function(){var e=document.documentElement;return zd(0,0,e.clientWidth,e.clientHeight)},Tp=function(e){var t=hr(e.element),n=e.element.dom.getBoundingClientRect();return Hd(t.left,t.top,n.width,n.height)},Dp=function(e,t,n,r,i,o,a){var s=Bd(n.anchorBox,t);return Df(s,i.element,n.bubble,n.layouts,o,r,n.overrides,a)},Op=function(e,t,n,r,i){Ep(e,t,n,r,i,Y.none())},Ep=function(e,t,n,r,i,o){var a=o.map(Xr);return Ap(e,t,n,r,i,a)},Ap=function(e,t,n,r,i,o){var a=wo("placement.info",Zi(Lp),i),s=a.anchor,u=r.element,l=n.get(r.uid);Cd((function(){Gn(u,"position","fixed");var i=Zn(u,"visibility");Gn(u,"visibility","hidden");var c=t.useFixed()?Cp():Tp(e),d=s.placement,f=o.map(y).or(t.getBounds);d(e,s,c).each((function(t){var i=t.placer.getOr(Dp),o=i(e,c,t,f,r,l,a.transition);n.set(r.uid,o)})),i.fold((function(){nr(u,"visibility")}),(function(e){Gn(u,"visibility",e)})),Zn(u,"left").isNone()&&Zn(u,"top").isNone()&&Zn(u,"right").isNone()&&Zn(u,"bottom").isNone()&&De(Zn(u,"position"),"fixed")&&nr(u,"position")}),u)},Pp=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Fp=function(e,t,n,r){var i=r.element;q(["position","left","right","top","bottom"],(function(e){return nr(i,e)})),Wd(i),n.clear(r.uid)},Ip=Object.freeze({__proto__:null,position:Op,positionWithin:Ep,positionWithinBounds:Ap,getMode:Pp,reset:Fp}),Yp=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return Le(e,t)},r=function(t){f(t)?delete e[t]:e={}};return Su({readState:function(){return e},clear:r,set:t,get:n})},Rp=Object.freeze({__proto__:null,init:Yp}),Np=pd({fields:Sp,name:"positioning",active:yd,apis:Ip,state:Rp}),Hp=function(e){ws(e,hs());var t=e.components();q(t,Hp)},zp=function(e){var t=e.components();q(t,zp),ws(e,fs())},jp=function(e,t){Or(e.element,t.element)},Bp=function(e){q(e.components(),(function(e){return Ir(e.element)})),Fr(e.element),e.syncComponents()},Vp=function(e,t){var n=e.components();Bp(e);var r=ae(n,t);q(r,(function(t){Hp(t),e.getSystem().removeFromWorld(t)})),q(t,(function(t){t.getSystem().isConnected()?jp(e,t):(e.getSystem().addToWorld(t),jp(e,t),Yn(e.element)&&zp(t)),e.syncComponents()}))},$p=function(e,t){Up(e,t,Or)},Up=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Yn(e.element)&&zp(t),e.syncComponents()},Wp=function(e){Hp(e),Ir(e.element),e.getSystem().removeFromWorld(e)},qp=function(e){var t=vn(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));Wp(e),t.each((function(e){e.syncComponents()}))},Gp=function(e){var t=e.components();q(t,Wp),Fr(e.element),e.syncComponents()},Kp=function(e,t){Xp(e,t,Or)},Jp=function(e,t){Xp(e,t,Tr)},Xp=function(e,t,n){n(e,t.element);var r=xn(t.element);q(r,(function(e){t.getByDom(e).each(zp)}))},Qp=function(e){var t=xn(e.element);q(t,(function(t){e.getByDom(t).each(Hp)})),Ir(e.element)},Zp=function(e,t,n,r){n.get().each((function(t){Gp(e)}));var i=t.getAttachPoint(e);$p(i,e);var o=e.getSystem().build(r);return $p(e,o),n.set(o),o},em=function(e,t,n,r){var i=Zp(e,t,n,r);return t.onOpen(e,i),i},tm=function(e,t,n,r){return n.get().map((function(){return Zp(e,t,n,r)}))},nm=function(e,t,n,r,i){lm(e,t),em(e,t,n,r),i(),dm(e,t)},rm=function(e,t,n){n.get().each((function(r){Gp(e),qp(e),t.onClose(e,r),n.clear()}))},im=function(e,t,n){return n.isOpen()},om=function(e,t,n,r){return im(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},am=function(e,t,n){return n.get()},sm=function(e,t,n,r){Zn(e.element,t).fold((function(){Un(e.element,n)}),(function(t){zn(e.element,n,t)})),Gn(e.element,t,r)},um=function(e,t,n){Vn(e.element,n).fold((function(){return nr(e.element,t)}),(function(n){return Gn(e.element,t,n)}))},lm=function(e,t,n){var r=t.getAttachPoint(e);Gn(e.element,"position",Np.getMode(r)),sm(e,"visibility",t.cloakVisibilityAttr,"hidden")},cm=function(e){return V(["top","left","right","bottom"],(function(t){return Zn(e,t).isSome()}))},dm=function(e,t,n){cm(e.element)||nr(e.element,"position"),um(e,"visibility",t.cloakVisibilityAttr)},fm=Object.freeze({__proto__:null,cloak:lm,decloak:dm,open:em,openWhileCloaked:nm,close:rm,isOpen:im,isPartOf:om,getState:am,setContent:tm}),hm=function(e,t){return Ts([As(os(),(function(n,r){rm(n,e,t)}))])},pm=Object.freeze({__proto__:null,events:hm}),mm=[sc("onOpen"),sc("onClose"),Do("isPartOf"),Do("getAttachPoint"),Go("cloakVisibilityAttr","data-precloak-visibility")],gm=function(){var e=rf(),t=y("not-implemented");return Su({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})},vm=Object.freeze({__proto__:null,init:gm}),_m=pd({fields:mm,name:"sandboxing",active:pm,apis:fm,state:vm}),bm=y("dismiss.popups"),ym=y("reposition.popups"),xm=y("mouse.released"),wm=Qi([Go("isExtraPart",L),Wo("fireEventInstead",[Go("event",ps())])]),km=function(e){var t,n=wo("Dismissal",wm,e);return t={},t[bm()]={schema:Qi([Do("target")]),onReceive:function(e,t){if(_m.isOpen(e)){var r=_m.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return _m.close(e)}),(function(t){return ws(e,t.event)}))}}},t},Mm=Qi([Wo("fireEventInstead",[Go("event",ms())]),Io("doReposition")]),Sm=function(e){var t,n=wo("Reposition",Mm,e);return t={},t[ym()]={onReceive:function(e){_m.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return ws(e,t.event)}))}},t},Lm=function(e,t,n){t.store.manager.onLoad(e,t,n)},Cm=function(e,t,n){t.store.manager.onUnload(e,t,n)},Tm=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Dm=function(e,t,n){return t.store.manager.getValue(e,t,n)},Om=function(e,t,n){return n},Em=Object.freeze({__proto__:null,onLoad:Lm,onUnload:Cm,setValue:Tm,getValue:Dm,getState:Om}),Am=function(e,t){var n=e.resetOnDom?[Bs((function(n,r){Lm(n,e,t)})),Vs((function(n,r){Cm(n,e,t)}))]:[ad(e,t,Lm)];return Ts(n)},Pm=Object.freeze({__proto__:null,events:Am}),Fm=function(){var e=ia(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return Su({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Im=function(){var e=g;return Su({readState:e})},Ym=function(){var e=ia({}),t=ia({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return Le(e.get(),n).orThunk((function(){return Le(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};q(n,(function(e){o[e.value]=e,Le(e,"meta").each((function(t){Le(t,"text").each((function(t){a[t]=e}))}))})),e.set(D(D({},r),o)),t.set(D(D({},i),a))};return Su({readState:n,lookup:i,update:o,clear:r})},Rm=function(e){return e.store.manager.state(e)},Nm=Object.freeze({__proto__:null,memory:Fm,dataset:Ym,manual:Im,init:Rm}),Hm=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},zm=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).getOrThunk((function(){return r.getFallbackEntry(i)}))},jm=function(e,t,n){var r=t.store;r.initialValue.each((function(r){Hm(e,t,n,r)}))},Bm=function(e,t,n){n.clear()},Vm=[zo("initialValue"),Do("getFallbackEntry"),Do("getDataKey"),Do("setValue"),dc("manager",{setValue:Hm,getValue:zm,onLoad:jm,onUnload:Bm,state:Ym})],$m=function(e,t,n){return t.store.getValue(e)},Um=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},Wm=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},qm=[Do("getValue"),Go("setValue",g),zo("initialValue"),dc("manager",{setValue:Um,getValue:$m,onLoad:Wm,onUnload:g,state:Mu.init})],Gm=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Km=function(e,t,n){return n.get()},Jm=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Xm=function(e,t,n){n.clear()},Qm=[zo("initialValue"),dc("manager",{setValue:Gm,getValue:Km,onLoad:Jm,onUnload:Xm,state:Fm})],Zm=[Ko("store",{mode:"memory"},Mo("mode",{memory:Qm,manual:qm,dataset:Vm})),sc("onSetValue"),Go("resetOnDom",!1)],eg=pd({fields:Zm,name:"representing",active:Pm,apis:Em,extra:{setValueFrom:function(e,t){var n=eg.getValue(t);eg.setValue(e,n)}},state:Nm}),tg=function(e,t){return ra(e,{},W(t,(function(t){return Yo(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Co("dump",x)]))},ng=function(e){return e.dump},rg=function(e,t){return D(D({},fd(t)),e.dump)},ig={field:tg,augment:rg,get:ng},og="placeholder",ag=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),sg=function(e){return Ce(e,"uiType")},ug=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?ag.single(!0,y(n)):Le(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+me(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},lg=function(e,t,n,r){return sg(n)&&n.uiType===og?ug(e,t,n,r):ag.single(!1,y(n))},cg=function(e,t,n,r){var i=lg(e,t,n,r);return i.fold((function(i,o){var a=sg(n)?o(t,n.config,n.validated):o(t),s=Le(a,"components").getOr([]),u=re(s,(function(n){return cg(e,t,n,r)}));return[D(D({},a),{components:u})]}),(function(e,r){if(sg(n)){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(x);return o(i)}return r(t)}))},dg=function(e,t,n,r){return re(n,(function(n){return cg(e,t,n,r)}))},fg=function(e,t){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},o=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:y(e),required:o,used:r,replace:i}},hg=function(e,t,n,r){var i=_e(r,(function(e,t){return fg(t,e)})),o=dg(e,t,n,i);return ve(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},pg=ag.single,mg=ag.multiple,gg=y(og),vg=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),_g=Go("factory",{sketch:x}),bg=Go("schema",[]),yg=Do("name"),xg=Lo("pname","pname",Mi((function(e){return"<alloy."+iu(e.name)+">"})),oo()),wg=Co("schema",(function(){return[zo("preprocess")]})),kg=Go("defaults",y({})),Mg=Go("overrides",y({})),Sg=Zi([_g,bg,yg,xg,kg,Mg]),Lg=Zi([_g,bg,yg,kg,Mg]),Cg=Zi([_g,bg,yg,xg,kg,Mg]),Tg=Zi([_g,wg,yg,Do("unit"),xg,kg,Mg]),Dg=function(e){return e.fold(Y.some,Y.none,Y.some,Y.some)},Og=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},Eg=function(e){return e.fold(x,x,x,x)},Ag=function(e,t){return function(n){var r=wo("Converting part type",t,n);return e(r)}},Pg=Ag(vg.required,Sg),Fg=Ag(vg.external,Lg),Ig=Ag(vg.optional,Cg),Yg=Ag(vg.group,Tg),Rg=y("entirety"),Ng=Object.freeze({__proto__:null,required:Pg,external:Fg,optional:Ig,group:Yg,asNamedPart:Dg,name:Og,asCommon:Eg,original:Rg}),Hg=function(e,t,n,r){return xi(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},zg=function(e,t,n){var r={},i={};return q(n,(function(e){e.fold((function(e){r[e.pname]=pg(!0,(function(t,n,r){return e.factory.sketch(Hg(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=y(e.factory.sketch(Hg(t,e,n[Rg()]),n))}),(function(e){r[e.pname]=pg(!1,(function(t,n,r){return e.factory.sketch(Hg(t,e,n,r))}))}),(function(e){r[e.pname]=mg(!0,(function(t,n,r){var i=t[e.name];return W(i,(function(n){return e.factory.sketch(xi(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:y(r),externals:y(i)}},jg=function(e,t){var n={};return q(t,(function(t){Dg(t).each((function(t){var r=Bg(e,t.pname);n[t.name]=function(n){var i=wo("Part: "+t.name+" in "+e,Zi(t.schema),n);return D(D({},r),{config:n,validated:i})}}))})),n},Bg=function(e,t){return{uiType:gg(),owner:e,name:t}},Vg=function(e,t,n){return{uiType:gg(),owner:e,name:t,config:n,validated:{}}},$g=function(e){return re(e,(function(e){return e.fold(Y.none,Y.some,Y.none,Y.none).map((function(e){return Ro(e.name,e.schema.concat([fc(Rg())]))})).toArray()}))},Ug=function(e){return W(e,Og)},Wg=function(e,t,n){return zg(e,t,n)},qg=function(e,t,n){return hg(Y.some(e),t,t.components,n)},Gg=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Kg=function(e,t,n){return Gg(e,t,n).getOrDie("Could not find part: "+n)},Jg=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return q(n,(function(e){r[e]=y(o.getByUid(i[e]))})),r},Xg=function(e,t){var n=e.getSystem();return _e(t.partUids,(function(e,t){return y(n.getByUid(e))}))},Qg=function(e){return me(e.partUids)},Zg=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return q(n,(function(e){r[e]=y(o.getByUid(i[e]).getOrDie())})),r},ev=function(e,t){var n=Ug(t);return pa(W(n,(function(t){return{key:t,value:e+"-"+t}})))},tv=function(e){return Lo("partUids","partUids",Ci((function(t){return ev(t.uid,e)})),oo())},nv=Object.freeze({__proto__:null,generate:jg,generateOne:Vg,schemas:$g,names:Ug,substitutes:Wg,components:qg,defaultUids:ev,defaultUidsSchema:tv,getAllParts:Xg,getAllPartNames:Qg,getPart:Gg,getPartOrDie:Kg,getParts:Jg,getPartsOrDie:Zg}),rv=function(e,t){var n=e.length>0?[Ro("parts",e)]:[];return n.concat([Do("uid"),Go("dom",{}),Go("components",[]),fc("originalSpec"),Go("debug.sketcher",{})]).concat(t)},iv=function(e,t,n,r,i){var o=rv(r,i);return wo(e+" [SpecSchema]",Qi(o.concat(t)),n)},ov=function(e,t,n,r){var i=uv(r),o=iv(e,t,i,[],[]);return n(o,i)},av=function(e,t,n,r,i){var o=uv(i),a=$g(n),s=tv(n),u=iv(e,t,o,a,[s]),l=Wg(e,u,n),c=qg(e,u,l.internals());return r(u,c,o,l.externals())},sv=function(e){return Ce(e,"uid")},uv=function(e){return sv(e)?e:D(D({},e),{uid:fu("uid")})},lv=function(e){return void 0!==e.uid},cv=Qi([Do("name"),Do("factory"),Do("configFields"),Go("apis",{}),Go("extraApis",{})]),dv=Qi([Do("name"),Do("factory"),Do("configFields"),Do("partFields"),Go("apis",{}),Go("extraApis",{})]),fv=function(e){var t=wo("Sketcher for "+e.name,cv,e),n=function(e){return ov(t.name,t.configFields,t.factory,e)},r=_e(t.apis,ku),i=_e(t.extraApis,(function(e,t){return _u(e,t)}));return D(D({name:t.name,configFields:t.configFields,sketch:n},r),i)},hv=function(e){var t=wo("Sketcher for "+e.name,dv,e),n=function(e){return av(t.name,t.configFields,t.partFields,t.factory,e)},r=jg(t.name,t.partFields),i=_e(t.apis,ku),o=_e(t.extraApis,(function(e,t){return _u(e,t)}));return D(D({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},i),o)},pv=function(e){return"input"===st(e)&&"radio"!==Bn(e,"type")||"textarea"===st(e)},mv=function(e,t,n){return t.find(e)},gv=Object.freeze({__proto__:null,getCurrent:mv}),vv=[Do("find")],_v=pd({fields:vv,name:"composing",apis:gv}),bv=["input","button","textarea","select"],yv=function(e,t,n){var r=t.disabled()?Tv:Dv;r(e,t)},xv=function(e,t){return!0===t.useNative&&B(bv,st(e.element))},wv=function(e){return $n(e.element,"disabled")},kv=function(e){zn(e.element,"disabled","disabled")},Mv=function(e){Un(e.element,"disabled")},Sv=function(e){return"true"===Bn(e.element,"aria-disabled")},Lv=function(e){zn(e.element,"aria-disabled","true")},Cv=function(e){zn(e.element,"aria-disabled","false")},Tv=function(e,t,n){t.disableClass.each((function(t){ol(e.element,t)}));var r=xv(e,t)?kv:Lv;r(e),t.onDisabled(e)},Dv=function(e,t,n){t.disableClass.each((function(t){sl(e.element,t)}));var r=xv(e,t)?Mv:Cv;r(e),t.onEnabled(e)},Ov=function(e,t){return xv(e,t)?wv(e):Sv(e)},Ev=function(e,t,n,r){var i=r?Tv:Dv;i(e,t)},Av=Object.freeze({__proto__:null,enable:Dv,disable:Tv,isDisabled:Ov,onLoad:yv,set:Ev}),Pv=function(e,t){return Ou({classes:t.disabled()?t.disableClass.toArray():[]})},Fv=function(e,t){return Ts([Ds(ts(),(function(t,n){return Ov(t,e)})),ad(e,t,yv)])},Iv=Object.freeze({__proto__:null,exhibit:Pv,events:Fv}),Yv=[ea("disabled",L),Go("useNative",!0),zo("disableClass"),sc("onDisabled"),sc("onEnabled")],Rv=pd({fields:Yv,name:"disabling",active:Iv,apis:Av}),Nv=function(e,t,n,r){var i=Kh(e.element,"."+t.highlightClass);q(i,(function(n){V(r,(function(e){return e.element===n}))||(sl(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),ws(n,xs())})))}))},Hv=function(e,t,n){return Nv(e,t,n,[])},zv=function(e,t,n,r){Wv(e,t,n,r)&&(sl(r.element,t.highlightClass),t.onDehighlight(e,r),ws(r,xs()))},jv=function(e,t,n,r){Nv(e,t,n,[r]),Wv(e,t,n,r)||(ol(r.element,t.highlightClass),t.onHighlight(e,r),ws(r,ys()))},Bv=function(e,t,n){Kv(e,t).each((function(r){jv(e,t,n,r)}))},Vv=function(e,t,n){Jv(e,t).each((function(r){jv(e,t,n,r)}))},$v=function(e,t,n,r){Gv(e,t,n,r).fold((function(e){throw e}),(function(r){jv(e,t,n,r)}))},Uv=function(e,t,n,r){var i=e_(e,t),o=ee(i,r);o.each((function(r){jv(e,t,n,r)}))},Wv=function(e,t,n,r){return ul(r.element,t.highlightClass)},qv=function(e,t,n){return Nl(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Gv=function(e,t,n,r){var i=Kh(e.element,"."+t.itemClass);return Y.from(i[r]).fold((function(){return ri.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Kv=function(e,t,n){return Nl(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Jv=function(e,t,n){var r=Kh(e.element,"."+t.itemClass),i=r.length>0?Y.some(r[r.length-1]):Y.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Xv=function(e,t,n,r){var i=Kh(e.element,"."+t.itemClass),o=te(i,(function(e){return ul(e,t.highlightClass)}));return o.bind((function(t){var n=Cc(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOptional()}))},Qv=function(e,t,n){return Xv(e,t,n,-1)},Zv=function(e,t,n){return Xv(e,t,n,1)},e_=function(e,t,n){var r=Kh(e.element,"."+t.itemClass);return Ee(W(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},t_=Object.freeze({__proto__:null,dehighlightAll:Hv,dehighlight:zv,highlight:jv,highlightFirst:Bv,highlightLast:Vv,highlightAt:$v,highlightBy:Uv,isHighlighted:Wv,getHighlighted:qv,getFirst:Kv,getLast:Jv,getPrevious:Qv,getNext:Zv,getCandidates:e_}),n_=[Do("highlightClass"),Do("itemClass"),sc("onHighlight"),sc("onDehighlight")],r_=pd({fields:n_,name:"highlighting",apis:t_}),i_=[8],o_=[9],a_=[13],s_=[27],u_=[32],l_=[37],c_=[38],d_=[39],f_=[40],h_=function(e,t,n){var r=oe(e.slice(0,t)),i=oe(e.slice(t+1));return ee(r.concat(i),n)},p_=function(e,t,n){var r=oe(e.slice(0,t));return ee(r,n)},m_=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return ee(i.concat(r),n)},g_=function(e,t,n){var r=e.slice(t+1);return ee(r,n)},v_=function(e){return function(t){var n=t.raw;return B(e,n.which)}},__=function(e){return function(t){return ie(e,(function(e){return e(t)}))}},b_=function(e){var t=e.raw;return!0===t.shiftKey},y_=function(e){var t=e.raw;return!0===t.ctrlKey},x_=M(b_),w_=function(e,t){return{matches:e,classification:t}},k_=function(e,t){var n=ee(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},M_=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return ln(t,e)}))}));r||ks(e,gs(),{prevFocus:t,newFocus:n})},S_=function(){var e=function(e){return Ld(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var i=e(t);M_(t,r,i)};return{get:e,set:t}},L_=function(){var e=function(e){return r_.getHighlighted(e).map((function(e){return e.element}))},t=function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(g,(function(e){r_.highlight(t,e)}));var i=e(t);M_(t,r,i)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Nh||(Nh={}));var C_=function(e,t,n,r,i){var o=function(){return e.concat([Go("focusManager",S_()),Ko("focusInside","onFocus",vo((function(e){return B(["onFocus","onEnterOrSpace","onApi"],e)?ri.value(e):ri.error("Invalid value for focusInside")}))),dc("handler",u),dc("state",t),dc("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return k_(o,t.event).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Nh.OnFocusMode?Y.none():i(e).map((function(n){return As(Xa(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=v_(u_.concat(a_))(r.event);e.focusInside===Nh.OnEnterOrSpaceMode&&o&&xa(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))},u=[As(za(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),As(ja(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))];return Ts(o.toArray().concat(u))},u={schema:o,processKey:a,toEvents:s};return u},T_=function(e){var t=[zo("onEscape"),zo("onEnter"),Go("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Go("firstTabstop",0),Go("useTabstopAt",C),zo("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return Hl(t,e)})).getOr(t);return ar(n)>0},r=function(e,t){var r=Kh(e.element,t.selector),i=J(r,(function(e){return n(t,e)}));return Y.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return Hl(e,t.selector)}))},o=function(e,t){return n(e,t)&&e.useTabstopAt(t)},a=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},s=function(e,t,n,r,i){return i(t,n,(function(e){return o(r,e)})).fold((function(){return r.cyclic?Y.some(!0):Y.none()}),(function(t){return r.focusManager.set(e,t),Y.some(!0)}))},u=function(e,t,n,r){var o=Kh(e.element,n.selector);return i(e,n).bind((function(t){var i=te(o,k(ln,t));return i.bind((function(t){return s(e,o,t,n,r)}))}))},l=function(e,t,n){var r=n.cyclic?h_:p_;return u(e,t,n,r)},c=function(e,t,n){var r=n.cyclic?m_:g_;return u(e,t,n,r)},d=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},f=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},h=y([w_(__([b_,v_(o_)]),l),w_(v_(o_),c),w_(v_(s_),f),w_(__([x_,v_(a_)]),d)]),p=y([]);return C_(t,Mu.init,h,p,(function(){return Y.some(a)}))},D_=T_(Co("cyclic",L)),O_=T_(Co("cyclic",C)),E_=function(e,t,n){return Ss(e,n,ts()),Y.some(!0)},A_=function(e,t,n){var r=pv(n)&&v_(u_)(t.event);return r?Y.none():E_(e,t,n)},P_=function(e,t){return Y.some(!0)},F_=[Go("execute",A_),Go("useSpace",!1),Go("useEnter",!0),Go("useControlEnter",!1),Go("useDown",!1)],I_=function(e,t,n){return n.execute(e,t,e.element)},Y_=function(e,t,n,r){var i=n.useSpace&&!pv(e.element)?u_:[],o=n.useEnter?a_:[],a=n.useDown?f_:[],s=i.concat(o).concat(a);return[w_(v_(s),I_)].concat(n.useControlEnter?[w_(__([y_,v_(a_)]),I_)]:[])},R_=function(e,t,n,r){return n.useSpace&&!pv(e.element)?[w_(v_(u_),P_)]:[]},N_=C_(F_,Mu.init,Y_,R_,(function(){return Y.none()})),H_=function(){var e=rf(),t=function(t,n){e.set({numRows:t,numColumns:n})},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return Su({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},z_=function(e){return e.state(e)},j_=Object.freeze({__proto__:null,flatgrid:H_,init:z_}),B_=function(e){return function(t,n,r,i){var o=e(t.element);return W_(o,t,n,r,i)}},V_=function(e,t){var n=If(e,t);return B_(n)},$_=function(e,t){var n=If(t,e);return B_(n)},U_=function(e){return function(t,n,r,i){return W_(e,t,n,r,i)}},W_=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},q_=U_,G_=U_,K_=U_,J_=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},X_=function(e){return!J_(e.dom)},Q_=function(e,t){return te(e,t).map((function(t){return{index:t,candidates:e}}))},Z_=function(e,t,n){var r=function(e){return ln(e,t)},i=Kh(e,n),o=J(i,X_);return Q_(o,r)},eb=function(e,t){return te(e,(function(e){return ln(t,e)}))},tb=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?Y.some(e[r]):Y.none()}))},nb=function(e,t,n,r,i){return tb(e,t,r,(function(t,o){var a=t===n-1,s=a?e.length-t*r:r,u=Cc(o,i,0,s-1);return Y.some({row:t,column:u})}))},rb=function(e,t,n,r,i){return tb(e,t,r,(function(t,o){var a=Cc(t,i,0,n-1),s=a===n-1,u=s?e.length-a*r:r,l=Tc(o,0,u-1);return Y.some({row:a,column:l})}))},ib=function(e,t,n,r){return nb(e,t,n,r,1)},ob=function(e,t,n,r){return nb(e,t,n,r,-1)},ab=function(e,t,n,r){return rb(e,t,n,r,-1)},sb=function(e,t,n,r){return rb(e,t,n,r,1)},ub=[Do("selector"),Go("execute",A_),uc("onEscape"),Go("captureTab",!1),hc()],lb=function(e,t,n){Nl(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},cb=function(e,t){return t.focusManager.get(e).bind((function(e){return Hl(e,t.selector)}))},db=function(e,t,n,r){return cb(e,n).bind((function(r){return n.execute(e,t,r)}))},fb=function(e){return function(t,n,r,i){return Z_(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},hb=function(e,t,n){return n.captureTab?Y.some(!0):Y.none()},pb=function(e,t,n){return n.onEscape(e,t)},mb=fb(ob),gb=fb(ib),vb=fb(ab),_b=fb(sb),bb=y([w_(v_(l_),V_(mb,gb)),w_(v_(d_),$_(mb,gb)),w_(v_(c_),q_(vb)),w_(v_(f_),G_(_b)),w_(__([b_,v_(o_)]),hb),w_(__([x_,v_(o_)]),hb),w_(v_(s_),pb),w_(v_(u_.concat(a_)),db)]),yb=y([w_(v_(u_),P_)]),xb=C_(ub,H_,bb,yb,(function(){return Y.some(lb)})),wb=function(e,t,n,r){var i=function(e){return"button"===st(e)&&"disabled"===Bn(e,"disabled")},o=function(e,t,n){var a=Cc(t,r,0,n.length-1);return a===e?Y.none():i(n[a])?o(e,a,n):Y.from(n[a])};return Z_(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))},kb=[Do("selector"),Go("getInitial",Y.none),Go("execute",A_),uc("onEscape"),Go("executeOnMove",!1),Go("allowVertical",!0)],Mb=function(e,t){return t.focusManager.get(e).bind((function(e){return Hl(e,t.selector)}))},Sb=function(e,t,n){return Mb(e,n).bind((function(r){return n.execute(e,t,r)}))},Lb=function(e,t,n){t.getInitial(e).orThunk((function(){return Nl(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},Cb=function(e,t,n){return wb(e,n.selector,t,-1)},Tb=function(e,t,n){return wb(e,n.selector,t,1)},Db=function(e){return function(t,n,r,i){return e(t,n,r,i).bind((function(){return r.executeOnMove?Sb(t,n,r):Y.some(!0)}))}},Ob=function(e,t,n){return n.onEscape(e,t)},Eb=function(e,t,n,r){var i=l_.concat(n.allowVertical?c_:[]),o=d_.concat(n.allowVertical?f_:[]);return[w_(v_(i),Db(V_(Cb,Tb))),w_(v_(o),Db($_(Cb,Tb))),w_(v_(a_),Sb),w_(v_(u_),Sb),w_(v_(s_),Ob)]},Ab=y([w_(v_(u_),P_)]),Pb=C_(kb,Mu.init,Eb,Ab,(function(){return Y.some(Lb)})),Fb=function(e,t,n){return Y.from(e[t]).bind((function(e){return Y.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},Ib=function(e,t,n,r){var i=e[t],o=i.length,a=Cc(n,r,0,o-1);return Fb(e,t,a)},Yb=function(e,t,n,r){var i=Cc(n,r,0,e.length-1),o=e[i].length,a=Tc(t,0,o-1);return Fb(e,i,a)},Rb=function(e,t,n,r){var i=e[t],o=i.length,a=Tc(n+r,0,o-1);return Fb(e,t,a)},Nb=function(e,t,n,r){var i=Tc(n+r,0,e.length-1),o=e[i].length,a=Tc(t,0,o-1);return Fb(e,i,a)},Hb=function(e,t,n){return Ib(e,t,n,1)},zb=function(e,t,n){return Ib(e,t,n,-1)},jb=function(e,t,n){return Yb(e,n,t,-1)},Bb=function(e,t,n){return Yb(e,n,t,1)},Vb=function(e,t,n){return Rb(e,t,n,-1)},$b=function(e,t,n){return Rb(e,t,n,1)},Ub=function(e,t,n){return Nb(e,n,t,-1)},Wb=function(e,t,n){return Nb(e,n,t,1)},qb=[Ro("selectors",[Do("row"),Do("cell")]),Go("cycles",!0),Go("previousSelector",Y.none),Go("execute",A_)],Gb=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Nl(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Kb=function(e,t,n){return Ld(e.element).bind((function(r){return n.execute(e,t,r)}))},Jb=function(e,t){return W(e,(function(e){return Kh(e,t.selectors.cell)}))},Xb=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return Hl(r,i.selectors.row).bind((function(e){var t=Kh(e,i.selectors.cell);return eb(t,r).bind((function(t){var r=Kh(n,i.selectors.row);return eb(r,e).bind((function(e){var n=Jb(r,i);return o(n,e,t).map((function(e){return e.cell}))}))}))}))}},Qb=Xb(zb,Vb),Zb=Xb(Hb,$b),ey=Xb(jb,Ub),ty=Xb(Bb,Wb),ny=y([w_(v_(l_),V_(Qb,Zb)),w_(v_(d_),$_(Qb,Zb)),w_(v_(c_),q_(ey)),w_(v_(f_),G_(ty)),w_(v_(u_.concat(a_)),Kb)]),ry=y([w_(v_(u_),P_)]),iy=C_(qb,Mu.init,ny,ry,(function(){return Y.some(Gb)})),oy=[Do("selector"),Go("execute",A_),Go("moveOnTab",!1)],ay=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},sy=function(e,t,n){Nl(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},uy=function(e,t,n){return wb(e,n.selector,t,-1)},ly=function(e,t,n){return wb(e,n.selector,t,1)},cy=function(e,t,n,r){return n.moveOnTab?K_(uy)(e,t,n,r):Y.none()},dy=function(e,t,n,r){return n.moveOnTab?K_(ly)(e,t,n,r):Y.none()},fy=y([w_(v_(c_),K_(uy)),w_(v_(f_),K_(ly)),w_(__([b_,v_(o_)]),cy),w_(__([x_,v_(o_)]),dy),w_(v_(a_),ay),w_(v_(u_),ay)]),hy=y([w_(v_(u_),P_)]),py=C_(oy,Mu.init,fy,hy,(function(){return Y.some(sy)})),my=[uc("onSpace"),uc("onEnter"),uc("onShiftEnter"),uc("onLeft"),uc("onRight"),uc("onTab"),uc("onShiftTab"),uc("onUp"),uc("onDown"),uc("onEscape"),Go("stopSpaceKeyup",!1),zo("focusIn")],gy=function(e,t,n){return[w_(v_(u_),n.onSpace),w_(__([x_,v_(a_)]),n.onEnter),w_(__([b_,v_(a_)]),n.onShiftEnter),w_(__([b_,v_(o_)]),n.onShiftTab),w_(__([x_,v_(o_)]),n.onTab),w_(v_(c_),n.onUp),w_(v_(f_),n.onDown),w_(v_(l_),n.onLeft),w_(v_(d_),n.onRight),w_(v_(u_),n.onSpace),w_(v_(s_),n.onEscape)]},vy=function(e,t,n){return n.stopSpaceKeyup?[w_(v_(u_),P_)]:[]},_y=C_(my,Mu.init,gy,vy,(function(e){return e.focusIn})),by=D_.schema(),yy=O_.schema(),xy=Pb.schema(),wy=xb.schema(),ky=iy.schema(),My=N_.schema(),Sy=py.schema(),Ly=_y.schema(),Cy=Object.freeze({__proto__:null,acyclic:by,cyclic:yy,flow:xy,flatgrid:wy,matrix:ky,execution:My,menu:Sy,special:Ly}),Ty=function(e){return Te(e,"setGridSize")},Dy=gd({branchKey:"mode",branches:Cy,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,i){Ty(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:j_}),Oy=function(e,t,n,r){Cd((function(){var t=W(r,e.getSystem().build);Vp(e,t)}),e.element)},Ey=function(e,t,n,r){var i=e.getSystem().build(r);Up(e,i,n)},Ay=function(e,t,n,r){Ey(e,t,Or,r)},Py=function(e,t,n,r){Ey(e,t,Dr,r)},Fy=function(e,t,n,r){var i=Iy(e),o=ee(i,(function(e){return ln(r.element,e.element)}));o.each(qp)},Iy=function(e,t){return e.components()},Yy=function(e,t,n,r,i){var o=Iy(e);return Y.from(o[r]).map((function(o){return Fy(e,t,n,o),i.each((function(n){Ey(e,t,(function(e,t){Er(e,t,r)}),n)})),o}))},Ry=function(e,t,n,r,i){var o=Iy(e);return te(o,r).bind((function(r){return Yy(e,t,n,r,i)}))},Ny=Object.freeze({__proto__:null,append:Ay,prepend:Py,remove:Fy,replaceAt:Yy,replaceBy:Ry,set:Oy,contents:Iy}),Hy=pd({fields:[],name:"replacing",apis:Ny}),zy=function(e,t){var n=Ts(t);return pd({fields:[Do("enabled")],name:e,active:{events:y(n)}})},jy=function(e,t){var n=zy(e,t);return{key:e,value:{config:{},me:n,configAsRaw:y({}),initialConfig:{},state:Mu}}},By=function(e,t){t.ignore||(wd(e.element),t.onFocus(e))},Vy=function(e,t){t.ignore||kd(e.element)},$y=function(e){return Md(e.element)},Uy=Object.freeze({__proto__:null,focus:By,blur:Vy,isFocused:$y}),Wy=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return Ou(n)},qy=function(e){return Ts([As(Xa(),(function(t,n){By(t,e),n.stop()}))].concat(e.stopMousedown?[As(Pa(),(function(e,t){t.event.prevent()}))]:[]))},Gy=Object.freeze({__proto__:null,exhibit:Wy,events:qy}),Ky=[sc("onFocus"),Go("stopMousedown",!1),Go("ignore",!1)],Jy=pd({fields:Ky,name:"focusing",active:Gy,apis:Uy}),Xy=function(e){var t=function(){var t=ia(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Qy=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Zy=function(e,t,n){t.toggleClass.each((function(t){n.get()?ol(e.element,t):sl(e.element,t)}))},ex=function(e,t,n){rx(e,t,n,!n.get())},tx=function(e,t,n){n.set(!0),Zy(e,t,n),Qy(e,t,n)},nx=function(e,t,n){n.set(!1),Zy(e,t,n),Qy(e,t,n)},rx=function(e,t,n,r){var i=r?tx:nx;i(e,t,n)},ix=function(e,t,n){return n.get()},ox=function(e,t,n){rx(e,t,n,t.selected)},ax=Object.freeze({__proto__:null,onLoad:ox,toggle:ex,isOn:ix,on:tx,off:nx,set:rx}),sx=function(){return Ou({})},ux=function(e,t){var n=od(e,t,ex),r=ad(e,t,ox);return Ts(ne([e.toggleOnExecute?[n]:[],[r]]))},lx=Object.freeze({__proto__:null,exhibit:sx,events:ux}),cx=function(e,t,n){zn(e.element,"aria-pressed",n),t.syncWithExpanded&&hx(e,t,n)},dx=function(e,t,n){zn(e.element,"aria-selected",n)},fx=function(e,t,n){zn(e.element,"aria-checked",n)},hx=function(e,t,n){zn(e.element,"aria-expanded",n)},px=[Go("selected",!1),zo("toggleClass"),Go("toggleOnExecute",!0),Ko("aria",{mode:"none"},Mo("mode",{pressed:[Go("syncWithExpanded",!1),dc("update",cx)],checked:[dc("update",fx)],expanded:[dc("update",hx)],selected:[dc("update",dx)],none:[dc("update",g)]}))],mx=pd({fields:px,name:"toggling",active:lx,apis:ax,state:Xy(!1)}),gx=function(){var e=function(e,t){t.stop(),Ms(e)};return[As($a(),e),As(rs(),e),Hs(Da()),Hs(Pa())]},vx=function(e){var t=function(e){return Us((function(t,n){e(t),n.stop()}))};return Ts(ne([e.map(t).toArray(),gx()]))},_x="alloy.item-hover",bx="alloy.item-focus",yx=function(e){(Ld(e.element).isNone()||Jy.isFocused(e))&&(Jy.isFocused(e)||Jy.focus(e),ks(e,_x,{item:e}))},xx=function(e){ks(e,bx,{item:e})},wx=y(_x),kx=y(bx),Mx=function(e){return{dom:e.dom,domModification:D(D({},e.domModification),{attributes:D(D(D({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:ig.augment(e.itemBehaviours,[e.toggling.fold(mx.revoke,(function(e){return mx.config(D({aria:{mode:"checked"}},e))})),Jy.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){xx(e)}}),Dy.config({mode:"execution"}),eg.config({store:{mode:"memory",initialValue:e.data}}),jy("item-type-events",E(E([],gx(),!0),[As(Ra(),yx),As(ns(),Jy.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}},Sx=[Do("data"),Do("components"),Do("dom"),Go("hasSubmenu",!1),zo("toggling"),ig.field("itemBehaviours",[mx,Jy,Dy,eg]),Go("ignoreFocus",!1),Go("domModification",{}),dc("builder",Mx),Go("eventOrder",{})],Lx=function(e){return{dom:e.dom,components:e.components,events:Ts([zs(ns())])}},Cx=[Do("dom"),Do("components"),dc("builder",Lx)],Tx=y("item-widget"),Dx=y([Pg({name:"widget",overrides:function(e){return{behaviours:fd([eg.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:g}})])}}})]),Ox=function(e){var t=Wg(Tx(),e,Dx()),n=qg(Tx(),e,t.internals()),r=function(t){return Gg(t,e,"widget").map((function(e){return Dy.focusIn(e),e}))},i=function(t,n){return pv(n.event.target)?Y.none():function(){return e.autofocus?(n.setSource(t.element),Y.none()):Y.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:Ts([Us((function(e,t){r(e).each((function(e){t.stop()}))})),As(Ra(),yx),As(ns(),(function(t,n){e.autofocus?r(t):Jy.focus(t)}))]),behaviours:ig.augment(e.widgetBehaviours,[eg.config({store:{mode:"memory",initialValue:e.data}}),Jy.config({ignore:e.ignoreFocus,onFocus:function(e){xx(e)}}),Dy.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:vd(),onLeft:i,onRight:i,onEscape:function(t,n){return Jy.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),Y.none()):Y.none():(Jy.focus(t),Y.some(!0))}})])}},Ex=[Do("uid"),Do("data"),Do("components"),Do("dom"),Go("autofocus",!1),Go("ignoreFocus",!1),ig.field("widgetBehaviours",[eg,Jy,Dy]),Go("domModification",{}),tv(Dx()),dc("builder",Ox)],Ax=Mo("type",{widget:Ex,item:Sx,separator:Cx}),Px=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},Fx=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},Ix=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},Yx=y([Yg({factory:{sketch:function(e){var t=wo("menu.spec item",Ax,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Ce(t,"uid")?t:D(D({},t),{uid:fu("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),Rx=y([Do("value"),Do("items"),Do("dom"),Do("components"),Go("eventOrder",{}),tg("menuBehaviours",[r_,eg,_v,Dy]),Ko("movement",{mode:"menu",moveOnTab:!0},Mo("mode",{grid:[hc(),dc("config",Px)],matrix:[dc("config",Fx),Do("rowSelector")],menu:[Go("moveOnTab",!0),dc("config",Ix)]})),rc(),Go("fakeFocus",!1),Go("focusManager",S_()),sc("onHighlight")]),Nx=y("alloy.menu-focus"),Hx=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rg(e.menuBehaviours,[r_.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),eg.config({store:{mode:"memory",initialValue:e.value}}),_v.config({find:Y.some}),Dy.config(e.movement.config(e,e.movement))]),events:Ts([As(kx(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){r_.highlight(e,n),t.stop(),ks(e,Nx(),{menu:e,item:n})}))})),As(wx(),(function(e,t){var n=t.event.item;r_.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},zx=hv({name:"Menu",configFields:Rx(),partFields:Yx(),factory:Hx}),jx=function(e){return be(e,(function(e,t){return{k:e,v:t}}))},Bx=function(e,t,n,r){return Le(n,r).bind((function(r){return Le(e,r).bind((function(r){var i=Bx(e,t,n,r);return Y.some([r].concat(i))}))})).getOr([])},Vx=function(e,t){var n={};ve(e,(function(e,t){q(e,(function(e){n[e]=t}))}));var r=t,i=jx(t),o=_e(i,(function(e,t){return[t].concat(Bx(n,r,i,t))}));return _e(n,(function(e){return Le(o,e).getOr([e])}))},$x=function(){var e=ia({}),t=ia({}),n=ia({}),r=rf(),i=ia({}),o=function(){e.set({}),t.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(D(D({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},u=function(o,a,s,u){r.set(o),e.set(s),t.set(a),i.set(u);var l=Vx(u,s);n.set(l)},l=function(t){return Me(e.get(),(function(e,n){return e===t}))},c=function(e,t,n){return m(e).bind((function(r){return l(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},d=function(e,t){var i=J(v(e).toArray(),(function(e){return m(e).isSome()}));return Le(n.get(),e).bind((function(e){var n=oe(i.concat(e)),o=re(n,(function(e,i){return c(e,t,n.slice(0,i+1)).fold((function(){return De(r.get(),e)?[]:[Y.none()]}),(function(e){return[Y.some(e)]}))}));return Ae(o)}))},f=function(t){return Le(e.get(),t).map((function(e){var r=Le(n.get(),t).getOr([]);return[e].concat(r)}))},h=function(e){return Le(n.get(),e).bind((function(e){return e.length>1?Y.some(e.slice(1)):Y.none()}))},p=function(e){return Le(n.get(),e)},m=function(e){return g(e).bind(Ux)},g=function(e){return Le(t.get(),e)},v=function(t){return Le(e.get(),t)},_=function(e){var t=i.get();return ae(me(t),e)},b=function(){return r.get().bind(m)},y=function(){return t.get()};return{setMenuBuilt:s,setContents:u,expand:f,refresh:p,collapse:h,lookupMenu:g,lookupItem:v,otherMenus:_,getPrimary:b,getMenus:y,clear:o,isClear:a,getTriggeringPath:d}},Ux=function(e){return"prepared"===e.type?Y.some(e.menu):Y.none()},Wx={init:$x,extractPreparedMenu:Ux},qx=function(e,t){var n,r=rf(),i=function(t,n,r){return _e(r,(function(r,i){var o=function(){return zx.sketch(D(D({},r),{value:i,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?L_():S_()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=Wx.init(),a=function(t){var n=i(t,e.data.primary,e.data.menus),r=l();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()},s=function(e){return eg.getValue(e).value},u=function(e,t,n){return pe(t,(function(e){if(!e.getSystem().isConnected())return Y.none();var t=r_.getCandidates(e);return ee(t,(function(e){return s(e)===n}))}))},l=function(t){return _e(e.data.menus,(function(e,t){return re(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},c=function(e,t){r_.highlight(e,t),r_.getHighlighted(t).orThunk((function(){return r_.getFirst(t)})).each((function(t){Ss(e,t.element,ns())}))},d=function(e,t){return Ee(W(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?Y.some(e.menu):Y.none()}))})))},f=function(t,n,r){var i=d(n,n.otherMenus(r));q(i,(function(n){cl(n.element,[e.markers.backgroundMenu]),e.stayInDom||Hy.remove(t,n)}))},h=function(t){return r.get().getOrThunk((function(){var n={},i=Kh(t.element,"."+e.markers.item),o=J(i,(function(e){return"true"===Bn(e,"aria-haspopup")}));return q(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=s(e);n[t]=e}))})),r.set(n),n}))},p=function(e,t){var n=h(e);ve(n,(function(e,n){var r=B(t,n);zn(e.element,"aria-expanded",r)}))},m=function(t,n,r){return Y.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return Y.none();var o=i.menu,a=d(n,r.slice(1));return q(a,(function(t){ol(t.element,e.markers.backgroundMenu)})),Yn(o.element)||Hy.append(t,Tl(o)),cl(o.element,[e.markers.backgroundMenu]),c(t,o),f(t,n,r),Y.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu},_=function(t,r,i){if(void 0===i&&(i=n.HighlightSubmenu),r.hasConfigured(Rv)&&Rv.isDisabled(r))return Y.some(r);var a=s(r);return o.expand(a).bind((function(a){return p(t,a),Y.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(u){var l=v(t,s,u);return Yn(l.element)||Hy.append(t,Tl(l)),e.onOpenSubmenu(t,r,l,oe(a)),i===n.HighlightSubmenu?(r_.highlightFirst(l),m(t,o,a)):(r_.dehighlightAll(l),Y.some(r))}))}))}))},b=function(t,n){var r=s(n);return o.collapse(r).bind((function(r){return p(t,r),m(t,o,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},y=function(e,t){var n=s(t);return o.refresh(n).bind((function(t){return p(e,t),m(e,o,t)}))},x=function(e,t){return pv(t.element)?Y.none():_(e,t,n.HighlightSubmenu)},w=function(e,t){return pv(t.element)?Y.none():b(e,t)},k=function(t,n){return b(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},M=function(t){return function(n,r){return Hl(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(C)}))}))}},S=Ts([As(Nx(),(function(e,t){var n=t.event.item;o.lookupItem(s(n)).each((function(){var n=t.event.menu;r_.highlight(e,n);var r=s(t.event.item);o.refresh(r).each((function(t){return f(e,o,t)}))}))})),Us((function(t,r){var i=r.event.target;t.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&b(t,r),_(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),g)}))})),Bs((function(t,n){a(t).each((function(n){Hy.append(t,Tl(n)),e.onOpenMenu(t,n),e.highlightImmediately&&c(t,n)}))}))].concat(e.navigateOnHover?[As(wx(),(function(t,r){var i=r.event.item;y(t,i),_(t,i,n.HighlightParent),e.onHover(t,i)}))]:[])),L=function(e){return r_.getHighlighted(e).bind(r_.getHighlighted)},T=function(e){L(e).each((function(t){b(e,t)}))},O=function(e){o.getPrimary().each((function(t){c(e,t)}))},E=function(e){return Y.from(e.components()[0]).filter((function(e){return"menu"===Bn(e.element,"role")}))},A=function(t){var n=o.getPrimary().bind((function(e){return L(t).bind((function(e){var n=s(e),r=Se(o.getMenus()),i=Ee(W(r,Wx.extractPreparedMenu));return o.getTriggeringPath(n,(function(e){return u(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){E(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},P={collapseMenu:T,highlightPrimary:O,repositionMenus:A};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rg(e.tmenuBehaviours,[Dy.config({mode:"special",onRight:M(x),onLeft:M(w),onEscape:M(k),focusIn:function(e,t){o.getPrimary().each((function(t){Ss(e,t.element,ns())}))}}),r_.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),_v.config({find:function(e){return r_.getHighlighted(e)}}),Hy.config({})]),eventOrder:e.eventOrder,apis:P,events:S}},Gx=y("collapse-item"),Kx=function(e,t,n){return{primary:e,menus:t,expansions:n}},Jx=function(e,t){return{primary:e,menus:ha(e,t),expansions:{}}},Xx=function(e){return{value:iu(Gx()),meta:{text:e}}},Qx=fv({name:"TieredMenu",configFields:[cc("onExecute"),cc("onEscape"),lc("onOpenMenu"),lc("onOpenSubmenu"),sc("onRepositionMenu"),sc("onCollapseMenu"),Go("highlightImmediately",!0),Ro("data",[Do("primary"),Do("menus"),Do("expansions")]),Go("fakeFocus",!1),sc("onHighlight"),sc("onHover"),ic(),Do("dom"),Go("navigateOnHover",!0),Go("stayInDom",!1),tg("tmenuBehaviours",[Dy,r_,_v,Hy]),Go("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:qx,extraApis:{tieredData:Kx,singleData:Jx,collapseItem:Xx}}),Zx=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Zc()},onRtl:function(){return ed()}}}:{},s=function(e){return 2===e.length},u=function(e){return s(e)?a:{}};return Qx.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return _m.close(t),e.onEscape.map((function(e){return e(t)})),Y.some(!0)},onExecute:function(){return Y.some(!0)},onOpenMenu:function(e,t){Np.positionWithinBounds(o().getOrDie(),t,n,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Np.position(i,n,{anchor:D({type:"submenu",item:t},u(r))})},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Np.positionWithinBounds(a,t,n,i()),q(r,(function(e){var t=u(e.triggeringPath);Np.position(a,e.triggeredMenu,{anchor:D({type:"submenu",item:e.triggeringItem},t)})}))}})},ew=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Vl(e,n)}))},r=function(e,t){_m.setContent(e,t)},i=function(e,t,n){o(e,t,n,Y.none())},o=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return Xr(e)}))}))},a=function(t,n,r,i){var o=e.lazySink(t).getOrDie();_m.openWhileCloaked(t,n,(function(){return Np.positionWithinBounds(o,t,r,i())})),eg.setValue(t,Y.some({mode:"position",config:r,getBounds:i}))},s=function(e,t,n){u(e,t,n,Y.none)},u=function(t,n,r,i){var o=Zx(e,t,n,r,i);_m.open(t,o),eg.setValue(t,Y.some({mode:"menu",menu:o}))},l=function(e){_m.isOpen(e)&&(eg.setValue(e,Y.none()),_m.close(e))},c=function(e){return _m.getState(e)},d=function(t){_m.isOpen(t)&&eg.getValue(t).each((function(n){switch(n.mode){case"menu":_m.getState(t).each(Qx.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();Np.positionWithinBounds(r,t,n.config,n.getBounds());break}}))},f={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:u,hide:l,getContent:c,reposition:d,isOpen:_m.isOpen};return{uid:e.uid,dom:e.dom,behaviours:rg(e.inlineBehaviours,[_m.config({isPartOf:function(e,t,r){return Vl(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),eg.config({store:{mode:"memory",initialValue:Y.none()}}),_d.config({channels:D(D({},km(D({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Sm(D(D({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:d})))})]),eventOrder:e.eventOrder,apis:f}},tw=fv({name:"InlineView",configFields:[Do("lazySink"),sc("onShow"),sc("onHide"),$o("onEscape"),tg("inlineBehaviours",[_m,eg,_d]),Wo("fireDismissalEventInstead",[Go("event",ps())]),Wo("fireRepositionEventInstead",[Go("event",ms())]),Go("getRelated",Y.none),Go("isExtraPart",L),Go("eventOrder",Y.none)],factory:ew,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),nw="layout-inset",rw=function(e){return e.x},iw=function(e,t){return e.x+e.width/2-t.width/2},ow=function(e,t){return e.x+e.width-t.width},aw=function(e){return e.y},sw=function(e,t){return e.y+e.height-t.height},uw=function(e,t){return e.y+e.height/2-t.height/2},lw=function(e,t,n){return pc(ow(e,t),sw(e,t),n.insetSouthwest(),wc(),"southwest",Oc(e,{right:0,bottom:3}),nw)},cw=function(e,t,n){return pc(rw(e),sw(e,t),n.insetSoutheast(),xc(),"southeast",Oc(e,{left:1,bottom:3}),nw)},dw=function(e,t,n){return pc(ow(e,t),aw(e),n.insetNorthwest(),yc(),"northwest",Oc(e,{right:0,top:2}),nw)},fw=function(e,t,n){return pc(rw(e),aw(e),n.insetNortheast(),bc(),"northeast",Oc(e,{left:1,top:2}),nw)},hw=function(e,t,n){return pc(iw(e,t),aw(e),n.insetNorth(),kc(),"north",Oc(e,{top:2}),nw)},pw=function(e,t,n){return pc(iw(e,t),sw(e,t),n.insetSouth(),Mc(),"south",Oc(e,{bottom:3}),nw)},mw=function(e,t,n){return pc(ow(e,t),uw(e,t),n.insetEast(),Lc(),"east",Oc(e,{right:0}),nw)},gw=function(e,t,n){return pc(rw(e),uw(e,t),n.insetWest(),Sc(),"west",Oc(e,{left:1}),nw)},vw=function(e){switch(e){case"north":return hw;case"northeast":return fw;case"northwest":return dw;case"south":return pw;case"southeast":return cw;case"southwest":return lw;case"east":return mw;case"west":return gw}},_w=function(e,t,n,r,i){var o=Ud(r).map(vw).getOr(hw);return o(e,t,n,r,i)},bw=function(e){switch(e){case"north":return pw;case"northeast":return cw;case"northwest":return lw;case"south":return hw;case"southeast":return fw;case"southwest":return dw;case"east":return gw;case"west":return mw}},yw=function(e,t,n,r,i){var o=Ud(r).map(bw).getOr(hw);return o(e,t,n,r,i)},xw=tinymce.util.Tools.resolve("tinymce.util.Delay"),ww=function(e){var t=vx(e.action),n=e.dom.tag,r=function(t){return Le(e.dom,"attributes").bind((function(e){return Le(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return D({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:ig.augment(e.buttonBehaviours,[Jy.config({}),Dy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},kw=fv({name:"Button",factory:ww,configFields:[Go("uid",void 0),Do("dom"),Go("components",[]),ig.field("buttonBehaviours",[Jy,Dy]),zo("action"),zo("role"),Go("eventOrder",{})]}),Mw=function(e){var t=lv(e)&&Te(e,"uid")?e.uid:fu("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},i=function(){return D(D({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}},Sw=tinymce.util.Tools.resolve("tinymce.util.I18n"),Lw={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Cw="temporary-placeholder",Tw=function(e){return function(){return Le(e,Cw).getOr("!not found!")}},Dw=function(e,t){var n=e.toLowerCase();if(Sw.isRtl()){var r=je(n,"-rtl");return Ce(t,r)?r:n}return n},Ow=function(e,t){return Le(t,Dw(e,t))},Ew=function(e,t){var n=t();return Ow(e,n).getOrThunk(Tw(n))},Aw=function(e,t,n){var r=t();return Ow(e,r).or(n).getOrThunk(Tw(r))},Pw=function(e){return!!Sw.isRtl()&&Ce(Lw,e)},Fw=function(){return jy("add-focusable",[Bs((function(e){Rl(e.element,"svg").each((function(e){return zn(e,"focusable","false")}))}))])},Iw=function(e,t,n,r){var i,o,a=Pw(t)?["tox-icon--flip"]:[],s=Le(n,Dw(t,n)).or(r).getOrThunk(Tw(n));return{dom:{tag:e.tag,attributes:null!==(i=e.attributes)&&void 0!==i?i:{},classes:e.classes.concat(a),innerHtml:s},behaviours:fd(E(E([],null!==(o=e.behaviours)&&void 0!==o?o:[],!0),[Fw()],!1))}},Yw=function(e,t,n,r){return void 0===r&&(r=Y.none()),Iw(t,e,n(),r)},Rw=function(e,t,n){var r=n(),i=ee(e,(function(e){return Ce(r,Dw(e,r))}));return Iw(t,i.getOr(Cw),r,Y.none())},Nw={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},Hw=function(e){var t=Mw({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:fd([Hy.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=Mw({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:fd([Hy.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){Hy.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);Hy.set(r,[kl(n)])}},s={updateProgress:o,updateText:a},u=ne([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return Y.from(Nw[e])})).toArray()]),l=Mw(kw.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Yw("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),c=Rw(u,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),d={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:fd([Hy.config({})])},f=[c,d];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:fd([Jy.config({}),jy("notification-events",[As(Na(),(function(e){l.getOpt(e).each(Jy.focus)}))])]),components:f.concat(e.progress?[i.asSpec()]:[]).concat(e.closeButton?[l.asSpec()]:[]),apis:s}},zw=fv({name:"Notification",factory:Hw,configFields:[zo("level"),Do("progress"),Do("icon"),Do("onAction"),Do("text"),Do("iconProvider"),Do("translationProvider"),Zo("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function jw(e,t,n){var r=t.backstage.shared,i=function(e){switch(e){case"bc-bc":return pw;case"tc-tc":return hw;case"tc-bc":return Uc;case"bc-tc":default:return Wc}},o=function(e){e.length>0&&q(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},a=function(t,o){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),s=function(){o(),tw.hide(l)},u=Cl(zw.sketch({text:t.text,level:B(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:Y.from(t.icon),closeButton:!a,onAction:s,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),l=Cl(tw.sketch(D({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(l),t.timeout>0&&xw.setTimeout((function(){s()}),t.timeout);var c=function(){var t=Xr(tt.fromDom(e.getContentAreaContainer())),n=Zr(),r=Tc(n.x,t.x,t.right),i=Tc(n.y,t.y,t.bottom),o=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return Y.some(Jr(r,i,o-r,a-i))};return{close:s,moveTo:function(e,t){tw.showAt(l,Tl(u),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Tl(u),o={maxHeightFunction:Cf()};if("banner"!==t&&f(e)){var a=i(t),s={type:"node",root:Rn(),node:Y.some(tt.fromDom(e)),overrides:o,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};tw.showWithinBounds(l,n,{anchor:s},c)}else{var d=D(D({},r.anchors.banner()),{overrides:o});tw.showWithinBounds(l,n,{anchor:d},c)}},text:function(e){zw.updateText(u,e)},settings:t,getEl:function(){return u.element.dom},progressBar:{value:function(e){zw.updateProgress(u,e)}}}},s=function(e){e.close()},u=function(e){return e.settings};return{open:a,close:s,reposition:o,getArgs:u}}var Bw,Vw=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];u(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},$w=function(e,t){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Uw=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),Ww=function(e,t){return e.isBlock(t)||B(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},qw=function(e,t,n,r,i){var o=Uw(e,(function(t){return Ww(e,t)}));return Y.from(o.backwards(t,n,r,i))},Gw="[data-mce-autocompleter]",Kw=function(e,t){return Jw(tt.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return Or(n,tt.fromDom(t.extractContents())),t.insertNode(n.dom),vn(n).each((function(e){return e.dom.normalize()})),qh(n).map((function(t){e.selection.setCursorLocation(t.dom,Vh(t))})),n}))},Jw=function(e){return Hl(e,Gw)},Xw=function(e){return e.collapsed&&3===e.startContainer.nodeType},Qw=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},Zw=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},ek=function(e,t){return e.substring(t.length)},tk=function(e,t,n){var r;for(r=t-1;r>=0;r--){var i=e.charAt(r);if(Zw(i))return Y.none();if(i===n)break}return Y.some(r)},nk=function(e,t,n,r){if(void 0===r&&(r=0),!Xw(t))return Y.none();var i=function(e,t,r){return tk(r,t,n).getOr(t)},o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return qw(e,t.startContainer,t.startOffset,i,o).bind((function(e){var i=t.cloneRange();if(i.setStart(e.container,e.offset),i.setEnd(t.endContainer,t.endOffset),i.collapsed)return Y.none();var o=Qw(i),a=o.lastIndexOf(n);return 0!==a||ek(o,n).length<r?Y.none():Y.some({text:ek(o,n),range:i,triggerChar:n})}))},rk=function(e,t,n,r){return void 0===r&&(r=0),Jw(tt.fromDom(t.startContainer)).fold((function(){return nk(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var i=Qw(r);return Y.some({range:r,text:ek(i,n),triggerChar:n})}))},ik=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){ks(e,za(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(r_.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(Ms),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(r_.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&Jw(tt.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},ok={setup:ik},ak=tinymce.util.Tools.resolve("tinymce.util.Promise"),sk=function(e,t){return{container:e,offset:t}},uk=function(e){return e.nodeType===at},lk=function(e){return e.nodeType===ot},ck=function(e){if(uk(e))return sk(e,e.data.length);var t=e.childNodes;return t.length>0?ck(t[t.length-1]):sk(e,t.length)},dk=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?dk(n[t],0):n.length>0&&lk(e)&&n.length===t?ck(n[n.length-1]):sk(e,t)},fk=function(e,t){return qw(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!Zw(t)})).isSome()},hk=function(e){return function(t){var n=dk(t.startContainer,t.startOffset);return!fk(e,n)}},pk=function(e,t,n){return pe(n.triggerChars,(function(n){return rk(e,t,n)}))},mk=function(e,t){var n=t(),r=e.selection.getRng();return pk(e.dom,r,n).bind((function(n){return gk(e,t,n)}))},gk=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=J(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return hk(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return Y.none();var u=ak.all(W(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return Y.some({lookupData:u,context:n})},vk=Zi([Ao("type"),Vo("text")]),_k=function(e){return yo("separatormenuitem",vk,e)},bk=Zi([Go("type","autocompleteitem"),Go("active",!1),Go("disabled",!1),Go("meta",{}),Ao("value"),Vo("text"),Vo("icon")]),yk=Zi([Ao("type"),Ao("ch"),Jo("minChars",1),Go("columns",1),Jo("maxResults",10),$o("matches"),Io("fetch"),Io("onAction"),na("highlightOn",[],uo)]),xk=function(e){return yo("Autocompleter.Separator",vk,e)},wk=function(e){return yo("Autocompleter.Item",bk,e)},kk=function(e){return yo("Autocompleter",yk,e)},Mk=[Zo("disabled",!1),Vo("tooltip"),Vo("icon"),Vo("text"),ea("onSetup",(function(){return g}))],Sk=Zi([Ao("type"),Io("onAction")].concat(Mk)),Lk=function(e){return yo("toolbarbutton",Sk,e)},Ck=[Zo("active",!1)].concat(Mk),Tk=Zi(Ck.concat([Ao("type"),Io("onAction")])),Dk=function(e){return yo("ToggleButton",Tk,e)},Ok=[ea("predicate",L),Qo("scope","node",["node","editor"]),Qo("position","selection",["node","selection","line"])],Ek=Mk.concat([Go("type","contextformbutton"),Go("primary",!1),Io("onAction"),Co("original",x)]),Ak=Ck.concat([Go("type","contextformbutton"),Go("primary",!1),Io("onAction"),Co("original",x)]),Pk=Mk.concat([Go("type","contextformbutton")]),Fk=Ck.concat([Go("type","contextformtogglebutton")]),Ik=Mo("type",{contextformbutton:Ek,contextformtogglebutton:Ak}),Yk=Zi([Go("type","contextform"),ea("initValue",y("")),Vo("label"),Ho("commands",Ik),jo("launch",Mo("type",{contextformbutton:Pk,contextformtogglebutton:Fk}))].concat(Ok)),Rk=function(e){return yo("ContextForm",Yk,e)},Nk=Zi([Go("type","contexttoolbar"),Ao("items")].concat(Ok)),Hk=function(e){return yo("ContextToolbar",Nk,e)},zk=function(e){var t={};return q(e,(function(e){t[e]={}})),me(t)},jk=function(e){var t=e.ui.registry.getAll().popups,n=_e(t,(function(e){return kk(e).fold((function(e){throw new Error(ko(e))}),x)})),r=zk(ke(n,(function(e){return e.ch}))),i=Se(n),o=function(e){return J(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(Bw||(Bw={}));var Bk,Vk=Bw,$k="tox-menu-nav__js",Uk="tox-collection__item",Wk="tox-swatch",qk={normal:$k,color:Wk},Gk="tox-collection__item--enabled",Kk="tox-collection__group-heading",Jk="tox-collection__item-icon",Xk="tox-collection__item-label",Qk="tox-collection__item-accessory",Zk="tox-collection__item-caret",eM="tox-collection__item-checkmark",tM="tox-collection__item--active",nM="tox-collection__item-container",rM="tox-collection__item-container--column",iM="tox-collection__item-container--row",oM="tox-collection__item-container--align-right",aM="tox-collection__item-container--align-left",sM="tox-collection__item-container--valign-top",uM="tox-collection__item-container--valign-middle",lM="tox-collection__item-container--valign-bottom",cM=function(e){return Le(qk,e).getOr($k)},dM=function(e){return"color"===e?"tox-swatches":"tox-menu"},fM=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:dM(e),tieredMenu:"tox-tiered-menu"}},hM=function(e){var t=fM(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:cM(e)}},pM=function(e,t,n){var r=fM(n);return{tag:"div",classes:ne([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},mM=[zx.parts.items({})],gM=function(e,t,n){var r=fM(n),i={tag:"div",classes:ne([[r.tieredMenu]])};return{dom:i,markers:hM(n)}},vM=function(e,t){return function(n){var r=U(n,t);return W(r,(function(t){return{dom:e,components:t}}))}},_M=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[zx.parts.items({preprocess:"auto"!==e?vM({tag:"div",classes:["tox-swatches__row"]},e):x})]}]}},bM=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[zx.parts.items({preprocess:vM({tag:"div",classes:["tox-collection__group"]},e)})]}},yM=function(e,t){var n=[],r=[];return q(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],Ce(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),W(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},xM=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[zx.parts.items({preprocess:function(n){return"auto"!==e&&e>1?vM({tag:"div",classes:["tox-collection__group"]},e)(n):yM(n,(function(e,n){return"separator"===t[n].type}))}})]}},wM=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[zx.parts.items({preprocess:function(t){return yM(t,(function(t,n){return"separator"===e[n].type}))}})]}},kM=function(e){return V(e,(function(e){return"icon"in e&&void 0!==e.icon}))},MM=function(e){return console.error(ko(e)),console.log(e),Y.none()},SM=function(e,t,n,r,i){var o=wM(n);return{value:e,dom:o.dom,components:o.components,items:n}},LM=function(e,t,n,r,i){if("color"===i){var o=_M(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=xM(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=xM(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=xM(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=bM(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:pM(t,r,i),components:mM,items:n}},CM=[Ao("type"),Ao("src"),Vo("alt"),na("classes",[],uo)],TM=Zi(CM),DM=[Ao("type"),Ao("text"),Vo("name"),na("classes",["tox-collection__item-label"],uo)],OM=Zi(DM),EM=Ji((function(){return mo("type",{cardimage:TM,cardtext:OM,cardcontainer:AM})})),AM=Zi([Ao("type"),Xo("direction","horizontal"),Xo("align","left"),Xo("valign","middle"),Ho("items",EM)]),PM=[Zo("disabled",!1),Vo("text"),Vo("shortcut"),Lo("value","value",Mi((function(){return iu("menuitem-value")})),oo()),Go("meta",{})],FM=Zi([Ao("type"),Vo("label"),Ho("items",EM),ea("onSetup",(function(){return g})),ea("onAction",g)].concat(PM)),IM=function(e){return yo("cardmenuitem",FM,e)},YM=Zi([Ao("type"),Zo("active",!1),Vo("icon")].concat(PM)),RM=function(e){return yo("choicemenuitem",YM,e)},NM=[Ao("type"),Ao("fancytype"),ea("onAction",g)],HM=[Go("initData",{})].concat(NM),zM=[ra("initData",{},[Zo("allowCustomColors",!0),Uo("colors",oo())])].concat(NM),jM=Mo("fancytype",{inserttable:HM,colorswatch:zM}),BM=function(e){return yo("fancymenuitem",jM,e)},VM=Zi([Ao("type"),ea("onSetup",(function(){return g})),ea("onAction",g),Vo("icon")].concat(PM)),$M=function(e){return yo("menuitem",VM,e)},UM=Zi([Ao("type"),Io("getSubmenuItems"),ea("onSetup",(function(){return g})),Vo("icon")].concat(PM)),WM=function(e){return yo("nestedmenuitem",UM,e)},qM=Zi([Ao("type"),Vo("icon"),Zo("active",!1),ea("onSetup",(function(){return g})),Io("onAction")].concat(PM)),GM=function(e){return yo("togglemenuitem",qM,e)},KM=function(e,t,n){var r=Kh(e.element,"."+n);if(r.length>0){var i=te(r,(function(e){var n=e.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return Y.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return Y.none()},JM=function(e,t){return fd([jy(e,t)])},XM=function(e){return JM(iu("unnamed-events"),e)},QM={namedEvents:JM,unnamedEvents:XM},ZM=iu("tooltip.exclusive"),eS=iu("tooltip.show"),tS=iu("tooltip.hide"),nS=function(e,t,n){e.getSystem().broadcastOn([ZM],{})},rS=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&Hy.set(e,r)}))},iS=Object.freeze({__proto__:null,hideAllExclusive:nS,setComponents:rS}),oS=function(e,t){var n=function(n){t.getTooltip().each((function(r){qp(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){nS(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Ts("normal"===e.mode?[As(Ra(),(function(e){ws(n,eS)})),As(Ia(),(function(e){ws(n,tS)}))]:[]),behaviours:fd([Hy.config({})])});t.setTooltip(i),$p(r,i),e.onShow(n,i),Np.position(r,i,{anchor:e.anchor(n)})}};return Ts(ne([[As(eS,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),As(tS,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),As(es(),(function(e,t){var r=t;r.universal||B(r.channels,ZM)&&n(e)})),Vs((function(e){n(e)}))],"normal"===e.mode?[As(Na(),(function(e){ws(e,eS)})),As(Qa(),(function(e){ws(e,tS)})),As(Ra(),(function(e){ws(e,eS)})),As(Ia(),(function(e){ws(e,tS)}))]:[As(ys(),(function(e,t){ws(e,eS)})),As(xs(),(function(e){ws(e,tS)}))]]))},aS=Object.freeze({__proto__:null,events:oS}),sS=[Do("lazySink"),Do("tooltipDom"),Go("exclusive",!0),Go("tooltipComponents",[]),Go("delay",300),Qo("mode","normal",["normal","follow-highlight"]),Go("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:y([Wc,Uc,jc,Vc,Bc,$c]),onRtl:y([Wc,Uc,jc,Vc,Bc,$c])}}})),sc("onHide"),sc("onShow")],uS=function(){var e=rf(),t=rf(),n=function(){e.on(clearTimeout)},r=function(t,r){n(),e.set(setTimeout(t,r))},i=y("not-implemented");return Su({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:r,readState:i})},lS=Object.freeze({__proto__:null,init:uS}),cS=pd({fields:sS,name:"tooltipping",active:aS,state:lS,apis:iS}),dS=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},fS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),hS=tinymce.util.Tools.resolve("tinymce.EditorManager"),pS=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):hS.baseURL+"/skins/ui/"+r}return n},mS=function(e){return e.getParam("readonly",!1,"boolean")},gS=function(e){return!1===e.getParam("skin")},vS=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},_S=function(e){return e.getParam("width",fS.DOM.getStyle(e.getElement(),"width"))},bS=function(e){return Y.from(e.getParam("min_width")).filter(p)},yS=function(e){return Y.from(e.getParam("min_height")).filter(p)},xS=function(e){return Y.from(e.getParam("max_width")).filter(p)},wS=function(e){return Y.from(e.getParam("max_height")).filter(p)},kS=function(e){return Y.from(e.getParam("style_formats")).filter(s)},MS=function(e){return e.getParam("style_formats_merge",!1,"boolean")},SS=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},LS=function(e){return e.getParam("content_langs",void 0,"array")},CS=function(e){return e.getParam("removed_menuitems","")},TS=function(e){return!1!==e.getParam("menubar",!0,"boolean")},DS=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=o(t),i=s(t)&&t.length>0;return!ES(e)&&(i||r||n)},OS=function(e){var t=$(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=J(t,(function(e){return"string"===typeof e}));return n.length>0?Y.some(n):Y.none()},ES=function(e){return OS(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),C)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(Bk||(Bk={}));var AS,PS=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(AS||(AS={}));var FS,IS=function(e){return e.getParam("toolbar_groups",{},"object")},YS=function(e){return e.getParam("toolbar_location",AS.auto,"string")},RS=function(e){return YS(e)===AS.bottom},NS=function(e){return e.getParam("fixed_toolbar_container","","string")},HS=function(e){return e.getParam("fixed_toolbar_container_target")},zS=function(e){return e.getParam("toolbar_persist",!1,"boolean")},jS=function(e){if(!e.inline)return Y.none();var t=NS(e);if(t.length>0)return Nl(Rn(),t);var n=HS(e);return f(n)?Y.some(tt.fromDom(n)):Y.none()},BS=function(e){return e.inline&&jS(e).isSome()},VS=function(e){var t=jS(e);return t.getOrThunk((function(){return On(Dn(tt.fromDom(e.getElement())))}))},$S=function(e){return e.inline&&!TS(e)&&!DS(e)&&!ES(e)},US=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!BS(e)&&!$S(e)},WS=function(e){return e.getParam("toolbar_sticky_offset",0,"number")},qS=function(e){return e.getParam("draggable_modal",!1,"boolean")},GS=function(e){var t=e.getParam("menu");return t?_e(t,(function(e){return D(D({},e),{items:e.items})})):{}},KS=function(e){return e.getParam("menubar")},JS=function(e){return e.getParam("toolbar",!0)},XS=function(e){return e.getParam("file_picker_callback")},QS=function(e){return e.getParam("file_picker_types")},ZS=function(e){return e.getParam("file_browser_callback_types")},eL=function(e){return!1===e.getParam("typeahead_urls")},tL=function(e){return e.getParam("anchor_top","#top")},nL=function(e){return e.getParam("anchor_bottom","#bottom")},rL=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},iL="silver.readonly",oL=Zi([Fo("readonly")]),aL=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([bm()],{target:r}),e.uiMothership.broadcastOn([bm()],{target:r})),e.mothership.broadcastOn([iL],{readonly:t}),e.uiMothership.broadcastOn([iL],{readonly:t})},sL=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&aL(t,!0)})),e.on("SwitchMode",(function(){return aL(t,e.mode.isReadOnly())})),mS(e)&&e.setMode("readonly")},uL=function(){var e;return _d.config({channels:(e={},e[iL]={schema:oL,onReceive:function(e,t){Rv.set(e,t.readonly)}},e)})},lL=function(e){return Rv.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},cL=function(e){return Rv.config({disabled:e})},dL=function(e){return Rv.config({disabled:e,disableClass:"tox-tbtn--disabled"})},fL=function(e){return Rv.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},hL={item:lL,button:cL,splitButton:dL,toolbarButton:fL},pL=function(e,t){var n=e.getApi(t);return function(e){e(n)}},mL=function(e,t){return Bs((function(n){var r=pL(e,n);r((function(n){var r=e.onSetup(n);h(r)&&t.set(r)}))}))},gL=function(e,t){return Vs((function(n){return pL(e,n)(t.get())}))},vL=function(e,t){return Us((function(n,r){pL(e,n)(e.onAction),e.triggersSubmenu||t!==Vk.CLOSE_ON_EXECUTE||(ws(n,os()),r.stop())}))},_L=(FS={},FS[ts()]=["disabling","alloy.base.behaviour","toggling","item-events"],FS),bL=Ee,yL=function(e,t,n,r){var i=ia(g);return{type:"item",dom:t.dom,components:bL(t.optComponents),data:e.data,eventOrder:_L,hasSubmenu:e.triggersSubmenu,itemBehaviours:fd([jy("item-events",[vL(e,n),mL(e,i),gL(e,i)]),hL.item((function(){return e.disabled||r.isDisabled()})),uL(),Hy.config({})].concat(e.itemBehaviours))}},xL=function(e){return{value:e.value,meta:D({text:e.text.getOr("")},e.meta)}},wL=tinymce.util.Tools.resolve("tinymce.Env"),kL=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=wL.mac?t:n,i=e.split("+"),o=W(i,(function(e){var t=e.toLowerCase().trim();return Ce(r,t)?r[t]:e}));return wL.mac?o.join(""):o.join("+")},ML=function(e,t,n){return void 0===n&&(n=[Jk]),Yw(e,{tag:"div",classes:n},t)},SL=function(e){return{dom:{tag:"div",classes:[Xk]},components:[kl(Sw.translate(e))]}},LL=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},CL=function(e,t){return{dom:{tag:"div",classes:[Xk]},components:[{dom:{tag:e.tag,styles:e.styles},components:[kl(Sw.translate(t))]}]}},TL=function(e){return{dom:{tag:"div",classes:[Qk],innerHtml:kL(e)}}},DL=function(e){return ML("checkmark",e,[eM])},OL=function(e){return ML("chevron-right",e,[Zk])},EL=function(e){return ML("chevron-down",e,[Zk])},AL=function(e,t){var n="vertical"===e.direction?rM:iM,r="left"===e.align?aM:oM,i=function(){switch(e.valign){case"top":return sM;case"middle":return uM;case"bottom":return lM}};return{dom:{tag:"div",classes:[nM,n,r,i()]},components:t}},PL=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},FL=function(e,t,n){var r="custom",i="remove",o=e.ariaLabel,a=e.value,s=e.iconContent.map((function(e){return Aw(e,t.icons,n)})),u=function(){var e=Wk,n=s.getOr(""),u=o.map((function(e){return{title:t.translate(e)}})).getOr({}),l={tag:"div",attributes:u,classes:[e]};return D(D({},l),a===r?{tag:"button",classes:E(E([],l.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===i?{classes:E(E([],l.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:D(D({},l.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:u(),optComponents:[]}},IL=function(e){var t=e.map((function(e){return{attributes:{title:Sw.translate(e)}}})).getOr({});return D({tag:"div",classes:[$k,Uk]},t)},YL=function(e,t,n,r){var i={tag:"div",classes:[Jk]},o=function(e){return Yw(e,i,t.icons,r)},a=function(){return Y.some({dom:i})},s=n?e.iconContent.map(o).orThunk(a):Y.none(),u=e.checkMark,l=Y.from(e.meta).fold((function(){return SL}),(function(e){return Ce(e,"style")?k(CL,e.style):SL})),c=e.htmlContent.fold((function(){return e.textContent.map(l)}),(function(e){return Y.some(LL(e,[Xk]))})),d={dom:IL(e.ariaLabel),optComponents:[s,c,e.shortcutContent.map(TL),u,e.caret]};return d},RL=function(e,t,n,r){return void 0===r&&(r=Y.none()),"color"===e.presets?FL(e,t,r):YL(e,t,n,r)},NL=function(e,t){return Le(e,"tooltipWorker").map((function(e){return[cS.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Cf}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){cS.setComponents(t,[Ml({element:tt.fromDom(e)})])}))}})]})).getOr([])},HL=function(e){return fS.DOM.encode(e)},zL=function(e,t){var n=Sw.translate(e),r=HL(n);if(t.length>0){var i=new RegExp(dS(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},jL=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var u=RL({presets:r,textContent:Y.none(),htmlContent:n?e.text.map((function(e){return zL(e,t)})):Y.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:Y.none(),checkMark:Y.none(),caret:Y.none(),value:e.value},a.providers,s,e.icon);return yL({data:xL(e),disabled:e.disabled,getApi:y({}),onAction:function(t){return i(e.value,e.meta)},onSetup:y(g),triggersSubmenu:!1,itemBehaviours:NL(e.meta,a)},u,o,a.providers)},BL=function(e,t){return W(e,(function(e){switch(e.type){case"cardcontainer":return AL(e,BL(e.items,t));case"cardimage":return PL(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return B(t.cardText.highlightOn,e)})),r=n?Y.from(t.cardText.matchText).getOr(""):"";return LL(zL(e.text,r),e.classes)}}))},VL=function(e,t,n,r){var i=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){Rv.set(e,t),q(Kh(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(Rv)&&Rv.set(e,t)}))}))}}},o={dom:IL(e.label),optComponents:[Y.some({dom:{tag:"div",classes:[nM,iM]},components:BL(e.items,r)})]};return yL({data:xL(D({text:Y.none()},e)),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:Y.from(r.itemBehaviours).getOr([])},o,t,n.providers)},$L=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var u=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},l=RL({presets:n,textContent:t?e.text:Y.none(),htmlContent:Y.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:Y.none(),checkMark:t?Y.some(DL(a.icons)):Y.none(),caret:Y.none(),value:e.value},a,s);return xi(yL({data:xL(e),disabled:e.disabled,getApi:u,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(i),g},triggersSubmenu:!1,itemBehaviours:[]},l,o,a),{toggling:{toggleClass:Gk,toggleOnExecute:!1,selected:e.active}})},UL=jg(Tx(),Dx()),WL=function(e){return{value:e}},qL=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,GL=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,KL=function(e){return qL.test(e)||GL.test(e)},JL=function(e){return ze(e,"#").toUpperCase()},XL=function(e){return KL(e)?Y.some({value:JL(e)}):Y.none()},QL=function(e){var t=e.value.replace(qL,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},ZL=function(e){var t=QL(e),n=GL.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},eC=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},tC=function(e){var t=eC(e.red)+eC(e.green)+eC(e.blue);return WL(t)},nC=Math.min,rC=Math.max,iC=Math.round,oC=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,aC=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,sC=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},uC=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},lC=function(e){var t,n,r,i=(e.hue||0)%360,o=e.saturation/100,a=e.value/100;if(o=rC(0,nC(o,1)),a=rC(0,nC(a,1)),0===o)return t=n=r=iC(255*a),sC(t,n,r,1);var s=i/60,u=a*o,l=u*(1-Math.abs(s%2-1)),c=a-u;switch(Math.floor(s)){case 0:t=u,n=l,r=0;break;case 1:t=l,n=u,r=0;break;case 2:t=0,n=u,r=l;break;case 3:t=0,n=l,r=u;break;case 4:t=l,n=0,r=u;break;case 5:t=u,n=0,r=l;break;default:t=n=r=0}return t=iC(255*(t+c)),n=iC(255*(n+c)),r=iC(255*(r+c)),sC(t,n,r,1)},cC=function(e){var t=ZL(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return sC(n,r,i,1)},dC=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return sC(i,o,a,s)},fC=function(e){if("transparent"===e)return Y.some(sC(0,0,0,0));var t=oC.exec(e);if(null!==t)return Y.some(dC(t[1],t[2],t[3],"1"));var n=aC.exec(e);return null!==n?Y.some(dC(n[1],n[2],n[3],n[4])):Y.none()},hC=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},pC=sC(255,0,0,1),mC=function(e){return e.fire("SkinLoaded")},gC=function(e,t){return e.fire("SkinLoadError",t)},vC=function(e){return e.fire("ResizeEditor")},_C=function(e,t){return e.fire("ResizeContent",t)},bC=function(e,t){return e.fire("ScrollContent",t)},yC=function(e,t){return e.fire("TextColorChange",t)},xC=function(e,t,n){return{hue:e,saturation:t,value:n}},wC=function(e){var t=0,n=0,r=0,i=e.red/255,o=e.green/255,a=e.blue/255,s=Math.min(i,Math.min(o,a)),u=Math.max(i,Math.max(o,a));if(s===u)return r=s,xC(0,0,100*r);var l=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-l/(u-s)),n=(u-s)/u,r=u,xC(Math.round(t),Math.round(100*n),Math.round(100*r))},kC=function(e){return wC(cC(e))},MC=function(e){return tC(lC(e))},SC=function(e){return XL(e).orThunk((function(){return fC(e).map(tC)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return tC(sC(i,o,a,s))}))},LC=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),CC="tinymce-custom-colors";function TC(e){void 0===e&&(e=10);var t=LC.getItem(CC),n=o(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),a=function(t){j(i,t).each(s),i.unshift(t),i.length>e&&i.pop(),LC.setItem(CC,JSON.stringify(i))},s=function(e){i.splice(e,1)},u=function(){return i.slice(0)};return{add:a,state:u}}var DC,OC="choiceitem",EC=[{type:OC,text:"Light Green",value:"#BFEDD2"},{type:OC,text:"Light Yellow",value:"#FBEEB8"},{type:OC,text:"Light Red",value:"#F8CAC6"},{type:OC,text:"Light Purple",value:"#ECCAFA"},{type:OC,text:"Light Blue",value:"#C2E0F4"},{type:OC,text:"Green",value:"#2DC26B"},{type:OC,text:"Yellow",value:"#F1C40F"},{type:OC,text:"Red",value:"#E03E2D"},{type:OC,text:"Purple",value:"#B96AD9"},{type:OC,text:"Blue",value:"#3598DB"},{type:OC,text:"Dark Turquoise",value:"#169179"},{type:OC,text:"Orange",value:"#E67E23"},{type:OC,text:"Dark Red",value:"#BA372A"},{type:OC,text:"Dark Purple",value:"#843FA1"},{type:OC,text:"Dark Blue",value:"#236FA1"},{type:OC,text:"Light Gray",value:"#ECF0F1"},{type:OC,text:"Medium Gray",value:"#CED4D9"},{type:OC,text:"Gray",value:"#95A5A6"},{type:OC,text:"Dark Gray",value:"#7E8C8D"},{type:OC,text:"Navy Blue",value:"#34495E"},{type:OC,text:"Black",value:"#000000"},{type:OC,text:"White",value:"#ffffff"}],AC=TC(10),PC=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+SC(e[n]).value,type:"choiceitem"});return t},FC=function(e,t){return e.getParam("color_cols",t,"number")},IC=function(e){return!1!==e.getParam("custom_colors")},YC=function(e){return e.getParam("color_map")},RC=function(e){var t=YC(e);return void 0!==t?PC(t):EC},NC=function(){return W(AC.state(),(function(e){return{type:OC,text:e,value:e}}))},HC=function(e){AC.add(e)},zC="#000000",jC=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),Y.from(n)},BC=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},VC=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},$C=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){BC(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){VC(e,t)}))},UC=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},WC=function(e){var t=RC(e),n=UC(t.length);return FC(e,n)},qC=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},GC=function(e,t,n,r){if("custom"===n){var i=eT(e);i((function(n){n.each((function(n){HC(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),zC)}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},KC=function(e,t){return e.concat(NC().concat(qC(t)))},JC=function(e,t){return function(n){n(KC(e,t))}},XC=function(e,t,n){var r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(r,n)},QC=function(e,t,n,r,i){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=jC(e,n);return r.bind((function(e){return fC(e).map((function(e){var n=tC(e).value;return Be(t.toLowerCase(),n)}))})).getOr(!1)},columns:WC(e),fetch:JC(RC(e),IC(e)),onAction:function(t){GC(e,n,i.get(),g)},onItemAction:function(r,o){GC(e,n,o,(function(n){i.set(n),yC(e,{name:t,color:n})}))},onSetup:function(n){XC(n,t,i.get());var r=function(e){e.name===t&&XC(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},ZC=function(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){GC(e,n,t.value,g)}}]}})},eT=function(e){return function(t,n){var r=!1,i=function(n){var i=n.getData(),o=i.colorpicker;r?(t(Y.from(o)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",o]))},o=function(e,t){"hex-valid"===t.name&&(r=t.value)},a={colorpicker:n};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:o,onSubmit:i,onClose:g,onCancel:function(){t(Y.none())}})}},tT=function(e){$C(e);var t=ia(zC),n=ia(zC);QC(e,"forecolor","forecolor","Text color",t),QC(e,"backcolor","hilitecolor","Background color",n),ZC(e,"forecolor","forecolor","Text color"),ZC(e,"backcolor","hilitecolor","Background color")},nT=function(e,t,n,r,i,o,a,s){var u=kM(t),l="color"!==i?"normal":"color",c=rT(t,n,r,l,o,a,s);return LM(e,u,c,r,i)},rT=function(e,t,n,r,i,o,a){return Ee(W(e,(function(s){return"choiceitem"===s.type?RM(s).fold(MM,(function(u){return Y.some($L(u,1===n,r,t,o(s.value),i,a,kM(e)))})):Y.none()})))},iT=function(e,t){var n=hM(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},oT=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+Wk:"."+Uk}}},aT=function(e,t){var n=sT(e,t),r=t.colorinput.getColorCols(),i="color",o=nT(iu("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,Vk.CLOSE_ON_EXECUTE,L,t.shared.providers),a=D(D({},o),{markers:hM(i),movement:iT(r,i)});return{type:"widget",data:{value:iu("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[UL.widget(zx.sketch(a))]}},sT=function(e,t){var n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold((function(){return KC(t.colorinput.getColors(),n)}),(function(e){return e.concat(qC(n))}))},uT=iu("cell-over"),lT=iu("cell-execute"),cT=function(e,t,n){var r,i=function(n){return ks(n,uT,{row:e,col:t})},o=function(n){return ks(n,lT,{row:e,col:t})},a=function(e,t){t.stop(),o(e)};return Cl({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:fd([jy("insert-table-picker-cell",[As(Ra(),Jy.focus),As(ts(),o),As($a(),a),As(rs(),a)]),mx.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Jy.config({onFocus:i})])})},dT=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(cT(i,a,e));r.push(o)}return r},fT=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)mx.set(e[o][a],o<=t&&a<=n)},hT=function(e){return re(e,(function(e){return W(e,Tl)}))},pT=function(e,t){return kl(t+"x"+e)},mT=function(e){var t=10,n=10,r=iu("size-label"),i=dT(r,t,n),o=pT(0,0),a=Mw({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[o],behaviours:fd([Hy.config({})])});return{type:"widget",data:{value:iu("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[UL.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:hT(i).concat(a.asSpec()),behaviours:fd([jy("insert-table-picker",[Bs((function(e){Hy.set(a.get(e),[o])})),Ns(uT,(function(e,r,o){var s=o.event,u=s.row,l=s.col;fT(i,u,l,t,n),Hy.set(a.get(e),[pT(u+1,l+1)])})),Ns(lT,(function(t,n,r){var i=r.event,o=i.row,a=i.col;e.onAction({numRows:o+1,numColumns:a+1}),ws(t,os())}))]),Dy.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},gT={inserttable:mT,colorswatch:aT},vT=function(e,t){return Le(gT,e.fancytype).map((function(n){return n(e,t)}))},_T=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var o=i?EL(n.icons):OL(n.icons),a=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},s=RL({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:Y.none(),ariaLabel:e.text,caret:Y.some(o),checkMark:Y.none(),shortcutContent:e.shortcut},n,r);return yL({data:xL(e),getApi:a,disabled:e.disabled,onAction:g,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,t,n)},bT=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},o=RL({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:Y.none(),ariaLabel:e.text,caret:Y.none(),checkMark:Y.none(),shortcutContent:e.shortcut},n,r);return yL({data:xL(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},yT=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:D({tag:"div",classes:[Uk,Kk]},t),components:[]}},xT=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},o=RL({iconContent:e.icon,textContent:e.text,htmlContent:Y.none(),ariaLabel:e.text,checkMark:Y.some(DL(n.icons)),caret:Y.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return xi(yL({data:xL(e),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:Gk,toggleOnExecute:!1,selected:e.active}})},wT=jL,kT=yT,MT=bT,ST=_T,LT=xT,CT=vT,TT=VL;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(DC||(DC={}));var DT=function(e,t,n,r,i){var o=n.shared.providers,a=function(e){return i?D(D({},e),{shortcut:Y.none(),icon:e.text.isSome()?Y.none():e.icon}):e};switch(e.type){case"menuitem":return $M(e).fold(MM,(function(e){return Y.some(MT(a(e),t,o,r))}));case"nestedmenuitem":return WM(e).fold(MM,(function(e){return Y.some(ST(a(e),t,o,r,i))}));case"togglemenuitem":return GM(e).fold(MM,(function(e){return Y.some(LT(a(e),t,o,r))}));case"separator":return _k(e).fold(MM,(function(e){return Y.some(kT(e))}));case"fancymenuitem":return BM(e).fold(MM,(function(e){return CT(a(e),n)}));default:return console.error("Unknown item in general menu",e),Y.none()}},OT=function(e,t,n,r,i,o,a){var s=1===r,u=!s||kM(e);return Ee(W(e,(function(e){switch(e.type){case"separator":return xk(e).fold(MM,(function(e){return Y.some(kT(e))}));case"cardmenuitem":return IM(e).fold(MM,(function(e){return Y.some(TT(D(D({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i,o,{itemBehaviours:NL(e.meta,o),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return wk(e).fold(MM,(function(e){return Y.some(wT(e,t,s,"normal",n,i,o,u))}))}})))},ET=function(e,t,n,r,i){var o=kM(t),a=Ee(W(t,(function(e){var t=function(e){return i?!Ce(e,"text"):o},a=function(e){return DT(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(D(D({},e),{disabled:!0})):a(e)}))),s=i?SM:LM;return s(e,o,a,1,"normal")},AT=function(e){return Qx.singleData(e.value,e)},PT=function(e,t,n,r){var i=n===DC.ContentFocus?L_():S_(),o=iT(t,r),a=hM(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===DC.ContentFocus,focusManager:i,menuBehaviours:QM.unnamedEvents("auto"!==t?[]:[Bs((function(e,t){KM(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Dy.setGridSize(e,r,n)}))}))])}},FT=function(e,t){var n=rf(),r=ia(!1),i=Cl(tw.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:fd([jy("dismissAutocompleter",[As(ps(),(function(){return u()}))])]),lazySink:t.getSink})),o=function(){return tw.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&tw.hide(i)},u=function(){if(a()){var t=n.get().map((function(e){return e.element}));Jw(t.getOr(tt.fromDom(e.selection.getNode()))).each(Yr),s(),n.clear(),r.set(!1)}},l=pt((function(){return jk(e)})),c=function(n,i){var o=pe(i,(function(e){return Y.from(e.columns)})).getOr(1);return re(i,(function(i){var a=i.items;return OT(a,i.matchText,(function(t,o){var a=e.selection.getRng();rk(e.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var n=e.range,a={hide:function(){u()},reload:function(e){s(),p(e)}};r.set(!0),i.onAction(a,n,t,o),r.set(!1)}))}),o,Vk.BUBBLE_TO_SANDBOX,t,i.highlightOn)}))},d=function(t){if(!a()){var i=Kw(e,t.range);n.set({triggerChar:t.triggerChar,element:i,matchLength:t.text.length}),r.set(!1)}},f=function(t,n,r,o){t.matchLength=n.text.length;var a=pe(r,(function(e){return Y.from(e.columns)})).getOr(1);tw.showAt(i,zx.sketch(PT(LM("autocompleter-value",!0,o,a,"normal"),a,DC.ContentFocus,"normal")),{anchor:{type:"node",root:tt.fromDom(e.getBody()),node:Y.from(t.element)}}),tw.getContent(i).each(r_.highlightFirst)},h=function(t){return n.get().map((function(n){return rk(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return gk(e,l,n,t)}))})).getOrThunk((function(){return mk(e,l)}))},p=function(e){h(e).fold(u,(function(e){d(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=c(r.triggerChar,t);i.length>0?f(n,r,t,i):r.text.length-n.matchLength>=10?u():s()}}))}))}))},m=$w((function(e){27!==e.which&&p()}),50),g={onKeypress:m,cancelIfNecessary:u,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return tw.getContent(i)}};!1===e.hasPlugin("rtc")&&ok.setup(g,e)},IT={register:FT},YT=function(e,t,n){return Hl(e,t,n).isSome()},RT=function(e,t){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){e.apply(null,r),n=null}),t)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}},NT=5,HT=400,zT=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?Y.none():Y.some(t.touches[0])},jT=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>NT||r>NT},BT=function(e){var t=rf(),n=ia(!1),r=RT((function(t){e.triggerEvent(is(),t),n.set(!0)}),HT),i=function(e){return zT(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(o)})),Y.none()},o=function(e){return r.cancel(),zT(e).each((function(e){t.on((function(n){jT(e,n)&&t.clear()}))})),Y.none()},a=function(i){r.cancel();var o=function(e){return ln(e.target,i.target)};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(rs(),i)}))},s=pa([{key:Da(),value:i},{key:Oa(),value:o},{key:Ea(),value:a}]),u=function(e,t){return Le(s,t).bind((function(t){return t(e)}))};return{fireIfReady:u}},VT=function(e){var t=e.raw;return t.which===i_[0]&&!B(["input","textarea"],st(e.target))&&!YT(e.target,'[contenteditable="true"]')},$T=function(){return tn().browser.isFirefox()},UT=function(e,t){return $T()?sf(e,"focus",t):af(e,"focusin",t)},WT=function(e,t){return $T()?sf(e,"blur",t):af(e,"focusout",t)},qT=function(e,t){var n=D({stopBackspace:!0},t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=BT(n),o=W(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return af(e,t,(function(e){i.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=rf(),s=af(e,"paste",(function(e){i.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(setTimeout((function(){n.triggerEvent(Za(),e)}),0))})),u=af(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():n.stopBackspace&&VT(e)&&e.prevent()})),l=UT(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),c=rf(),d=WT(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),c.set(setTimeout((function(){n.triggerEvent(Qa(),e)}),0))})),f=function(){q(o,(function(e){e.unbind()})),u.unbind(),l.unbind(),d.unbind(),s.unbind(),a.on(clearTimeout),c.on(clearTimeout)};return{unbind:f}},GT=function(e,t){var n=Le(e,"target").getOr(t);return ia(n)},KT=function(e,t){var n=ia(!1),r=ia(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},JT=function(e){var t=ia(!1),n=function(){t.set(!0)};return{stop:n,cut:g,isStopped:t.get,isCut:L,event:e,setSource:S("Cannot set source of a broadcasted event"),getSource:S("Cannot get source of a broadcasted event")}},XT=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),QT=function(e,t,n,r,i,o){var a=e(t,r),s=KT(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),XT.complete()}),(function(e){var n=e.descHandler,r=Ru(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element,n.purpose),XT.stopped()):s.isCut()?(o.logEventCut(t,e.element,n.purpose),XT.complete()):vn(e.element).fold((function(){return o.logNoParent(t,e.element,n.purpose),XT.complete()}),(function(r){return o.logEventResponse(t,e.element,n.purpose),XT.resume(r)}))}))},ZT=function(e,t,n,r,i,o){return QT(e,t,n,r,i,o).fold(C,(function(r){return ZT(e,t,n,r,i,o)}),L)},eD=function(e,t,n,r,i){var o=GT(n,r);return QT(e,t,n,r,o,i)},tD=function(e,t,n){var r=JT(t);return q(e,(function(e){var t=e.descHandler,n=Ru(t);n(r)})),r.isStopped()},nD=function(e,t,n,r){return rD(e,t,n,n.target,r)},rD=function(e,t,n,r,i){var o=GT(n,r);return ZT(e,t,n,r,o,i)},iD=function(e,t){return{element:e,descHandler:t}},oD=function(e,t){return{id:e,descHandler:t}},aD=function(){var e={},t=function(t,n,r){ve(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=Yu(r,t),e[i]=o}))},n=function(e,t){return du(t).bind((function(t){return Le(e,t)})).map((function(e){return iD(t,e)}))},r=function(t){return Le(e,t).map((function(e){return ke(e,(function(e,t){return oD(t,e)}))})).getOr([])},i=function(t,r,i){return Le(e,r).bind((function(e){return ya(i,(function(t){return n(e,t)}),t)}))},o=function(t){ve(e,(function(e,n){Ce(e,t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}},sD=function(){var e=aD(),t={},n=function(e){var t=e.element;return du(t).getOrThunk((function(){return lu("uid-",e.element)}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Zs(r.element)+"\nCannot use it for: "+Zs(e.element)+"\nThe conflicting element is"+(Yn(r.element)?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);Te(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events),t[o]=i},o=function(n){du(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},u=function(e){return Le(t,e)};return{find:s,filter:a,register:i,unregister:o,getById:u}},uD=function(e){var t=e.dom,n=t.attributes,r=O(t,["attributes"]);return{uid:e.uid,dom:D({tag:"div",attributes:D({role:"presentation"},n)},r),components:e.components,behaviours:ng(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},lD=fv({name:"Container",factory:uD,configFields:[Go("components",[]),tg("containerBehaviours",[]),Go("events",{}),Go("domModification",{}),Go("eventOrder",{})]}),cD=function(e){var t=function(t){return vn(e.element).fold(C,(function(e){return ln(t,e)}))},n=sD(),r=function(e,r){return n.find(t,e,r)},i=qT(e.element,{triggerEvent:function(e,t){return Xl(e,t.target,(function(n){return nD(r,e,t,n)}))}}),o={debugInfo:y("real"),triggerEvent:function(e,t,n){Xl(e,t,(function(i){return rD(r,e,n,t,i)}))},triggerFocus:function(e,t){du(e).fold((function(){wd(e)}),(function(n){Xl(Xa(),e,(function(n){return eD(r,Xa(),{originator:t,kill:g,prevent:g,target:e},e,n),!1}))}))},triggerEscape:function(e,t){o.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return m(e)},getByDom:function(e){return v(e)},build:Cl,addToGui:function(e){u(e)},removeFromGui:function(e){l(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){s(e)},broadcast:function(e){f(e)},broadcastOn:function(e,t){h(e,t)},broadcastEvent:function(e,t){p(e,t)},isConnected:C},a=function(e){e.connect(o),dt(e.element)||(n.register(e),q(e.components(),a),o.triggerEvent(ss(),e.element,{target:e.element}))},s=function(e){dt(e.element)||(q(e.components(),s),n.unregister(e)),e.disconnect()},u=function(t){$p(e,t)},l=function(e){qp(e)},c=function(){i.unbind(),Ir(e.element)},d=function(e){var t=n.filter(es());q(t,(function(t){var n=t.descHandler,r=Ru(n);r(e)}))},f=function(e){d({universal:!0,data:e})},h=function(e,t){d({universal:!1,channels:e,data:t})},p=function(e,t){var r=n.filter(e);return tD(r,t)},m=function(e){return n.getById(e).fold((function(){return ri.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ri.value)},v=function(e){var t=du(e).getOr("not found");return m(t)};return a(e),{root:e,element:e.element,destroy:c,add:u,remove:l,getByUid:m,getByDom:v,addToWorld:a,removeFromWorld:s,broadcast:f,broadcastOn:h,broadcastEvent:p}},dD=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:W(e.items,t.interpreter)}},fD=y([Go("prefix","form-field"),tg("fieldBehaviours",[_v,eg])]),hD=y([Ig({schema:[Do("dom")],name:"label"}),Ig({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Do("text")],name:"aria-descriptor"}),Pg({factory:{sketch:function(e){var t=fa(e,["factory"]);return e.factory.sketch(t)}},schema:[Do("factory")],name:"field"})]),pD=function(e,t,n,r){var i=rg(e.fieldBehaviours,[_v.config({find:function(t){return Gg(t,e,"field")}}),eg.config({store:{mode:"manual",getValue:function(e){return _v.getCurrent(e).bind(eg.getValue)},setValue:function(e,t){_v.getCurrent(e).each((function(e){eg.setValue(e,t)}))}}})]),o=Ts([Bs((function(t,n){var r=Jg(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=iu(e.prefix);r.label().each((function(e){zn(e.element,"for",n),zn(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=iu(e.prefix);zn(n.element,"id",r),zn(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Gg(t,e,"field")},getLabel:function(t){return Gg(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},mD=hv({name:"FormField",configFields:fD(),partFields:hD(),factory:pD,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),gD=function(e,t){return Ou({attributes:pa([{key:t.tabAttr,value:"true"}])})},vD=Object.freeze({__proto__:null,exhibit:gD}),_D=[Go("tabAttr","data-alloy-tabstop")],bD=pd({fields:_D,name:"tabstopping",active:vD}),yD=tinymce.util.Tools.resolve("tinymce.html.Entities"),xD=function(e,t,n,r){var i=kD(e,t,n,r);return mD.sketch(i)},wD=function(e,t){return xD(e,t,[],[])},kD=function(e,t,n,r){return{dom:SD(n),components:e.toArray().concat([t]),fieldBehaviours:fd(r)}},MD=function(){return SD([])},SD=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},LD=function(e,t){return mD.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},CD=iu("form-component-change"),TD=iu("form-close"),DD=iu("form-cancel"),OD=iu("form-action"),ED=iu("form-submit"),AD=iu("form-block"),PD=iu("form-unblock"),FD=iu("form-tabchange"),ID=iu("form-resize"),YD=function(e,t){var n,r=e.label.map((function(e){return LD(e,t)})),i=function(e){return function(t,n){Hl(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,Bn(r,"data-collection-item-value"))}))}},o=function(n,r){var i=W(r,(function(n){var r=Sw.translate(n.text),i=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),u=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+u+'" tabindex="-1" data-collection-item-value="'+yD.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==e.columns&&e.columns>1?U(i,e.columns):[i],a=W(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Gs(n.element,a.join(""))},a=i((function(n,r,i,o){r.stop(),t.isDisabled()||ks(n,OD,{name:e.name,value:o})})),s=[As(Ra(),i((function(e,t,n){wd(n)}))),As($a(),a),As(rs(),a),As(Na(),i((function(e,t,n){Nl(e.element,"."+tM).each((function(e){sl(e,tM)})),ol(n,tM)}))),As(Ha(),i((function(e){Nl(e.element,"."+tM).each((function(e){sl(e,tM)}))}))),Us(i((function(t,n,r,i){ks(t,OD,{name:e.name,value:i})})))],u=function(e,t){return W(Kh(e.element,".tox-collection__item"),t)},l=mD.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:x},behaviours:fd([Rv.config({disabled:t.isDisabled,onDisabled:function(e){u(e,(function(e){ol(e,"tox-collection__item--state-disabled"),zn(e,"aria-disabled",!0)}))},onEnabled:function(e){u(e,(function(e){sl(e,"tox-collection__item--state-disabled"),Un(e,"aria-disabled")}))}}),uL(),Hy.config({}),eg.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&KM(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Dy.setGridSize(t,n,r)})),ws(t,ID)}}),bD.config({}),Dy.config(oT(e.columns,"normal")),jy("collection-events",s)]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","collection-events"],n)}),c=["tox-form__group--collection"];return xD(r,l,c,[])},RD=y([zo("data"),Go("inputAttributes",{}),Go("inputStyles",{}),Go("tag","input"),Go("inputClasses",[]),sc("onSetValue"),Go("styles",{}),Go("eventOrder",{}),tg("inputBehaviours",[eg,Jy]),Go("selectOnFocus",!0)]),ND=function(e){return fd([Jy.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=fl(t);t.dom.setSelectionRange(0,n.length)}:g})])},HD=function(e){return D(D({},ND(e)),rg(e.inputBehaviours,[eg.config({store:D(D({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return fl(e.element)},setValue:function(e,t){var n=fl(e.element);n!==t&&hl(e.element,t)}}),onSetValue:e.onSetValue})]))},zD=function(e){return{tag:e.tag,attributes:D({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},jD=function(e,t){return{uid:e.uid,dom:zD(e),components:[],behaviours:HD(e),eventOrder:e.eventOrder}},BD=fv({name:"Input",configFields:RD(),factory:jD}),VD={},$D={exports:VD};(function(e,t,r,i){(function(n,i){"object"===typeof t&&"undefined"!==typeof r?r.exports=i():"function"===typeof e&&e.amd?e(i):(n="undefined"!==typeof globalThis?globalThis:n||self,n.EphoxContactWrapper=i())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},t={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new c(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(u){n(u)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)})(e)})(t);var r=t.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,VD,$D);var UD,WD=$D.exports.boltExport,qD=function(e){var t=Y.none(),n=[],r=function(e){return qD((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?u(e):n.push(e)},o=function(e){a()||(t=Y.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){q(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},GD=function(e){return qD((function(t){t(e)}))},KD={nu:qD,pure:GD},JD=function(e){setTimeout((function(){throw e}),0)},XD=function(e){var t=function(t){e().then(t,JD)},n=function(t){return XD((function(){return e().then(t)}))},r=function(t){return XD((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return XD((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return KD.nu(t)},a=function(){var t=null;return XD((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},QD=function(e){return XD((function(){return new WD(e)}))},ZD=function(e){return XD((function(){return WD.resolve(e)}))},eO={nu:QD,pure:ZD},tO=["input","textarea"],nO=function(e){var t=st(e);return B(tO,t)},rO=function(e,t){var n=t.getRoot(e).getOr(e.element);sl(n,t.invalidClass),t.notify.each((function(t){nO(e.element)&&zn(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Gs(e,t.validHtml)})),t.onValid(e)}))},iO=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element);ol(i,t.invalidClass),t.notify.each((function(t){nO(e.element)&&zn(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Gs(e,r)})),t.onInvalid(e,r)}))},oO=function(e,t,n){return t.validator.fold((function(){return eO.pure(ri.value(!0))}),(function(t){return t.validate(e)}))},aO=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),oO(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return iO(e,t,n,r),ri.error(r)}),(function(n){return rO(e,t),ri.value(n)})):ri.error("No longer in system")}))},sO=function(e,t){var n=t.getRoot(e).getOr(e.element);return ul(n,t.invalidClass)},uO=Object.freeze({__proto__:null,markValid:rO,markInvalid:iO,query:oO,run:aO,isInvalid:sO}),lO=function(e,t){return e.validator.map((function(n){return Ts([As(n.onEvent,(function(n){aO(n,e,t).get(x)}))].concat(n.validateOnLoad?[Bs((function(n){aO(n,e,t).get(g)}))]:[]))})).getOr({})},cO=Object.freeze({__proto__:null,events:lO}),dO=[Do("invalidClass"),Go("getRoot",Y.none),Wo("notify",[Go("aria","alert"),Go("getContainer",Y.none),Go("validHtml",""),sc("onValid"),sc("onInvalid"),sc("onValidate")]),Wo("validator",[Do("validate"),Go("onEvent","input"),Go("validateOnLoad",!0)])],fO=pd({fields:dO,name:"invalidating",active:cO,apis:uO,extra:{validation:function(e){return function(t){var n=eg.getValue(t);return eO.pure(e(n))}}}}),hO=function(e,t,n,r){return n.getOrCreate(e,t,r)},pO=Object.freeze({__proto__:null,getCoupled:hO}),mO=[Oo("others",_o(ri.value,oo()))],gO=function(){var e={},t=function(t,n,r){var i=me(n.others);if(i)return Le(e,r).getOrThunk((function(){var i=Le(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(t),a=t.getSystem().build(o);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=y({});return Su({readState:n,getOrCreate:t})},vO=Object.freeze({__proto__:null,init:gO}),_O=pd({fields:mO,name:"coupling",apis:pO,state:vO}),bO=y("sink"),yO=y(Ig({name:bO(),overrides:y({dom:{tag:"div"},behaviours:fd([Np.config({useFixed:C})]),events:Ts([Hs(za()),Hs(Pa()),Hs($a())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(UD||(UD={}));var xO,wO=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:r,hotspot:n,overrides:i}}),(function(e){return{type:r,hotspot:n,overrides:i,layouts:e}}))},kO=function(e,t,n){var r=e.fetch;return r(n).map(t)},MO=function(e,t,n,r,i,o,a){var s=kO(e,t,r),u=DO(r,e);return s.map((function(e){return e.bind((function(e){return Y.from(Qx.sketch(D(D({},o.menu()),{uid:fu(""),data:e,highlightImmediately:a===UD.HighlightFirst,onOpenMenu:function(e,t){var r=u().getOrDie();Np.position(r,t,{anchor:n}),_m.decloak(i)},onOpenSubmenu:function(e,t,n){var r=u().getOrDie();Np.position(r,n,{anchor:{type:"submenu",item:t}}),_m.decloak(i)},onRepositionMenu:function(e,t,r){var i=u().getOrDie();Np.position(i,t,{anchor:n}),q(r,(function(e){Np.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Jy.focus(r),_m.close(i),Y.some(!0)}})))}))}))},SO=function(e,t,n,r,i,o,a){var s=wO(e,n),u=MO(e,t,s,n,r,i,a);return u.map((function(e){return e.fold((function(){_m.isOpen(r)&&_m.close(r)}),(function(e){_m.cloak(r),_m.open(r,e),o(r)})),r}))},LO=function(e,t,n,r,i,o,a){return _m.close(r),eO.pure(r)},CO=function(e,t,n,r,i,o){var a=_O.getCoupled(n,"sandbox"),s=_m.isOpen(a),u=s?LO:SO;return u(e,t,n,a,r,i,o)},TO=function(e,t,n){var r=_v.getCurrent(t).getOr(t),i=vr(e.element);n?Gn(r.element,"min-width",i+"px"):gr(r.element,i)},DO=function(e,t){return e.getSystem().getByUid(t.uid+"-"+bO()).map((function(e){return function(){return ri.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ri.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},OO=function(e){_m.getState(e).each((function(e){Qx.repositionMenus(e)}))},EO=function(e,t,n){var r=jl(),i=function(i,o){var a=wO(e,t);r.link(t.element),e.matchWidth&&TO(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(e,i){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},a=DO(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:ig.augment(e.sandboxBehaviours,[eg.config({store:{mode:"memory",initialValue:t}}),_m.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return Vl(n,r)||Vl(t,r)},getAttachPoint:function(){return a().getOrDie()}}),_v.config({find:function(e){return _m.getState(e).bind((function(e){return _v.getCurrent(e)}))}}),_d.config({channels:D(D({},km({isExtraPart:L})),Sm({doReposition:OO}))})])}},AO=function(e){var t=_O.getCoupled(e,"sandbox");OO(t)},PO=function(){return[Go("sandboxClasses",[]),ig.field("sandboxBehaviours",[_v,_d,_m,eg])]},FO=y([Do("dom"),Do("fetch"),sc("onOpen"),uc("onExecute"),Go("getHotspot",Y.some),Go("getAnchorOverrides",y({})),Hf(),tg("dropdownBehaviours",[mx,_O,Dy,Jy]),Do("toggleClass"),Go("eventOrder",{}),zo("lazySink"),Go("matchWidth",!1),Go("useMinWidth",!1),zo("role")].concat(PO())),IO=y([Fg({schema:[ic()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),yO()]),YO=function(e,t,n,r){var i,o=function(t){return Le(e.dom,"attributes").bind((function(e){return Le(e,t)}))},a=function(e){_m.getState(e).each((function(e){Qx.highlightPrimary(e)}))},s=function(t){var n=a;CO(e,x,t,r,n,UD.HighlightFirst).get(g)},u={expand:function(t){mx.isOn(t)||CO(e,x,t,r,g,UD.HighlightNone).get(g)},open:function(t){mx.isOn(t)||CO(e,x,t,r,g,UD.HighlightFirst).get(g)},isOpen:mx.isOn,close:function(t){mx.isOn(t)&&CO(e,x,t,r,g,UD.HighlightFirst).get(g)},repositionMenus:function(e){mx.isOn(e)&&AO(e)}},l=function(e,t){return Ms(e),Y.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.dropdownBehaviours,[mx.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),_O.config({others:{sandbox:function(t){return EO(e,t,{onOpen:function(){return mx.on(t)},onClose:function(){return mx.off(t)}})}}}),Dy.config({mode:"special",onSpace:l,onEnter:l,onDown:function(e,t){if(RO.isOpen(e)){var n=_O.getCoupled(e,"sandbox");a(n)}else RO.open(e);return Y.some(!0)},onEscape:function(e,t){return RO.isOpen(e)?(RO.close(e),Y.some(!0)):Y.none()}}),Jy.config({})]),events:vx(Y.some(s)),eventOrder:D(D({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:u,domModification:{attributes:D(D({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:o("type").getOr("button")}:{})}}},RO=hv({name:"Dropdown",configFields:FO(),partFields:IO(),factory:YO,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),NO=function(){return Ou({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},HO=function(){return Ts([Ds(Ga(),C)])},zO=Object.freeze({__proto__:null,events:HO,exhibit:NO}),jO=pd({fields:[],name:"unselecting",active:zO}),BO=function(e,t){return RO.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:fd([hL.button(t.providers.isDisabled),uL(),jO.config({}),bD.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return eO.nu((function(t){return e.fetch(t)})).map((function(r){return Y.from(AT(xi(nT(iu("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,Vk.CLOSE_ON_EXECUTE,L,t.providers),{movement:iT(e.columns,e.presets)})))}))},parts:{menu:gM(!1,1,e.presets)}})},VO=iu("color-input-change"),$O=iu("color-swatch-change"),UO=iu("color-picker-cancel"),WO=function(e,t,n){var r=mD.parts.field({factory:BD,inputClasses:["tox-textfield"],onSetValue:function(e){return fO.run(e).get(g)},inputBehaviours:fd([Rv.config({disabled:t.providers.isDisabled}),uL(),bD.config({}),fO.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return vn(e.element)},notify:{onValid:function(e){var t=eg.getValue(e);ks(e,VO,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=eg.getValue(e);if(0===t.length)return eO.pure(ri.value(!0));var n=tt.fromTag("span");Gn(n,"background-color",t);var r=Zn(n,"background-color").fold((function(){return ri.error("blah")}),(function(e){return ri.value(t)}));return eO.pure(r)}}})]),selectOnFocus:!1}),i=e.label.map((function(e){return LD(e,t.providers)})),o=function(e,t){ks(e,$O,{value:t})},a=function(e,t){s.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return ws(e,UO)}),(function(t){o(e,t),HC(t)}))}),"#ffffff"):o(e,"remove"===t?"":t)}))},s=Mw(BO({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Bc,jc,Wc]},onLtr:function(){return[jc,Bc,Wc]}},components:[],fetch:JC(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return mD.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:fd([jy("form-field-events",[As(VO,(function(t,n){s.getOpt(t).each((function(e){Gn(e.element,"background-color",n.event.color)})),ks(t,CD,{name:e.name})})),As($O,(function(e,t){mD.getField(e).each((function(n){eg.setValue(n,t.event.value),_v.getCurrent(e).each(Jy.focus)}))})),As(UO,(function(e,t){mD.getField(e).each((function(t){_v.getCurrent(e).each(Jy.focus)}))}))])])})},qO=Ig({schema:[Do("dom")],name:"label"}),GO=function(e){return Ig({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:Ts([Ps(Da(),(function(t,n,r){return e(t,r)}),[t]),Ps(Pa(),(function(t,n,r){return e(t,r)}),[t]),Ps(Fa(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},KO=GO("top-left"),JO=GO("top"),XO=GO("top-right"),QO=GO("right"),ZO=GO("bottom-right"),eE=GO("bottom"),tE=GO("bottom-left"),nE=GO("left"),rE=Pg({name:"thumb",defaults:y({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Ts([Rs(Da(),e,"spectrum"),Rs(Oa(),e,"spectrum"),Rs(Ea(),e,"spectrum"),Rs(Pa(),e,"spectrum"),Rs(Fa(),e,"spectrum"),Rs(Ya(),e,"spectrum")])}}}),iE=Pg({schema:[Co("mouseIsDown",(function(){return ia(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:fd([Dy.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Jy.config({})]),events:Ts([As(Da(),r),As(Oa(),r),As(Pa(),r),As(Fa(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),oE=[qO,nE,QO,JO,eE,KO,XO,tE,ZO,rE,iE],aE="slider.change.value",sE=y(aE),uE=function(e){return-1!==e.type.indexOf("touch")},lE=function(e){var t=e.event.raw;if(uE(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?Y.some(n.touches[0]).map((function(e){return cr(e.clientX,e.clientY)})):Y.none()}var r=t;return void 0!==r.clientX?Y.some(r).map((function(e){return cr(e.clientX,e.clientY)})):Y.none()},cE="top",dE="right",fE="bottom",hE="left",pE=function(e){return e.model.minX},mE=function(e){return e.model.minY},gE=function(e){return e.model.minX-1},vE=function(e){return e.model.minY-1},_E=function(e){return e.model.maxX},bE=function(e){return e.model.maxY},yE=function(e){return e.model.maxX+1},xE=function(e){return e.model.maxY+1},wE=function(e,t,n){return t(e)-n(e)},kE=function(e){return wE(e,_E,pE)},ME=function(e){return wE(e,bE,mE)},SE=function(e){return kE(e)/2},LE=function(e){return ME(e)/2},CE=function(e){return e.stepSize},TE=function(e){return e.snapToGrid},DE=function(e){return e.snapStart},OE=function(e){return e.rounded},EE=function(e,t){return void 0!==e[t+"-edge"]},AE=function(e){return EE(e,hE)},PE=function(e){return EE(e,dE)},FE=function(e){return EE(e,cE)},IE=function(e){return EE(e,fE)},YE=function(e){return e.model.value.get()},RE=function(e){return{x:e}},NE=function(e){return{y:e}},HE=function(e,t){return{x:e,y:t}},zE=function(e,t){ks(e,sE(),{value:t})},jE=function(e,t){zE(e,HE(gE(t),vE(t)))},BE=function(e,t){zE(e,NE(vE(t)))},VE=function(e,t){zE(e,HE(SE(t),vE(t)))},$E=function(e,t){zE(e,HE(yE(t),vE(t)))},UE=function(e,t){zE(e,RE(yE(t)))},WE=function(e,t){zE(e,HE(yE(t),LE(t)))},qE=function(e,t){zE(e,HE(yE(t),xE(t)))},GE=function(e,t){zE(e,NE(xE(t)))},KE=function(e,t){zE(e,HE(SE(t),xE(t)))},JE=function(e,t){zE(e,HE(gE(t),xE(t)))},XE=function(e,t){zE(e,RE(gE(t)))},QE=function(e,t){zE(e,HE(gE(t),LE(t)))},ZE=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},eA=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},tA=function(e,t,n){return Math.max(t,Math.min(n,e))},nA=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return tA(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),u=Math.min(s,a+o),l=t+u*r;return Math.max(t,l)}))},rA=function(e,t,n){return Math.min(n,Math.max(e,t))-t},iA=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,u=e.rounded,l=e.hasMinEdge,c=e.hasMaxEdge,d=e.minBound,f=e.maxBound,h=e.screenRange,p=l?t-1:t,m=c?n+1:n;if(i<d)return p;if(i>f)return m;var g=rA(i,d,f),v=tA(g/h*r+t,p,m);return a&&v>=t&&v<=n?nA(v,t,n,o,s):u?Math.round(v):v},oA=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,u=e.maxOffset,l=e.centerMinEdge,c=e.centerMaxEdge;return i<t?o?0:l:i>n?a?s:c:(i-t)/r*u},aA="top",sA="right",uA="bottom",lA="left",cA="width",dA="height",fA=function(e){return e.element.dom.getBoundingClientRect()},hA=function(e,t){return e[t]},pA=function(e){var t=fA(e);return hA(t,lA)},mA=function(e){var t=fA(e);return hA(t,sA)},gA=function(e){var t=fA(e);return hA(t,aA)},vA=function(e){var t=fA(e);return hA(t,uA)},_A=function(e){var t=fA(e);return hA(t,cA)},bA=function(e){var t=fA(e);return hA(t,dA)},yA=function(e,t,n){return(e+t)/2-n},xA=function(e,t){var n=fA(e),r=fA(t),i=hA(n,lA),o=hA(n,sA),a=hA(r,lA);return yA(i,o,a)},wA=function(e,t){var n=fA(e),r=fA(t),i=hA(n,aA),o=hA(n,uA),a=hA(r,aA);return yA(i,o,a)},kA=function(e,t){ks(e,sE(),{value:t})},MA=function(e){return{x:e}},SA=function(e,t,n){var r={min:pE(t),max:_E(t),range:kE(t),value:n,step:CE(t),snap:TE(t),snapStart:DE(t),rounded:OE(t),hasMinEdge:AE(t),hasMaxEdge:PE(t),minBound:pA(e),maxBound:mA(e),screenRange:_A(e)};return iA(r)},LA=function(e,t,n){var r=SA(e,t,n),i=MA(r);return kA(e,i),r},CA=function(e,t){var n=pE(t);kA(e,MA(n))},TA=function(e,t){var n=_E(t);kA(e,MA(n))},DA=function(e,t,n){var r=e>0?eA:ZE,i=r(YE(n).x,pE(n),_E(n),CE(n));return kA(t,MA(i)),Y.some(i)},OA=function(e){return function(t,n){return DA(e,t,n).map(C)}},EA=function(e){var t=lE(e);return t.map((function(e){return e.left}))},AA=function(e,t,n,r,i){var o=0,a=_A(e),s=r.bind((function(t){return Y.some(xA(t,e))})).getOr(o),u=i.bind((function(t){return Y.some(xA(t,e))})).getOr(a),l={min:pE(t),max:_E(t),range:kE(t),value:n,hasMinEdge:AE(t),hasMaxEdge:PE(t),minBound:pA(e),minOffset:o,maxBound:mA(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return oA(l)},PA=function(e,t,n,r,i,o){var a=AA(t,o,n,r,i);return pA(t)-pA(e)+a},FA=function(e,t,n,r){var i=YE(n),o=PA(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=vr(t.element)/2;Gn(t.element,"left",o-a+"px")},IA=OA(-1),YA=OA(1),RA=Y.none,NA=Y.none,HA={"top-left":Y.none(),top:Y.none(),"top-right":Y.none(),right:Y.some(UE),"bottom-right":Y.none(),bottom:Y.none(),"bottom-left":Y.none(),left:Y.some(XE)},zA=Object.freeze({__proto__:null,setValueFrom:LA,setToMin:CA,setToMax:TA,findValueOfOffset:SA,getValueFromEvent:EA,findPositionOfValue:PA,setPositionFromValue:FA,onLeft:IA,onRight:YA,onUp:RA,onDown:NA,edgeActions:HA}),jA=function(e,t){ks(e,sE(),{value:t})},BA=function(e){return{y:e}},VA=function(e,t,n){var r={min:mE(t),max:bE(t),range:ME(t),value:n,step:CE(t),snap:TE(t),snapStart:DE(t),rounded:OE(t),hasMinEdge:FE(t),hasMaxEdge:IE(t),minBound:gA(e),maxBound:vA(e),screenRange:bA(e)};return iA(r)},$A=function(e,t,n){var r=VA(e,t,n),i=BA(r);return jA(e,i),r},UA=function(e,t){var n=mE(t);jA(e,BA(n))},WA=function(e,t){var n=bE(t);jA(e,BA(n))},qA=function(e,t,n){var r=e>0?eA:ZE,i=r(YE(n).y,mE(n),bE(n),CE(n));return jA(t,BA(i)),Y.some(i)},GA=function(e){return function(t,n){return qA(e,t,n).map(C)}},KA=function(e){var t=lE(e);return t.map((function(e){return e.top}))},JA=function(e,t,n,r,i){var o=0,a=bA(e),s=r.bind((function(t){return Y.some(wA(t,e))})).getOr(o),u=i.bind((function(t){return Y.some(wA(t,e))})).getOr(a),l={min:mE(t),max:bE(t),range:ME(t),value:n,hasMinEdge:FE(t),hasMaxEdge:IE(t),minBound:gA(e),minOffset:o,maxBound:vA(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:u};return oA(l)},XA=function(e,t,n,r,i,o){var a=JA(t,o,n,r,i);return gA(t)-gA(e)+a},QA=function(e,t,n,r){var i=YE(n),o=XA(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=ar(t.element)/2;Gn(t.element,"top",o-a+"px")},ZA=Y.none,eP=Y.none,tP=GA(-1),nP=GA(1),rP={"top-left":Y.none(),top:Y.some(BE),"top-right":Y.none(),right:Y.none(),"bottom-right":Y.none(),bottom:Y.some(GE),"bottom-left":Y.none(),left:Y.none()},iP=Object.freeze({__proto__:null,setValueFrom:$A,setToMin:UA,setToMax:WA,findValueOfOffset:VA,getValueFromEvent:KA,findPositionOfValue:XA,setPositionFromValue:QA,onLeft:ZA,onRight:eP,onUp:tP,onDown:nP,edgeActions:rP}),oP=function(e,t){ks(e,sE(),{value:t})},aP=function(e,t){return{x:e,y:t}},sP=function(e,t,n){var r=SA(e,t,n.left),i=VA(e,t,n.top),o=aP(r,i);return oP(e,o),o},uP=function(e,t,n,r){var i=e>0?eA:ZE,o=t?YE(r).x:i(YE(r).x,pE(r),_E(r),CE(r)),a=t?i(YE(r).y,mE(r),bE(r),CE(r)):YE(r).y;return oP(n,aP(o,a)),Y.some(o)},lP=function(e,t){return function(n,r){return uP(e,t,n,r).map(C)}},cP=function(e,t){var n=pE(t),r=mE(t);oP(e,aP(n,r))},dP=function(e,t){var n=_E(t),r=bE(t);oP(e,aP(n,r))},fP=function(e){return lE(e)},hP=function(e,t,n,r){var i=YE(n),o=PA(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=XA(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=vr(t.element)/2,u=ar(t.element)/2;Gn(t.element,"left",o-s+"px"),Gn(t.element,"top",a-u+"px")},pP=lP(-1,!1),mP=lP(1,!1),gP=lP(-1,!0),vP=lP(1,!0),_P={"top-left":Y.some(jE),top:Y.some(VE),"top-right":Y.some($E),right:Y.some(WE),"bottom-right":Y.some(qE),bottom:Y.some(KE),"bottom-left":Y.some(JE),left:Y.some(QE)},bP=Object.freeze({__proto__:null,setValueFrom:sP,setToMin:cP,setToMax:dP,getValueFromEvent:fP,setPositionFromValue:hP,onLeft:pP,onRight:mP,onUp:gP,onDown:vP,edgeActions:_P}),yP=[Go("stepSize",1),Go("onChange",g),Go("onChoose",g),Go("onInit",g),Go("onDragStart",g),Go("onDragEnd",g),Go("snapToGrid",!1),Go("rounded",!0),zo("snapStart"),Oo("model",Mo("mode",{x:[Go("minX",0),Go("maxX",100),Co("value",(function(e){return ia(e.mode.minX)})),Do("getInitialValue"),dc("manager",zA)],y:[Go("minY",0),Go("maxY",100),Co("value",(function(e){return ia(e.mode.minY)})),Do("getInitialValue"),dc("manager",iP)],xy:[Go("minX",0),Go("maxX",100),Go("minY",0),Go("maxY",100),Co("value",(function(e){return ia({x:e.mode.minX,y:e.mode.minY})})),Do("getInitialValue"),dc("manager",bP)]})),tg("sliderBehaviours",[Dy,eg]),Co("mouseIsDown",(function(){return ia(!1)}))],xP=function(e,t,n,r){var i,o=function(t){return Kg(t,e,"thumb")},a=function(t){return Kg(t,e,"spectrum")},s=function(t){return Gg(t,e,"left-edge")},u=function(t){return Gg(t,e,"right-edge")},l=function(t){return Gg(t,e,"top-edge")},c=function(t){return Gg(t,e,"bottom-edge")},d=e.model,f=d.manager,h=function(t,n){f.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:u,getTopEdge:l,getBottomEdge:c,getSpectrum:a})},p=function(e,t){d.value.set(t);var n=o(e);h(e,n)},m=function(t,n){p(t,n);var r=o(t);return e.onChange(t,r,n),Y.some(!0)},g=function(t){f.setToMin(t,e)},v=function(t){f.setToMax(t,e)},_=function(t){var n=function(){Gg(t,e,"thumb").each((function(n){var r=d.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},b=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))},y=function(t,n){n.stop(),e.onDragEnd(t,o(t)),_(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.sliderBehaviours,[Dy.config({mode:"special",focusIn:function(t){return Gg(t,e,"spectrum").map(Dy.focusIn).map(C)}}),eg.config({store:{mode:"manual",getValue:function(e){return d.value.get()}}}),_d.config({channels:(i={},i[xm()]={onReceive:_},i)})]),events:Ts([As(sE(),(function(e,t){m(e,t.event.value)})),Bs((function(t,n){var r=d.getInitialValue();d.value.set(r);var i=o(t);h(t,i);var s=a(t);e.onInit(t,i,s,d.value.get())})),As(Da(),b),As(Ea(),y),As(Pa(),b),As(Ya(),y)]),apis:{resetToMin:g,resetToMax:v,setValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},wP=hv({name:"Slider",configFields:yP,partFields:oE,factory:xP,apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),kP=iu("rgb-hex-update"),MP=iu("slider-update"),SP=iu("palette-update"),LP=function(e,t){var n=wP.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=wP.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return wP.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:y({y:0})},components:[n,r],sliderBehaviours:fd([Jy.config({})]),onChange:function(e,t,n){ks(e,MP,{value:n})}})},CP="form",TP=[tg("formBehaviours",[eg])],DP=function(e){return"<alloy.field."+e+">"},OP=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Vg(CP,DP(t),n)};return{field:t,record:y(e)}}(),n=e(t),r=t.record(),i=W(r,(function(e){return Pg({name:e,pname:DP(e)})}));return av(CP,TP,i,AP,n)},EP=function(e,t){return e.fold((function(){return ri.error(t)}),ri.value)},AP=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.formBehaviours,[eg.config({store:{mode:"manual",getValue:function(t){var n=Xg(t,e);return _e(n,(function(e,t){return e().bind((function(e){var n=_v.getCurrent(e);return EP(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Zs(e.element)))})).map(eg.getValue)}))},setValue:function(t,n){ve(n,(function(n,r){Gg(t,e,r).each((function(e){_v.getCurrent(e).each((function(e){eg.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Gg(t,e,n).bind(_v.getCurrent)}}}},PP={getField:ku((function(e,t,n){return e.getField(t,n)})),sketch:OP},FP=iu("valid-input"),IP=iu("invalid-input"),YP=iu("validating-input"),RP="colorcustom.rgb.",NP=function(e,t,n,r){var i=function(n,r){return fO.config({invalidClass:t("invalid"),notify:{onValidate:function(e){ks(e,YP,{type:n})},onValid:function(e){ks(e,FP,{type:n,value:eg.getValue(e)})},onInvalid:function(e){ks(e,IP,{type:n,value:eg.getValue(e)})}},validator:{validate:function(t){var n=eg.getValue(t),i=r(n)?ri.value(!0):ri.error(e("aria.input.invalid"));return eO.pure(i)},validateOnLoad:!1}})},o=function(n,r,o,a,s){var u=e(RP+"range"),l=mD.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":a}}}),c=mD.parts.field({data:s,factory:BD,inputAttributes:D({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:fd([i(r,n),bD.config({})]),onSetValue:function(e){if(fO.isInvalid(e)){var t=fO.run(e);t.get(g)}}}),d=[l,c],f="hex"!==r?[mD.parts["aria-descriptor"]({text:u})]:[],h=d.concat(f);return{dom:{tag:"div",attributes:{role:"presentation"}},components:h}},a=function(e,t){var n=tC(t);return PP.getField(e,"hex").each((function(t){Jy.isFocused(t)||eg.setValue(e,{hex:n.value})})),n},s=function(e,t){var n=t.red,r=t.green,i=t.blue;eg.setValue(e,{red:n,green:r,blue:i})},u=Mw({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(e,t){u.getOpt(e).each((function(e){Gn(e.element,"background-color","#"+t.value)}))},c=function(){var i={red:ia(Y.some(255)),green:ia(Y.some(255)),blue:ia(Y.some(255)),hex:ia(Y.some("ffffff"))},c=function(e,t){var n=cC(t);s(e,n),p(n)},d=function(e){return i[e].get()},f=function(e,t){i[e].set(t)},h=function(){return d("red").bind((function(e){return d("green").bind((function(t){return d("blue").map((function(n){return sC(e,t,n,1)}))}))}))},p=function(e){var t=e.red,n=e.green,r=e.blue;f("red",Y.some(t)),f("green",Y.some(n)),f("blue",Y.some(r))},m=function(e,t){var n=t.event;"hex"!==n.type?f(n.type,Y.none()):r(e)},g=function(e,t){n(e);var r=WL(t);f("hex",Y.some(t));var i=cC(r);s(e,i),p(i),ks(e,kP,{hex:r}),l(e,r)},v=function(e,t,n){var r=parseInt(n,10);f(t,Y.some(r)),h().each((function(t){var n=a(e,t);ks(e,kP,{hex:n}),l(e,n)}))},_=function(e){return"hex"===e.type},b=function(e,t){var n=t.event;_(n)?g(e,n.value):v(e,n.type,n.value)},y=function(t){return{label:e(RP+t+".label"),description:e(RP+t+".description")}},x=y("red"),w=y("green"),k=y("blue"),M=y("hex");return xi(PP.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",mD.sketch(o(uC,"red",x.label,x.description,255))),n.field("green",mD.sketch(o(uC,"green",w.label,w.description,255))),n.field("blue",mD.sketch(o(uC,"blue",k.label,k.description,255))),n.field("hex",mD.sketch(o(KL,"hex",M.label,M.description,"ffffff"))),u.asSpec()],formBehaviours:fd([fO.config({invalidClass:t("form-invalid")}),jy("rgb-form-events",[As(FP,b),As(IP,m),As(YP,m)])])}})),{apis:{updateHex:function(e,t){eg.setValue(e,{hex:t.value}),c(e,t),l(e,t)}}})},d=fv({factory:c,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return d},HP=function(e,t){var n=wP.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=wP.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},o=function(e,t){var n=e.components()[0].element.dom,r=xC(t,100,100),o=lC(r);i(n,hC(o))},a=function(e,t){var n=wC(cC(t));wP.setValue(e,{x:n.saturation,y:100-n.value})},s=function(e){var o=y({x:0,y:0}),a=function(e,t,n){ks(e,SP,{value:n})},s=function(e,t,n,r){i(n.element.dom,hC(pC))},u=fd([_v.config({find:Y.some}),Jy.config({})]);return wP.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:o},rounded:!1,components:[n,r],onChange:a,onInit:s,sliderBehaviours:u})},u=fv({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){o(t,n)},setThumb:function(e,t,n){a(t,n)}},extraApis:{}});return u},zP=function(e,t){var n=function(n){var r=NP(e,t,n.onValidHex,n.onInvalidHex),i=HP(e,t),o=function(e){return(100-e)/100*360},a=function(e){return 100-e/360*100},s={paletteRgba:ia(pC),paletteHue:ia(0)},u=Mw(LP(e,t)),l=Mw(i.sketch({})),c=Mw(r.sketch({})),d=function(e,t,n){l.getOpt(e).each((function(e){i.setHue(e,n)}))},f=function(e,t){c.getOpt(e).each((function(e){r.updateHex(e,t)}))},h=function(e,t,n){u.getOpt(e).each((function(e){wP.setValue(e,{y:a(n)})}))},p=function(e,t){l.getOpt(e).each((function(e){i.setThumb(e,t)}))},m=function(e,t){var n=cC(e);s.paletteRgba.set(n),s.paletteHue.set(t)},g=function(e,t,n,r){m(t,n),q(r,(function(r){r(e,t,n)}))},v=function(){var e=[f];return function(t,n){var r=n.event.value,i=s.paletteHue.get(),o=xC(i,r.x,100-r.y),a=MC(o);g(t,a,i,e)}},_=function(){var e=[d,f];return function(t,n){var r=o(n.event.value.y),i=s.paletteRgba.get(),a=wC(i),u=xC(r,a.saturation,a.value),l=MC(u);g(t,l,r,e)}},b=function(){var e=[d,h,p];return function(t,n){var r=n.event.hex,i=kC(r);g(t,r,i.hue,e)}};return{uid:n.uid,dom:n.dom,components:[l.asSpec(),u.asSpec(),c.asSpec()],behaviours:fd([jy("colour-picker-events",[As(kP,b()),As(SP,v()),As(MP,_())]),_v.config({find:function(e){return c.getOpt(e)}}),Dy.config({mode:"acyclic"})])}},r=fv({name:"ColourPicker",configFields:[Do("dom"),Go("onValidHex",g),Go("onInvalidHex",g)],factory:n});return r},jP=function(){return _v.config({find:Y.some})},BP=function(e){return _v.config({find:e.getOpt})},VP=function(e){return _v.config({find:function(t){return wn(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},$P={self:jP,memento:BP,childAt:VP},UP={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},WP=function(e){return UP[e]},qP=function(e){return WP(e)},GP=function(e){var t=function(e){return"tox-"+e},n=zP(qP,t),r=function(e){ks(e,OD,{name:"hex-valid",value:!0})},i=function(e){ks(e,OD,{name:"hex-valid",value:!1})},o=Mw(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:fd([eg.config({store:{mode:"manual",getValue:function(e){var t=o.get(e),n=_v.getCurrent(t),r=n.bind((function(e){var t=eg.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),i=o.get(e),a=_v.getCurrent(i);a.fold((function(){console.log("Can not find form")}),(function(e){eg.setValue(e,{hex:Y.from(r[1]).getOr("")}),PP.getField(e,"hex").each((function(e){ws(e,Ba())}))}))}}}),$P.self()])}},KP=tinymce.util.Tools.resolve("tinymce.Resource"),JP=function(e){return Ce(e,"init")},XP=function(e){var t=rf(),n=Mw({dom:{tag:e.tag}}),r=rf();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:fd([jy("custom-editor-events",[Bs((function(i){n.getOpt(i).each((function(n){(JP(e)?e.init(n.element.dom):KP.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),eg.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),$P.self()]),components:[n.asSpec()]}},QP=tinymce.util.Tools.resolve("tinymce.util.Tools"),ZP=Zi([Go("preprocess",x),Go("postprocess",x)]),eF=function(e,t){var n=wo("RepresentingConfigs.memento processors",ZP,t);return eg.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=eg.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);eg.setValue(o,i)}}})},tF=function(e,t,n){return eg.config(xi({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},nF=function(e,t,n){return tF(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},rF=function(e){return nF(e,fl,hl)},iF=function(e){return nF(e,qs,Gs)},oF=function(e){return eg.config({store:{mode:"memory",initialValue:e}})},aF={memento:eF,withElement:nF,withComp:tF,domValue:rF,domHtml:iF,memory:oF},sF="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",uF=function(e,t){var n=QP.explode(t.getSetting("images_file_types",sF,"string")),r=function(e){return V(n,(function(t){return $e(e.name.toLowerCase(),"."+t.toLowerCase())}))};return J(he(e),r)},lF=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){q(e,(function(e){e(t,n)}))}},i=function(e,t){if(!Rv.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){eg.setValue(n,uF(r,t)),ks(n,CD,{name:e.name})},s=Mw({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:fd([jy("input-file-events",[Hs($a()),Hs(rs())])])}),u=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:fd([aF.memory([]),$P.self(),Rv.config({}),mx.config({toggleClass:"dragenter",toggleOnExecute:!1}),jy("dropzone-events",[As("dragenter",r([n,mx.toggle])),As("dragleave",r([n,mx.toggle])),As("dragover",n),As("drop",r([n,i])),As(Va(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},kw.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element.dom.click()},buttonBehaviours:fd([bD.config({}),hL.button(t.isDisabled),uL()])})]}]}},l=e.label.map((function(e){return LD(e,t)})),c=mD.parts.field({factory:{sketch:u}});return xD(l,c,["tox-form__group--stretched"],[])},cF=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:W(e.items,t.interpreter)}},dF=iu("alloy-fake-before-tabstop"),fF=iu("alloy-fake-after-tabstop"),hF=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:fd([Jy.config({ignore:!0}),bD.config({})])}},pF=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[hF([dF]),e,hF([fF])],behaviours:fd([$P.childAt(1)])}},mF=function(e,t){ks(e,za(),{raw:{which:9,shiftKey:t}})},gF=function(e,t){var n=t.element;ul(n,dF)?mF(e,!0):ul(n,fF)&&mF(e,!1)},vF=function(e){return YT(e,["."+dF,"."+fF].join(","),L)},_F=!(tn().browser.isIE()||tn().browser.isEdge()),bF=function(e){var t=ia("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)zn(n.element,"srcdoc",r);else{zn(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},yF=function(e,t){var n=_F&&e.sandboxed,r=D(D({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=bF(n),o=e.label.map((function(e){return LD(e,t)})),a=function(e){return pF({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:fd([bD.config({}),Jy.config({}),aF.withComp(Y.none(),i.getValue,i.setValue)])})},s=mD.parts.field({factory:{sketch:a}});return xD(o,s,["tox-form__group--stretched"],[])},xF=function(e,t){return MF(document.createElement("canvas"),e,t)},wF=function(e){var t=xF(e.width,e.height),n=kF(t);return n.drawImage(e,0,0),t},kF=function(e){return e.getContext("2d")},MF=function(e,t,n){return e.width=t,e.height=n,e},SF=function(e){return e.naturalWidth||e.width},LF=function(e){return e.naturalHeight||e.height},CF=function(e){return new WD((function(t,n){var r=URL.createObjectURL(e),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),t(i)},s=function(){o(),n("Unable to load data of type "+e.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)}))},TF=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return Y.none();for(var r=n[1],i=t[1],o=1024,a=atob(i),s=a.length,u=Math.ceil(s/o),l=new Array(u),c=0;c<u;++c){for(var d=c*o,f=Math.min(d+o,s),h=new Array(f-d),p=d,m=0;p<f;++m,++p)h[m]=a[p].charCodeAt(0);l[c]=new Uint8Array(h)}return Y.some(new Blob(l,{type:r}))},DF=function(e){return new WD((function(t,n){TF(e).fold((function(){n("uri is not base64: "+e)}),t)}))},OF=function(e,t,n){return t=t||"image/png",h(HTMLCanvasElement.prototype.toBlob)?new WD((function(r,i){e.toBlob((function(e){e?r(e):i()}),t,n)})):DF(e.toDataURL(t,n))},EF=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},AF=function(e){return CF(e).then((function(e){FF(e);var t=xF(SF(e),LF(e)),n=kF(t);return n.drawImage(e,0,0),t}))},PF=function(e){return new WD((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},FF=function(e){URL.revokeObjectURL(e.src)},IF=function(e,t,n){var r=t.type,i=y(r),o=function(){return WD.resolve(t)},a=y(n),s=function(){return n.split(",")[1]},u=function(t,n){return e.then((function(e){return OF(e,t,n)}))},l=function(t,n){return e.then((function(e){return EF(e,t,n)}))},c=function(e,t){return l(e,t).then((function(e){return e.split(",")[1]}))},d=function(){return e.then(wF)};return{getType:i,toBlob:o,toDataURL:a,toBase64:s,toAdjustedBlob:u,toAdjustedDataURL:l,toAdjustedBase64:c,toCanvas:d}},YF=function(e){return PF(e).then((function(t){return IF(AF(e),e,t)}))},RF=function(e,t){return OF(e,t).then((function(t){return IF(WD.resolve(e),t,e.toDataURL())}))},NF=function(e){return YF(e)},HF=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},zF=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},jF=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],BF=function(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i},VF=function(e,t){var n;return t=HF(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?jF[t]:jF[Math.floor(t)]*(1-n)+jF[Math.floor(t)+1]*n,n=127*n+127),BF(e,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},$F=function(e,t){return t=HF(255*t,-255,255),BF(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},UF=function(e,t,n,r){return t=HF(t,0,2),n=HF(n,0,2),r=HF(r,0,2),BF(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},WF=function(e,t){return e.toCanvas().then((function(n){return qF(n,e.getType(),t)}))},qF=function(e,t,n){var r=kF(e),i=function(e,t){for(var n,r,i,o,a=e.data,s=t[0],u=t[1],l=t[2],c=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=t[8],g=t[9],v=t[10],_=t[11],b=t[12],y=t[13],x=t[14],w=t[15],k=t[16],M=t[17],S=t[18],L=t[19],C=0;C<a.length;C+=4)n=a[C],r=a[C+1],i=a[C+2],o=a[C+3],a[C]=n*s+r*u+i*l+o*c+d,a[C+1]=n*f+r*h+i*p+o*m+g,a[C+2]=n*v+r*_+i*b+o*y+x,a[C+3]=n*w+r*k+i*M+o*S+L;return e},o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),RF(e,t)},GF=function(e,t){return e.toCanvas().then((function(n){return KF(n,e.getType(),t)}))},KF=function(e,t,n){var r=kF(e),i=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,u=e.width,l=e.height,c=0;c<l;c++)for(var d=0;d<u;d++){for(var f=0,h=0,p=0,m=0;m<i;m++)for(var g=0;g<i;g++){var v=r(d+g-o,0,u-1),_=r(c+m-o,0,l-1),b=4*(_*u+v),y=n[m*i+g];f+=a[b]*y,h+=a[b+1]*y,p+=a[b+2]*y}var x=4*(c*u+d);s[x]=r(f,0,255),s[x+1]=r(h,0,255),s[x+2]=r(p,0,255)}return t},o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),RF(e,t)},JF=function(e){var t=function(t,n,r){for(var i=kF(t),o=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},s=0;s<o.length;s++)o[s]=e(s,r);var u=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(u,0,0),RF(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},XF=function(e){return function(t,n){return WF(t,e(zF(),n))}},QF=function(e){return function(t){return WF(t,e)}},ZF=function(e){return function(t){return GF(t,e)}},eI=QF([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),tI=XF($F),nI=XF(VF),rI=function(e,t,n,r){return WF(e,UF(zF(),t,n,r))},iI=ZF([0,-1,0,-1,5,-1,0,-1,0]),oI=JF((function(e,t){return 255*Math.pow(e/255,1-t)})),aI=function(e,t,n){var r=SF(e),i=LF(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var u=sI(e,o,a);return s?u.then((function(e){return aI(e,t,n)})):u},sI=function(e,t,n){return new WD((function(r){var i=SF(e),o=LF(e),a=Math.floor(i*t),s=Math.floor(o*n),u=xF(a,s),l=kF(u);l.drawImage(e,0,0,i,o,0,0,a,s),r(u)}))},uI=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},lI=function(e,t){return e.toCanvas().then((function(n){return cI(n,e.getType(),t)}))},cI=function(e,t,n){var r=n<0?360+n:n,i=r*Math.PI/180,o=e.width,a=e.height,s=Math.sin(i),u=Math.cos(i),l=uI(Math.abs(o*u)+Math.abs(a*s)),c=uI(Math.abs(o*s)+Math.abs(a*u)),d=xF(l,c),f=kF(d);return f.translate(l/2,c/2),f.rotate(i),f.drawImage(e,-o/2,-a/2),RF(d,t)},dI=function(e,t){return e.toCanvas().then((function(n){return fI(n,e.getType(),t)}))},fI=function(e,t,n){var r=xF(e.width,e.height),i=kF(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),RF(r,t)},hI=function(e,t,n,r,i){return e.toCanvas().then((function(o){return pI(o,e.getType(),t,n,r,i)}))},pI=function(e,t,n,r,i,o){var a=xF(i,o),s=kF(a);return s.drawImage(e,-n,-r),RF(a,t)},mI=function(e,t,n){return e.toCanvas().then((function(r){return aI(r,t,n).then((function(t){return RF(t,e.getType())}))}))},gI=function(e){return eI(e)},vI=function(e){return iI(e)},_I=function(e,t){return oI(e,t)},bI=function(e,t,n,r){return rI(e,t,n,r)},yI=function(e,t){return tI(e,t)},xI=function(e,t){return nI(e,t)},wI=function(e,t){return dI(e,t)},kI=function(e,t,n,r,i){return hI(e,t,n,r,i)},MI=function(e,t,n){return mI(e,t,n)},SI=function(e,t){return lI(e,t)},LI=function(e,t,n){return Yw(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},CI=function(e,t){return LI(e,t,[])},TI=function(e,t){return LI(e,t,[Hy.config({})])},DI=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:fd([Hy.config({})])}},OI=iu("toolbar.button.execute"),EI=function(e){return Us((function(t,n){pL(e,t)((function(n){ks(t,OI,{buttonApi:n}),e.onAction(n)}))}))},AI=(xO={},xO[ts()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],xO),PI=iu("update-menu-text"),FI=iu("update-menu-icon"),II=function(e,t,n){var r=ia(g),i=e.text.map((function(e){return Mw(DI(e,t,n.providers))})),o=e.icon.map((function(e){return Mw(TI(e,n.providers.icons))})),a=function(e,t){var n=eg.getValue(e);return Jy.focus(n),ks(n,"keydown",{raw:t.event.raw}),RO.close(n),Y.some(!0)},s=e.role.fold((function(){return{}}),(function(e){return{role:e}})),u=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),l=Yw("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons),c=Mw(RO.sketch(D(D(D({},e.uid?{uid:e.uid}:{}),s),{dom:{tag:"button",classes:[t,t+"--select"].concat(W(e.classes,(function(e){return t+"--"+e}))),attributes:D({},u)},components:bL([o.map((function(e){return e.asSpec()})),i.map((function(e){return e.asSpec()})),Y.some(l)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:fd(E(E([],e.dropdownBehaviours,!0),[hL.button((function(){return e.disabled||n.providers.isDisabled()})),uL(),jO.config({}),Hy.config({}),jy("dropdown-events",[mL(e,r),gL(e,r)]),jy("menubutton-update-display-text",[As(PI,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){Hy.set(e,[kl(n.providers.translate(t.event.text))])}))})),As(FI,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){Hy.set(e,[TI(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:xi(AI,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:fd([Dy.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:gM(!1,e.columns,e.presets)},fetch:function(t){return eO.nu(k(e.fetch,t))}})));return c.asSpec()},YI=function(e){return o(e)},RI=function(e){return"separator"===e.type},NI=function(e){return Ce(e,"getSubmenuItems")},HI={type:"separator"},zI=function(e,t){var n=Q(e,(function(e,n){return YI(n)?""===n?e:"|"===n?e.length>0&&!RI(e[e.length-1])?e.concat([HI]):e:Ce(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&RI(n[n.length-1])&&n.pop(),n},jI=function(e,t){var n=e.getSubmenuItems(),r=$I(n,t),i=xi(r.menus,ha(e.value,r.items)),o=xi(r.expansions,ha(e.value,e.value));return{item:e,menus:i,expansions:o}},BI=function(e,t){return NI(e)?jI(e,t):{item:e,menus:{},expansions:{}}},VI=function(e){if(RI(e))return e;var t=Le(e,"value").getOrThunk((function(){return iu("generated-menu-item")}));return xi({value:t},e)},$I=function(e,t){var n=zI(o(e)?e.split(" "):e,t);return X(n,(function(e,n){var r=VI(n),i=BI(r,t);return{menus:xi(e.menus,i.menus),items:[i.item].concat(e.items),expansions:xi(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},UI=function(e,t,n,r){var i=iu("primary-menu"),o=$I(e,n.shared.providers.menuItems());if(0===o.items.length)return Y.none();var a=ET(i,o.items,t,n,r),s=_e(o.menus,(function(e,r){return ET(r,e,t,n,!1)})),u=xi(s,ha(i,a));return Y.from(Qx.tieredData(i,u,o.expansions))},WI=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)},setActive:function(t){var n=e.element;t?(ol(n,"tox-tbtn--enabled"),zn(n,"aria-pressed",!0)):(sl(n,"tox-tbtn--enabled"),Un(n,"aria-pressed"))},isActive:function(){return ul(e.element,"tox-tbtn--enabled")}}},qI=function(e,t,n,r){return II({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(UI(e,Vk.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:WI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[bD.config({})]},t,n.shared)},GI=function(e,t,n){var r=function(e){return function(r){var i=!r.isActive();r.setActive(i),e.storage.set(i),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){wd(t.element),ks(t,OD,{name:e.name,value:e.storage.get()})}))}))}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(W(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return D(D({type:e.type,active:!1},t),{onAction:r(e),onSetup:i(e)})})))}},KI=function(e,t,n,r,i,o){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=D({buttonBehaviours:fd([hL.button((function(){return e.disabled||o.isDisabled()})),uL(),bD.config({}),jy("button press",[Es("click"),Es("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=xi(s,{dom:r});return xi(u,{components:i})},JI=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return CI(e,n.icons)})),s=bL([a]);return KI(e,t,r,o,s,n)},XI=function(e,t,n,r){void 0===r&&(r=[]);var i=JI(e,Y.some(t),n,r);return kw.sketch(i)},QI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return CI(e,n.icons)})):Y.none(),s=a.isSome()?bL([a]):[],u=a.isSome()?{}:{innerHtml:o},l=E(E(E(E([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),i,!0),c=D(D({tag:"button",classes:l},u),{attributes:{title:o}});return KI(e,t,r,c,s,n)},ZI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=QI(e,Y.some(t),n,r,i);return kw.sketch(o)},eY=function(e,t){return function(n){"custom"===t?ks(n,OD,{name:e,value:{}}):"submit"===t?ws(n,ED):"cancel"===t?ws(n,DD):console.error("Unknown button type: ",t)}},tY=function(e,t){return"menu"===t},nY=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},rY=function(e,t,n){if(tY(e,t)){var r=function(){return a},i=e,o=D(D({},e),{onSetup:function(t){return t.setDisabled(e.disabled),g},fetch:GI(i.items,r,n)}),a=Mw(qI(o,"tox-tbtn",n,Y.none()));return a.asSpec()}if(nY(e,t)){var s=eY(e.name,t),u=D(D({},e),{borderless:!1});return ZI(u,s,n.shared.providers,[])}console.error("Unknown footer button type: ",t)},iY=function(e,t){var n=eY(e.name,"custom");return wD(Y.none(),mD.parts.field(D({factory:kw},QI(e,Y.some(n),t,[aF.memory(""),$P.self()]))))},oY=y([Go("field1Name","field1"),Go("field2Name","field2"),lc("onLockedChange"),oc(["lockClass"]),Go("locked",!1),ig.field("coupledFieldBehaviours",[_v,eg])]),aY=function(e,t,n){return Gg(e,t,n).bind(_v.getCurrent)},sY=function(e,t){return Pg({factory:mD,name:e,overrides:function(e){return{fieldBehaviours:fd([jy("coupled-input-behaviour",[As(Ba(),(function(n){aY(n,e,t).each((function(t){Gg(n,e,"lock").each((function(r){mx.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},uY=y([sY("field1","field2"),sY("field2","field1"),Pg({factory:kw,schema:[Do("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:fd([mx.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),lY=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:ig.augment(e.coupledFieldBehaviours,[_v.config({find:Y.some}),eg.config({store:{mode:"manual",getValue:function(t){var n,r=Zg(t,e,["field1","field2"]);return n={},n[e.field1Name]=eg.getValue(r.field1()),n[e.field2Name]=eg.getValue(r.field2()),n},setValue:function(t,n){var r=Zg(t,e,["field1","field2"]);Te(n,e.field1Name)&&eg.setValue(r.field1(),n[e.field1Name]),Te(n,e.field2Name)&&eg.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Gg(t,e,"field1")},getField2:function(t){return Gg(t,e,"field2")},getLock:function(t){return Gg(t,e,"lock")}}}},cY=hv({name:"FormCoupledInputs",configFields:oY(),partFields:uY(),factory:lY,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),dY=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},fY=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ri.value({value:r,unit:i})}return ri.error(e)},hY=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Ce(n,e)};return e.unit===t?Y.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?Y.some(e.value):Y.some(e.value/n[e.unit]*n[t]):Y.none()},pY=function(e){return Y.none()},mY=function(e,t){return function(n){return hY(n,t).map((function(n){return{value:n*e,unit:t}}))}},gY=function(e,t){var n=fY(e).toOptional(),r=fY(t).toOptional();return Pe(n,r,(function(e,t){return hY(e,t.unit).map((function(e){return t.value/e})).map((function(e){return mY(e,t.unit)})).getOr(pY)})).getOr(pY)},vY=function(e,t){var n=pY,r=iu("ratio-event"),i=function(e){return Yw(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},o=cY.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[i("lock"),i("unlock")],buttonBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uL(),bD.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},s=function(n){return mD.parts.field({factory:BD,inputClasses:["tox-textfield"],inputBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uL(),bD.config({}),jy("size-input-events",[As(Na(),(function(e,t){ks(e,r,{isField1:n})})),As(Va(),(function(t,n){ks(t,CD,{name:e.name})}))])]),selectOnFocus:!1})},u=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},l=cY.parts.field1(a([mD.parts.label(u("Width")),s(!0)])),c=cY.parts.field2(a([mD.parts.label(u("Height")),s(!1)]));return cY.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[l,c,a([u("&nbsp;"),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){fY(eg.getValue(e)).each((function(e){n(e).each((function(e){eg.setValue(t,dY(e))}))}))},coupledFieldBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){cY.getField1(e).bind(mD.getField).each(Rv.disable),cY.getField2(e).bind(mD.getField).each(Rv.disable),cY.getLock(e).each(Rv.disable)},onEnabled:function(e){cY.getField1(e).bind(mD.getField).each(Rv.enable),cY.getField2(e).bind(mD.getField).each(Rv.enable),cY.getLock(e).each(Rv.enable)}}),uL(),jy("size-input-events2",[As(r,(function(e,t){var r=t.event.isField1,i=r?cY.getField1(e):cY.getField2(e),o=r?cY.getField2(e):cY.getField1(e),a=i.map(eg.getValue).getOr(""),s=o.map(eg.getValue).getOr("");n=gY(a,s)}))])])})},_Y=y(iu("undo")),bY=y(iu("redo")),yY=y(iu("zoom")),xY=y(iu("back")),wY=y(iu("apply")),kY=y(iu("swap")),MY=y(iu("transform")),SY=y(iu("temp-transform")),LY=y(iu("transform-apply")),CY={undo:_Y,redo:bY,zoom:yY,back:xY,apply:wY,swap:kY,transform:MY,tempTransform:SY,transformApply:LY},TY=y("save-state"),DY=y("disable"),OY=y("enable"),EY={formActionEvent:OD,saveState:TY,disable:DY,enable:OY},AY=function(e,t){var n=function(e,n,r,i){return Mw(ZI({name:e,text:e,disabled:r,primary:i,icon:Y.none(),borderless:!1},n,t))},r=function(e,n,r,i){return Mw(XI({name:e,icon:Y.some(e),tooltip:Y.some(n),disabled:i,primary:!1,borderless:!1},r,t))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Rv)&&Rv.disable(n)}))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Rv)&&Rv.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=g,u=function(e,t,n){ks(e,t,n)},l=function(e){return ws(e,EY.disable())},c=function(e){return ws(e,EY.enable())},d=function(e,t){l(e),u(e,CY.transform(),{transform:t}),c(e)},f=function(e,t){l(e),u(e,CY.tempTransform(),{transform:t}),c(e)},h=function(e){return function(){ae.getOpt(e).each((function(e){Hy.set(e,[ie])}))}},p=function(e,t){l(e),u(e,CY.transformApply(),{transform:t,swap:h(e)}),c(e)},m=function(){return n("Back",(function(e){return u(e,CY.back(),{swap:h(e)})}),!1,!1)},v=function(){return Mw({dom:{tag:"div",classes:["tox-spacer"]},behaviours:fd([Rv.config({})])})},_=function(){return n("Apply",(function(e){return u(e,CY.apply(),{swap:h(e)})}),!0,!0)},b=function(){return function(t){var n=e.getRect();return kI(t,n.x,n.y,n.w,n.h)}},x=[m(),v(),n("Apply",(function(t){var n=b();p(t,n),e.hideCrop()}),!1,!0)],w=lD.sketch({dom:a,components:x.map((function(e){return e.asSpec()})),containerBehaviours:fd([jy("image-tools-crop-buttons-events",[As(EY.disable(),(function(e,t){i(x,e)})),As(EY.enable(),(function(e,t){o(x,e)}))])])}),k=Mw(vY({name:"size",label:Y.none(),constrain:!0,disabled:!1},t)),M=function(e,t){return function(n){return MI(n,e,t)}},S=[m(),v(),k,v(),n("Apply",(function(e){k.getOpt(e).each((function(t){var n=eg.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=M(r,i);p(e,o)}))}),!1,!0)],L=lD.sketch({dom:a,components:S.map((function(e){return e.asSpec()})),containerBehaviours:fd([jy("image-tools-resize-buttons-events",[As(EY.disable(),(function(e,t){i(S,e)})),As(EY.enable(),(function(e,t){o(S,e)}))])])}),C=function(e,t){return function(n){return e(n,t)}},T=C(wI,"h"),D=C(wI,"v"),O=C(SI,-90),E=C(SI,90),A=function(e,t){f(e,t)},P=[m(),v(),r("flip-horizontally","Flip horizontally",(function(e){A(e,T)}),!1),r("flip-vertically","Flip vertically",(function(e){A(e,D)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){A(e,O)}),!1),r("rotate-right","Rotate clockwise",(function(e){A(e,E)}),!1),v(),_()],F=lD.sketch({dom:a,components:P.map((function(e){return e.asSpec()})),containerBehaviours:fd([jy("image-tools-fliprotate-buttons-events",[As(EY.disable(),(function(e,t){i(P,e)})),As(EY.enable(),(function(e,t){o(P,e)}))])])}),I=function(e,n,r,i,o){var a=wP.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),s=wP.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),u=wP.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Mw(wP.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:o,getInitialValue:y({x:i})},components:[a,s,u],sliderBehaviours:fd([Jy.config({})]),onChoose:n}))},R=function(e,t,n,r,i){var o=function(e,n,r){var i=C(t,r.x/100);d(e,i)};return I(e,o,n,r,i)},N=function(e,t,n,r,i){return[m(),R(e,t,n,r,i),_()]},H=function(e,t,n,r,s){var u=N(e,t,n,r,s);return lD.sketch({dom:a,components:u.map((function(e){return e.asSpec()})),containerBehaviours:fd([jy("image-tools-filter-panel-buttons-events",[As(EY.disable(),(function(e,t){i(u,e)})),As(EY.enable(),(function(e,t){o(u,e)}))])])})},z=[m(),v(),_()],j=lD.sketch({dom:a,components:z.map((function(e){return e.asSpec()}))}),B=H("Brightness",yI,-100,0,100),V=H("Contrast",xI,-100,0,100),$=H("Gamma",_I,-100,0,100),U=function(e,t,n){return function(r){return bI(r,e,t,n)}},W=function(e){var t=function(e,t,n){var r=q.getOpt(e),i=K.getOpt(e),o=G.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=eg.getValue(t).x/100,o=eg.getValue(r).x/100,a=eg.getValue(n).x/100,s=U(i,o,a);d(e,s)}))}))}))};return I(e,t,0,100,200)},q=W("R"),G=W("G"),K=W("B"),J=[m(),q,G,K,_()],X=lD.sketch({dom:a,components:J.map((function(e){return e.asSpec()}))}),Q=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){Hy.set(t,[e]),n(t)}))};u(r,CY.swap(),{transform:t,swap:i})}},Z=function(t){e.showCrop()},ee=function(t){k.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;eg.setValue(t,{width:r,height:i})}))},te=Y.some(vI),ne=Y.some(gI),re=[r("crop","Crop",Q(w,Y.none(),Z),!1),r("resize","Resize",Q(L,Y.none(),ee),!1),r("orientation","Orientation",Q(F,Y.none(),s),!1),r("brightness","Brightness",Q(B,Y.none(),s),!1),r("sharpen","Sharpen",Q(j,te,s),!1),r("contrast","Contrast",Q(V,Y.none(),s),!1),r("color-levels","Color levels",Q(X,Y.none(),s),!1),r("gamma","Gamma",Q($,Y.none(),s),!1),r("invert","Invert",Q(j,ne,s),!1)],ie=lD.sketch({dom:a,components:re.map((function(e){return e.asSpec()}))}),oe=lD.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:fd([Hy.config({})])}),ae=Mw(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},PY=tinymce.util.Tools.resolve("tinymce.geom.Rect"),FY=tinymce.util.Tools.resolve("tinymce.util.Observable"),IY=tinymce.util.Tools.resolve("tinymce.util.VK"),YY=function(e){var t=Math.max,n=e.documentElement,r=e.body,i=t(n.scrollWidth,r.scrollWidth),o=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),s=t(n.scrollHeight,r.scrollHeight),u=t(n.clientHeight,r.clientHeight),l=t(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<l?u:s}},RY=function(e){return f(e.changedTouches)},NY=function(e){if(RY(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function HY(e,t){var n,r,i,o,a,s,u,l=[],c=[],d=null!==(n=t.document)&&void 0!==n?n:document,h=null!==(r=t.root)&&void 0!==r?r:d,p=tt.fromDom(d),m=tt.fromDom(h.getElementById(null!==(i=t.handle)&&void 0!==i?i:e)),g=function(e){var n=e.raw,r=YY(d);NY(n),e.prevent(),a=n.button,s=n.screenX,u=n.screenY;var i=Xn(m,"cursor");o=tt.fromTag("div",d),Kn(o,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:i}),Or(Nn(p),o),c.push(af(p,"mousemove",v),af(p,"touchmove",v),af(p,"mouseup",_),af(p,"touchend",_)),t.start(n)},v=function(e){var n=e.raw;if(NY(n),n.button!==a)return _(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-u,e.prevent(),t.drag(n)},_=function(e){NY(e.raw),q(c,(function(e){return e.unbind()})),c=[],Ir(o),t.stop&&t.stop(e.raw)},b=function(){q(c.concat(l),(function(e){return e.unbind()})),c=[],l=[],f(o)&&Ir(o)};return l.push(af(m,"mousedown",g),af(m,"touchstart",g)),{destroy:b}}var zY=0,jY=function(e,t,n,r,i){var o,a=[],s="tox-",u=s+"crid-"+zY++,l=tt.fromDom(r),c=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],d=["top","right","bottom","left"],f=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},h=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},p=function(){return h(n,e)},m=function(t,r,i,o){var a=r.x+i*t.deltaX,s=r.y+o*t.deltaY,u=Math.max(20,r.w+i*t.deltaW),l=Math.max(20,r.h+o*t.deltaH),c=e=PY.clamp({x:a,y:s,w:u,h:l},n,"move"===t.name);c=h(n,c),M.fire("updateRect",{rect:c}),x(c)},g=function(){var t=function(t){var n;return HY(u,{document:r.ownerDocument,root:Dn(l).dom,handle:u+"-"+t.name,start:function(){n=e},drag:function(e){m(t,n,e.deltaX,e.deltaY)}})},n=tt.fromTag("div");jn(n,{id:u,class:s+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Or(l,n),q(d,(function(e){Nl(l,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e,class:s+"croprect-block","data-mce-bogus":"all"}),Gn(n,"display","none"),Or(t,n)}))})),q(c,(function(e){Nl(l,"#"+u).each((function(t){var n=tt.fromTag("div");jn(n,{id:u+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),ll(n,[s+"croprect-handle",s+"croprect-handle-"+e.name]),Gn(n,"display","none"),Or(t,n)}))})),o=W(c,t),_(e);var f=function(e){zn(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")},h=function(t){var n;q(c,(function(e){if(Bn(t.target,"id")===u+"-"+e.name)return n=e,!1}));var r=function(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),m(n,r,i,o)};switch(t.raw.keyCode){case IY.LEFT:r(t,n,e,-10,0);break;case IY.RIGHT:r(t,n,e,10,0);break;case IY.UP:r(t,n,e,0,-10);break;case IY.DOWN:r(t,n,e,0,10);break;case IY.ENTER:case IY.SPACEBAR:t.prevent(),i();break}};a.push(af(l,"focusin",f),af(l,"focusout",f),af(l,"keydown",h))},v=function(e){var t=E(E([],W(c,(function(e){return"#"+u+"-"+e.name})),!0),W(d,(function(e){return"#"+u+"-"+e})),!0).join(","),n=Kh(l,t);q(n,e?function(e){return nr(e,"display")}:function(e){return Gn(e,"display","none")})},_=function(e){var n=function(e,t){Nl(l,"#"+u+"-"+e).each((function(e){Kn(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))};q(c,(function(t){Nl(l,"#"+u+"-"+t.name).each((function(n){Kn(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},b=function(t){e=t,_(e)},y=function(n){t=n,_(e)},x=function(e){b(f(n,e))},w=function(t){n=t,_(e)},k=function(){q(o,(function(e){return e.destroy()})),o=[],q(a,(function(e){return e.unbind()})),a=[]};g();var M=D(D({},FY),{toggleVisibility:v,setClampRect:w,setRect:b,getInnerRect:p,setInnerRect:x,setViewPortRect:y,destroy:k});return M},BY={create:jY},VY=function(e){return new ak((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},$Y=function(e){var t=Mw({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=ia(1),r=nf(),i=ia({x:0,y:0,w:1,h:1}),o=ia({x:0,y:0,w:1,h:1}),a=function(e,o){p.getOpt(e).each((function(e){var a=n.get(),s=vr(e.element),u=ar(e.element),l=o.dom.naturalWidth*a,c=o.dom.naturalHeight*a,d=Math.max(0,s/2-l/2),f=Math.max(0,u/2-c/2),h={left:d.toString()+"px",top:f.toString()+"px",width:l.toString()+"px",height:c.toString()+"px",position:"absolute"};Kn(o,h),t.getOpt(e).each((function(e){Kn(e.element,h)})),r.run((function(e){var t=i.get();e.setRect({x:t.x*a+d,y:t.y*a+f,w:t.w*a,h:t.h*a}),e.setClampRect({x:d,y:f,w:l,h:c}),e.setViewPortRect({x:0,y:0,w:s,h:u})}))}))},s=function(e,t){p.getOpt(e).each((function(e){var r=vr(e.element),i=ar(e.element),o=t.dom.naturalWidth,a=t.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},u=function(e,t){var n=tt.fromTag("img");return zn(n,"src",t),VY(n.dom).then((function(){e.getSystem().isConnected()&&p.getOpt(e).map((function(e){var t=Ml({element:n});Hy.replaceAt(e,1,Y.some(t));var r=o.get(),u={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(u);var l=PY.inflate(u,-20,-20);i.set(l),r.w===u.w&&r.h===u.h||s(e,n),a(e,n)}))}))},l=function(e,t){var r=n.get(),i=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(e).each((function(e){var t=e.components()[1].element;a(e,t)}))},c=function(){r.run((function(e){e.toggleVisibility(!0)}))},d=function(){r.run((function(e){e.toggleVisibility(!1)}))},f=function(){return i.get()},h=lD.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:fd([jy("image-panel-crop-events",[Bs((function(e){p.getOpt(e).each((function(e){var t=e.element.dom,o=BY.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,g);o.toggleVisibility(!1),o.on("updateRect",(function(e){var t=e.rect,r=n.get(),o={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};i.set(o)})),r.set(o)}))})),Vs((function(){r.clear()}))])])}],containerBehaviours:fd([Hy.config({}),jy("image-panel-events",[Bs((function(t){u(t,e)}))])])}),p=Mw(h),m=function(){var e=o.get();return{width:e.w,height:e.h}};return{memContainer:p,updateSrc:u,zoom:l,showCrop:c,hideCrop:d,getRect:f,getMeasurements:m}},UY=function(e,t,n,r,i){return XI({name:e,icon:Y.some(t),disabled:n,tooltip:Y.some(e),primary:!1,borderless:!1},r,i)},WY=function(e,t){t?Rv.enable(e):Rv.disable(e)},qY=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){WY(e,t)})),r.getOpt(e).each((function(e){WY(e,i)}))},n=Mw(UY("Undo","undo",!0,(function(e){ks(e,CY.undo(),{direction:1})}),e)),r=Mw(UY("Redo","redo",!0,(function(e){ks(e,CY.redo(),{direction:1})}),e)),i=lD.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),UY("Zoom in","zoom-in",!1,(function(e){ks(e,CY.zoom(),{direction:1})}),e),UY("Zoom out","zoom-out",!1,(function(e){ks(e,CY.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function GY(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(o())return e[--t]},i=function(){if(a())return e[++t]},o=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var KY,JY=function(e){var t=ia(e),n=rf(),r=GY();r.add(e);var i=function(){return t.get()},o=function(e){t.set(e)},a=function(){return n.get().getOrThunk(t.get)},s=function(e){var t=u(e);return d(),n.set(t),t.url},u=function(e){return{blob:e,url:URL.createObjectURL(e)}},l=function(e){URL.revokeObjectURL(e.url)},c=function(e){QP.each(e,l)},d=function(){n.on(l),n.clear()},f=function(e){var t=u(e);o(t);var n=r.add(t).removed;return c(n),t.url},h=function(e){var t=u(e);return n.set(t),t.url},p=function(e){return n.get().fold(g,(function(t){f(t.blob),e()}))},m=function(){var e=r.undo();return o(e),e.url},v=function(){var e=r.redo();return o(e),e.url},_=function(){var e=r.canUndo(),t=r.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:i,setBlobState:o,addBlobState:f,getTempState:a,updateTempState:s,addTempState:h,applyTempState:p,destroyTempState:d,undo:m,redo:v,getHistoryStates:_}},XY=function(e,t){var n=JY(e.currentState),r=function(e,t){var n=t.event.direction;M.zoom(e,n)},i=function(e){var t=n.getHistoryStates();S.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),ks(e,EY.formActionEvent,{name:EY.saveState(),value:t.undoEnabled})},o=function(e){S.updateButtonUndoStates(e,!1,!1)},a=function(e,t){var r=n.undo();d(e,r).then((function(t){c(e),i(e)}))},s=function(e,t){var r=n.redo();d(e,r).then((function(t){c(e),i(e)}))},u=function(e){return e.toBlob()},l=function(e){ks(e,EY.formActionEvent,{name:EY.disable(),value:{}})},c=function(e){L.getApplyButton(e).each((function(e){Rv.enable(e)})),ks(e,EY.formActionEvent,{name:EY.enable(),value:{}})},d=function(e,t){return l(e),M.updateSrc(e,t)},f=function(e,t,n,r,o){l(e),NF(t).then(n).then(u).then(r).then((function(t){return d(e,t)})).then((function(){i(e),o(),c(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&c(e)}))},h=function(e,t,r){var i=n.getBlobState().blob,o=function(e){return n.updateTempState(e)};f(e,i,t,o,r)},p=function(e,t){var r=n.getTempState().blob,i=function(e){return n.addTempState(e)};f(e,r,t,i,g)},m=function(e,t,r){var i=n.getBlobState().blob,o=function(t){var r=n.addBlobState(t);return _(e),r};f(e,i,t,o,r)},v=function(e,t){var r=function(){_(e);var n=t.event.swap;n()};n.applyTempState(r)},_=function(e){var t=n.getBlobState().url;return n.destroyTempState(),i(e),t},b=function(e){var t=_(e);d(e,t).then((function(t){c(e)}))},y=function(e,t){b(e);var n=t.event.swap;n(),M.hideCrop()},x=function(e,t){return h(e,t.event.transform,g)},w=function(e,t){return p(e,t.event.transform)},k=function(e,t){return m(e,t.event.transform,t.event.swap)},M=$Y(e.currentState.url),S=qY(t),L=AY(M,t),C=function(e,t){o(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){h(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[L.memContainer.asSpec(),M.memContainer.asSpec(),S.container],behaviours:fd([eg.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),jy("image-tools-events",[As(CY.undo(),a),As(CY.redo(),s),As(CY.zoom(),r),As(CY.back(),y),As(CY.apply(),v),As(CY.transform(),x),As(CY.tempTransform(),w),As(CY.transformApply(),k),As(CY.swap(),C)]),$P.self()])}},QY=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=W(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:fd([$P.self(),Hy.config({}),aF.domHtml(Y.none()),Dy.config({mode:"acyclic"})])}},ZY=function(e){return!Ce(e,"items")},eR="data-value",tR=function(e,t,n,r){return W(n,(function(n){return ZY(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){eg.setValue(e,n.value),ks(e,CD,{name:t}),Jy.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return tR(e,t,n.items,r)}}}))},nR=function(e,t){return pe(e,(function(e){return ZY(e)?Ye(e.value===t,e):nR(e.items,t)}))},rR=function(e,t){var n=t.shared.providers,r=de(e.items).filter(ZY),i=e.label.map((function(e){return LD(e,n)})),o=mD.parts.field({dom:{},factory:{sketch:function(n){return II({uid:n.uid,text:r.map((function(e){return e.text})),icon:Y.none(),tooltip:e.label,role:Y.none(),fetch:function(n,r){var i=tR(n,e.name,e.items,eg.getValue(n));r(UI(i,Vk.CLOSE_ON_EXECUTE,t,!1))},onSetup:y(g),getApi:y({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[bD.config({}),eg.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return Bn(e.element,eR)},setValue:function(t,n){nR(e.items,n).each((function(e){zn(t.element,eR,e.value),ks(t,PI,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[o]};return mD.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([i.toArray(),[a]]),fieldBehaviours:fd([Rv.config({disabled:y(e.disabled),onDisabled:function(e){mD.getField(e).each(Rv.disable)},onEnabled:function(e){mD.getField(e).each(Rv.enable)}})])})},iR=function(e,t){return{dom:{tag:"div",classes:e.classes},components:W(e.items,t.shared.interpreter)}},oR=function(e,t){var n=W(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return ha("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:rg(e.selectBehaviours,[Jy.config({}),eg.config({store:D({mode:"manual",getValue:function(e){return fl(e.element)},setValue:function(t,n){var r=ee(e.options,(function(e){return e.value===n}));r.isSome()&&hl(t.element,n)}},r)})])}},aR=fv({name:"HtmlSelect",configFields:[Do("options"),tg("selectBehaviours",[Jy,eg]),Go("selectClasses",[]),Go("selectAttributes",{}),zo("data")],factory:oR}),sR=function(e,t){var n=W(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return LD(e,t)})),i=mD.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:aR,selectBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()}}),bD.config({}),jy("selectbox-change",[As(Va(),(function(t,n){ks(t,CD,{name:e.name})}))])])}),o=e.size>1?Y.none():Y.some(Yw("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[i],o.toArray()])};return mD.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([r.toArray(),[a]]),fieldBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){mD.getField(e).each(Rv.disable)},onEnabled:function(e){mD.getField(e).each(Rv.enable)}}),uL()])})},uR=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:W(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:W(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:W(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:fd([bD.config({}),Jy.config({})])}},lR=function(e,t){var n=e.label.map((function(e){return LD(e,t)})),r=[Rv.config({disabled:function(){return e.disabled||t.isDisabled()}}),uL(),Dy.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return ws(e,ED),Y.some(!0)}}),jy("textfield-change",[As(Ba(),(function(t,n){ks(t,CD,{name:e.name})})),As(Za(),(function(t,n){ks(t,CD,{name:e.name})}))]),bD.config({})],i=e.validation.map((function(e){return fO.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=eg.getValue(t),r=e.validator(n);return eO.pure(!0===r?ri.value(n):ri.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),o=e.placeholder.fold(y({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(y({}),(function(e){return{inputmode:e}})),s=D(D({},o),a),u=mD.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:s,inputClasses:[e.classname],inputBehaviours:fd(ne([r,i])),selectOnFocus:!1,factory:BD}),l=e.flex?["tox-form__group--stretched"]:[],c=l.concat(e.maximized?["tox-form-group--maximize"]:[]),d=[Rv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){mD.getField(e).each(Rv.disable)},onEnabled:function(e){mD.getField(e).each(Rv.enable)}}),uL()];return xD(n,u,c,d)},cR=function(e,t){return lR({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:Y.none(),maximized:e.maximized},t)},dR=function(e,t){return lR({name:e.name,multiline:!0,label:e.label,inputMode:Y.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:Y.none(),maximized:e.maximized},t)},fR=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return Ts([As(e.event,r),Vs((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[As(e,(function(){return t.cancel()}))]})).getOr([])))},hR=Object.freeze({__proto__:null,events:fR}),pR=function(e){var t=ia(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return Su({readState:n,setTimer:r,cancel:i})},mR=function(e){return e.stream.streams.state(e)},gR=Object.freeze({__proto__:null,throttle:pR,init:mR}),vR=function(e,t){var n=e.stream,r=$w(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},_R=[Oo("stream",Mo("mode",{throttle:[Do("delay"),Go("stopEvent",!0),dc("streams",{setup:vR,state:pR})]})),Go("event","input"),zo("cancelEvent"),lc("onStream")],bR=pd({fields:_R,name:"streaming",active:hR,state:gR}),yR=function(e,t,n){var r=eg.getValue(n);eg.setValue(t,r),wR(t)},xR=function(e,t){var n=e.element,r=fl(n),i=n.dom;"number"!==Bn(n,"type")&&t(i,r)},wR=function(e){xR(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},kR=function(e,t){xR(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},MR=function(e,t,n){if(e.selectsOver){var r=eg.getValue(t),i=e.getDisplayText(r),o=eg.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?Y.some((function(){yR(e,t,n),kR(t,i.length)})):Y.none()}return Y.none()},SR=y("alloy.typeahead.itemexecute"),LR=function(e,t,n,r){var i=function(t,n,i){e.previewing.set(!1);var o=_O.getCoupled(t,"sandbox");if(_m.isOpen(o))_v.getCurrent(o).each((function(e){r_.getHighlighted(e).fold((function(){i(e)}),(function(){Cs(o,e.element,"keydown",n)}))}));else{var s=function(e){_v.getCurrent(e).each(i)};SO(e,a(t),t,o,r,s,UD.HighlightFirst).get(g)}},o=ND(e),a=function(e){return function(t){return t.map((function(t){var n=Se(t.menus),r=re(n,(function(e){return J(e.items,(function(e){return"item"===e.type}))})),i=eg.getState(e);return i.update(W(r,(function(e){return e.data}))),t}))}},s=[Jy.config({}),eg.config({onSetValue:e.onSetValue,store:D({mode:"dataset",getDataKey:function(e){return fl(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){hl(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ha("initialValue",e)})).getOr({}))}),bR.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var i=_O.getCoupled(t,"sandbox"),o=Jy.isFocused(t);if(o&&fl(t.element).length>=e.minChars){var s=_v.getCurrent(i).bind((function(e){return r_.getHighlighted(e).map(eg.getValue)}));e.previewing.set(!0);var u=function(t){_v.getCurrent(i).each((function(t){s.fold((function(){e.model.selectsOver&&r_.highlightFirst(t)}),(function(e){r_.highlightBy(t,(function(t){var n=eg.getValue(t);return n.value===e.value})),r_.getHighlighted(t).orThunk((function(){return r_.highlightFirst(t),Y.none()}))}))}))};SO(e,a(t),t,i,r,u,UD.HighlightFirst).get(g)}},cancelEvent:as()}),Dy.config({mode:"special",onDown:function(e,t){return i(e,t,r_.highlightFirst),Y.some(!0)},onEscape:function(e){var t=_O.getCoupled(e,"sandbox");return _m.isOpen(t)?(_m.close(t),Y.some(!0)):Y.none()},onUp:function(e,t){return i(e,t,r_.highlightLast),Y.some(!0)},onEnter:function(t){var n=_O.getCoupled(t,"sandbox"),r=_m.isOpen(n);if(r&&!e.previewing.get())return _v.getCurrent(n).bind((function(e){return r_.getHighlighted(e)})).map((function(e){return ks(t,SR(),{item:e}),!0}));var i=eg.getValue(t);return ws(t,as()),e.onExecute(n,t,i),r&&_m.close(n),Y.some(!0)}}),mx.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),_O.config({others:{sandbox:function(t){return EO(e,t,{onOpen:function(){return mx.on(t)},onClose:function(){return mx.off(t)}})}}}),jy("typeaheadevents",[Us((function(t){var n=g;CO(e,a(t),t,r,n,UD.HighlightFirst).get(g)})),As(SR(),(function(t,n){var r=_O.getCoupled(t,"sandbox");yR(e.model,t,n.event.item),ws(t,as()),e.onItemExecute(t,r,n.event.item,eg.getValue(t)),_m.close(r),wR(t)}))].concat(e.dismissOnBlur?[As(Qa(),(function(e){var t=_O.getCoupled(e,"sandbox");Ld(t.element).isNone()&&_m.close(t)}))]:[]))];return{uid:e.uid,dom:zD(xi(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:D(D({},o),rg(e.typeaheadBehaviours,s)),eventOrder:e.eventOrder}},CR=y([zo("lazySink"),Do("fetch"),Go("minChars",5),Go("responseTime",1e3),sc("onOpen"),Go("getHotspot",Y.some),Go("getAnchorOverrides",y({})),Go("layouts",Y.none()),Go("eventOrder",{}),ra("model",{},[Go("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Go("selectsOver",!0),Go("populateFromBrowse",!0)]),sc("onSetValue"),uc("onExecute"),sc("onItemExecute"),Go("inputClasses",[]),Go("inputAttributes",{}),Go("inputStyles",{}),Go("matchWidth",!0),Go("useMinWidth",!1),Go("dismissOnBlur",!0),oc(["openClass"]),zo("initialData"),tg("typeaheadBehaviours",[Jy,eg,bR,Dy,mx,_O]),Co("previewing",(function(){return ia(!0)}))].concat(RD()).concat(PO())),TR=y([Fg({schema:[ic()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){MR(e.model,r,n).fold((function(){return r_.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&yR(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return ks(e,SR(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&yR(e.model,t,n)}))}}}})]),DR=hv({name:"Typeahead",configFields:CR(),partFields:TR(),factory:LR}),OR=function(e){var t=function(){return OR(e.toCached())},n=function(t){return OR(e.bind((function(e){return e.fold((function(e){return eO.pure(ri.error(e))}),(function(e){return t(e)}))})))},r=function(t){return OR(e.map((function(e){return e.bind(t)})))},i=function(t){return OR(e.map((function(e){return e.map(t)})))},o=function(t){return OR(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},s=function(t,n){return OR(eO.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(ri.error(n()))}),t);e.get((function(e){i||(clearTimeout(o),r(e))}))})))};return D(D({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},ER=function(e){return OR(eO.nu(e))},AR=function(e){return OR(eO.pure(ri.value(e)))},PR=function(e){return OR(eO.pure(ri.error(e)))},FR=function(e){return OR(eO.pure(e))},IR=function(e){return OR(e.map(ri.value))},YR=function(e){return ER((function(t){e.then((function(e){t(ri.value(e))}),(function(e){t(ri.error(e))}))}))},RR={nu:ER,wrap:OR,pure:AR,value:AR,error:PR,fromResult:FR,fromFuture:IR,fromPromise:YR},NR={type:"separator"},HR=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:g}},zR=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:g}},jR=function(e){return W(e,HR)},BR=function(e,t){return J(t,(function(t){return t.type===e}))},VR=function(e,t){return jR(BR(e,t))},$R=function(e){return VR("header",e.targets)},UR=function(e){return VR("anchor",e.targets)},WR=function(e){return Y.from(e.anchorTop).map((function(e){return zR("<top>",e)})).toArray()},qR=function(e){return Y.from(e.anchorBottom).map((function(e){return zR("<bottom>",e)})).toArray()},GR=function(e){return W(e,(function(e){return zR(e,e)}))},KR=function(e){return Q(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(NR,t)}),[])},JR=function(e,t){var n=e.toLowerCase();return J(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return Be(t.toLowerCase(),n)||Be(e.value.toLowerCase(),n)}))},XR=function(e,t,n){var r=eg.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=JR(i,GR(n.getHistory(e)));return"file"===e?KR([r,JR(i,$R(t)),JR(i,ne([WR(t),UR(t),qR(t)]))]):r}))},QR=iu("aria-invalid"),ZR=function(e,t,n){var r,i=t.shared.providers,o=function(t){var r=eg.getValue(t);n.addToHistory(r.value,e.filetype)},a=mD.parts.field({factory:DR,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":QR,type:"url"},minChars:0,responseTime:0,fetch:function(r){var i=XR(e.filetype,r,n),o=UI(i,Vk.BUBBLE_TO_SANDBOX,t,!1);return eO.pure(o)},getHotspot:function(e){return h.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(fO)&&fO.run(e).get(g)},typeaheadBehaviours:fd(ne([n.getValidationHandler().map((function(t){return fO.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){l.getOpt(e).each((function(e){zn(e.element,"title",i.translate(t))}))}},validator:{validate:function(n){var r=eg.getValue(n);return RR.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ri.error(e.message);n(t)}else{var r=ri.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Rv.config({disabled:function(){return e.disabled||i.isDisabled()}}),bD.config({}),jy("urlinput-events",ne(["file"===e.filetype?[As(Ba(),(function(t){ks(t,CD,{name:e.name})}))]:[],[As(Va(),(function(t){ks(t,CD,{name:e.name}),o(t)})),As(Za(),(function(t){ks(t,CD,{name:e.name}),o(t)}))]]))]])),eventOrder:(r={},r[Ba()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:gM(!1,1,"normal")},onExecute:function(e,t,n){ks(t,ED,{})},onItemExecute:function(t,n,r,i){o(t),ks(t,CD,{name:e.name})}}),s=e.label.map((function(e){return LD(e,i)})),u=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),Yw(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:D({title:i.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},i.icons)},l=Mw(u("invalid",Y.some(QR),"warning")),c=Mw({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[l.asSpec()]}),d=n.getUrlPicker(e.filetype),f=iu("browser.url.event"),h=Mw({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,c.asSpec()],behaviours:fd([Rv.config({disabled:function(){return e.disabled||i.isDisabled()}})])}),p=Mw(ZI({name:e.name,icon:Y.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return ws(e,f)}),i,[],["tox-browse-url"])),m=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[h.asSpec()],d.map((function(){return p.asSpec()})).toArray()])}},v=function(t){_v.getCurrent(t).each((function(n){var r=eg.getValue(n),i=D({fieldname:e.name},r);d.each((function(r){r(i).get((function(r){eg.setValue(n,r),ks(t,CD,{name:e.name})}))}))}))};return mD.sketch({dom:MD(),components:s.toArray().concat([m()]),fieldBehaviours:fd([Rv.config({disabled:function(){return e.disabled||i.isDisabled()},onDisabled:function(e){mD.getField(e).each(Rv.disable),p.getOpt(e).each(Rv.disable)},onEnabled:function(e){mD.getField(e).each(Rv.enable),p.getOpt(e).each(Rv.enable)}}),uL(),jy("url-input-events",[As(f,v)])])})},eN=function(e,t){return lD.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[kw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Ew(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){ks(t,OD,{name:"alert-banner",value:e.url})},buttonBehaviours:fd([Fw()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},tN=function(e,t){var n=eg.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),Y.some(!0)},i=mD.parts.field({factory:{sketch:x},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:fd([$P.self(),Rv.config({disabled:function(){return e.disabled||t.isDisabled()}}),bD.config({}),Jy.config({}),n,Dy.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),jy("checkbox-events",[As(Va(),(function(t,n){ks(t,CD,{name:e.name})}))])])}),o=mD.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:fd([jO.config({})])}),a=function(e){var n="checked"===e?"selected":"unselected";return Yw(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},s=Mw({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return mD.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,s.asSpec(),o],fieldBehaviours:fd([Rv.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){mD.getField(e).each(Rv.disable)},onEnabled:function(e){mD.getField(e).each(Rv.enable)}}),uL()])})},nN=function(e){return"presentation"===e.presets?lD.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):lD.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:fd([bD.config({}),Jy.config({})])})},rN=function(e){return function(t,n,r){return Le(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},iN=function(e){return function(t,n,r){var i=xi(n,{source:"dynamic"});return rN(e)(t,i,r)}},oN={bar:rN((function(e,t){return dD(e,t.shared)})),collection:rN((function(e,t){return YD(e,t.shared.providers)})),alertbanner:rN((function(e,t){return eN(e,t.shared.providers)})),input:rN((function(e,t){return cR(e,t.shared.providers)})),textarea:rN((function(e,t){return dR(e,t.shared.providers)})),label:rN((function(e,t){return QY(e,t.shared)})),iframe:iN((function(e,t){return yF(e,t.shared.providers)})),button:rN((function(e,t){return iY(e,t.shared.providers)})),checkbox:rN((function(e,t){return tN(e,t.shared.providers)})),colorinput:rN((function(e,t){return WO(e,t.shared,t.colorinput)})),colorpicker:rN(GP),dropzone:rN((function(e,t){return lF(e,t.shared.providers)})),grid:rN((function(e,t){return cF(e,t.shared)})),listbox:rN((function(e,t){return rR(e,t)})),selectbox:rN((function(e,t){return sR(e,t.shared.providers)})),sizeinput:rN((function(e,t){return vY(e,t.shared.providers)})),urlinput:rN((function(e,t){return ZR(e,t,t.urlinput)})),customeditor:rN(XP),htmlpanel:rN(nN),imagetools:rN((function(e,t){return XY(e,t.shared.providers)})),table:rN((function(e,t){return uR(e,t.shared.providers)})),panel:rN((function(e,t){return iR(e,t)}))},aN={field:function(e,t){return t}},sN=function(e,t,n){var r=xi(n,{shared:{interpreter:function(t){return uN(e,t,r)}}});return uN(e,t,r)},uN=function(e,t,n){return Le(oN,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},lN=function(e,t){var n=aN;return uN(n,e,t)},cN={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},dN=function(e,t,n){var r=12,i={maxHeightFunction:Cf()},o=function(){return{type:"node",root:On(e()),node:Y.from(e()),bubble:Af(r,r,cN),layouts:{onRtl:function(){return[fw]},onLtr:function(){return[dw]}},overrides:i}},a=function(){return{type:"hotspot",hotspot:t(),bubble:Af(-r,r,cN),layouts:{onRtl:function(){return[jc]},onLtr:function(){return[Bc]}},overrides:i}};return function(){return n()?o():a()}},fN=function(e,t,n){var r=function(){return{type:"node",root:On(e()),node:Y.from(e()),layouts:{onRtl:function(){return[hw]},onLtr:function(){return[hw]}}}},i=function(){return{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[Wc]},onLtr:function(){return[Wc]}}}};return function(){return n()?r():i()}},hN=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return Y.some(Mh.range(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(t.endContainer),t.endOffset))}}}},pN=function(e){return function(t){return{type:"node",root:e(),node:t}}},mN=function(e,t,n){var r=BS(e),i=function(){return tt.fromDom(e.getBody())},o=function(){return tt.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:dN(o,t,a),banner:fN(o,t,a),cursor:hN(e,i),node:pN(i)}},gN=function(e){return function(t,n){var r=eT(e);r(t,n)}},vN=function(e){return function(){return IC(e)}},_N=function(e){return function(){return RC(e)}},bN=function(e){return function(){return WC(e)}},yN=function(e){return{colorPicker:gN(e),hasCustomColors:vN(e),getColors:_N(e),getColorCols:bN(e)}},xN=function(e){return function(){return qS(e)}},wN=function(e){return{isDraggableModal:xN(e)}},kN=function(e){var t=ia(RS(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},MN=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],SN=function(e){return Ce(e,"items")},LN=function(e){return Ce(e,"block")},CN=function(e){return Ce(e,"inline")},TN=function(e){return Ce(e,"selector")},DN=function(e){return Q(e,(function(e,t){if(SN(t)){var n=DN(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(CN(t)||LN(t)||TN(t)){var r=o(t.name)?t.name:t.title.toLowerCase(),i="custom-"+r;return{customFormats:e.customFormats.concat([{name:i,format:t}]),formats:e.formats.concat([{title:t.title,format:i,icon:t.icon}])}}return D(D({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},ON=function(e,t){var n=DN(t),r=function(t){q(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},EN=function(e){return kS(e).map((function(t){var n=ON(e,t);return MS(e)?MN.concat(n):n})).getOr(MN)},AN=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return xi(e,r)},PN=function(e,t,n,r){var i=function(e){return AN(e,n,r)},a=function(e){var t={type:"submenu"};return xi(e,t)},s=function(t){var i=o(t.name)?t.name:iu(t.title),a="custom-"+i,s={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},u=xi(t,s);return e.formatter.register(i,u),u},u=function(e){return W(e,(function(e){var t=me(e);if(Te(e,"items")){var n=u(e.items);return xi(a(e),{getStyleItems:y(n)})}return Te(e,"format")?i(e):1===t.length&&B(t,"title")?xi(e,{type:"separator"}):s(e)}))};return u(t)},FN=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?Y.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):Y.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[e.format]},i=ia([]),o=ia([]),a=ia([]),s=ia([]),u=ia(!1);e.on("PreInit",(function(a){var s=EN(e),u=PN(e,s,t,n);i.set(u),o.set(re(u,r))})),e.on("addStyleModifications",(function(i){var o=PN(e,i.items,t,n);a.set(o),u.set(i.replace),s.set(re(o,r))}));var l=function(){var e=u.get()?[]:i.get(),t=a.get();return e.concat(t)},c=function(){var e=u.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:l,getFlattenedKeys:c}},IN=function(e){return f(e)&&1===e.nodeType},YN=QP.trim,RN=function(e){return function(t){if(IN(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},NN=RN("true"),HN=RN("false"),zN=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},jN=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return NN(e)}return!1},BN=function(e,t){return W(Kh(tt.fromDom(t),e),(function(e){return e.dom}))},VN=function(e){return e.innerText||e.textContent},$N=function(e){return e.id?e.id:iu("h")},UN=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},WN=function(e){return UN(e)&&GN(e)},qN=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},GN=function(e){return jN(e)&&!HN(e)},KN=function(e){return qN(e)&&GN(e)},JN=function(e){return qN(e)?parseInt(e.nodeName.substr(1),10):0},XN=function(e){var t=$N(e),n=function(){e.id=t};return zN("header",VN(e),"#"+t,JN(e),n)},QN=function(e){var t=e.id||e.name,n=VN(e);return zN("anchor",n||"#"+t,"#"+t,0,g)},ZN=function(e){return W(J(e,KN),XN)},eH=function(e){return W(J(e,WN),QN)},tH=function(e){var t=BN("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},nH=function(e){return YN(e.title).length>0},rH=function(e){var t=tH(e);return J(ZN(t).concat(eH(t)),nH)},iH={find:rH},oH="tinymce-url-history",aH=5,sH=function(e){return o(e)&&/^https?/.test(e)},uH=function(e){return s(e)&&e.length<=aH&&ie(e,sH)},lH=function(e){return a(e)&&Me(e,(function(e){return!uH(e)})).isNone()},cH=function(){var e,t=LC.getItem(oH);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+oH+" was not valid JSON",n),{};throw n}return lH(e)?e:(console.log("Local storage "+oH+" was not valid format",e),{})},dH=function(e){if(!lH(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));LC.setItem(oH,JSON.stringify(e))},fH=function(e){var t=cH();return Le(t,e).getOr([])},hH=function(e,t){if(sH(e)){var n=cH(),r=Le(n,t).getOr([]),i=J(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,aH),dH(n)}},pH=function(e){return!!e},mH=function(e){return _e(QP.makeMap(e,/[, ]/),pH)},gH=function(e){return Y.from(XS(e)).filter(h)},vH=function(e){var t=Y.some(QS(e)).filter(pH),n=Y.some(ZS(e)).filter(pH),r=t.or(n).map(mH);return gH(e).fold(L,(function(e){return r.fold(C,(function(e){return me(e).length>0&&e}))}))},_H=function(e,t){var n=vH(e);return l(n)?n?gH(e):Y.none():n[t]?gH(e):Y.none()},bH=function(e,t){return _H(e,t).map((function(n){return function(r){return eO.nu((function(i){var s=function(e,t){if(!o(e))throw new Error("Expected value to be string");if(void 0!==t&&!a(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},u=D({filetype:t,fieldname:r.fieldname},Y.from(r.meta).getOr({}));n.call(e,s,r.value,u)}))}}))},yH=function(e){return Y.from(e).filter(o).getOrUndefined()},xH=function(e){return eL(e)?Y.none():Y.some({targets:iH.find(e.getBody()),anchorTop:yH(tL(e)),anchorBottom:yH(nL(e))})},wH=function(e){return Y.from(rL(e))},kH=function(e){return{getHistory:fH,addToHistory:hH,getLinkInformation:function(){return xH(e)},getValidationHandler:function(){return wH(e)},getUrlPicker:function(t){return bH(e,t)}}},MH=function(e,t,n){var r=ia(!1),i=kN(t),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:Sw.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return lN(e,o)},anchors:mN(t,n,i.isPositionedAtTop),header:i,getSink:function(){return ri.value(e)}},urlinput:kH(t),styleselect:FN(t),colorinput:yN(t),dialog:wN(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return o},SH=function(e,t,n){var r=function(e,r){q([t,n],(function(t){t.broadcastEvent(e,r)}))},i=function(e,r){q([t,n],(function(t){t.broadcastOn([e],r)}))},o=function(e){return i(bm(),{target:e.target})},a=xd(),s=af(a,"touchstart",o),u=af(a,"touchmove",(function(e){return r(us(),e)})),l=af(a,"touchend",(function(e){return r(ls(),e)})),c=af(a,"mousedown",o),d=af(a,"mouseup",(function(e){0===e.raw.button&&i(xm(),{target:e.target})})),f=function(e){return i(bm(),{target:tt.fromDom(e.target)})},h=function(e){0===e.button&&i(xm(),{target:tt.fromDom(e.target)})},p=function(){q(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},m=function(e){return r(cs(),uf(e))},g=function(e){i(ym(),{}),r(ds(),uf(e))},v=function(){return i(ym(),{})},_=function(t){t.state&&i(bm(),{target:tt.fromDom(e.getContainer())})},b=function(e){i(bm(),{target:tt.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",f),e.on("tap",f),e.on("mouseup",h),e.on("mousedown",p),e.on("ScrollWindow",m),e.on("ResizeWindow",g),e.on("ResizeEditor",v),e.on("AfterProgressState",_),e.on("DismissPopups",b)})),e.on("remove",(function(){e.off("click",f),e.off("tap",f),e.off("mouseup",h),e.off("mousedown",p),e.off("ScrollWindow",m),e.off("ResizeWindow",g),e.off("ResizeEditor",v),e.off("AfterProgressState",_),e.off("DismissPopups",b),c.unbind(),s.unbind(),u.unbind(),l.unbind(),d.unbind()})),e.on("detach",(function(){Qp(t),Qp(n),t.destroy(),n.destroy()}))},LH=nv,CH=Ng,TH=y([Go("shell",!1),Do("makeItem"),Go("setupItem",g),ig.field("listBehaviours",[Hy])]),DH=function(){return{behaviours:fd([Hy.config({})])}},OH=Ig({name:"items",overrides:DH}),EH=y([OH]),AH=y("CustomList"),PH=function(e,t,n,r){var i=function(t,n){a(t).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var i=Hy.contents(r),o=n.length,a=o-i.length,s=a>0?$(a,(function(){return e.makeItem()})):[],u=i.slice(o);q(u,(function(e){return Hy.remove(r,e)})),q(s,(function(e){return Hy.append(r,e)}));var l=Hy.contents(r);q(l,(function(r,i){e.setupItem(t,r,n[i],i)}))}))},o=e.shell?{behaviours:[Hy.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?Y.some(t):Gg(t,e,"items")};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:rg(e.listBehaviours,o.behaviours),apis:{setItems:i}}},FH=hv({name:AH(),configFields:TH(),partFields:EH(),factory:PH,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),IH=y([Do("dom"),Go("shell",!0),tg("toolbarBehaviours",[Hy])]),YH=function(){return{behaviours:fd([Hy.config({})])}},RH=y([Ig({name:"groups",overrides:YH})]),NH=function(e,t,n,r){var i=function(e,t){o(e).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){Hy.set(e,t)}))},o=function(t){return e.shell?Y.some(t):Gg(t,e,"groups")},a=e.shell?{behaviours:[Hy.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:rg(e.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},HH=hv({name:"Toolbar",configFields:IH(),partFields:RH(),factory:NH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),zH=g,jH=L,BH=y([]),VH=Object.freeze({__proto__:null,setup:zH,isDocked:jH,getBehaviours:BH}),$H=function(e){var t=De(Zn(e,"position"),"fixed"),n=t?Y.none():bn(e);return n.orThunk((function(){var t=tt.fromTag("span");return vn(e).bind((function(e){Or(e,t);var n=bn(t);return Ir(t),n}))}))},UH=function(e){return $H(e).map(hr).getOrThunk((function(){return cr(0,0)}))},WH=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),qH=function(e,t){var n=e.element;ol(n,t.transitionClass),sl(n,t.fadeOutClass),ol(n,t.fadeInClass),t.onShow(e)},GH=function(e,t){var n=e.element;ol(n,t.transitionClass),sl(n,t.fadeInClass),ol(n,t.fadeOutClass),t.onHide(e)},KH=function(e,t){return e.y<t.bottom&&e.bottom>t.y},JH=function(e,t){return e.y>=t.y},XH=function(e,t){return e.bottom<=t.bottom},QH=function(e,t,n){return ie(e,(function(e){switch(e){case"bottom":return XH(t,n);case"top":return JH(t,n)}}))},ZH=function(e,t){return t.getInitialPos().map((function(t){return Jr(t.bounds.x,t.bounds.y,vr(e),ar(e))}))},ez=function(e,t,n){n.setInitialPos({style:er(e),position:Xn(e,"position")||"static",bounds:t})},tz=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return Y.some(WH.static());case"absolute":var i=$H(e).map(Xr).getOrThunk((function(){return Xr(Rn())}));return Y.some(WH.absolute(Td("absolute",Le(r.style,"left").map((function(e){return t.x-i.x})),Le(r.style,"top").map((function(e){return t.y-i.y})),Le(r.style,"right").map((function(e){return i.right-t.right})),Le(r.style,"bottom").map((function(e){return i.bottom-t.bottom})))));default:return Y.none()}}))},nz=function(e,t,n){return ZH(e,n).filter((function(e){return QH(n.getModes(),e,t)})).bind((function(t){return tz(e,t,n)}))},rz=function(e,t,n){var r=Xr(e);if(QH(n.getModes(),r,t))return Y.none();ez(e,r,n);var i=Zr(),o=r.x-i.x,a=t.y-i.y,s=i.bottom-t.bottom,u=r.y<=t.y;return Y.some(WH.fixed(Td("fixed",Y.some(o),u?Y.some(a):Y.none(),Y.none(),u?Y.none():Y.some(s))))},iz=function(e,t,n){var r=e.element,i=De(Zn(r,"position"),"fixed");return i?nz(r,t,n):rz(r,t,n)},oz=function(e,t){var n=e.element;return ZH(n,t).bind((function(e){return tz(n,e,t)}))},az=function(e,t,n){n.setDocked(!1),q(["left","right","top","bottom","position"],(function(t){return nr(e.element,t)})),t.onUndocked(e)},sz=function(e,t,n,r){var i="fixed"===r.position;n.setDocked(i),Od(e.element,r);var o=i?t.onDocked:t.onUndocked;o(e)},uz=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=KH(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)ll(e.element,[t.fadeOutClass]),t.onHide(e);else{var s=a?qH:GH;s(e,t)}}))}))},lz=function(e,t,n){var r=t.lazyViewport(e),i=n.isDocked();i&&uz(e,t,n,r),iz(e,r,n).each((function(i){i.fold((function(){return az(e,t,n)}),(function(r){return sz(e,t,n,r)}),(function(i){uz(e,t,n,r,!0),sz(e,t,n,i)}))}))},cz=function(e,t,n){var r=e.element;n.setDocked(!1),oz(e,n).each((function(r){r.fold((function(){return az(e,t,n)}),(function(r){return sz(e,t,n,r)}),g)})),n.setVisible(!0),t.contextual.each((function(t){cl(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),dz(e,t,n)},dz=function(e,t,n){e.getSystem().isConnected()&&lz(e,t,n)},fz=function(e,t,n){n.isDocked()&&cz(e,t,n)},hz=function(e,t,n){return n.isDocked()},pz=function(e,t,n,r){return n.setModes(r)},mz=function(e,t,n){return n.getModes()},gz=Object.freeze({__proto__:null,refresh:dz,reset:fz,isDocked:hz,getModes:mz,setModes:pz}),vz=function(e,t){return Ts([js(Wa(),(function(n,r){e.contextual.each((function(e){if(ul(n.element,e.transitionClass)){cl(n.element,[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),As(cs(),(function(n,r){dz(n,e,t)})),As(ds(),(function(n,r){fz(n,e,t)}))])},_z=Object.freeze({__proto__:null,events:vz}),bz=[Wo("contextual",[Ao("fadeInClass"),Ao("fadeOutClass"),Ao("transitionClass"),Io("lazyContext"),sc("onShow"),sc("onShown"),sc("onHide"),sc("onHidden")]),ea("lazyViewport",Zr),na("modes",["top","bottom"],uo),sc("onDocked"),sc("onUndocked")],yz=function(e){var t=ia(!1),n=ia(!0),r=rf(),i=ia(e.modes),o=function(){return"docked:  "+t.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return Su({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},xz=Object.freeze({__proto__:null,init:yz}),wz=pd({fields:bz,name:"docking",active:_z,apis:gz,state:xz}),kz=y(iu("toolbar-height-change")),Mz={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},Sz="tox-tinymce--toolbar-sticky-on",Lz="tox-tinymce--toolbar-sticky-off",Cz=function(e,t){var n=hn(t),r=n.dom.defaultView.innerHeight,i=Rr(n),o=tt.fromDom(e.elm),a=Qr(o),s=ar(o),u=a.y,l=u+s,c=hr(t),d=ar(t),f=c.top,h=f+d,p=Math.abs(f-i.top)<2,m=Math.abs(h-(i.top+r))<2;if(p&&u<h)Nr(i.left,u-d,n);else if(m&&l>f){var g=u-r+s+d;Nr(i.left,g,n)}},Tz=function(e,t){return B(wz.getModes(e),t)},Dz=function(e){var t=function(e){return sr(e)+(parseInt(Xn(e,"margin-top"),10)||0)+(parseInt(Xn(e,"margin-bottom"),10)||0)},n=e.element;vn(n).each((function(r){var i="padding-"+wz.getModes(e)[0];if(wz.isDocked(e)){var o=vr(r);Gn(n,"width",o+"px"),Gn(r,i,t(n)+"px")}else nr(n,"width"),nr(r,i)}))},Oz=function(e,t){t?(sl(e,Mz.fadeOutClass),ll(e,[Mz.transitionClass,Mz.fadeInClass])):(sl(e,Mz.fadeInClass),ll(e,[Mz.fadeOutClass,Mz.transitionClass]))},Ez=function(e,t){var n=tt.fromDom(e.getContainer());t?(ol(n,Sz),sl(n,Lz)):(ol(n,Lz),sl(n,Sz))},Az=function(e,t){var n=hn(t);Sd(n).filter((function(e){return!ln(t,e)})).filter((function(t){return ln(t,tt.fromDom(n.dom.body))||fn(e,t)})).each((function(){return wd(t)}))},Pz=function(e,t){return Ld(e).orThunk((function(){return t().toOptional().bind((function(e){return Ld(e.element)}))}))},Fz=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(wz.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(Dz)})),e.on("SkinLoaded",(function(){n().each((function(e){wz.isDocked(e)?wz.reset(e):wz.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(wz.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){wz.refresh(t);var n=t.element;X_(n)&&Cz(e,n)}))})),e.on("PostRender",(function(){Ez(e,!1)}))},Iz=function(e){return e().map(wz.isDocked).getOr(!1)},Yz=function(){var e;return[_d.config({channels:(e={},e[kz()]={onReceive:Dz},e)})]},Rz=function(e,t){var n=rf(),r=t.getSink,i=function(e){r().each((function(t){return e(t.element)}))},o=function(t){e.inline||Dz(t),Ez(e,wz.isDocked(t)),t.getSystem().broadcastOn([ym()],{}),r().each((function(e){return e.getSystem().broadcastOn([ym()],{})}))},a=e.inline?[]:Yz();return E([Jy.config({}),wz.config({contextual:D({lazyContext:function(t){var n=sr(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=Xr(tt.fromDom(r)),o=i.height-n,a=i.y+(Tz(t,"top")?0:n);return Y.some(Jr(i.x,a,i.width,o))},onShow:function(){i((function(e){return Oz(e,!0)}))},onShown:function(e){i((function(e){return cl(e,[Mz.transitionClass,Mz.fadeInClass])})),n.get().each((function(t){Az(e.element,t),n.clear()}))},onHide:function(e){Pz(e.element,r).fold(n.clear,n.set),i((function(e){return Oz(e,!1)}))},onHidden:function(){i((function(e){return cl(e,[Mz.transitionClass])}))}},Mz),lazyViewport:function(t){var n=Zr(),r=WS(e),i=n.y+(Tz(t,"top")?r:0),o=n.height-(Tz(t,"bottom")?r:0);return Jr(n.x,i,n.width,o)},modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],a,!0)},Nz=Object.freeze({__proto__:null,setup:Fz,isDocked:Iz,getBehaviours:Rz}),Hz=function(e){var t=e.editor,n=e.sticky?Rz:BH;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:fd(n(t,e.sharedBackstage))}},zz=Zi([Ao("type"),Oo("items",to([io([Ao("name"),Ho("items",uo)]),uo]))].concat(Mk)),jz=function(e){return yo("GroupToolbarButton",zz,e)},Bz=[Vo("text"),Vo("tooltip"),Vo("icon"),Io("fetch"),ea("onSetup",(function(){return g}))],Vz=Zi(E([Ao("type")],Bz,!0)),$z=function(e){return yo("menubutton",Vz,e)},Uz=Zi([Ao("type"),Vo("tooltip"),Vo("icon"),Vo("text"),$o("select"),Io("fetch"),ea("onSetup",(function(){return g})),Qo("presets","normal",["normal","color","listpreview"]),Go("columns",1),Io("onAction"),Io("onItemAction")]),Wz=function(e){return yo("SplitButton",Uz,e)},qz=function(e,t){var n=function(e,n){var r=W(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=$z(n).mapError((function(e){return ko(e)})).getOrDie();return qI(r,"tox-mbtn",t.backstage,Y.some("menuitem"))}));Hy.set(e,r)},r={focus:Dy.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:fd([Hy.config({}),jy("menubar-events",[Bs((function(t){e.onSetup(t)})),As(Ra(),(function(e,t){Nl(e.element,".tox-mbtn--active").each((function(n){Hl(t.event.target,".tox-mbtn").each((function(t){ln(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){RO.expand(e),RO.close(n),Jy.focus(e)}))}))}))}))})),As(gs(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){RO.isOpen(n)&&(RO.expand(e),RO.close(n))}))}))}))]),Dy.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),Y.some(!0)}}),bD.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},Gz=fv({factory:qz,name:"silver.Menubar",configFields:[Do("dom"),Do("uid"),Do("onEscape"),Do("backstage"),Go("onSetup",g)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),Kz=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},Jz=function(e){return e.dimension.property},Xz=function(e,t){return e.dimension.getDimension(t)},Qz=function(e,t){var n=Kz(e,t);cl(n,[t.shrinkingClass,t.growingClass])},Zz=function(e,t){sl(e.element,t.openClass),ol(e.element,t.closedClass),Gn(e.element,Jz(t),"0px"),rr(e.element)},ej=function(e,t){sl(e.element,t.closedClass),ol(e.element,t.openClass),nr(e.element,Jz(t))},tj=function(e,t,n,r){n.setCollapsed(),Gn(e.element,Jz(t),Xz(t,e.element)),rr(e.element),Qz(e,t),Zz(e,t),t.onStartShrink(e),t.onShrunk(e)},nj=function(e,t,n,r){var i=r.getOrThunk((function(){return Xz(t,e.element)}));n.setCollapsed(),Gn(e.element,Jz(t),i),rr(e.element);var o=Kz(e,t);sl(o,t.growingClass),ol(o,t.shrinkingClass),Zz(e,t),t.onStartShrink(e)},rj=function(e,t,n){var r=Xz(t,e.element),i="0px"===r?tj:nj;i(e,t,n,Y.some(r))},ij=function(e,t,n){var r=Kz(e,t),i=ul(r,t.shrinkingClass),o=Xz(t,e.element);ej(e,t);var a=Xz(t,e.element),s=function(){Gn(e.element,Jz(t),o),rr(e.element)},u=function(){Zz(e,t)},l=i?s:u;l(),sl(r,t.shrinkingClass),ol(r,t.growingClass),ej(e,t),Gn(e.element,Jz(t),a),n.setExpanded(),t.onStartGrow(e)},oj=function(e,t,n){if(n.isExpanded()){nr(e.element,Jz(t));var r=Xz(t,e.element);Gn(e.element,Jz(t),r)}},aj=function(e,t,n){n.isExpanded()||ij(e,t,n)},sj=function(e,t,n){n.isExpanded()&&rj(e,t,n)},uj=function(e,t,n){n.isExpanded()&&tj(e,t,n)},lj=function(e,t,n){return n.isExpanded()},cj=function(e,t,n){return n.isCollapsed()},dj=function(e,t,n){var r=Kz(e,t);return!0===ul(r,t.growingClass)},fj=function(e,t,n){var r=Kz(e,t);return!0===ul(r,t.shrinkingClass)},hj=function(e,t,n){return dj(e,t)||fj(e,t)},pj=function(e,t,n){var r=n.isExpanded()?rj:ij;r(e,t,n)},mj=Object.freeze({__proto__:null,refresh:oj,grow:aj,shrink:sj,immediateShrink:uj,hasGrown:lj,hasShrunk:cj,isGrowing:dj,isShrinking:fj,isTransitioning:hj,toggleGrow:pj,disableTransitions:Qz}),gj=function(e,t,n){var r=t.expanded;return Ou(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ha(t.dimension.property,"0px")})},vj=function(e,t){return Ts([js(Wa(),(function(n,r){var i=r.event.raw;if(i.propertyName===e.dimension.property){Qz(n,e),t.isExpanded()&&nr(n.element,e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},_j=Object.freeze({__proto__:null,exhibit:gj,events:vj}),bj=[Do("closedClass"),Do("openClass"),Do("shrinkingClass"),Do("growingClass"),zo("getAnimationRoot"),sc("onShrunk"),sc("onStartShrink"),sc("onGrown"),sc("onStartGrow"),Go("expanded",!1),Oo("dimension",Mo("property",{width:[dc("property","width"),dc("getDimension",(function(e){return vr(e)+"px"}))],height:[dc("property","height"),dc("getDimension",(function(e){return ar(e)+"px"}))]}))],yj=function(e){var t=ia(e.expanded),n=function(){return"expanded: "+t.get()};return Su({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:k(t.set,!1),setExpanded:k(t.set,!0),readState:n})},xj=Object.freeze({__proto__:null,init:yj}),wj=pd({fields:bj,name:"sliding",active:_j,apis:mj,state:xj}),kj="container",Mj=[tg("slotBehaviours",[])],Sj=function(e){return"<alloy.field."+e+">"},Lj=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Vg(kj,Sj(t),n)};return{slot:t,record:y(e)}}(),n=e(t),r=t.record(),i=W(r,(function(e){return Pg({name:e,pname:Sj(e)})}));return av(kj,Mj,i,Cj,n)},Cj=function(e,t){var n=function(t){return Qg(e)},r=function(t,n){return Gg(t,e,n)},i=function(t,n){return function(r,i){return Gg(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},o=function(e){return function(t,n){q(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==Bn(e.element,"aria-hidden")},s=function(e,t){if(!a(e)){var n=e.element;nr(n,"display"),Un(n,"aria-hidden"),ks(e,vs(),{name:t,visible:!0})}},u=function(e,t){if(a(e)){var n=e.element;Gn(n,"display","none"),zn(n,"aria-hidden","true"),ks(e,vs(),{name:t,visible:!1})}},l=i(a,!1),c=i(u),d=o(c),f=function(e){return d(e,n())},h=i(s),p={getSlotNames:n,getSlot:r,isShowing:l,hideSlot:c,hideAllSlots:f,showSlot:h};return{uid:e.uid,dom:e.dom,components:t,behaviours:ng(e.slotBehaviours),apis:p}},Tj=_e({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return ku(e)})),Dj=D(D({},Tj),{sketch:Lj}),Oj=Zi([Vo("icon"),Vo("tooltip"),ea("onShow",g),ea("onHide",g),ea("onSetup",(function(){return g}))]),Ej=function(e){return yo("sidebar",Oj,e)},Aj=function(e){var t=e.ui.registry.getAll().sidebars;q(me(t),(function(n){var r=t[n],i=function(){return De(Y.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},Pj=function(e){return{element:function(){return e.element.dom}}},Fj=function(e,t){var n=W(me(t),(function(e){var n=t[e],r=xo(Ej(n));return{name:e,getApi:Pj,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return W(n,(function(t){var r=ia(g);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:QM.unnamedEvents([mL(t,r),gL(t,r),As(vs(),(function(e,t){var r=t.event,i=ee(n,(function(e){return e.name===r.name}));i.each((function(t){var n=r.visible?t.onShow:t.onHide;n(t.getApi(e))}))}))])})}))},Ij=function(e){return Dj.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Fj(t,e),slotBehaviours:QM.unnamedEvents([Bs((function(e){return Dj.hideAllSlots(e)}))])}}))},Yj=function(e,t){var n=_v.getCurrent(e);n.each((function(e){return Hy.set(e,[Ij(t)])}))},Rj=function(e,t){var n=_v.getCurrent(e);n.each((function(e){var n=_v.getCurrent(e);n.each((function(n){wj.hasGrown(e)?Dj.isShowing(n,t)?wj.shrink(e):(Dj.hideAllSlots(n),Dj.showSlot(n,t)):(Dj.hideAllSlots(n),Dj.showSlot(n,t),wj.grow(e))}))}))},Nj=function(e){var t=_v.getCurrent(e);return t.bind((function(e){var t=wj.isGrowing(e)||wj.hasGrown(e);if(t){var n=_v.getCurrent(e);return n.bind((function(e){return ee(Dj.getSlotNames(e),(function(t){return Dj.isShowing(e,t)}))}))}return Y.none()}))},Hj=iu("FixSizeEvent"),zj=iu("AutoSizeEvent"),jj=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:fd([bD.config({}),Jy.config({}),wj.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){var t=_v.getCurrent(e);t.each(Dj.hideAllSlots),ws(e,zj)},onGrown:function(e){ws(e,zj)},onStartGrow:function(e){ks(e,Hj,{width:Zn(e.element,"width").getOr("")})},onStartShrink:function(e){ks(e,Hj,{width:vr(e.element)+"px"})}}),Hy.config({}),_v.config({find:function(e){var t=Hy.contents(e);return de(t)}})])}],behaviours:fd([$P.childAt(0),jy("sidebar-sliding-events",[As(Hj,(function(e,t){Gn(e.element,"width",t.event.width)})),As(zj,(function(e,t){nr(e.element,"width")}))])])}},Bj=function(e,t,n,r){zn(e.element,"aria-busy",!0);var i=t.getRoot(e).getOr(e),o=fd([Dy.config({mode:"special",onTab:function(){return Y.some(!0)},onShiftTab:function(){return Y.some(!0)}}),Jy.config({})]),a=r(i,o),s=i.getSystem().build(a);Hy.append(i,Tl(s)),s.hasConfigured(Dy)&&t.focus&&Dy.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return Hy.remove(i,s)}))},Vj=function(e,t,n){Un(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},$j=Object.freeze({__proto__:null,block:Bj,unblock:Vj}),Uj=[ea("getRoot",Y.none),Zo("focus",!0),sc("onBlock"),sc("onUnblock")],Wj=function(){var e=ef(),t=function(t){e.set({destroy:t})};return Su({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},qj=Object.freeze({__proto__:null,init:Wj}),Gj=pd({fields:Uj,name:"blocking",apis:$j,state:qj}),Kj=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return Q(t,(function(e,t){var n;return"class"===t.name?e:D(D({},e),(n={},n[t.name]=t.value,n))}),{})},Jj=function(e){return Array.prototype.slice.call(e.dom.classList,0)},Xj=function(e){var t=tt.fromHtml(e),n=xn(t),r=Kj(t),i=Jj(t),o=0===n.length?{}:{innerHtml:qs(t)};return D({tag:st(t),classes:i,attributes:r},o)},Qj=function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Xj('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},Zj=function(e){return _v.getCurrent(e).each((function(e){return wd(e.element)}))},eB=function(e,t){var n="tabindex",r="data-mce-"+n;Y.from(e.iframeElement).map(tt.fromDom).each((function(e){t?(Vn(e,n).each((function(t){return zn(e,r,t)})),zn(e,n,-1)):(Un(e,n),Vn(e,r).each((function(t){zn(e,n,t),Un(e,r)})))}))},tB=function(e,t,n,r){var i=t.element;if(eB(e,n),n)Gj.block(t,Qj(r)),nr(i,"display"),Un(i,"aria-hidden"),e.hasFocus()&&Zj(t);else{var o=_v.getCurrent(t).exists((function(e){return Md(e.element)}));Gj.unblock(t),Gn(i,"display","none"),zn(i,"aria-hidden","true"),o&&e.focus()}},nB=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:fd([Hy.config({}),Gj.config({focus:!1}),_v.config({find:function(e){return de(e.components())}})]),components:[]}},rB=function(e){return"focusin"===e.type},iB=function(e){if(rB(e)){var t=e.composed?de(e.composedPath()):Y.from(e.target);return t.map(tt.fromDom).filter(ct).exists((function(e){return ul(e,"mce-pastebin")}))}return!1},oB=function(e,t,n){var r=ia(!1),i=rf(),o=function(n){r.get()&&!iB(n)&&(n.preventDefault(),Zj(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",o),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&o(e)}))}));var a=function(i){i!==r.get()&&(r.set(i),tB(e,t(),i,n.providers),e.fire("AfterProgressState",{state:i}))};e.on("ProgressState",(function(t){if(i.on(xw.clearTimeout),p(t.time)){var n=xw.setEditorTimeout(e,(function(){return a(t.state)}),t.time);i.set(n)}else a(t.state),i.clear()}))},aB=function(e,t){var n={len:0,list:[]},r=Q(e,(function(e,n){var r=t(n,e.len);return r.fold(y(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},sB=function(e,t,n){return{within:e,extra:t,withinWidth:n}},uB=function(e,t,n){var r=aB(e,(function(e,t){var r=n(e);return Y.some({element:e,start:t,finish:t+r,width:r})})),i=J(r,(function(e){return e.finish<=t})),o=X(i,(function(e,t){return e+t.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},lB=function(e){return W(e,(function(e){return e.element}))},cB=function(e,t,n){var r=lB(e.concat(t));return sB(r,[],n)},dB=function(e,t,n,r){var i=lB(e).concat([n]);return sB(i,lB(t),r)},fB=function(e,t,n){return sB(lB(e),[],n)},hB=function(e,t,n){var r=uB(t,e,n);return 0===r.extra.length?Y.some(r):Y.none()},pB=function(e,t,n,r){var i=hB(e,t,n).getOrThunk((function(){return uB(t,e-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?cB(o,a,s):a.length>=1?dB(o,a,r,s):fB(o,a,s)},mB=function(e,t){var n=W(t,(function(e){return Tl(e)}));HH.setGroups(e,n)},gB=function(e){return pe(e,(function(e){return Ld(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},vB=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var i=Kg(e,t,"primary"),o=_O.getCoupled(e,"overflowGroup");Gn(i.element,"visibility","hidden");var a=r.concat([o]),s=gB(a);n([]),mB(i,a);var u=vr(i.element),l=pB(u,t.builtGroups.get(),(function(e){return vr(e.element)}),o);0===l.extra.length?(Hy.remove(i,o),n([])):(mB(i,l.within),n(l.extra)),nr(i.element,"visibility"),rr(i.element),s.each(Jy.focus)}},_B=y([tg("splitToolbarBehaviours",[_O]),Co("builtGroups",(function(){return ia([])}))]),bB=y([oc(["overflowToggledClass"]),$o("getOverflowBounds"),Do("lazySink"),Co("overflowGroups",(function(){return ia([])}))].concat(_B())),yB=y([Pg({factory:HH,schema:IH(),name:"primary"}),Fg({schema:IH(),name:"overflow"}),Fg({name:"overflow-button"}),Fg({name:"overflow-group"})]),xB=y((function(e,t){br(e,Math.floor(t))})),wB=y([oc(["toggledClass"]),Do("lazySink"),Io("fetch"),$o("getBounds"),Wo("fireDismissalEventInstead",[Go("event",ps())]),Hf()]),kB=y([Fg({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:fd([mx.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Fg({factory:HH,schema:IH(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:fd([Dy.config({mode:"cyclic",onEscape:function(t){return Gg(t,e,"button").each(Jy.focus),Y.none()}})])}}})]),MB=function(e,t){var n=_O.getCoupled(e,"toolbarSandbox");_m.isOpen(n)?_m.close(n):_m.open(n,t.toolbar())},SB=function(e,t,n,r){var i=n.getBounds.map((function(e){return e()})),o=n.lazySink(e).getOrDie();Np.positionWithinBounds(o,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:xB()}}},i)},LB=function(e,t,n,r,i){HH.setGroups(t,i),SB(e,t,n,r),mx.on(e)},CB=function(e,t,n){var r=jl(),i=function(i,o){n.fetch().get((function(i){LB(e,o,n,t.layouts,i),r.link(e.element),Dy.focusIn(o)}))},o=function(){mx.off(e),Jy.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:fd([Dy.config({mode:"special",onEscape:function(e){return _m.close(e),Y.some(!0)}}),_m.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return Vl(n,r)||Vl(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),_d.config({channels:D(D({},km(D({isExtraPart:L},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Sm({doReposition:function(){_m.getState(_O.getCoupled(e,"toolbarSandbox")).each((function(r){SB(e,r,n,t.layouts)}))}}))})])}},TB=function(e,t,n,r){return D(D({},kw.sketch(D(D({},r.button()),{action:function(e){MB(e,r)},buttonBehaviours:ig.augment({dump:r.button().buttonBehaviours},[_O.config({others:{toolbarSandbox:function(t){return CB(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){_m.getState(_O.getCoupled(t,"toolbarSandbox")).each((function(i){LB(t,i,e,n.layouts,r)}))},reposition:function(t){_m.getState(_O.getCoupled(t,"toolbarSandbox")).each((function(r){SB(t,r,e,n.layouts)}))},toggle:function(e){MB(e,r)},getToolbar:function(e){return _m.getState(_O.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return _m.isOpen(_O.getCoupled(e,"toolbarSandbox"))}}})},DB=hv({name:"FloatingToolbarButton",factory:TB,configFields:wB(),partFields:kB(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),OB=y([Do("items"),oc(["itemSelector"]),tg("tgroupBehaviours",[Dy])]),EB=y([Yg({name:"items",unit:"item"})]),AB=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.tgroupBehaviours,[Dy.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},PB=hv({name:"ToolbarGroup",configFields:OB(),partFields:EB(),factory:AB}),FB=function(e){return W(e,(function(e){return Tl(e)}))},IB=function(e,t,n){vB(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){DB.setGroups(e,FB(r))}))}))},YB=function(e,t,n,r){var i=Mw(DB.sketch({fetch:function(){return eO.nu((function(t){t(FB(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[Bc,jc]},onRtl:function(){return[jc,Bc]},onBottomLtr:function(){return[$c,Vc]},onBottomRtl:function(){return[Vc,$c]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.splitToolbarBehaviours,[_O.config({others:{overflowGroup:function(){return PB.sketch(D(D({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(W(n,t.getSystem().build)),IB(t,i,e)},refresh:function(t){return IB(t,i,e)},toggle:function(e){i.getOpt(e).each((function(e){DB.toggle(e)}))},isOpen:function(e){return i.getOpt(e).map(DB.isOpen).getOr(!1)},reposition:function(e){i.getOpt(e).each((function(e){DB.reposition(e)}))},getOverflow:function(e){return i.getOpt(e).bind(DB.getToolbar)}},domModification:{attributes:{role:"group"}}}},RB=hv({name:"SplitFloatingToolbar",configFields:bB(),partFields:yB(),factory:YB,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),NB=y([oc(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),sc("onOpened"),sc("onClosed")].concat(_B())),HB=y([Pg({factory:HH,schema:IH(),name:"primary"}),Pg({factory:HH,schema:IH(),name:"overflow",overrides:function(e){return{toolbarBehaviours:fd([wj.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Gg(t,e,"overflow-button").each((function(e){mx.off(e),Jy.focus(e)})),e.onClosed(t)},onGrown:function(t){Dy.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Gg(t,e,"overflow-button").each(mx.on)}}),Dy.config({mode:"acyclic",onEscape:function(t){return Gg(t,e,"overflow-button").each(Jy.focus),Y.some(!0)}})])}}}),Fg({name:"overflow-button",overrides:function(e){return{buttonBehaviours:fd([mx.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Fg({name:"overflow-group"})]),zB=function(e,t){return Gg(e,t,"overflow").map(wj.hasGrown).getOr(!1)},jB=function(e,t){Gg(e,t,"overflow-button").bind((function(){return Gg(e,t,"overflow")})).each((function(n){BB(e,t),wj.toggleGrow(n)}))},BB=function(e,t){Gg(e,t,"overflow").each((function(n){vB(e,t,(function(e){var t=W(e,(function(e){return Tl(e)}));HH.setGroups(n,t)})),Gg(e,t,"overflow-button").each((function(e){wj.hasGrown(n)&&mx.on(e)})),wj.refresh(n)}))},VB=function(e,t,n,r){var i="alloy.toolbar.toggle",o=function(t,n){var r=W(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.splitToolbarBehaviours,[_O.config({others:{overflowGroup:function(e){return PB.sketch(D(D({},r["overflow-group"]()),{items:[kw.sketch(D(D({},r["overflow-button"]()),{action:function(t){ws(e,i)}}))]}))}}}),jy("toolbar-toggle-events",[As(i,(function(t){jB(t,e)}))])]),apis:{setGroups:function(t,n){o(t,n),BB(t,e)},refresh:function(t){return BB(t,e)},toggle:function(t){return jB(t,e)},isOpen:function(t){return zB(t,e)}},domModification:{attributes:{role:"group"}}}},$B=hv({name:"SplitSlidingToolbar",configFields:NB(),partFields:HB(),factory:VB,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),UB=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:D({tag:"div",classes:["tox-toolbar__group"]},t),components:[PB.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:fd([bD.config({}),Jy.config({})])}},WB=function(e){return PB.sketch(UB(e))},qB=function(e,t){var n=Bs((function(t){var n=W(e.initGroups,WB);HH.setGroups(t,n)}));return fd([hL.toolbarButton(e.providers.isDisabled),uL(),Dy.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),jy("toolbar-events",[n])])},GB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":UB({title:Y.none(),items:[]}),"overflow-button":JI({name:"more",icon:Y.some("more-drawer"),disabled:!1,tooltip:Y.some("More..."),primary:!1,borderless:!1},Y.none(),e.providers)},splitToolbarBehaviours:qB(e,t)}},KB=function(e){var t=GB(e),n=4,r=RB.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return RB.sketch(D(D({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=Qr(t),i=mn(t),o=Qr(i),a=Math.max(i.dom.scrollHeight,o.height);return Jr(r.x+n,o.y,r.width-2*n,a)},parts:D(D({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},JB=function(e){var t=$B.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=$B.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=GB(e);return $B.sketch(D(D({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([kz()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([kz()],{type:"closed"})}}))},XB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return HH.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===Bk.scrolling?["tox-toolbar--scrolling"]:[])},components:[HH.parts.groups({})],toolbarBehaviours:qB(e,t)})},QB=function(e,t,n){var r={getSocket:function(t){return LH.getPart(t,e,"socket")},setSidebar:function(t,n){LH.getPart(t,e,"sidebar").each((function(e){return Yj(e,n)}))},toggleSidebar:function(t,n){LH.getPart(t,e,"sidebar").each((function(e){return Rj(e,n)}))},whichSidebar:function(t){return LH.getPart(t,e,"sidebar").bind(Nj).getOrNull()},getHeader:function(t){return LH.getPart(t,e,"header")},getToolbar:function(t){return LH.getPart(t,e,"toolbar")},setToolbar:function(t,n){LH.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){LH.getPart(t,e,"multiple-toolbar").each((function(e){FH.setItems(e,n)}))},refreshToolbar:function(t){var n=LH.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){LH.getPart(t,e,"toolbar").each((function(e){Ie(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return LH.getPart(t,e,"toolbar").bind((function(e){return Y.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return LH.getPart(t,e,"throbber")},focusToolbar:function(t){var n=LH.getPart(t,e,"toolbar").orThunk((function(){return LH.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Dy.focusIn(e)}))},setMenubar:function(t,n){LH.getPart(t,e,"menubar").each((function(e){Gz.setMenus(e,n)}))},focusMenubar:function(t){LH.getPart(t,e,"menubar").each((function(e){Gz.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},ZB=CH.optional({factory:Gz,name:"menubar",schema:[Do("backstage")]}),eV=function(e){return e.type===Bk.sliding?JB:e.type===Bk.floating?KB:XB},tV=CH.optional({factory:{sketch:function(e){return FH.sketch({uid:e.uid,dom:e.dom,listBehaviours:fd([Dy.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return XB({type:e.type,uid:iu("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),Y.some(!0)}})},setupItem:function(e,t,n,r){HH.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Do("dom"),Do("onEscape")]}),nV=CH.optional({factory:{sketch:function(e){var t=eV(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),Y.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[Do("dom"),Do("onEscape"),Do("getSink")]}),rV=CH.optional({factory:{sketch:Hz},name:"header",schema:[Do("dom")]}),iV=CH.optional({name:"socket",schema:[Do("dom")]}),oV=CH.optional({factory:{sketch:jj},name:"sidebar",schema:[Do("dom")]}),aV=CH.optional({factory:{sketch:nB},name:"throbber",schema:[Do("dom")]}),sV=hv({name:"OuterContainer",factory:QB,configFields:[Do("dom"),Do("behaviours")],partFields:[rV,ZB,nV,tV,iV,oV,aV],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=W(n,(function(e){return WB(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=W(n,(function(e){return W(e,WB)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),uV="file edit view insert format tools table help",lV={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},cV=function(e,t,n){var r=CS(n).split(/[ ,]/);return{text:e.title,getItems:function(){return re(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||V(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},dV=function(e){return"string"===typeof e?e.split(" "):e},fV=function(e,t){var n=D(D({},lV),t.menus),r=me(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?dV(uV):dV(!1===t.menubar?"":t.menubar),o=J(i,(function(e){var n=Ce(lV,e);return r?n||Le(t.menus,e).exists((function(e){return Ce(e,"items")})):n})),a=W(o,(function(r){var i=n[r];return cV({title:i.title,items:dV(i.items)},t,e)}));return J(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&V(e.getItems(),t)}))},hV=function(e){var t=function(){e._skinLoaded=!0,mC(e)};return function(){e.initialized?t():e.on("init",t)}},pV=function(e,t){return function(){return gC(e,{message:t})}},mV=function(e,t,n){return new ak((function(r,i){n.load(t,r,i),e.on("remove",(function(){return n.unload(t)}))}))},gV=function(e,t){var n=t+"/skin.min.css";return mV(e,n,e.ui.styleSheetLoader)},vV=function(e,t){var n=En(tt.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return mV(e,r,fS.DOM.styleSheetLoader)}return ak.resolve()},_V=function(e,t){var n=pS(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===gS(t)&&o(n)?ak.all([gV(t,n),vV(t,n)]).then(hV(t),pV(t,"Skin could not be loaded")):hV(t)()},bV=k(_V,!1),yV=k(_V,!0),xV=function(e,t){return function(n){var r=tf(),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive);r.set(i)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),r.clear()}}},wV=function(e,t,n){return function(r){var i=function(){return n(r)},o=function(){n(r),e.on(t,i)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),e.off(t,i)}}},kV=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},MV=function(e,t){return function(){return e.execCommand(t)}},SV=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return Y.some({type:"separator",text:s});if("submenu"===e.type){var u=re(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&u.length<=0?Y.none():Y.some({type:"nestedmenuitem",text:s,disabled:u.length<=0,getSubmenuItems:function(){return re(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return Y.some(D({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return re(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n,r){var i=t(),a=o(i),s=UI(a,Vk.CLOSE_ON_EXECUTE,e,!1);r(s)}};return{validateItems:o,getFetch:a}},LV=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return W(r.data,(function(e){return AN(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:SV(e,t,n),getStyleItems:i}},CV=function(e,t,n){var r=LV(e,t,n),i=r.items,o=r.getStyleItems,a=function(e){return{getComponent:y(e)}},s=wV(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return II({text:n.icon.isSome()?Y.none():n.text,icon:n.icon,tooltip:Y.from(n.tooltip),role:Y.none(),fetch:i.getFetch(t,o),onSetup:s,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},TV=function(e){return W(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},DV=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(KY||(KY={}));var OV,EV=function(e,t){return t===KY.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},AV=function(e,t,n,r){var i=e.getParam(t,n,"string"),o=TV(EV(i,r));return{type:"basic",data:o}},PV=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],FV=function(e){var t=function(){return ee(PV,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return Y.none},i=function(e){var n=t(),r=n.fold(y("left"),(function(e){return e.title.toLowerCase()}));ks(e,FI,{icon:"align-"+r})},o=DV(PV),a=function(t){return function(){return ee(PV,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",text:Y.none(),icon:Y.some("align-left"),isSelectedFor:n,getCurrentValue:Y.none,getPreviewFor:r,onAction:a,updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},IV=function(e,t){return CV(e,t,FV(e))},YV=function(e,t){var n=LV(e,t,FV(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},RV="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",NV=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],HV=function(e){var t=e.split(/\s*,\s*/);return W(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},zV=function(e){var t=function(){var t=HV(e.toLowerCase());return ie(NV,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},jV=function(e){var t="System Font",n=function(){var n=function(e){return e?HV(e)[0]:""},r=e.queryCommandValue("FontName"),i=u.data,o=r?r.toLowerCase():"",a=ee(i,(function(e){var t=e.format;return t.toLowerCase()===o||n(t).toLowerCase()===n(o).toLowerCase()})).orThunk((function(){return Ye(zV(o),{title:t,format:o})}));return{matchOpt:a,font:r}},r=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},i=function(){var e=n().matchOpt;return e},o=function(e){return function(){return Y.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},s=function(e){var t=n(),r=t.matchOpt,i=t.font,o=r.fold(y(i),(function(e){return e.title}));ks(e,PI,{text:o})},u=AV(e,"font_formats",RV,KY.SemiColon);return{tooltip:"Fonts",text:Y.some(t),icon:Y.none(),isSelectedFor:r,getCurrentValue:i,getPreviewFor:o,onAction:a,updateText:s,dataset:u,shouldHide:!1,isInvalid:L}},BV=function(e,t){return CV(e,t,jV(e))},VV=function(e,t){var n=LV(e,t,jV(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},$V="8pt 10pt 12pt 14pt 18pt 24pt 36pt",UV={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},WV={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},qV=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},GV=function(e,t){return/[0-9.]+px$/.test(e)?qV(72*parseInt(e,10)/96,t||0)+"pt":Le(WV,e).getOr(e)},KV=function(e){return Le(UV,e).getOr("")},JV=function(e){var t=function(){var t=Y.none(),n=s.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=GV(r,e),o=KV(i);t=ee(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=y(Y.none),o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.size,o=r.fold(y(i),(function(e){return e.title}));ks(e,PI,{text:o})},s=AV(e,"fontsize_formats",$V,KY.Space);return{tooltip:"Font sizes",text:Y.some("12pt"),icon:Y.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:L}},XV=function(e,t){return CV(e,t,JV(e))},QV=function(e,t){var n=LV(e,t,JV(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},ZV=function(e,t){var n=t(),r=W(n,(function(e){return e.format}));return Y.from(e.formatter.closest(r)).bind((function(e){return ee(n,(function(t){return t.format===e}))})).orThunk((function(){return Ye(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},e$="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",t$=function(e){var t="Paragraph",n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return Y.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},i=function(n){var r=ZV(e,(function(){return o.data})),i=r.fold(y(t),(function(e){return e.title}));ks(n,PI,{text:i})},o=AV(e,"block_formats",e$,KY.SemiColon);return{tooltip:"Blocks",text:Y.some(t),icon:Y.none(),isSelectedFor:n,getCurrentValue:Y.none,getPreviewFor:r,onAction:kV(e),updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},n$=function(e,t){return CV(e,t,t$(e))},r$=function(e,t){var n=LV(e,t,t$(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},i$=function(e,t){var n="Paragraph",r=function(t){return function(){return e.formatter.match(t)}},i=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?Y.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):Y.none()}},o=function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[{title:e.title,format:e.format}]},i=re(EN(e),r),o=ZV(e,y(i)),a=o.fold(y(n),(function(e){return e.title}));ks(t,PI,{text:a})};return{tooltip:"Formats",text:Y.some(n),icon:Y.none(),isSelectedFor:r,getCurrentValue:Y.none,getPreviewFor:i,onAction:kV(e),updateText:o,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},o$=function(e,t){var n=D({type:"advanced"},t.styleselect);return CV(e,t,i$(e,n))},a$=function(e,t){var n=D({type:"advanced"},t.styleselect),r=LV(e,t,i$(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},s$=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=W(i,n.getSystem().build);Vp(n,o)}))};return Ts([As(es(),(function(t,r){var i=r;if(!i.universal){var o=e.channel;B(i.channels,o)&&n(t,i.data)}})),Bs((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},u$=Object.freeze({__proto__:null,events:s$}),l$=function(e,t,n){return n},c$=Object.freeze({__proto__:null,getState:l$}),d$=[Do("channel"),zo("renderComponents"),zo("updateState"),zo("initialData")],f$=function(){var e=ia(Y.none()),t=function(){return e.set(Y.none())},n=function(){return e.get().getOr("none")};return{readState:n,get:e.get,set:e.set,clear:t}},h$=Object.freeze({__proto__:null,init:f$}),p$=pd({fields:d$,name:"reflecting",active:u$,apis:c$,state:h$}),m$=y([Do("toggleClass"),Do("fetch"),lc("onExecute"),Go("getHotspot",Y.some),Go("getAnchorOverrides",y({})),Hf(),lc("onItemExecute"),zo("lazySink"),Do("dom"),sc("onOpen"),tg("splitDropdownBehaviours",[_O,Dy,Jy]),Go("matchWidth",!1),Go("useMinWidth",!1),Go("eventOrder",{}),zo("role")].concat(PO())),g$=Pg({factory:kw,schema:[Do("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:fd([Jy.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(Ms)},buttonBehaviours:fd([mx.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),v$=Pg({factory:kw,schema:[Do("dom")],name:"button",defaults:function(){return{buttonBehaviours:fd([Jy.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),_$=y([g$,v$,Ig({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Do("text")],name:"aria-descriptor"}),Fg({schema:[ic()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),yO()]),b$=function(e,t,n,r){var i,o=function(e){_v.getCurrent(e).each((function(e){r_.highlightFirst(e),Dy.focusIn(e)}))},a=function(t){var n=o;CO(e,x,t,r,n,UD.HighlightFirst).get(g)},s=function(e){return a(e),Y.some(!0)},u=function(t){var n=Kg(t,e,"button");return Ms(n),Y.some(!0)},l=D(D({},Ts([Bs((function(t,n){var r=Gg(t,e,"aria-descriptor");r.each((function(e){var n=iu("aria");zn(e.element,"id",n),zn(t.element,"aria-describedby",n)}))}))])),vx(Y.some(a))),c={repositionMenus:function(e){mx.isOn(e)&&AO(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:c,eventOrder:D(D({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),events:l,behaviours:rg(e.splitDropdownBehaviours,[_O.config({others:{sandbox:function(t){var n=Kg(t,e,"arrow"),r={onOpen:function(){mx.on(n),mx.on(t)},onClose:function(){mx.off(n),mx.off(t)}};return EO(e,t,r)}}}),Dy.config({mode:"special",onSpace:u,onEnter:u,onDown:s}),Jy.config({}),mx.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},y$=hv({name:"SplitDropdown",configFields:m$(),partFields:_$(),factory:b$,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),x$=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},w$=function(e){return{setActive:function(t){mx.set(e,t)},isActive:function(){return mx.isOn(e)},isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)}}},k$=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},M$=iu("focus-button"),S$=function(e,t,n,r,i,o){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:k$(n,o)},components:bL([e.map((function(e){return CI(e,o.icons)})),t.map((function(e){return DI(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[Pa()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:fd([hL.toolbarButton(o.isDisabled),uL(),jy("common-button-display-events",[As(Pa(),(function(e,t){t.event.prevent(),ws(e,M$)}))])].concat(r.map((function(n){return p$.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return bL([e.icon.map((function(e){return CI(e,o.icons)})),e.text.map((function(e){return DI(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},L$=function(e,t,n,r){var i=t.shared;return DB.sketch({lazySink:i.getSink,fetch:function(){return eO.nu((function(t){t(W(n(e.items),WB))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:S$(e.icon,e.text,e.tooltip,Y.none(),Y.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},C$=function(e,t,n){var r=ia(g),i=S$(e.icon,e.text,e.tooltip,Y.none(),Y.none(),n);return kw.sketch({dom:i.dom,components:i.components,eventOrder:AI,buttonBehaviours:fd([jy("toolbar-button-events",[EI({onAction:e.onAction,getApi:t.getApi}),mL(t,r),gL(t,r)]),hL.toolbarButton((function(){return e.disabled||n.isDisabled()})),uL()].concat(t.toolbarButtonBehaviours))})},T$=function(e,t){return D$(e,t,[])},D$=function(e,t,n){return C$(e,{toolbarButtonBehaviours:[].concat(n.length>0?[jy("toolbarButtonWith",n)]:[]),getApi:x$,onSetup:e.onSetup},t)},O$=function(e,t){return E$(e,t,[])},E$=function(e,t,n){return xi(C$(e,{toolbarButtonBehaviours:[Hy.config({}),mx.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[jy("toolbarToggleButtonWith",n)]:[]),getApi:w$,onSetup:e.onSetup},t))},A$=function(e,t,n){return function(r){return eO.nu((function(e){return t.fetch(e)})).map((function(i){return Y.from(AT(xi(nT(iu("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,Vk.CLOSE_ON_EXECUTE,t.select.getOr(L),n),{movement:iT(t.columns,t.presets),menuBehaviours:QM.unnamedEvents("auto"!==t.columns?[]:[Bs((function(e,n){KM(e,4,cM(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Dy.setGridSize(e,n,r)}))}))])})))}))}},P$=function(e,t){var n,r=iu("channel-update-split-dropdown-display"),i=function(e){return{isDisabled:function(){return Rv.isDisabled(e)},setDisabled:function(t){return Rv.set(e,t)},setIconFill:function(t,n){Nl(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){zn(e,"fill",n)}))},setIconStroke:function(t,n){Nl(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){zn(e,"stroke",n)}))},setActive:function(t){zn(e.element,"aria-pressed",t),Nl(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return mx.set(e,t)}))}))},isActive:function(){return Nl(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(mx.isOn)}))}}},o=ia(g),a={getApi:i,onSetup:e.onSetup};return y$.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:D({"aria-pressed":!1},k$(e.tooltip,t.providers))},onExecute:function(t){e.onAction(i(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:fd([hL.splitButton(t.providers.isDisabled),uL(),jy("split-dropdown-events",[As(M$,Jy.focus),mL(a,o),gL(a,o)]),jO.config({})]),eventOrder:(n={},n[fs()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:A$(i,e,t.providers),parts:{menu:gM(!1,e.columns,e.presets)},components:[y$.parts.button(S$(e.icon,e.text,Y.none(),Y.some(r),Y.some([mx.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),y$.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Ew("chevron-down",t.providers.icons)},buttonBehaviours:fd([hL.splitButton(t.providers.isDisabled),uL(),Fw()])}),y$.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},F$=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],I$=function(e,t){return function(n,r,i){var o=e(n).mapError((function(e){return ko(e)})).getOrDie();return t(o,r,i)}},Y$={button:I$(Lk,(function(e,t){return T$(e,t.backstage.shared.providers)})),togglebutton:I$(Dk,(function(e,t){return O$(e,t.backstage.shared.providers)})),menubutton:I$($z,(function(e,t){return qI(e,"tox-tbtn",t.backstage,Y.none())})),splitbutton:I$(Wz,(function(e,t){return P$(e,t.backstage.shared)})),grouptoolbarbutton:I$(jz,(function(e,t,n){var r,i=n.ui.registry.getAll().buttons,o=function(e){return $$(n,{buttons:i,toolbar:e,allowToolbarGroups:!1},t,Y.none())},a=(r={},r[Rf]=t.backstage.shared.header.isPositionedAtTop()?Nd.TopToBottom:Nd.BottomToTop,r);switch(PS(n)){case Bk.floating:return L$(e,t.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return o$(e,t.backstage)},fontsizeSelectButton:function(e,t){return XV(e,t.backstage)},fontSelectButton:function(e,t){return BV(e,t.backstage)},formatButton:function(e,t){return n$(e,t.backstage)},alignMenuButton:function(e,t){return IV(e,t.backstage)}},R$=function(e,t,n){return Le(Y$,e.type).fold((function(){return console.error("skipping button defined by",e),Y.none()}),(function(r){return Y.some(r(e,t,n))}))},N$={styleselect:Y$.styleSelectButton,fontsizeselect:Y$.fontsizeSelectButton,fontselect:Y$.fontSelectButton,formatselect:Y$.formatButton,align:Y$.alignMenuButton},H$=function(e){var t=W(F$,(function(t){var n=J(t.items,(function(t){return Ce(e,t)||Ce(N$,t)}));return{name:t.name,items:n}}));return J(t,(function(e){return e.items.length>0}))},z$=function(e){var t=e.split("|");return W(t,(function(e){return{items:e.trim().split(" ")}}))},j$=function(e){return m(e,(function(e){return Ce(e,"name")&&Ce(e,"items")}))},B$=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?H$(n):o(t)?z$(t):j$(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},V$=function(e,t,n,r,i,o){return Le(t,n.toLowerCase()).orThunk((function(){return o.bind((function(e){return pe(e,(function(e){return Le(t,e+n.toLowerCase())}))}))})).fold((function(){return Le(N$,n.toLowerCase()).map((function(t){return t(e,i)})).orThunk((function(){return Y.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?R$(t,i,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),Y.none())}))},$$=function(e,t,n,r){var i=B$(t),o=W(i,(function(i){var o=re(i.items,(function(i){return 0===i.trim().length?[]:V$(e,t.buttons,i,t.allowToolbarGroups,n,r).toArray()}));return{title:Y.from(e.translate(i.name)),items:o}}));return J(o,(function(e){return e.items.length>0}))},U$=function(e,t,n,r){var i=t.outerContainer,a=n.toolbar,s=n.buttons;if(m(a,o)){var u=a.map((function(t){var i={toolbar:t,buttons:s,allowToolbarGroups:n.allowToolbarGroups};return $$(e,i,{backstage:r},Y.none())}));sV.setToolbars(i,u)}else sV.setToolbar(i,$$(e,n,{backstage:r},Y.none()))},W$=tn(),q$=W$.os.isiOS()&&W$.os.version.major<=12,G$=function(e,t){var n=e.dom,r=e.getWin(),i=e.getDoc().documentElement,o=ia(cr(r.innerWidth,r.innerHeight)),a=ia(cr(i.offsetWidth,i.offsetHeight)),s=function(){var t=o.get();t.left===r.innerWidth&&t.top===r.innerHeight||(o.set(cr(r.innerWidth,r.innerHeight)),_C(e))},u=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(cr(t.offsetWidth,t.offsetHeight)),_C(e))},l=function(t){return bC(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",l);var c=sf(tt.fromDom(e.getBody()),"load",u),d=t.uiMothership.element;e.on("hide",(function(){Gn(d,"display","none")})),e.on("show",(function(){nr(d,"display")})),e.on("NodeChange",u),e.on("remove",(function(){c.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",l),r=null}))},K$=function(e,t,n,r,i){var o=ia(0),a=t.outerContainer;bV(e);var s=tt.fromDom(i.targetNode),u=On(Dn(s));Jp(s,t.mothership),Kp(u,t.uiMothership),e.on("PostRender",(function(){U$(e,t,n,r),o.set(e.getWin().innerWidth),sV.setMenubar(a,fV(e,n)),sV.setSidebar(a,n.sidebar),G$(e,t)}));var l=sV.getSocket(a).getOrDie("Could not find expected socket element");if(q$){Kn(l.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var c=Vw((function(){e.fire("ScrollContent")}),20),d=af(l.element,"scroll",c.throttle);e.on("remove",d.unbind)}sL(e,t),e.addCommand("ToggleSidebar",(function(t,n){sV.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return sV.whichSidebar(a)}));var f=PS(e),h=function(){sV.refreshToolbar(t.outerContainer)};f!==Bk.sliding&&f!==Bk.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(h(),o.set(t))}));var p={enable:function(){aL(t,!1)},disable:function(){aL(t,!0)},isDisabled:function(){return Rv.isDisabled(a)}};return{iframeContainer:l.element.dom,editorContainer:a.element.dom,api:p}},J$=Object.freeze({__proto__:null,render:K$}),X$=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?Y.some(parseInt(""+e,10)):Y.none()},Q$=function(e){return p(e)?e+"px":e},Z$=function(e,t,n){var r=t.filter((function(t){return e<t})),i=n.filter((function(t){return e>t}));return r.or(i).getOr(e)},eU=function(e){var t=vS(e),n=yS(e),r=wS(e);return X$(t).map((function(e){return Z$(e,n,r)}))},tU=function(e){var t=eU(e);return t.getOr(vS(e))},nU=function(e){var t=_S(e),n=bS(e),r=xS(e);return X$(t).map((function(e){return Z$(e,n,r)}))},rU=function(e){var t=nU(e);return t.getOr(_S(e))},iU=function(e,t,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=fS.DOM,u=BS(e),l=US(e),c=xS(e).or(nU(e)),d=r.shared.header,f=d.isPositionedAtTop,h=PS(e),p=h===Bk.sliding||h===Bk.floating,m=ia(!1),g=function(){return m.get()&&!e.removed},v=function(e){return p?e.fold(y(0),(function(e){return e.components().length>1?ar(e.components()[1].element):0})):0},_=function(n){switch(YS(e)){case AS.auto:var r=sV.getToolbar(a),i=v(r),o=ar(n.element)-i,s=Xr(t),u=s.y>o;if(u)return"top";var l=mn(t),c=Math.max(l.dom.scrollHeight,ar(l)),d=s.bottom<c-o;if(d)return"bottom";var f=Zr(),h=f.bottom<s.bottom-o;return h?"bottom":"top";case AS.bottom:return"bottom";case AS.top:default:return"top"}},b=function(e){var t=i.get();wz.setModes(t,[e]),d.setDockingMode(e);var n=f()?Nd.TopToBottom:Nd.BottomToTop;zn(t.element,Rf,n)},x=function(){var e=c.getOrThunk((function(){var e=X$(Xn(Rn(),"margin-left")).getOr(0);return vr(Rn())-hr(t).left+e}));Gn(i.get().element,"max-width",e+"px")},w=function(){var e=sV.getToolbar(a),n=v(e),r=Xr(t),o=f()?Math.max(r.y-ar(i.get().element)+n,0):r.bottom;Kn(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},k=function(){o.broadcastOn([ym()],{})},M=function(e){if(void 0===e&&(e=!1),g()){if(u||x(),p&&sV.refreshToolbar(a),u||w(),l){var t=i.get();e?wz.reset(t):wz.refresh(t)}k()}},S=function(e){if(void 0===e&&(e=!0),!u&&l&&g()){var t=d.getDockingMode(),n=_(i.get());n!==t&&(b(n),e&&M(!0))}},L=function(){m.set(!0),Gn(a.element,"display","flex"),s.addClass(e.getBody(),"mce-edit-focus"),nr(o.element,"display"),S(!1),M()},C=function(){m.set(!1),n.outerContainer&&(Gn(a.element,"display","none"),s.removeClass(e.getBody(),"mce-edit-focus")),Gn(o.element,"display","none")};return{isVisible:g,isPositionedAtTop:f,show:L,hide:C,update:M,updateMode:S,repositionPopups:k}},oU=function(e,t){var n=Xr(e);return{pos:t?n.y:n.bottom,bounds:n}},aU=function(e,t,n,r){var i=ia(oU(t,n.isPositionedAtTop())),o=function(r){var o=oU(t,n.isPositionedAtTop()),a=o.pos,s=o.bounds,u=i.get(),l=u.pos,c=u.bounds,d=s.height!==c.height||s.width!==c.width;i.set({pos:a,bounds:s}),d&&_C(e,r),n.isVisible()&&(l!==a?n.update(!0):d&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){xw.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=tf();a.set(sf(tt.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))},sU=function(e,t,n,r,i){var o=t.mothership,a=t.uiMothership,s=t.outerContainer,u=ia(null),l=tt.fromDom(i.targetNode),c=iU(e,l,t,r,u),d=zS(e);yV(e);var f=function(){if(u.get())c.show();else{u.set(sV.getHeader(s).getOrDie());var i=VS(e);Kp(i,o),Kp(i,a),U$(e,t,n,r),sV.setMenubar(s,fV(e,n)),c.show(),aU(e,l,c,d),e.nodeChanged()}};e.on("show",f),e.on("hide",c.hide),d||(e.on("focus",f),e.on("blur",c.hide)),e.on("init",(function(){(e.hasFocus()||d)&&f()})),sL(e,t);var h={show:function(){c.show()},hide:function(){c.hide()},enable:function(){aL(t,!1)},disable:function(){aL(t,!0)},isDisabled:function(){return Rv.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},uU=Object.freeze({__proto__:null,render:sU}),lU="contexttoolbar-show",cU="contexttoolbar-hide",dU=function(e){return{hide:function(){return ws(e,os())},getValue:function(){return eg.getValue(e)}}},fU=function(e,t){return As(OI,(function(n,r){var i=e.get(n),o=dU(i);t.onAction(o,r.event.buttonApi)}))},hU=function(e,t,n){var r=t.original;r.primary;var i=O(r,["primary"]),o=xo(Lk(D(D({},i),{type:"button",onAction:g})));return D$(o,n.backstage.shared.providers,[fU(e,t)])},pU=function(e,t,n){var r=t.original;r.primary;var i=O(r,["primary"]),o=xo(Dk(D(D({},i),{type:"togglebutton",onAction:g})));return E$(o,n.backstage.shared.providers,[fU(e,t)])},mU=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?pU(e,t,r):hU(e,t,r)},gU=function(e,t,n){var r=W(t,(function(t){return Mw(mU(e,t,n))})),i=function(){return W(r,(function(e){return e.asSpec()}))},o=function(e){return pe(t,(function(t,n){return t.primary?Y.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(M(Rv.isDisabled)):Y.none()}))};return{asSpecs:i,findPrimary:o}},vU=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=Mw(BD.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:fd([Dy.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return Ms(e),!0}))},onLeft:function(e,t){return t.cut(),Y.none()},onRight:function(e,t){return t.cut(),Y.none()}})])})),i=gU(r,e.commands,t);return[{title:Y.none(),items:[r.asSpec()]},{title:Y.none(),items:i.asSpecs()}]},_U=function(e,t,n){return XB({type:e,uid:iu("context-toolbar"),initGroups:vU(t,n),onEscape:Y.none,cyclicKeying:!0,providers:n})},bU={renderContextForm:_U,buildInitGroups:vU},yU=function(e,t,n){return void 0===n&&(n=.01),t.bottom-e.y>=n&&e.bottom-t.y>=n},xU=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=Sn(tt.fromDom(e.startContainer),e.startOffset).element,r=dt(n)?vn(n):Y.some(n);return r.filter(ct).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t},wU=function(e){var t=e.selection.getRng(),n=xU(t);if(e.inline){var r=Rr();return Jr(r.left+n.left,r.top+n.top,n.width,n.height)}var i=Qr(tt.fromDom(e.getBody()));return Jr(i.x+n.left,i.y+n.top,n.width,n.height)},kU=function(e,t){return t.filter(Yn).map(Qr).getOrThunk((function(){return wU(e)}))},MU=function(e,t,n){var r=Math.max(e.x+n,t.x),i=Math.min(e.right-n,t.right);return{x:r,width:i-r}},SU=function(e,t,n,r,i,o){var a=tt.fromDom(e.getContainer()),s=Nl(a,".tox-editor-header").getOr(a),u=Xr(s),l=u.y>=t.bottom,c=r&&!l;if(e.inline&&c)return{y:Math.max(u.bottom+o,n.y),bottom:n.bottom};if(e.inline&&!c)return{y:n.y,bottom:Math.min(u.y-o,n.bottom)};var d="line"===i?Xr(a):t;return c?{y:Math.max(u.bottom+o,n.y),bottom:Math.min(d.bottom-o,n.bottom)}:{y:Math.max(d.y+o,n.y),bottom:Math.min(u.y-o,n.bottom)}},LU=function(e,t,n,r){void 0===r&&(r=0);var i=jr(window),o=Xr(tt.fromDom(e.getContentAreaContainer())),a=TS(e)||DS(e)||ES(e),s=MU(o,i,r),u=s.x,l=s.width;if(e.inline&&!a)return Jr(u,i.y,l,i.height);var c=t.header.isPositionedAtTop(),d=SU(e,o,i,c,n,r),f=d.y,h=d.bottom;return Jr(u,f,l,h-f)},CU=12,TU={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},DU={maxHeightFunction:Cf(),maxWidthFunction:xB()},OU=function(e,t){var n=e.selection.getRng(),r=Sn(tt.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&ln(r.element,t)},EU=function(e,t,n){var r=Zn(e,"position");Gn(e,"position",t);var i=n(e);return r.each((function(t){return Gn(e,"position",t)})),i},AU=function(e){return"node"===e},PU=function(e,t,n,r,i){var o=wU(e),a=r.lastElement().exists((function(e){return ln(n,e)}));if(OU(e,n))return a?_w:hw;if(a)return EU(t,r.getMode(),(function(){var e=yU(o,Xr(t));return e&&!r.isReposition()?yw:_w}));var s="fixed"===r.getMode()?i.y+Rr().top:i.y,u=ar(t)+CU;return s+u<=o.y?hw:pw},FU=function(e,t,n,r){var i=function(t){return function(r,i,o,a,s){var u=PU(e,a,t,n,s),l=D(D({},r),{y:s.y,height:s.height});return D(D({},u(l,i,o,a,s)),{alwaysFit:!0})}},o=function(e){return AU(r)?[i(e)]:[]},a={onLtr:function(e){return[Uc,Wc,Vc,jc,$c,Bc].concat(o(e))},onRtl:function(e){return[Uc,Wc,$c,Bc,Vc,jc].concat(o(e))}},s={onLtr:function(e){return[Wc,jc,Bc,Vc,$c,Uc].concat(o(e))},onRtl:function(e){return[Wc,Bc,jc,$c,Vc,Uc].concat(o(e))}};return t?s:a},IU=function(e,t,n,r){return"line"===t?{bubble:Af(CU,0,TU),layouts:{onLtr:function(){return[qc]},onRtl:function(){return[Gc]}},overrides:DU}:{bubble:Af(0,CU,TU,1/CU),layouts:FU(e,n,r,t),overrides:DU}},YU=function(e,t){var n=J(t,(function(t){return t.predicate(e.dom)})),r=K(n,(function(e){return"contexttoolbar"===e.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},RU=function(e){if(e.length<=1)return e;var t=function(t){return V(e,(function(e){return e.position===t}))},n=function(t){return J(e,(function(e){return e.position===t}))},r=t("selection"),i=t("node");if(r||i){if(i&&r){var o=n("node"),a=W(n("selection"),(function(e){return D(D({},e),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},NU=function(e){if(e.length<=1)return e;var t=function(t){return ee(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return J(e,(function(e){return e.position===t}))}))},HU=function(e,t,n){var r=YU(e,t);if(r.contextForms.length>0)return Y.some({elem:e,toolbars:[r.contextForms[0]]});var i=YU(e,n);if(i.contextForms.length>0)return Y.some({elem:e,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=RU(r.contextToolbars.concat(i.contextToolbars));return Y.some({elem:e,toolbars:o})}return Y.none()},zU=function(e,t,n){return e(t)?Y.none():ba(t,(function(e){if(ct(e)){var t=YU(e,n.inNodeScope),r=t.contextToolbars,i=t.contextForms,o=i.length>0?i:NU(r);return o.length>0?Y.some({elem:e,toolbars:o}):Y.none()}return Y.none()}),e)},jU=function(e,t){var n=tt.fromDom(t.getBody()),r=function(e){return ln(e,n)},i=function(e){return!r(e)&&!fn(n,e)},o=tt.fromDom(t.selection.getNode());return i(o)?Y.none():HU(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return zU(r,o,e)}))},BU=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var u=xo(Rk(s));n[e]=u,u.launch.map((function(n){o["form:"+e]=D(D({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(u)}})})),"editor"===u.scope?i.push(u):r.push(u),a[e]=u},u=function(e,t){Hk(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},l=me(e);return q(l,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&u(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},VU=iu("forward-slide"),$U=iu("backward-slide"),UU=iu("change-slide-event"),WU="tox-pop--resizing",qU=function(e){var t=ia([]);return tw.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),tw.getContent(e).each((function(e){nr(e.element,"visibility")})),sl(e.element,WU),nr(e.element,"width")},inlineBehaviours:fd([jy("context-toolbar-events",[js(Wa(),(function(e,t){"width"===t.event.raw.propertyName&&(sl(e.element,WU),nr(e.element,"width"))})),As(UU,(function(e,t){var n=e.element;nr(n,"width");var r=vr(n);tw.setContent(e,t.event.contents),ol(n,WU);var i=vr(n);Gn(n,"width",r+"px"),tw.getContent(e).each((function(e){t.event.focus.bind((function(e){return wd(e),Ld(n)})).orThunk((function(){return Dy.focusIn(e),Sd(Dn(n))}))})),xw.setTimeout((function(){Gn(e.element,"width",i+"px")}),0)})),As(VU,(function(e,n){tw.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:Sd(Dn(e.element))}]))})),ks(e,UU,{contents:n.event.forwardContents,focus:Y.none()})})),As($U,(function(e,n){fe(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),ks(e,UU,{contents:Tl(n.bar),focus:n.focus})}))}))]),Dy.config({mode:"special",onEscape:function(n){return fe(t.get()).fold((function(){return e.onEscape()}),(function(e){return ws(n,$U),Y.some(!0)}))}})]),lazySink:function(){return ri.value(e.sink)}})},GU="tox-pop--transition",KU=function(e,t,n,r){var i=r.backstage,o=i.shared,a=tn().deviceType.isTouch,s=rf(),u=rf(),l=rf(),c=Cl(qU({sink:n,onEscape:function(){return e.focus(),Y.some(!0)}})),d=function(){var t=l.get().getOr("node"),n=AU(t)?1:0;return LU(e,o,t,n)},f=function(){return!e.removed&&!(a()&&i.isContextMenuOpen())},h=function(e){return De(Pe(e,s.get(),ln),!0)},p=function(){if(f()){var t=d(),n=De(l.get(),"node")?kU(e,s.get()):wU(e);return t.height<=0||!yU(n,t)}return!0},m=function(){s.clear(),u.clear(),l.clear(),tw.hide(c)},v=function(){if(tw.isOpen(c)){var e=c.element;nr(e,"display"),p()?Gn(e,"display","none"):(u.set(0),tw.reposition(c))}},_=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:fd([Dy.config({mode:"acyclic"}),jy("pop-dialog-wrap-events",[Bs((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Dy.focusIn(t)}))})),Vs((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},b=pt((function(){return BU(t,(function(e){var t=w([e]);ks(c,VU,{forwardContents:_(t)})}))})),y=function(t,n){return $$(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,Y.some(["form:"]))},x=function(e,t){return bU.buildInitGroups(e,t)},w=function(t){var n=e.ui.registry.getAll().buttons,r=b(),i=D(D({},n),r.formNavigators),a=PS(e)===Bk.scrolling?Bk.scrolling:Bk.default,s=ne(W(t,(function(e){return"contexttoolbar"===e.type?y(i,e):x(e,o.providers)})));return XB({type:a,uid:iu("context-toolbar"),initGroups:s,onEscape:Y.none,cyclicKeying:!0,providers:o.providers})},k=function(t,r){var i="node"===t?o.anchors.node(r):o.anchors.cursor(),l=IU(e,t,a(),{lastElement:s.get,isReposition:function(){return De(u.get(),0)},getMode:function(){return Np.getMode(n)}});return xi(i,l)},M=function(e,t){if(S.cancel(),f()){var r=w(e),i=e[0].position,o=k(i,t);l.set(i),u.set(1);var a=c.element;nr(a,"display"),h(t)||(sl(a,GU),Np.reset(n,c)),tw.showWithinBounds(c,_(r),{anchor:o,transition:{classes:[GU],mode:"placement"}},(function(){return Y.some(d())})),t.fold(s.clear,s.set),p()&&Gn(a,"display","none")}},S=$w((function(){if(e.hasFocus()&&!e.removed)if(ul(c.element,GU))S.throttle();else{var t=b();jU(t,e).fold(m,(function(e){M(e.toolbars,Y.some(e.elem))}))}}),17);e.on("init",(function(){e.on("remove",m),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click keyup focus SetContent",S.throttle),e.on(cU,m),e.on(lU,(function(t){var n=b();Le(n.lookupTable,t.toolbarKey).each((function(n){M([n],Ye(t.target!==e,t.target)),tw.getContent(c).each(Dy.focusIn)}))})),e.on("focusout",(function(t){xw.setEditorTimeout(e,(function(){Ld(n.element).isNone()&&Ld(c.element).isNone()&&m()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&m()})),e.on("AfterProgressState",(function(t){t.state?m():e.hasFocus()&&S.throttle()})),e.on("NodeChange",(function(e){Ld(c.element).fold(S.throttle,g)}))}))},JU=function(e){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];q(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MV(e,t.cmd),onSetup:xV(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:MV(e,"JustifyNone")})},XU={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},QU=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),ZU=function(e,t){return V(t,(function(t){return V(XU[t],(function(t){return e===t}))}))},eW=function(e,t){var n=Y.from(QU.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return ZU(r,t)?Y.some({value:n,unit:r}):Y.none()}))},tW=function(e,t){return eW(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},nW=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),i=rf();return W(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(o){var a=function(e){e&&(i.on((function(e){return e.setActive(!1)})),i.set(o)),o.setActive(e)};a(De(r,t.hash(n)));var s=t.watcher(e,n,a);return function(){i.clear(),s()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},rW={name:"lineheight",text:"Line height",icon:"line-height",getOptions:SS,hash:function(e){return tW(e,["fixed","relative","empty"]).getOr(e)},display:x,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return Y.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},iW=function(e){var t=Y.from(LS(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:y(t),hash:function(e){return c(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=tt.fromDom(e.selection.getNode());return ya(t,(function(e){return Y.some(e).filter(ct).bind((function(e){var t=Vn(e,"lang");return t.map((function(t){var n=Vn(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:n,title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=tf();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))},oW=function(e){nW(e,rW),iW(e).each((function(t){return nW(e,t)}))},aW=function(e,t){YV(e,t),VV(e,t),a$(e,t),r$(e,t),QV(e,t)},sW=function(e){return wV(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},uW=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:sW(e),onAction:MV(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:MV(e,"indent")})},lW=function(e){uW(e)},cW=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},dW=function(e){QP.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:xV(e,t.name),onAction:cW(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:xV(e,n),onAction:cW(e,n)})}},fW=function(e){QP.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MV(e,t.action)})}))},hW=function(e){QP.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:MV(e,t.action),onSetup:xV(e,t.name)})}))},pW=function(e){dW(e),fW(e),hW(e)},mW=function(e){QP.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:MV(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:cW(e,"code")})},gW=function(e){pW(e),mW(e)},vW=function(e,t){return wV(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},_W=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:vW(e,"hasUndo"),onAction:MV(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:vW(e,"hasRedo"),onAction:MV(e,"redo")})},bW=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:vW(e,"hasUndo"),onAction:MV(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:vW(e,"hasRedo"),onAction:MV(e,"redo")})},yW=function(e){_W(e),bW(e)},xW=function(e){return wV(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},wW=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:xW(e),onAction:MV(e,"mceToggleVisualAid")})},kW=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:MV(e,"mceToggleVisualAid")})},MW=function(e){kW(e),wW(e)},SW=function(e,t){JU(e),gW(e),aW(e,t),yW(e),tT(e),MW(e),lW(e),oW(e)},LW=function(e,t){return{type:"makeshift",x:e,y:t}},CW=function(e,t,n){return LW(e.x+t,e.y+n)},TW=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},DW=function(e){if(TW(e)){var t=e.touches[0];return LW(t.pageX,t.pageY)}return LW(e.pageX,e.pageY)},OW=function(e){if(TW(e)){var t=e.touches[0];return LW(t.clientX,t.clientY)}return LW(e.clientX,e.clientY)},EW=function(e,t){var n=fS.DOM.getPos(e);return CW(t,n.x,n.y)},AW=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?DW(t):EW(e.getContentAreaContainer(),OW(t)):PW(e)},PW=function(e){return{type:"selection",root:tt.fromDom(e.selection.getNode())}},FW=function(e){return{type:"node",node:Y.some(tt.fromDom(e.selection.getNode())),root:tt.fromDom(e.getBody())}},IW=function(e,t,n){switch(n){case"node":return FW(e);case"point":return AW(e,t);case"selection":return PW(e)}},YW=function(e,t,n,r,i,o){var a=n(),s=IW(e,t,o);UI(a,Vk.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),tw.showMenuAt(i,{anchor:s},{menu:{markers:hM("normal")},data:e})}))},RW={onLtr:function(){return[Wc,jc,Bc,Vc,$c,Uc,hw,pw,fw,cw,dw,lw]},onRtl:function(){return[Wc,Bc,jc,$c,Vc,Uc,hw,pw,dw,lw,fw,cw]}},NW=12,HW={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},zW=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=np(e.getWin(),Mh.domRange(i));return o.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},jW=function(e){var t=e.selection.getRng(),n=function(){xw.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},BW=function(e,t,n){var r=IW(e,t,n),i="point"===n?NW:0;return D({bubble:Af(0,i,HW),layouts:RW,overrides:{maxWidthFunction:xB(),maxHeightFunction:Cf()}},r)},VW=function(e,t,n,r,i,o,a){var s=BW(e,t,o);UI(n,Vk.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),tw.showMenuWithinBounds(i,{anchor:s},{menu:{markers:hM("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return Y.some(LU(e,r.shared,"node"===o?"node":"selection"))})),e.fire(cU)}))},$W=function(e,t,n,r,i,o){var a=tn(),s=a.os.isiOS(),u=a.os.isOSX(),l=a.os.isAndroid(),c=a.deviceType.isTouch(),d=function(){return!(l||s||u&&c)},f=function(){var a=n();VW(e,t,a,r,i,o,d())};if((u||s)&&"node"!==o){var h=function(){jW(e),f()};zW(e,t)?h():(e.once("selectionchange",h),e.once("touchend",(function(){return e.off("selectionchange",h)})))}else f()},UW=function(e){return"string"===typeof e?e.split(/[ ,]/):e},WW=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},qW=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return Y.from(e.getParam(t)).map(UW).getOrThunk((function(){return J(UW(n),(function(e){return Ce(r,e)}))}))},GW=function(e){return!1===e.getParam("contextmenu")},KW=function(e){return qW(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},JW=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},XW=function(e){return o(e)?"|"===e:"separator"===e.type},QW={type:"separator"},ZW=function(e){var t=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(o(e))return e;switch(e.type){case"separator":return QW;case"submenu":return D(D({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return o(t)?t:W(t,ZW)}});default:return D(D({type:"menuitem"},t(e)),{onAction:v(e.onAction)})}},eq=function(e,t){if(0===t.length)return e;var n=fe(e).filter((function(e){return!XW(e)})),r=n.fold((function(){return[]}),(function(e){return[QW]}));return e.concat(r).concat(t).concat([QW])},tq=function(e,t,n){var r=Q(t,(function(t,r){return Le(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(o(r))return eq(t,r.split(" "));if(r.length>0){var i=W(r,ZW);return eq(t,i)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&&XW(r[r.length-1])&&r.pop(),r},nq=function(e,t){return t.ctrlKey&&!WW(e)},rq=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},iq=function(e,t){return rq(e,t)?e.selection.getStart(!0):t.target},oq=function(e,t){var n=JW(e),r=rq(e,t)?"selection":"point";if(qe(n)){var i=iq(e,t),o=YT(tt.fromDom(i),n);return o?"node":r}return r},aq=function(e,t,n){var r=tn(),i=r.deviceType.isTouch,o=Cl(tw.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:fd([jy("dismissContextMenu",[As(ps(),(function(t,n){_m.close(t),e.focus()}))])])})),a=function(e){return tw.hide(o)},s=function(t){if(WW(e)&&t.preventDefault(),!nq(e,t)&&!GW(e)){var r=oq(e,t),a=function(){var n=iq(e,t),r=e.ui.registry.getAll(),i=KW(e);return tq(r.contextMenus,i,n)},s=i()?$W:YW;s(e,t,a,n,o,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},sq=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),uq=function(e){return function(t){return t.translate(-e.left,-e.top)}},lq=function(e){return function(t){return t.translate(e.left,e.top)}},cq=function(e){return function(t,n){return Q(e,(function(e,t){return t(e)}),cr(t,n))}},dq=function(e,t,n){return e.fold(cq([lq(n),uq(t)]),cq([uq(t)]),cq([]))},fq=function(e,t,n){return e.fold(cq([lq(n)]),cq([]),cq([lq(t)]))},hq=function(e,t,n){return e.fold(cq([]),cq([uq(n)]),cq([lq(t),uq(n)]))},pq=function(e,t,n,r,i,o){var a=fq(e,i,o),s=fq(t,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},mq=function(e,t,n,r,i,o){var a=fq(e,i,o),s=fq(t,i,o),u=Math.abs(a.left-s.left),l=Math.abs(a.top-s.top);return cr(u,l)},gq=function(e,t,n){var r=e.fold((function(e,t){return{position:Y.some("absolute"),left:Y.some(e+"px"),top:Y.some(t+"px")}}),(function(e,t){return{position:Y.some("absolute"),left:Y.some(e-n.left+"px"),top:Y.some(t-n.top+"px")}}),(function(e,t){return{position:Y.some("fixed"),left:Y.some(e+"px"),top:Y.some(t+"px")}}));return D({right:Y.none(),bottom:Y.none()},r)},vq=function(e,t,n){return e.fold((function(e,r){return bq(e+t,r+n)}),(function(e,r){return yq(e+t,r+n)}),(function(e,r){return xq(e+t,r+n)}))},_q=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return e.fold(i(hq,bq),i(fq,yq),i(dq,xq))},bq=sq.offset,yq=sq.absolute,xq=sq.fixed,wq=function(e,t){var n=Bn(e,t);return c(n)?NaN:parseInt(n,10)},kq=function(e,t){var n=e.element,r=wq(n,t.leftAttr),i=wq(n,t.topAttr);return isNaN(r)||isNaN(i)?Y.none():Y.some(cr(r,i))},Mq=function(e,t,n){var r=e.element;zn(r,t.leftAttr,n.left+"px"),zn(r,t.topAttr,n.top+"px")},Sq=function(e,t){var n=e.element;Un(n,t.leftAttr),Un(n,t.topAttr)},Lq=function(e,t,n,r){return kq(e,t).fold((function(){return n}),(function(e){return xq(e.left+r.left,e.top+r.top)}))},Cq=function(e,t,n,r,i,o){var a=Lq(e,t,n,r),s=t.mustSnap?Oq(e,t,a,i,o):Eq(e,t,a,i,o),u=dq(a,i,o);return Mq(e,t,u),s.fold((function(){return{coord:xq(u.left,u.top),extra:Y.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},Tq=function(e,t){Sq(e,t)},Dq=function(e,t,n,r){return pe(e,(function(e){var i=e.sensor,o=pq(t,i,e.range.left,e.range.top,n,r);return o?Y.some({output:_q(e.output,t,n,r),extra:e.extra}):Y.none()}))},Oq=function(e,t,n,r,i){var o=t.getSnapPoints(e),a=Dq(o,n,r,i);return a.orThunk((function(){var e=Q(o,(function(e,t){var o=t.sensor,a=mq(n,o,t.range.left,t.range.top,r,i);return e.deltas.fold((function(){return{deltas:Y.some(a),snap:Y.some(t)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:Y.some(a),snap:Y.some(t)}:e}))}),{deltas:Y.none(),snap:Y.none()});return e.snap.map((function(e){return{output:_q(e.output,n,r,i),extra:e.extra}}))}))},Eq=function(e,t,n,r,i){var o=t.getSnapPoints(e);return Dq(o,n,r,i)},Aq=function(e,t,n){return{coord:_q(e.output,e.output,t,n),extra:e.extra}},Pq=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Rr(o),s=UH(i),u=Aq(r,a,s),l=gq(u.coord,a,s);Jn(i,l)}},Fq=Object.freeze({__proto__:null,snapTo:Pq}),Iq="data-initial-z-index",Yq=function(e){vn(e.element).filter(ct).each((function(e){Vn(e,Iq).fold((function(){return nr(e,"z-index")}),(function(t){return Gn(e,"z-index",t)})),Un(e,Iq)}))},Rq=function(e){vn(e.element).filter(ct).each((function(t){Zn(t,"z-index").each((function(e){zn(t,Iq,e)})),Gn(t,"z-index",Xn(e.element,"z-index"))}))},Nq=function(e,t){e.getSystem().addToGui(t),Rq(t)},Hq=function(e){Yq(e),e.getSystem().removeFromGui(e)},zq=function(e,t,n){return e.getSystem().build(lD.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},jq=Wo("snaps",[Do("getSnapPoints"),sc("onSensor"),Do("leftAttr"),Do("topAttr"),Go("lazyViewport",Zr),Go("mustSnap",!1)]),Bq=[Go("useFixed",L),Do("blockerClass"),Go("getTarget",x),Go("onDrag",g),Go("repositionTarget",!0),Go("onDrop",g),ea("getBounds",Zr),jq],Vq=function(e){return Fe(Zn(e,"left"),Zn(e,"top"),Zn(e,"position"),(function(e,t,n){var r="fixed"===n?xq:bq;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=hr(e);return yq(t.left,t.top)}))},$q=function(e,t,n,r,i){var o=i.bounds,a=fq(t,n,r),s=Tc(a.left,o.x,o.x+o.width-i.width),u=Tc(a.top,o.y,o.y+o.height-i.height),l=yq(s,u);return t.fold((function(){var e=hq(l,n,r);return bq(e.left,e.top)}),y(l),(function(){var e=dq(l,n,r);return xq(e.left,e.top)}))},Uq=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=vq(n,o.left,o.top),t=dq(e,r,i);return xq(t.left,t.top)}),(function(t){var a=Cq(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return $q(e,s,r,i,a)},Wq=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=hn(e.element),a=Rr(o),s=UH(i),u=Vq(i),l=Uq(e,t.snaps,u,a,s,r,n),c=gq(l,a,s);Jn(i,c)}t.onDrag(e,i,r)},qq=function(e,t){return{bounds:e.getBounds(),height:sr(t.element),width:_r(t.element)}},Gq=function(e,t,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return qq(t,e)}));o.each((function(n){Wq(e,t,a,n)}))},Kq=function(e,t,n,r){t.each(Hq),n.snaps.each((function(t){Tq(e,t)}));var i=n.getTarget(e.element);r.reset(),n.onDrop(e,i)},Jq=function(e){return function(t,n){var r=function(e){n.setStartData(qq(t,e))};return Ts(E([As(cs(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},Xq=function(e){return Ts([As(Pa(),e.forceDrop),As(Ya(),e.drop),As(Fa(),(function(t,n){e.move(n.event)})),As(Ia(),e.delayDrop)])},Qq=function(e){return Y.from(cr(e.x,e.y))},Zq=function(e,t){return cr(t.left-e.left,t.top-e.top)},eG=Object.freeze({__proto__:null,getData:Qq,getDelta:Zq}),tG=function(e,t,n){return[As(Pa(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return Kq(r,Y.some(l),e,t)},s=RT(a,200),u={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),Gq(r,e,t,eG,n)}},l=zq(r,e.blockerClass,Xq(u)),c=function(){n(r),Nq(r,l)};c()}}))]},nG=E(E([],Bq,!0),[dc("dragger",{handlers:Jq(tG)})],!1),rG=function(e){return Ts([As(Da(),e.forceDrop),As(Ea(),e.drop),As(Aa(),e.drop),As(Oa(),(function(t,n){e.move(n.event)}))])},iG=function(e){var t=e[0];return Y.some(cr(t.clientX,t.clientY))},oG=function(e){var t=e.raw,n=t.touches;return 1===n.length?iG(n):Y.none()},aG=function(e,t){return cr(t.left-e.left,t.top-e.top)},sG=Object.freeze({__proto__:null,getData:oG,getDelta:aG}),uG=function(e,t,n){var r=rf(),i=function(n){Kq(n,r.get(),e,t),r.clear()};return[As(Da(),(function(o,a){a.stop();var s=function(){return i(o)},u={drop:s,delayDrop:g,forceDrop:s,move:function(n){Gq(o,e,t,sG,n)}},l=zq(o,e.blockerClass,rG(u));r.set(l);var c=function(){n(o),Nq(o,l)};c()})),As(Oa(),(function(n,r){r.stop(),Gq(n,e,t,sG,r.event)})),As(Ea(),(function(e,t){t.stop(),i(e)})),As(Aa(),i)]},lG=E(E([],Bq,!0),[dc("dragger",{handlers:Jq(uG)})],!1),cG=function(e,t,n){return E(E([],tG(e,t,n),!0),uG(e,t,n),!0)},dG=E(E([],Bq,!0),[dc("dragger",{handlers:Jq(cG)})],!1),fG=nG,hG=lG,pG=dG,mG=Object.freeze({__proto__:null,mouse:fG,touch:hG,mouseOrTouch:pG}),gG=function(){var e=Y.none(),t=Y.none(),n=function(){e=Y.none(),t=Y.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=Y.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},o=function(e){t=Y.some(e)},a=function(){return t},s=y({});return Su({readState:s,reset:n,update:i,getStartData:a,setStartData:o})},vG=Object.freeze({__proto__:null,init:gG}),_G=gd({branchKey:"mode",branches:mG,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:Y.from(e.extra)}}},state:vG,apis:Fq}),bG=40,yG=bG/2,xG=function(e,t,n,r,i,o){return e.fold((function(){return _G.snap({sensor:yq(n-yG,r-yG),range:cr(i,o),output:yq(Y.some(n),Y.some(r)),extra:{td:t}})}),(function(e){var i=n-yG,o=r-yG,a=bG,s=bG,u=e.element.dom.getBoundingClientRect();return _G.snap({sensor:yq(i,o),range:cr(a,s),output:yq(Y.some(n-u.width/2),Y.some(r-u.height/2)),extra:{td:t}})}))},wG=function(e,t,n){var r=function(e,t){return e.exists((function(e){return ln(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,i){var o=i.td;r(t.get(),o)||(t.set(o),n(o))},mustSnap:!0}},kG=function(e){return Mw(kw.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:fd([_G.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),jO.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},MG=function(e,t){var n=ia([]),r=ia([]),i=ia(!1),o=rf(),a=rf(),s=function(e){var n=Qr(e);return xG(h.getOpt(t),e,n.x,n.y,n.width,n.height)},u=function(){return W(n.get(),(function(e){return s(e)}))},l=function(e){var n=Qr(e);return xG(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)},c=function(){return W(r.get(),(function(e){return l(e)}))},d=wG(u,o,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),f=wG(c,a,(function(t){o.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),h=kG(d),p=kG(f),m=Cl(h.asSpec()),g=Cl(p.asSpec()),v=function(t,n,r,i){var o=n.dom.getBoundingClientRect();nr(t.element,"display");var a=gn(tt.fromDom(e.getBody())).dom.innerHeight,s=r(o),u=i(o,a);(s||u)&&Gn(t.element,"display","none")},_=function(e,t,n,r){var i=n(t);_G.snapTo(e,i);var o=function(e){return e[r]<0},a=function(e,t){return e[r]>t};v(e,t,o,a)},b=function(e){return _(m,e,s,"top")},y=function(){return o.get().each(b)},x=function(e){return _(g,e,l,"bottom")},w=function(){return a.get().each(x)};tn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){i.get()||($p(t,m),$p(t,g),i.set(!0)),o.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),b(e.start),x(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){y(),w()})),e.on("TableSelectionClear",(function(){i.get()&&(qp(m),qp(g),i.set(!1)),o.clear(),a.clear()})))},SG=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},LG=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var i=r||[],o=W(i,(function(t,r){return kw.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:fd([hL.button(n.isDisabled),uL()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return Q(o.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[o[0]])},i=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!SG(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:fd([Dy.config({mode:"flow",selector:"div[role=button]"}),Rv.config({disabled:n.isDisabled}),uL(),bD.config({}),Hy.config({}),jy("elementPathEvents",[Bs((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Dy.focusIn(t)})),e.on("NodeChange",(function(e){var n=i(e.parents);n.length>0?Hy.set(t,r(n)):Hy.set(t,[])}))}))])]),components:[]}};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(OV||(OV={}));var CG=function(e,t,n,r,i){var o={};return o.height=Z$(r+t.top,yS(e),wS(e)),n===OV.Both&&(o.width=Z$(i+t.left,bS(e),xS(e))),o},TG=function(e,t,n){var r=tt.fromDom(e.getContainer()),i=CG(e,t,n,ar(r),vr(r));ve(i,(function(e,t){return Gn(r,t,Q$(e))})),vC(e)},DG=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?OV.None:"both"===n?OV.Both:OV.Vertical},OG=function(e,t,n,r){var i=20,o=cr(n*i,r*i);return TG(e,o,t),Y.some(!0)},EG=function(e,t){var n=DG(e);return n===OV.None?Y.none():Y.some(Yw("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[_G.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){return TG(e,i,n)},blockerClass:"tox-blocker"}),Dy.config({mode:"special",onLeft:function(){return OG(e,n,-1,0)},onRight:function(){return OG(e,n,1,0)},onUp:function(){return OG(e,n,0,-1)},onDown:function(){return OG(e,n,0,1)}}),bD.config({}),Jy.config({})]},t.icons))},AG=function(e,t){var n,r=function(e,n,r){return Hy.set(e,[kl(t.translate(["{0} "+r,n[r]]))])};return kw.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:fd([hL.button(t.isDisabled),uL(),bD.config({}),Hy.config({}),eg.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),jy("wordcount-events",[Us((function(e){var t=eg.getValue(e),n="words"===t.mode?"characters":"words";eg.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Bs((function(t){e.on("wordCountUpdate",(function(e){var n=eg.getValue(t).mode;eg.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},PG=function(e,t){var n=function(){var e=Sw.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(){var r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(LG(e,{},t)),e.hasPlugin("wordcount")&&r.push(AG(e,t)),e.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},i=function(){var n=r(),i=EG(e,t);return n.concat(i.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:i()}},FG=function(e){var t,n=e.inline,r=n?uU:J$,i=US(e)?Nz:VH,o=Y.none(),a=tn(),s=a.browser.isIE(),u=s?["tox-platform-ie"]:[],l=a.deviceType.isTouch(),c="tox-platform-touch",d=l?[c]:[],f=RS(e),h=VS(e),p=Sw.isRtl()?{attributes:{dir:"rtl"}}:{},m={attributes:(t={},t[Rf]=f?Nd.BottomToTop:Nd.TopToBottom,t)},v=function(){return o.bind(sV.getHeader)},_=function(){return i.isDocked(v)},b=function(){Gn(Q.element,"width",document.body.clientWidth+"px")},y=function(){var e=ln(Rn(),h)&&"grid"===Xn(h,"display"),t={dom:D({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(u).concat(d)},p),behaviours:fd([Np.config({useFixed:function(){return _()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ts([As(ds(),b)])};return xi(t,e?n:{})},x=Cl(y()),w=function(){return ri.value(x)},k=Mw({dom:{tag:"div",classes:["tox-anchorbar"]}}),M=function(){return o.bind((function(e){return k.getOpt(e)})).getOrDie("Could not find a anchor bar element")},S=function(){return o.bind((function(e){return sV.getToolbar(e)})).getOrDie("Could not find more toolbar element")},L=function(){return o.bind((function(e){return sV.getThrobber(e)})).getOrDie("Could not find throbber element")},C=MH(x,e,M),T=sV.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:C,onEscape:function(){e.focus()}}),O=PS(e),E=sV.parts.toolbar(D({dom:{tag:"div",classes:["tox-toolbar"]},getSink:w,providers:C.shared.providers,onEscape:function(){e.focus()},type:O,lazyToolbar:S,lazyHeader:function(){return v().getOrDie("Could not find header element")}},m)),A=sV.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:C.shared.providers,onEscape:function(){e.focus()},type:O}),P=sV.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),F=sV.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),I=sV.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:C}),R=e.getParam("statusbar",!0,"boolean"),N=R&&!n?Y.some(PG(e,C.shared.providers)):Y.none(),H={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[P,F]},z=ES(e),j=DS(e),B=TS(e),V=function(){return z?[A]:j?[E]:[]},$=sV.parts.header({dom:D({tag:"div",classes:["tox-editor-header"]},m),components:ne([B?[T]:[],V(),BS(e)?[]:[k.asSpec()]]),sticky:US(e),editor:e,sharedBackstage:C.shared}),U=ne([f?[]:[$],n?[]:[H],f?[$]:[]]),W={dom:{tag:"div",classes:["tox-editor-container"]},components:U},q=ne([[W],n?[]:N.toArray(),[I]]),G=$S(e),K=D(D({role:"application"},Sw.isRtl()?{dir:"rtl"}:{}),G?{"aria-hidden":"true"}:{}),J=Cl(sV.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(f?["tox-tinymce--toolbar-bottom"]:[]).concat(d).concat(u),styles:D({visibility:"hidden"},G?{opacity:"0",border:"0"}:{}),attributes:K},components:q,behaviours:fd([uL(),Rv.config({disableClass:"tox-tinymce--disabled"}),Dy.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));o=Y.some(J),e.shortcuts.add("alt+F9","focus menubar",(function(){sV.focusMenubar(J)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){sV.focusToolbar(J)})),e.addCommand("ToggleToolbarDrawer",(function(){sV.toggleToolbarDrawer(J)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return sV.isToolbarDrawerToggled(J)}));var X=cD(J),Q=cD(x);SH(e,X,Q);var Z=function(){var e={broadcastAll:Q.broadcast,broadcastOn:Q.broadcastOn,register:g};return{channels:e}},ee=function(){var t=Q$(tU(e)),n=Q$(rU(e));return e.inline||(tr("div","width",n)&&Gn(J.element,"width",n),tr("div","height",t)?Gn(J.element,"height",t):Gn(J.element,"height","200px")),t},te=function(){i.setup(e,C.shared,v),SW(e,C),aq(e,w,C),Aj(e),oB(e,L,C.shared),_e(IS(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,o=t.menuItems,a=t.contextToolbars,s=t.sidebars,u=OS(e),l={menuItems:o,menus:GS(e),menubar:KS(e),toolbar:u.getOrThunk((function(){return JS(e)})),allowToolbarGroups:O===Bk.floating,buttons:n,sidebar:s};KU(e,a,x,{backstage:C}),MG(e,x);var c=e.getElement(),d=ee(),f={mothership:X,uiMothership:Q,outerContainer:J},h={targetNode:c,height:d};return r.render(e,f,l,C,h)};return{mothership:X,uiMothership:Q,backstage:C,renderUI:te,getUi:Z}},IG=function(e,t){var n=Y.from(Bn(e,"id")).fold((function(){var e=iu("dialog-describe");return zn(t,"id",e),e}),x);zn(e,"aria-describedby",n)},YG=function(e,t){var n=Vn(e,"id").fold((function(){var e=iu("dialog-label");return zn(t,"id",e),e}),x);zn(e,"aria-labelledby",n)},RG=y([Do("lazySink"),zo("dragBlockClass"),ea("getBounds",Zr),Go("useTabstopAt",C),Go("eventOrder",{}),tg("modalBehaviours",[Dy]),uc("onExecute"),cc("onEscape")]),NG={sketch:x},HG=y([Ig({name:"draghandle",overrides:function(e,t){return{behaviours:fd([_G.config({mode:"mouse",getTarget:function(e){return Yl(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Pg({schema:[Do("dom")],name:"title"}),Pg({factory:NG,schema:[Do("dom")],name:"close"}),Pg({factory:NG,schema:[Do("dom")],name:"body"}),Ig({factory:NG,schema:[Do("dom")],name:"footer"}),Fg({factory:{sketch:function(e,t){return D(D({},e),{dom:t.dom,components:t.components})}},schema:[Go("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Go("components",[])],name:"blocker"})]),zG=function(e,t,n,r){var i,o=rf(),a=function(t){o.set(t);var n=e.lazySink(t).getOrDie(),i=r.blocker(),a=n.getSystem().build(D(D({},i),{components:i.components.concat([Tl(t)]),behaviours:fd([Jy.config({}),jy("dialog-blocker-events",[js(Na(),(function(){Dy.focusIn(t)}))])])}));$p(n,a),Dy.focusIn(t)},s=function(e){o.clear(),vn(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){qp(e)}))}))},u=function(t){return Kg(t,e,"body")},l=function(t){return Kg(t,e,"footer")},c=function(e,t){Gj.block(e,t)},d=function(e){Gj.unblock(e)},f=iu("modal-events"),h=D(D({},e.eventOrder),(i={},i[fs()]=[f].concat(e.eventOrder["alloy.system.attached"]||[]),i));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:s,getBody:u,getFooter:l,setIdle:d,setBusy:c},eventOrder:h,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rg(e.modalBehaviours,[Hy.config({}),Dy.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),Gj.config({getRoot:o.get}),jy(f,[Bs((function(t){YG(t.element,Kg(t,e,"title").element),IG(t.element,Kg(t,e,"body").element)}))])])}},jG=hv({name:"ModalDialog",configFields:RG(),partFields:HG(),factory:zG,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),BG=Zi([Ao("type"),Ao("name")].concat(PM)),VG=lo,$G=[Lo("name","name",Mi((function(){return iu("button-name")})),uo),Vo("icon"),Qo("align","end",["start","end"]),Zo("primary",!1),Zo("disabled",!1)],UG=E(E([],$G,!0),[Ao("text")],!1),WG=E([Po("type",["submit","cancel","custom"])],UG,!0),qG=E([Po("type",["menu"]),Vo("text"),Vo("tooltip"),Vo("icon"),Ho("items",BG)],$G,!0),GG=Mo("type",{submit:WG,cancel:WG,custom:WG,menu:qG}),KG=[Ao("type"),Ao("text"),Po("level",["info","warn","error","success"]),Ao("icon"),Go("url","")],JG=Zi(KG),XG=function(e){return[Ao("type"),e]},QG=[Ao("type"),Ao("text"),Zo("disabled",!1),Zo("primary",!1),Lo("name","name",Mi((function(){return iu("button-name")})),uo),Vo("icon"),Zo("borderless",!1)],ZG=Zi(QG),eK=[Ao("type"),Ao("name"),Ao("label"),Zo("disabled",!1)],tK=Zi(eK),nK=lo,rK=[Ao("type"),Ao("name")],iK=rK.concat([Vo("label")]),oK=iK.concat([Go("columns","auto")]),aK=Zi(oK),sK=io([Ao("value"),Ao("text"),Ao("icon")]),uK=iK,lK=Zi(uK),cK=uo,dK=iK,fK=Zi(dK),hK=uo,pK=rK.concat([Xo("tag","textarea"),Ao("scriptId"),Ao("scriptUrl"),ta("settings",void 0)]),mK=rK.concat([Xo("tag","textarea"),Io("init")]),gK=vo((function(e){return yo("customeditor.old",Qi(mK),e).orThunk((function(){return yo("customeditor.new",Qi(pK),e)}))})),vK=uo,_K=iK,bK=Zi(_K),yK=go(),xK=function(e){return[Ao("type"),Eo("columns"),e]},wK=[Ao("type"),Ao("html"),Qo("presets","presentation",["presentation","document"])],kK=Zi(wK),MK=iK.concat([Zo("sandboxed",!0)]),SK=Zi(MK),LK=uo,CK=iK.concat([Oo("currentState",Zi([Do("blob"),Ao("url")]))]),TK=Zi(CK),DK=iK.concat([Vo("inputMode"),Vo("placeholder"),Zo("maximized",!1),Zo("disabled",!1)]),OK=Zi(DK),EK=uo,AK=function(e){return[Ao("type"),Ao("label"),e]},PK=[Ao("text"),Ao("value")],FK=[Ao("text"),Ho("items",So("items",(function(){return IK})))],IK=to([Zi(PK),Zi(FK)]),YK=iK.concat([Ho("items",IK),Zo("disabled",!1)]),RK=Zi(YK),NK=uo,HK=iK.concat([No("items",[Ao("text"),Ao("value")]),Jo("size",1),Zo("disabled",!1)]),zK=Zi(HK),jK=uo,BK=iK.concat([Zo("constrain",!0),Zo("disabled",!1)]),VK=Zi(BK),$K=Zi([Ao("width"),Ao("height")]),UK=[Ao("type"),Ho("header",uo),Ho("cells",eo(uo))],WK=Zi(UK),qK=iK.concat([Vo("placeholder"),Zo("maximized",!1),Zo("disabled",!1)]),GK=Zi(qK),KK=uo,JK=iK.concat([Qo("filetype","file",["image","media","file"]),Go("disabled",!1)]),XK=Zi(JK),QK=Zi([Ao("value"),Go("meta",{})]),ZK=function(e){return Lo("items","items",ki(),eo(vo((function(t){return yo("Checking item of "+e,eJ,t).fold((function(e){return ri.error(ko(e))}),(function(e){return ri.value(e)}))}))))},eJ=Ji((function(){return mo("type",{alertbanner:JG,bar:Zi(XG(ZK("bar"))),button:ZG,checkbox:tK,colorinput:lK,colorpicker:fK,dropzone:bK,grid:Zi(xK(ZK("grid"))),iframe:SK,input:OK,listbox:RK,selectbox:zK,sizeinput:VK,textarea:GK,urlinput:XK,customeditor:gK,htmlpanel:kK,imagetools:TK,collection:aK,label:Zi(AK(ZK("label"))),table:WK,panel:nJ})})),tJ=[Ao("type"),Go("classes",[]),Ho("items",eJ)],nJ=Zi(tJ),rJ=[Lo("name","name",Mi((function(){return iu("tab-name")})),uo),Ao("title"),Ho("items",eJ)],iJ=[Ao("type"),No("tabs",rJ)],oJ=Zi(iJ),aJ=UG,sJ=GG,uJ=Zi([Ao("title"),Oo("body",mo("type",{panel:nJ,tabpanel:oJ})),Xo("size","normal"),Ho("buttons",sJ),Go("initialData",{}),ea("onAction",g),ea("onChange",g),ea("onSubmit",g),ea("onClose",g),ea("onCancel",g),Go("onTabChange",g)]),lJ=function(e){return yo("dialog",uJ,e)},cJ=Zi(E([Po("type",["cancel","custom"])],aJ,!0)),dJ=Zi([Ao("title"),Ao("url"),Bo("height"),Bo("width"),Uo("buttons",cJ),ea("onAction",g),ea("onCancel",g),ea("onClose",g),ea("onMessage",g)]),fJ=function(e){return yo("dialog",dJ,e)},hJ=function(e){return a(e)?[e].concat(re(Se(e),hJ)):s(e)?re(e,hJ):[]},pJ=function(e){return o(e.type)&&o(e.name)},mJ={checkbox:nK,colorinput:cK,colorpicker:hK,dropzone:yK,input:EK,iframe:LK,sizeinput:$K,selectbox:jK,listbox:NK,size:$K,textarea:KK,urlinput:QK,customeditor:vK,collection:sK,togglemenuitem:VG},gJ=function(e){return Y.from(mJ[e.type])},vJ=function(e){return J(hJ(e),pJ)},_J=function(e){var t=vJ(e),n=re(t,(function(e){return gJ(e).fold((function(){return[]}),(function(t){return[Oo(e.name,t)]}))}));return Zi(n)},bJ=function(e){var t=xo(lJ(e)),n=_J(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},yJ={open:function(e,t){var n=bJ(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=xo(fJ(t));return e(n)},redial:function(e){return bJ(e)}},xJ=function(e){var t=[],n={};return ve(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ri.error(t):ri.value(n)},wJ=function(e,t){var n=Mw(PP.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:W(e.items,(function(e){return sN(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:fd([Dy.config({mode:"acyclic",useTabstopAt:M(vF)}),$P.memento(n),aF.memento(n,{postprocess:function(e){return xJ(e).fold((function(e){return console.error(e),{}}),x)}})])}},kJ=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:vx(e.action),behaviours:rg(e.tabButtonBehaviours,[Jy.config({}),Dy.config({mode:"execution",useSpace:!0,useEnter:!0}),eg.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},MJ=fv({name:"TabButton",configFields:[Go("uid",void 0),Do("value"),Lo("dom","dom",Ci((function(){return{attributes:{role:"tab",id:iu("aria"),"aria-selected":"false"}}})),oo()),zo("action"),Go("domModification",{}),tg("tabButtonBehaviours",[Jy,Dy,eg]),Do("view")],factory:kJ}),SJ=y([Do("tabs"),Do("dom"),Go("clickToDismiss",!1),tg("tabbarBehaviours",[r_,Dy]),oc(["tabClass","selectedClass"])]),LJ=Yg({factory:MJ,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){r_.dehighlight(e,t),ks(e,bs(),{tabbar:e,button:t})},n=function(e,t){r_.highlight(e,t),ks(e,_s(),{tabbar:e,button:t})};return{action:function(r){var i=r.getSystem().getByUid(e.uid).getOrDie(),o=r_.isHighlighted(i,r),a=function(){return o&&e.clickToDismiss?t:o?g:n}();a(i,r)},domModification:{classes:[e.markers.tabClass]}}}}),CJ=y([LJ]),TJ=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rg(e.tabbarBehaviours,[r_.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){zn(t.element,"aria-selected","true")},onDehighlight:function(e,t){zn(t.element,"aria-selected","false")}}),Dy.config({mode:"flow",getInitial:function(e){return r_.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},DJ=hv({name:"Tabbar",configFields:SJ(),partFields:CJ(),factory:TJ}),OJ=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:rg(e.tabviewBehaviours,[Hy.config({})]),domModification:{attributes:{role:"tabpanel"}}}},EJ=fv({name:"Tabview",configFields:[tg("tabviewBehaviours",[Hy])],factory:OJ}),AJ=y([Go("selectFirst",!0),sc("onChangeTab"),sc("onDismissTab"),Go("tabs",[]),tg("tabSectionBehaviours",[])]),PJ=Pg({factory:DJ,schema:[Do("dom"),Ro("markers",[Do("tabClass"),Do("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),FJ=Pg({factory:EJ,name:"tabview"}),IJ=y([PJ,FJ]),YJ=function(e,t,n,r){var i=function(t){var n=eg.getValue(t);Gg(t,e,"tabview").each((function(r){var i=ee(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();Vn(t.element,"id").each((function(e){zn(r.element,"aria-labelledby",e)})),Hy.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Gg(t,e,"tabbar").each((function(e){n(e).each(Ms)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:ng(e.tabSectionBehaviours),events:Ts(ne([e.selectFirst?[Bs((function(e,t){o(e,r_.getFirst)}))]:[],[As(_s(),(function(e,t){var n=t.event.button;i(n)})),As(bs(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Gg(t,e,"tabview").map((function(e){return Hy.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=r_.getCandidates(e),r=ee(n,(function(e){return eg.getValue(e)===t}));return r.filter((function(t){return!r_.isHighlighted(e,t)}))};o(e,n)}}}},RJ=hv({name:"TabSection",configFields:AJ(),partFields:IJ(),factory:YJ,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),NJ=function(e,t,n){return W(e,(function(r,i){Hy.set(n,e[i].view());var o=t.dom.getBoundingClientRect();return Hy.set(n,[]),o.height}))},HJ=function(e){return de(le(e,(function(e,t){return e>t?-1:e<t?1:0})))},zJ=function(e,t,n){var r,i=mn(e).dom,o=Yl(e,".tox-dialog-wrap").getOr(e),a="fixed"===Xn(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=ar(t),u=t.dom.offsetLeft>=n.dom.offsetLeft+vr(n),l=u?Math.max(ar(n),s):s,c=parseInt(Xn(e,"margin-top"),10)||0,d=parseInt(Xn(e,"margin-bottom"),10)||0,f=ar(e)+c+d,h=f-l;return r-h},jJ=function(e,t){de(e).each((function(e){return RJ.showTab(t,e.value)}))},BJ=function(e,t){Gn(e,"height",t+"px"),tn().browser.isIE()?nr(e,"flex-basis"):Gn(e,"flex-basis",t+"px")},VJ=function(e,t,n){Yl(e,'[role="dialog"]').each((function(e){Nl(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Gn(t,"height","0"),Gn(t,"flex-basis","0"),Math.min(n,zJ(e,t,r))})).each((function(e){BJ(t,e)}))}))}))},$J=function(e){return Nl(e,'[role="tabpanel"]')},UJ=function(e){var t=function(){var t=rf(),n=[Bs((function(n){var r=n.element;$J(r).each((function(i){Gn(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=NJ(e,i,n),o=HJ(r);o.fold(t.clear,t.set)})),VJ(r,i,t),nr(i,"visibility"),jJ(e,n),xw.requestAnimationFrame((function(){VJ(r,i,t)}))}))})),As(ds(),(function(e){var n=e.element;$J(n).each((function(e){VJ(n,e,t)}))})),As(ID,(function(e,n){var r=e.element;$J(r).each((function(e){var n=Sd(Dn(e));Gn(e,"visibility","hidden");var i=Zn(e,"height").map((function(e){return parseInt(e,10)}));nr(e,"height"),nr(e,"flex-basis");var o=e.dom.getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(o),VJ(r,e,t)):i.each((function(t){BJ(e,t)})),nr(e,"visibility"),n.each(wd)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},WJ="send-data-to-section",qJ="send-data-to-view",GJ=function(e,t){var n=ia({}),r=function(e){var t=eg.getValue(e),r=xJ(t).getOr({}),i=n.get(),o=xi(i,r);n.set(o)},i=function(e){var t=n.get();eg.setValue(e,t)},o=ia(null),a=W(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[PP.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:W(e.items,(function(e){return sN(n,e,t)})),formBehaviours:fd([Dy.config({mode:"acyclic",useTabstopAt:M(vF)}),jy("TabView.form.events",[Bs(i),Vs(r)]),_d.config({channels:pa([{key:WJ,value:{onReceive:r}},{key:qJ,value:{onReceive:i}}])})])}}))]}}})),s=UJ(a).smartTabHeight;return RJ.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=eg.getValue(t);ks(e,FD,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[RJ.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[DJ.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:fd([bD.config({})])}),RJ.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:fd([jy("tabpanel",s.extraEvents),Dy.config({mode:"acyclic"}),_v.config({find:function(e){return de(RJ.getViewItems(e))}}),eg.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([WJ],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([qJ],{})}}})])})},KJ=iu("update-dialog"),JJ=iu("update-title"),XJ=iu("update-body"),QJ=iu("update-footer"),ZJ=iu("body-send-message"),eX=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[GJ(e.body,n)];default:return[wJ(e.body,n)]}},o=function(e,t){return Y.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:D(D({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:fd([$P.childAt(0),p$.config({channel:XJ,updateState:o,renderComponents:i,initialData:e})])}},tX=function(e,t,n,r){return eX(e,Y.some(t),n,r)},nX=function(e,t){var n=eX(e,Y.none(),t,!1);return jG.parts.body(n)},rX=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[pF({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:fd([bD.config({}),Jy.config({})])})]}],behaviours:fd([Dy.config({mode:"acyclic",useTabstopAt:M(vF)})])};return jG.parts.body(t)};function iX(e){return iX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iX(e)}function oX(e,t){return oX=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oX(e,t)}function aX(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function sX(e,t,n){return sX=aX()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&oX(o,n.prototype),o},sX.apply(null,arguments)}function uX(e){return lX(e)||cX(e)||dX(e)||hX()}function lX(e){if(Array.isArray(e))return fX(e)}function cX(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function dX(e,t){if(e){if("string"===typeof e)return fX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fX(e,t):void 0}}function fX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hX(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var pX=Object.hasOwnProperty,mX=Object.setPrototypeOf,gX=Object.isFrozen,vX=Object.getPrototypeOf,_X=Object.getOwnPropertyDescriptor,bX=Object.freeze,yX=Object.seal,xX=Object.create,wX="undefined"!==typeof Reflect&&Reflect,kX=wX.apply,MX=wX.construct;kX||(kX=function(e,t,n){return e.apply(t,n)}),bX||(bX=function(e){return e}),yX||(yX=function(e){return e}),MX||(MX=function(e,t){return sX(e,uX(t))});var SX=IX(Array.prototype.forEach),LX=IX(Array.prototype.pop),CX=IX(Array.prototype.push),TX=IX(String.prototype.toLowerCase),DX=IX(String.prototype.match),OX=IX(String.prototype.replace),EX=IX(String.prototype.indexOf),AX=IX(String.prototype.trim),PX=IX(RegExp.prototype.test),FX=YX(TypeError);function IX(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return kX(e,t,r)}}function YX(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MX(e,n)}}function RX(e,t){mX&&mX(e,null);var n=t.length;while(n--){var r=t[n];if("string"===typeof r){var i=TX(r);i!==r&&(gX(t)||(t[n]=i),r=i)}e[r]=!0}return e}function NX(e){var t,n=xX(null);for(t in e)kX(pX,e,[t])&&(n[t]=e[t]);return n}function HX(e,t){while(null!==e){var n=_X(e,t);if(n){if(n.get)return IX(n.get);if("function"===typeof n.value)return IX(n.value)}e=vX(e)}function r(e){return console.warn("fallback value for",e),null}return r}var zX=bX(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jX=bX(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),BX=bX(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VX=bX(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$X=bX(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),UX=bX(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),WX=bX(["#text"]),qX=bX(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),GX=bX(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),KX=bX(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),JX=bX(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),XX=yX(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QX=yX(/<%[\w\W]*|[\w\W]*%>/gm),ZX=yX(/^data-[\-\w.\u00B7-\uFFFF]/),eQ=yX(/^aria-[\-\w]+$/),tQ=yX(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nQ=yX(/^(?:\w+script|data):/i),rQ=yX(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iQ=yX(/^html$/i),oQ=function(){return"undefined"===typeof window?null:window},aQ=function(e,t){if("object"!==iX(e)||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function sQ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oQ(),t=function(e){return sQ(e)};if(t.version="2.3.8",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,c=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,d=e.HTMLFormElement,f=e.DOMParser,h=e.trustedTypes,p=s.prototype,m=HX(p,"cloneNode"),g=HX(p,"nextSibling"),v=HX(p,"childNodes"),_=HX(p,"parentNode");if("function"===typeof o){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var y=aQ(h,n),x=y?y.createHTML(""):"",w=r,k=w.implementation,M=w.createNodeIterator,S=w.createDocumentFragment,L=w.getElementsByTagName,C=n.importNode,T={};try{T=NX(r).documentMode?r.documentMode:{}}catch(je){}var D={};t.isSupported="function"===typeof _&&k&&"undefined"!==typeof k.createHTMLDocument&&9!==T;var O,E,A=XX,P=QX,F=ZX,I=eQ,Y=nQ,R=rQ,N=tQ,H=null,z=RX({},[].concat(uX(zX),uX(jX),uX(BX),uX($X),uX(WX))),j=null,B=RX({},[].concat(uX(qX),uX(GX),uX(KX),uX(JX))),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,U=null,W=!0,q=!0,G=!1,K=!1,J=!1,X=!1,Q=!1,Z=!1,ee=!1,te=!1,ne=!0,re=!0,ie=!1,oe={},ae=null,se=RX({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ue=null,le=RX({},["audio","video","img","source","image","track"]),ce=null,de=RX({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",me=pe,ge=!1,ve=["application/xhtml+xml","text/html"],_e="text/html",be=null,ye=r.createElement("form"),xe=function(e){return e instanceof RegExp||e instanceof Function},we=function(e){be&&be===e||(e&&"object"===iX(e)||(e={}),e=NX(e),H="ALLOWED_TAGS"in e?RX({},e.ALLOWED_TAGS):z,j="ALLOWED_ATTR"in e?RX({},e.ALLOWED_ATTR):B,ce="ADD_URI_SAFE_ATTR"in e?RX(NX(de),e.ADD_URI_SAFE_ATTR):de,ue="ADD_DATA_URI_TAGS"in e?RX(NX(le),e.ADD_DATA_URI_TAGS):le,ae="FORBID_CONTENTS"in e?RX({},e.FORBID_CONTENTS):se,$="FORBID_TAGS"in e?RX({},e.FORBID_TAGS):{},U="FORBID_ATTR"in e?RX({},e.FORBID_ATTR):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,N=e.ALLOWED_URI_REGEXP||N,me=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&xe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O=O=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,E="application/xhtml+xml"===O?function(e){return e}:TX,K&&(q=!1),ee&&(Z=!0),oe&&(H=RX({},uX(WX)),j=[],!0===oe.html&&(RX(H,zX),RX(j,qX)),!0===oe.svg&&(RX(H,jX),RX(j,GX),RX(j,JX)),!0===oe.svgFilters&&(RX(H,BX),RX(j,GX),RX(j,JX)),!0===oe.mathMl&&(RX(H,$X),RX(j,KX),RX(j,JX))),e.ADD_TAGS&&(H===z&&(H=NX(H)),RX(H,e.ADD_TAGS)),e.ADD_ATTR&&(j===B&&(j=NX(j)),RX(j,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&RX(ce,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=NX(ae)),RX(ae,e.FORBID_CONTENTS)),re&&(H["#text"]=!0),J&&RX(H,["html","head","body"]),H.table&&(RX(H,["tbody"]),delete $.tbody),bX&&bX(e),be=e)},ke=RX({},["mi","mo","mn","ms","mtext"]),Me=RX({},["foreignobject","desc","title","annotation-xml"]),Se=RX({},["title","style","font","a","script"]),Le=RX({},jX);RX(Le,BX),RX(Le,VX);var Ce=RX({},$X);RX(Ce,UX);var Te=function(e){var t=_(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=TX(e.tagName),r=TX(t.tagName);return e.namespaceURI===he?t.namespaceURI===pe?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||ke[r]):Boolean(Le[n]):e.namespaceURI===fe?t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Me[r]:Boolean(Ce[n]):e.namespaceURI===pe&&(!(t.namespaceURI===he&&!Me[r])&&(!(t.namespaceURI===fe&&!ke[r])&&(!Ce[n]&&(Se[n]||!Le[n]))))},De=function(e){CX(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(je){try{e.outerHTML=x}catch(je){e.remove()}}},Oe=function(e,n){try{CX(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(je){CX(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!j[e])if(Z||ee)try{De(n)}catch(je){}else try{n.setAttribute(e,"")}catch(je){}},Ee=function(e){var t,n;if(Q)e="<remove></remove>"+e;else{var i=DX(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===O&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=y?y.createHTML(e):e;if(me===pe)try{t=(new f).parseFromString(o,O)}catch(je){}if(!t||!t.documentElement){t=k.createDocument(me,"template",null);try{t.documentElement.innerHTML=ge?"":o}catch(je){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),me===pe?L.call(t,J?"html":"body")[0]:J?t.documentElement:a},Ae=function(e){return M.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof d&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof c)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore)},Fe=function(e){return"object"===iX(a)?e instanceof a:e&&"object"===iX(e)&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ie=function(e,n,r){D[e]&&SX(D[e],(function(e){e.call(t,n,r,be)}))},Ye=function(e){var n;if(Ie("beforeSanitizeElements",e,null),Pe(e))return De(e),!0;if(PX(/[\u0080-\uFFFF]/,e.nodeName))return De(e),!0;var r=E(e.nodeName);if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:H}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&(!Fe(e.content)||!Fe(e.content.firstElementChild))&&PX(/<[/\w]/g,e.innerHTML)&&PX(/<[/\w]/g,e.textContent))return De(e),!0;if("select"===r&&PX(/<template/i,e.innerHTML))return De(e),!0;if(!H[r]||$[r]){if(!$[r]&&Ne(r)){if(V.tagNameCheck instanceof RegExp&&PX(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(re&&!ae[r]){var i=_(e)||e.parentNode,o=v(e)||e.childNodes;if(o&&i)for(var a=o.length,u=a-1;u>=0;--u)i.insertBefore(m(o[u],!0),g(e))}return De(e),!0}return e instanceof s&&!Te(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r||!PX(/<\/no(script|embed)/i,e.innerHTML)?(K&&3===e.nodeType&&(n=e.textContent,n=OX(n,A," "),n=OX(n,P," "),e.textContent!==n&&(CX(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ie("afterSanitizeElements",e,null),!1):(De(e),!0)},Re=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in r||n in ye))return!1;if(q&&!U[t]&&PX(F,t));else if(W&&PX(I,t));else if(!j[t]||U[t]){if(!(Ne(e)&&(V.tagNameCheck instanceof RegExp&&PX(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&PX(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&PX(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(ce[t]);else if(PX(N,OX(n,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==EX(n,"data:")||!ue[e]){if(G&&!PX(Y,OX(n,R,"")));else if(n)return!1}else;return!0},Ne=function(e){return e.indexOf("-")>0},He=function(e){var n,r,i,o;Ie("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};o=a.length;while(o--){n=a[o];var u=n,l=u.name,c=u.namespaceURI;if(r="value"===l?n.value:AX(n.value),i=E(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ie("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Oe(l,e),s.keepAttr))if(PX(/\/>/i,r))Oe(l,e);else{K&&(r=OX(r,A," "),r=OX(r,P," "));var d=E(e.nodeName);if(Re(d,i,r))try{c?e.setAttributeNS(c,l,r):e.setAttribute(l,r),LX(t.removed)}catch(je){}}}Ie("afterSanitizeAttributes",e,null)}},ze=function e(t){var n,r=Ae(t);Ie("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Ie("uponSanitizeShadowNode",n,null),Ye(n)||(n.content instanceof i&&e(n.content),He(n));Ie("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var s,u,l,c,d;if(ge=!r,ge&&(r="\x3c!--\x3e"),"string"!==typeof r&&!Fe(r)){if("function"!==typeof r.toString)throw FX("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw FX("dirty is not a string, aborting")}if(!t.isSupported){if("object"===iX(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Fe(r))return e.toStaticHTML(r.outerHTML)}return r}if(X||we(o),t.removed=[],"string"===typeof r&&(ie=!1),ie){if(r.nodeName){var f=E(r.nodeName);if(!H[f]||$[f])throw FX("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof a)s=Ee("\x3c!----\x3e"),u=s.ownerDocument.importNode(r,!0),1===u.nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?s=u:s.appendChild(u);else{if(!Z&&!K&&!J&&-1===r.indexOf("<"))return y&&te?y.createHTML(r):r;if(s=Ee(r),!s)return Z?null:te?x:""}s&&Q&&De(s.firstChild);var h=Ae(ie?r:s);while(l=h.nextNode())3===l.nodeType&&l===c||Ye(l)||(l.content instanceof i&&ze(l.content),He(l),c=l);if(c=null,ie)return r;if(Z){if(ee){d=S.call(s.ownerDocument);while(s.firstChild)d.appendChild(s.firstChild)}else d=s;return j.shadowroot&&(d=C.call(n,d,!0)),d}var p=J?s.outerHTML:s.innerHTML;return J&&H["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&PX(iQ,s.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+p),K&&(p=OX(p,A," "),p=OX(p,P," ")),y&&te?y.createHTML(p):p},t.setConfig=function(e){we(e),X=!0},t.clearConfig=function(){be=null,X=!1},t.isValidAttribute=function(e,t,n){be||we({});var r=E(e),i=E(t);return Re(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(D[e]=D[e]||[],CX(D[e],t))},t.removeHook=function(e){if(D[e])return LX(D[e])},t.removeHooks=function(e){D[e]&&(D[e]=[])},t.removeAllHooks=function(){D={}},t}var uQ=sQ(),lQ=function(e){return uQ().sanitize(e)},cQ=wL.deviceType.isTouch(),dQ=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},fQ=function(e,t){return jG.parts.close(kw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:fd([bD.config({})])}))},hQ=function(){return jG.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},pQ=function(e,t){return jG.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Xj("<p>"+lQ(t.translate(e))+"</p>")}]}]})},mQ=function(e){return jG.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},gQ=function(e,t){return[lD.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),lD.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},vQ=function(e){var t,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return jG.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),Y.some(!0)},useTabstopAt:function(e){return!vF(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:D({position:"relative"},e.extraStyles)},components:E([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:Xj('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:cQ?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:fd(E([Jy.config({}),jy("dialog-events",e.dialogEvents.concat([js(Na(),(function(e,t){Dy.focusIn(e)}))])),jy("scroll-lock",[Bs((function(){ol(Rn(),o)})),Vs((function(){sl(Rn(),o)}))])],e.extraBehaviours,!0)),eventOrder:D((t={},t[ts()]=["dialog-events"],t[fs()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[hs()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},_Q=function(e){return kw.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[Yw("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){ws(e,DD)}})},bQ=function(e,t,n){var r=function(e){return[kl(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:D({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:fd([p$.config({channel:JJ,renderComponents:r})])}},yQ=function(){return{dom:Xj('<div class="tox-dialog__draghandle"></div>')}},xQ=function(e,t,n){return lD.sketch({dom:Xj('<div class="tox-dialog__header"></div>'),components:[bQ(e,Y.some(t),n),yQ(),_Q(n)],containerBehaviours:fd([_G.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Hl(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},wQ=function(e,t){var n=jG.parts.title(bQ(e,Y.none(),t)),r=jG.parts.draghandle(yQ()),i=jG.parts.close(_Q(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return lD.sketch({dom:Xj('<div class="tox-dialog__header"></div>'),components:o})},kQ=function(e,t){return wQ({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},MQ=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:Xj('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},SQ=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){jG.setBusy(e(),(function(e,r){return MQ(n.message,r,t)}))},onUnblock:function(){jG.setIdle(e())}}},LQ=function(e,t,n,r){var i,o=function(e,t){return Y.some(t)};return Cl(vQ(D(D({},e),{lazySink:r.shared.getSink,extraBehaviours:E([p$.config({channel:KJ,updateState:o,initialData:t}),aF.memory({})],e.extraBehaviours,!0),onEscape:function(e){ws(e,DD)},dialogEvents:n,eventOrder:(i={},i[es()]=[p$.name(),_d.name()],i[fs()]=["scroll-lock",p$.name(),"messages","dialog-events","alloy.base.behaviour"],i[hs()]=["alloy.base.behaviour","dialog-events","messages",p$.name(),"scroll-lock"],i)})))},CQ=function(e){var t=function(e){var t=W(e.items,(function(e){var t=ia(!1);return D(D({},e),{storage:t})}));return D(D({},e),{items:t})};return W(e,(function(e){return"menu"===e.type?t(e):e}))},TQ=function(e){return Q(e,(function(e,t){if("menu"===t.type){var n=t;return Q(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},DQ=function(e,t){return[Ns(Na(),gF),e(TD,(function(e,n){t.onClose(),n.onClose()})),e(DD,(function(e,t,n,r){t.onCancel(e),ws(r,TD)})),As(PD,(function(e,n){return t.onUnblock()})),As(AD,(function(e,n){return t.onBlock(n.event)}))]},OQ=function(e,t){var n=function(t,n){return As(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event,t)}))}))},r=function(e,t){p$.getState(e).get().each((function(n){t(n,e)}))};return E(E([],DQ(n,t),!0),[n(OD,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},EQ=function(e,t,n){var r=function(t,n){return As(t,(function(t,r){i(t,(function(i,o){n(e(),i,r.event,t)}))}))},i=function(e,t){p$.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return E(E([],DQ(r,t),!0),[r(ED,(function(e,t){return t.onSubmit(e)})),r(CD,(function(e,t,n){t.onChange(e,{name:n.name})})),r(OD,(function(e,t,r,i){var o=function(){return Dy.focusIn(i)},a=function(e){return $n(e,"disabled")||Vn(e,"aria-disabled").exists((function(e){return"true"===e}))},s=Dn(i.element),u=Sd(s);t.onAction(e,{name:r.name,value:r.value}),Sd(s).fold(o,(function(e){a(e)||u.exists((function(t){return fn(e,t)&&a(t)}))?o():n().toOptional().filter((function(t){return!fn(t.element,e)})).each(o)}))})),r(FD,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Vs((function(t){var n=e();eg.setValue(t,n.getData())}))],!1)},AQ={initUrlDialog:OQ,initDialog:EQ},PQ=function(e,t){return rY(e,e.type,t)},FQ=function(e,t,n){return ee(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},IQ=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=K(n,(function(e){return"start"===e.align})),i=function(e,t){return lD.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:W(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},YQ=function(e,t){var n=function(e,n){var r=W(n.buttons,(function(e){var n=Mw(PQ(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return FQ(e,r,t)};return Y.some({lookupByName:i,footerButtons:r})};return{dom:Xj('<div class="tox-dialog__footer"></div>'),components:[],behaviours:fd([p$.config({channel:QJ,initialData:e,updateState:n,renderComponents:IQ})])}},RQ=function(e,t){return YQ(e,t)},NQ=function(e,t){return jG.parts.footer(YQ(e,t))},HQ=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=_v.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return PP.getField(r,t).fold((function(){var n=e.getFooter(),i=p$.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return Y.some(e)}))}return Y.none()},zQ=function(e,t){var n=e.getRoot();return p$.getState(n).get().map((function(e){return xo(yo("data",e.dataValidator,t))})).getOr(t)},jQ=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=eg.getValue(r),o=_e(n,(function(e){return e.get()}));return D(D({},i),o)},a=function(t){r((function(r){var i=m.getData(),o=D(D({},i),t),a=zQ(e,o),s=e.getFormWrapper();eg.setValue(s,a),ve(n,(function(e,t){Ce(o,t)&&e.set(o[t])}))}))},s=function(t){HQ(e,t).each(Rv.disable)},u=function(t){HQ(e,t).each(Rv.enable)},l=function(t){HQ(e,t).each(Jy.focus)},c=function(e){if(!o(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){ks(t,AD,{message:e})}))},d=function(){r((function(e){ws(e,PD)}))},f=function(t){r((function(n){var r=e.getBody(),i=p$.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&_v.getCurrent(r).each((function(e){RJ.showTab(e,t)}))}))},h=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([KJ],r),n.getSystem().broadcastOn([JJ],r.internalDialog),n.getSystem().broadcastOn([XJ],r.internalDialog),n.getSystem().broadcastOn([QJ],r.internalDialog),m.setData(r.initialData)}))},p=function(){r((function(e){ws(e,TD)}))},m={getData:i,setData:a,disable:s,enable:u,focus:l,block:c,unblock:d,showTab:f,redial:h,close:p};return m},BQ=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},VQ=function(e,t,n){var r=kQ(e.internalDialog.title,n),i=nX({body:e.internalDialog.body},n),o=CQ(e.internalDialog.buttons),a=TQ(o),s=NQ({buttons:o},n),u=AQ.initDialog((function(){return h}),SQ((function(){return d}),n.shared.providers,t),n.shared.getSink),l=BQ(e.internalDialog.size),c={header:r,body:i,footer:Y.some(s),extraClasses:l,extraBehaviours:[],extraStyles:{}},d=LQ(c,e,u,n),f=function(){var e=function(){var e=jG.getBody(d);return _v.getCurrent(e).getOr(e)};return{getRoot:y(d),getBody:function(){return jG.getBody(d)},getFooter:function(){return jG.getFooter(d)},getFormWrapper:e}}(),h=jQ(f,t.redial,a);return{dialog:d,instanceApi:h}},$Q=function(e,t,n,r){var i,o,a=iu("dialog-label"),s=iu("dialog-content"),u=function(e,t){return Y.some(t)},l=Mw(xQ({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),c=Mw(tX({body:e.internalDialog.body},s,n,r)),d=CQ(e.internalDialog.buttons),f=TQ(d),h=Mw(RQ({buttons:d},n)),p=AQ.initDialog((function(){return g}),{onBlock:function(e){Gj.block(m,(function(t,r){return MQ(e.message,r,n.shared.providers)}))},onUnblock:function(){Gj.unblock(m)},onClose:function(){return t.closeWindow()}},n.shared.getSink),m=Cl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=s,i)},eventOrder:(o={},o[es()]=[p$.name(),_d.name()],o[ts()]=["execute-on-form"],o[fs()]=["reflecting","execute-on-form"],o),behaviours:fd([Dy.config({mode:"cyclic",onEscape:function(e){return ws(e,TD),Y.some(!0)},useTabstopAt:function(e){return!vF(e)&&("button"!==st(e)||"disabled"!==Bn(e,"disabled"))}}),p$.config({channel:KJ,updateState:u,initialData:e}),Jy.config({}),jy("execute-on-form",p.concat([js(Na(),(function(e,t){Dy.focusIn(e)}))])),Gj.config({getRoot:function(){return Y.some(m)}}),Hy.config({}),aF.memory({})]),components:[l.asSpec(),c.asSpec(),h.asSpec()]}),g=jQ({getRoot:y(m),getFooter:function(){return h.get(m)},getBody:function(){return c.get(m)},getFormWrapper:function(){var e=c.get(m);return _v.getCurrent(e).getOr(e)}},t.redial,f);return{dialog:m,instanceApi:g}},UQ=tinymce.util.Tools.resolve("tinymce.util.URI"),WQ=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!o(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){ks(t,AD,{message:e})}))},r=function(){t((function(e){ws(e,PD)}))},i=function(){t((function(e){ws(e,TD)}))},a=function(e){t((function(t){t.getSystem().broadcastOn([ZJ],e)}))};return{block:n,unblock:r,close:i,sendMessage:a}},qQ=["insertContent","setContent","execCommand","close","block","unblock"],GQ=function(e){return a(e)&&-1!==qQ.indexOf(e.mceAction)},KQ=function(e){return!GQ(e)&&a(e)&&Ce(e,"mceAction")},JQ=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!l(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},XQ=function(e,t,n,r){var i,o=kQ(e.title,r),a=rX(e),s=e.buttons.bind((function(e){return 0===e.length?Y.none():Y.some(NQ({buttons:e},r))})),u=AQ.initUrlDialog((function(){return v}),SQ((function(){return g}),r.shared.providers,t)),l=D(D({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),c=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],d=new UQ(e.url,{base_uri:new UQ(window.location.href)}),f=d.protocol+"://"+d.host+(d.port?":"+d.port:""),h=tf(),p=[jy("messages",[Bs((function(){var t=af(tt.fromDom(window),"message",(function(t){if(d.isSameOrigin(new UQ(t.raw.origin))){var r=t.raw.data;GQ(r)?JQ(n,v,r):KQ(r)&&e.onMessage(v,r)}}));h.set(t)})),Vs(h.clear)]),_d.config({channels:(i={},i[ZJ]={onReceive:function(e,t){Nl(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,f)}))}},i)})],m={header:o,body:a,footer:s,extraClasses:c,extraBehaviours:p,extraStyles:l},g=LQ(m,e,u,r),v=WQ(g);return{dialog:g,instanceApi:v}},QQ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(){jG.hide(u),r()},o=Mw(rY({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:Y.none()},"cancel",e.backstage)),a=hQ(),s=fQ(i,t.providers),u=Cl(vQ({lazySink:function(){return t.getSink()},header:dQ(a,s),body:pQ(n,t.providers),footer:Y.some(mQ(gQ([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[As(DD,i)],eventOrder:{}}));jG.show(u);var l=o.get(u);Jy.focus(l)};return{open:n}},ZQ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){jG.hide(l),r(e)},o=Mw(rY({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:Y.none()},"submit",e.backstage)),a=rY({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:Y.none()},"cancel",e.backstage),s=hQ(),u=fQ((function(){return i(!1)}),t.providers),l=Cl(vQ({lazySink:function(){return t.getSink()},header:dQ(s,u),body:pQ(n,t.providers),footer:Y.some(mQ(gQ([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[As(DD,(function(){return i(!1)})),As(ED,(function(){return i(!0)}))],eventOrder:{}}));jG.show(l);var c=o.get(l);Jy.focus(c)};return{open:n}},eZ=function(e,t){return xo(yo("data",t,e))},tZ=function(e){return YT(e,".tox-alert-dialog")||YT(e,".tox-confirm-dialog")},nZ=function(e,t,n){return t&&n?[]:[wz.config({contextual:{lazyContext:function(){return Y.some(Xr(tt.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rZ=function(e){var t=e.backstage,n=e.editor,r=US(n),i=QQ(e),o=ZQ(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?c(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?c(e,t.shared.anchors.cursor(),r,n.ariaAttrs):l(e,r)},s=function(e,t){return u(e,t)},u=function(e,r){var i=function(e){var i=XQ(e,{closeWindow:function(){jG.hide(i.dialog),r(i.instanceApi)}},n,t);return jG.show(i.dialog),i.instanceApi};return yJ.openUrl(i,e)},l=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=VQ(a,{redial:yJ.redial,closeWindow:function(){jG.hide(s.dialog),n(s.instanceApi)}},t);return jG.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return yJ.open(r,e)},c=function(e,i,o,a){var s=function(e,s,u){var l=eZ(s,u),c=rf(),d=t.shared.header.isPositionedAtTop(),f={dataValidator:u,initialData:l,internalDialog:e},h=function(){return c.on((function(e){tw.reposition(e),wz.refresh(e)}))},p=$Q(f,{redial:yJ.redial,closeWindow:function(){c.on(tw.hide),n.off("ResizeEditor",h),c.clear(),o(p.instanceApi)}},t,a),m=Cl(tw.sketch(D(D({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:fd(E([jy("window-manager-inline-events",[As(ps(),(function(e,t){ws(p.dialog,DD)}))])],nZ(n,r,d),!0)),isExtraPart:function(e,t){return tZ(t)}})));return c.set(m),tw.showWithin(m,Tl(p.dialog),{anchor:i},Y.some(Rn())),r&&d||(wz.refresh(m),n.on("ResizeEditor",h)),p.instanceApi.setData(l),Dy.focusIn(p.dialog),p.instanceApi};return yJ.open(s,e)},d=function(e,t){o.open(e,(function(e){t(e)}))},f=function(e,t){i.open(e,(function(){t()}))},h=function(e){e.close()};return{open:a,openUrl:s,alert:f,close:h,confirm:d}};function iZ(){T.add("silver",(function(e){var t=FG(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,o=t.getUi;IT.register(e,r.shared);var a=rZ({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:y(a),getNotificationManagerImpl:function(){return jw(e,{backstage:r},n)},ui:o()}}))}iZ()})()},7575:function(e,t,n){(function(){"use strict";var t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},i=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},o=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},s=a((function(e,t){return e===t})),u=s,l=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))},c=function(e,t){return o(l(e),(function(e){return i(e,t)}))},d=function(e){return a((function(t,n){var r=Object.keys(t),i=Object.keys(n);if(!c(u).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!e.eq(t[s],n[s]))return!1}return!0}))},f=a((function(e,n){if(e===n)return!0;var i=t(e),o=t(n);return i===o&&(r(i)?e===n:"array"===i?l(f).eq(e,n):"object"===i&&d(f).eq(e,n))})),h=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return h(t)===e}},m=function(e){return function(t){return typeof t===e}},g=function(e){return function(t){return e===t}},v=p("string"),_=p("object"),b=p("array"),y=g(null),x=m("boolean"),w=g(void 0),k=function(e){return null===e||void 0===e},M=function(e){return!k(e)},S=m("function"),L=m("number"),C=function(){},T=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},D=function(e,t){return function(n){return e(t(n))}},O=function(e){return function(){return e}},E=function(e){return e},A=function(e,t){return e===t};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var F=function(e){return function(t){return!e(t)}},I=function(e){return function(){throw new Error(e)}},Y=function(e){return e()},R=function(e){e()},N=O(!1),H=O(!0),z=function(){return j},j=function(){var e=function(e){return e()},t=E,n={fold:function(e,t){return e()},isSome:N,isNone:H,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:O(null),getOrUndefined:O(void 0),or:t,orThunk:e,map:z,each:C,bind:z,exists:N,forall:H,filter:function(){return z()},toArray:function(){return[]},toString:O("none()")};return n}(),B=function(e){var t=O(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:H,isNone:N,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return B(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:j},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},V=function(e){return null===e||void 0===e?j:B(e)},$={some:B,none:z,from:V},U=Array.prototype.slice,W=Array.prototype.indexOf,q=Array.prototype.push,G=function(e,t){return W.call(e,t)},K=function(e,t){var n=G(e,t);return-1===n?$.none():$.some(n)},J=function(e,t){return G(e,t)>-1},X=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},Q=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){return Z(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return $.some(o);if(n(o,r))break}return $.none()},ae=function(e,t){return oe(e,t,N)},se=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return $.some(n)}return $.none()},ue=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!b(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);q.apply(t,e[n])}return t},le=function(e,t){return ue(Q(e,t))},ce=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},de=function(e){var t=U.call(e,0);return t.reverse(),t},fe=function(e,t){return ne(e,(function(e){return!J(t,e)}))},he=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},pe=function(e,t){var n=U.call(e,0);return n.sort(t),n},me=function(e,t){return t>=0&&t<e.length?$.some(e[t]):$.none()},ge=function(e){return me(e,0)},ve=function(e){return me(e,e.length-1)},_e=S(Array.from)?Array.from:function(e){return U.call(e)},be=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return $.none()},ye=Object.keys,xe=Object.hasOwnProperty,we=function(e,t){for(var n=ye(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ke=function(e,t){return Me(e,(function(e,n){return{k:n,v:t(e,n)}}))},Me=function(e,t){var n={};return we(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Se=function(e){return function(t,n){e[n]=t}},Le=function(e,t,n,r){var i={};return we(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Ce=function(e,t){var n={},r={};return Le(e,t,Se(n),Se(r)),{t:n,f:r}},Te=function(e,t){var n={};return Le(e,t,Se(n),C),n},De=function(e,t){var n=[];return we(e,(function(e,r){n.push(t(e,r))})),n},Oe=function(e){return De(e,E)},Ee=function(e,t){return Ae(e,t)?$.from(e[t]):$.none()},Ae=function(e,t){return xe.call(e,t)},Pe=function(e,t){return Ae(e,t)&&void 0!==e[t]&&null!==e[t]},Fe=function(e,t,n){return void 0===n&&(n=f),d(n).eq(e,t)},Ie=Array.isArray,Ye=function(e){if(Ie(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Re=function(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Ae(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Ne=function(e,t){var n=[];return Re(e,(function(r,i){n.push(t(r,i,e))})),n},He=function(e,t){var n=[];return Re(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},ze=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},je=function(e,t,n,r){for(var i=w(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i},Be=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},Ve=function(e){return e[e.length-1]},$e=function(){return $e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$e.apply(this,arguments)};function Ue(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function We(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var qe=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Ge=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),u=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!u,c=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!u&&!c;return{isiPad:O(i),isiPhone:O(o),isTablet:O(u),isPhone:O(l),isTouch:O(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:O(c),isDesktop:O(d)}},Ke=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Je=function(e,t){var n=Ke(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ze(r(1),r(2))},Xe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Qe():Je(e,n)},Qe=function(){return Ze(0,0)},Ze=function(e,t){return{major:e,minor:t}},et={nu:Ze,detect:Xe,unknown:Qe},tt=function(e,t){return be(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},st=function(e,t){return lt(e,t)?ot(e,t.length):e},ut=function(e,t){return-1!==e.indexOf(t)},lt=function(e,t){return at(e,t,0)},ct=function(e){return function(t){return t.replace(e,"")}},dt=ct(/^\s+|\s+$/g),ft=ct(/^\s+/g),ht=ct(/\s+$/g),pt=function(e){return e.length>0},mt=function(e){return!pt(e)},gt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return ut(t,e)}},_t=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gt],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[gt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[gt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],bt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],yt={browsers:O(_t),oses:O(bt)},xt="Edge",wt="Chrome",kt="IE",Mt="Opera",St="Firefox",Lt="Safari",Ct=function(){return Tt({current:void 0,version:et.unknown()})},Tt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(xt),isChrome:r(wt),isIE:r(kt),isOpera:r(Mt),isFirefox:r(St),isSafari:r(Lt)}},Dt={unknown:Ct,nu:Tt,edge:O(xt),chrome:O(wt),ie:O(kt),opera:O(Mt),firefox:O(St),safari:O(Lt)},Ot="Windows",Et="iOS",At="Android",Pt="Linux",Ft="OSX",It="Solaris",Yt="FreeBSD",Rt="ChromeOS",Nt=function(){return Ht({current:void 0,version:et.unknown()})},Ht=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ot),isiOS:r(Et),isAndroid:r(At),isOSX:r(Ft),isLinux:r(Pt),isSolaris:r(It),isFreeBSD:r(Yt),isChromeOS:r(Rt)}},zt={unknown:Nt,nu:Ht,windows:O(Ot),ios:O(Et),android:O(At),linux:O(Pt),osx:O(Ft),solaris:O(It),freebsd:O(Yt),chromeos:O(Rt)},jt=function(e,t,n){var r=yt.browsers(),i=yt.oses(),o=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Dt.unknown,Dt.nu),a=it(i,e).fold(zt.unknown,zt.nu),s=Ge(a,o,e,n);return{browser:o,os:a,deviceType:s}},Bt={detect:jt},Vt=function(e){return window.matchMedia(e).matches},$t=qe((function(){return Bt.detect(navigator.userAgent,$.from(navigator.userAgentData),Vt)})),Ut=function(){return $t()},Wt=navigator.userAgent,qt=Ut(),Gt=qt.browser,Kt=qt.os,Jt=qt.deviceType,Xt=/WebKit/.test(Wt)&&!Gt.isEdge(),Qt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Zt=-1!==Wt.indexOf("Windows Phone"),en={opera:Gt.isOpera(),webkit:Xt,ie:!(!Gt.isIE()&&!Gt.isEdge())&&Gt.version.major,gecko:Gt.isFirefox(),mac:Kt.isOSX()||Kt.isiOS(),iOS:Jt.isiPad()||Jt.isiPhone(),android:Kt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Gt.isIE()?document.documentMode||7:10,fileApi:Qt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Gt.isIE(),desktop:Jt.isDesktop(),windowsPhone:Zt,browser:{current:Gt.current,version:Gt.version,isChrome:Gt.isChrome,isEdge:Gt.isEdge,isFirefox:Gt.isFirefox,isIE:Gt.isIE,isOpera:Gt.isOpera,isSafari:Gt.isSafari},os:{current:Kt.current,version:Kt.version,isAndroid:Kt.isAndroid,isChromeOS:Kt.isChromeOS,isFreeBSD:Kt.isFreeBSD,isiOS:Kt.isiOS,isLinux:Kt.isLinux,isOSX:Kt.isOSX,isSolaris:Kt.isSolaris,isWindows:Kt.isWindows},deviceType:{isDesktop:Jt.isDesktop,isiPad:Jt.isiPad,isiPhone:Jt.isiPhone,isPhone:Jt.isPhone,isTablet:Jt.isTablet,isTouch:Jt.isTouch,isWebView:Jt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Ie(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Ae,sn=function(e,t,n){var r,i,o,a=this,s=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var u=e[3].match(/(^|\.)(\w+)$/i)[2],l=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!l[u]){if("static"===e[2])return l[u]=t,void(this.onCreate&&this.onCreate(e[2],e[3],l[u]));t[u]||(t[u]=function(){},s=1),l[u]=t[u],a.extend(l[u].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=l[u],l[u]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},l[u].prototype[u]=l[u],a.each(r,(function(e,t){l[u].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?l[u].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==u&&(l[u].prototype[t]=e)}))),a.each(t.static,(function(e,t){l[u][t]=e}))}},un=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)if(Ae(i,o)){var a=i[o];void 0!==a&&(e[o]=a)}}return e},ln=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Re(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;ln(e,t,n,r)})))},cn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},dn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},fn=function(e,t){return!e||rn(e,"array")?e:Ne(e.split(t||","),nn)},hn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},pn={trim:nn,isArray:Ie,is:rn,toArray:Ye,makeMap:on,each:Re,map:Ne,grep:He,inArray:ze,hasOwn:an,extend:un,create:sn,walk:ln,createNS:cn,resolve:dn,explode:fn,_addCacheSuffix:hn},mn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return _n(r.childNodes[0])},gn=function(e,t){var n=t||document,r=n.createElement(e);return _n(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return _n(r)},_n=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},bn=function(e,t,n){return $.from(e.dom.elementFromPoint(t,n)).map(_n)},yn={fromHtml:mn,fromTag:gn,fromText:vn,fromDom:_n,fromPoint:bn},xn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},wn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},kn=function(e,t){return wn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Mn=8,Sn=9,Ln=11,Cn=1,Tn=3,Dn=function(e,t){var n=e.dom;if(n.nodeType!==Cn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},On=function(e){return e.nodeType!==Cn&&e.nodeType!==Sn&&e.nodeType!==Ln||0===e.childElementCount},En=function(e,t){var n=void 0===t?document:t.dom;return On(n)?[]:Q(n.querySelectorAll(e),yn.fromDom)},An=function(e,t){var n=void 0===t?document:t.dom;return On(n)?$.none():$.from(n.querySelector(e)).map(yn.fromDom)},Pn=function(e,t){return e.dom===t.dom},Fn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},In=function(e,t){return kn(e.dom,t.dom)},Yn=function(e,t){return Ut().browser.isIE()?In(e,t):Fn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Rn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Nn=function(e){return e.dom.nodeType},Hn=function(e){return function(t){return Nn(t)===e}},zn=function(e){return Nn(e)===Mn||"#comment"===Rn(e)},jn=Hn(Cn),Bn=Hn(Tn),Vn=Hn(Sn),$n=Hn(Ln),Un=function(e){return function(t){return jn(t)&&Rn(t)===e}},Wn=function(e){return yn.fromDom(e.dom.ownerDocument)},qn=function(e){return Vn(e)?e:Wn(e)},Gn=function(e){return yn.fromDom(qn(e).dom.documentElement)},Kn=function(e){return yn.fromDom(qn(e).dom.defaultView)},Jn=function(e){return $.from(e.dom.parentNode).map(yn.fromDom)},Xn=function(e,t){var n=S(t)?t:N,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=yn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Qn=function(e){var t=function(t){return ne(t,(function(t){return!Pn(e,t)}))};return Jn(e).map(rr).map(t).getOr([])},Zn=function(e){return $.from(e.dom.previousSibling).map(yn.fromDom)},er=function(e){return $.from(e.dom.nextSibling).map(yn.fromDom)},tr=function(e){return de(xn(e,Zn))},nr=function(e){return xn(e,er)},rr=function(e){return Q(e.dom.childNodes,yn.fromDom)},ir=function(e,t){var n=e.dom.childNodes;return $.from(n[t]).map(yn.fromDom)},or=function(e){return ir(e,0)},ar=function(e){return ir(e,e.dom.childNodes.length-1)},sr=function(e){return e.dom.childNodes.length},ur=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return yn.fromDom(t)},lr=function(e){return $n(e)&&M(e.dom.host)},cr=S(Element.prototype.attachShadow)&&S(Node.prototype.getRootNode),dr=O(cr),fr=cr?function(e){return yn.fromDom(e.dom.getRootNode())}:qn,hr=function(e){return lr(e)?e:ur(qn(e))},pr=function(e){var t=fr(e);return lr(t)?$.some(t):$.none()},mr=function(e){return yn.fromDom(e.dom.host)},gr=function(e){if(dr()&&M(e.target)){var t=yn.fromDom(e.target);if(jn(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ge(n)}}return $.from(e.target)},vr=function(e){return M(e.dom.shadowRoot)},_r=function(e,t){var n=Jn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},br=function(e,t){var n=er(e);n.fold((function(){var n=Jn(e);n.each((function(e){xr(e,t)}))}),(function(e){_r(e,t)}))},yr=function(e,t){var n=or(e);n.fold((function(){xr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},xr=function(e,t){e.dom.appendChild(t.dom)},wr=function(e,t){_r(e,t),xr(t,e)},kr=function(e,t){Z(t,(function(t){_r(e,t)}))},Mr=function(e,t){Z(t,(function(t){xr(e,t)}))},Sr=function(e){e.dom.textContent="",Z(rr(e),(function(e){Lr(e)}))},Lr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Cr=function(e){var t=rr(e);t.length>0&&kr(e,t),Lr(e)},Tr=function(e){var t=Bn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return pr(yn.fromDom(t)).fold((function(){return n.body.contains(t)}),D(Tr,mr))},Dr=function(e,t){var n=function(n,r){return Dr(e+n,t+r)};return{left:e,top:t,translate:n}},Or=Dr,Er=function(e){var t=e.getBoundingClientRect();return Or(t.left,t.top)},Ar=function(e,t){return void 0!==e?e:void 0!==t?t:0},Pr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Or(n.offsetLeft,n.offsetTop);var o=Ar(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Ar(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Ar(i.clientTop,n.clientTop),u=Ar(i.clientLeft,n.clientLeft);return Fr(e).translate(a-u,o-s)},Fr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Or(r.offsetLeft,r.offsetTop):Tr(e)?Er(t):Or(0,0)},Ir=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Or(n,r)},Yr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Rr=function(e,t){var n=Ut().browser.isSafari();n&&S(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Nr=function(e){var t=void 0===e?window:e;return Ut().browser.isFirefox()?$.none():$.from(t["visualViewport"])},Hr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},zr=function(e){var t=void 0===e?window:e,n=t.document,r=Ir(yn.fromDom(n));return Nr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Hr(r.left,r.top,n,i)}),(function(e){return Hr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e){return function(t){return!!t&&t.nodeType===e}},Br=function(e){return!!e&&!Object.getPrototypeOf(e)},Vr=jr(1),$r=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return J(t,n)}return!1}},Ur=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Vr(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null),o=i?i.getPropertyValue(e):null;if(o===n[r])return!0}return!1}},Wr=function(e){return function(t){return Vr(t)&&t.hasAttribute(e)}},qr=function(e,t){return function(n){return Vr(n)&&n.getAttribute(e)===t}},Gr=function(e){return Vr(e)&&e.hasAttribute("data-mce-bogus")},Kr=function(e){return Vr(e)&&"all"===e.getAttribute("data-mce-bogus")},Jr=function(e){return Vr(e)&&"TABLE"===e.tagName},Xr=function(e){return function(t){if(Vr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Qr=$r(["textarea","input"]),Zr=jr(3),ei=jr(8),ti=jr(9),ni=jr(11),ri=$r(["br"]),ii=$r(["img"]),oi=Xr("true"),ai=Xr("false"),si=$r(["td","th"]),ui=$r(["video","audio","object","embed"]),li=function(e,t,n){return void 0===n&&(n=A),e.exists((function(e){return n(e,t)}))},ci=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},di=function(e,t,n){return e.isSome()&&t.isSome()?$.some(n(e.getOrDie(),t.getOrDie())):$.none()},fi=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?$.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):$.none()},hi=function(e,t){return e?$.some(t):$.none()},pi=function(e){return void 0!==e.style&&S(e.style.getPropertyValue)},mi=function(e,t,n){if(!(v(n)||x(n)||L(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},gi=function(e,t,n){mi(e.dom,t,n)},vi=function(e,t){var n=e.dom;we(t,(function(e,t){mi(n,t,e)}))},_i=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},bi=function(e,t){return $.from(_i(e,t))},yi=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},xi=function(e,t){e.dom.removeAttribute(t)},wi=function(e){return ie(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},ki=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);pi(e)&&e.style.setProperty(t,n)},Mi=function(e,t){var n=e.dom;we(t,(function(e,t){ki(n,t,e)}))},Si=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Tr(e)?i:Li(n,t)},Li=function(e,t){return pi(e)?e.style.getPropertyValue(t):""},Ci=function(e,t){var n=e.dom,r=Li(n,t);return $.from(r).filter((function(e){return e.length>0}))},Ti=function(e){var t={},n=e.dom;if(pi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},Di=function(e){return e.dom.offsetWidth},Oi=Ut().browser,Ei=function(e){return ae(e,jn)},Ai=function(e){return Oi.isFirefox()&&"table"===Rn(e)?Ei(rr(e)).filter((function(e){return"caption"===Rn(e)})).bind((function(e){return Ei(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Pi=function(e,t){return e.children&&J(e.children,t)},Fi=function(e,t,n){var r=0,i=0,o=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Si(yn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(o.documentElement.scrollLeft||e.scrollLeft)-o.documentElement.clientLeft,i=a.top+(o.documentElement.scrollTop||e.scrollTop)-o.documentElement.clientTop,{x:r,y:i}}var s=t;while(s&&s!==n&&s.nodeType&&!Pi(s,n)){var u=s;r+=u.offsetLeft||0,i+=u.offsetTop||0,s=u.offsetParent}s=t.parentNode;while(s&&s!==n&&s.nodeType&&!Pi(s,n))r-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=Ai(yn.fromDom(t))}return{x:r,y:i}},Ii={},Yi={exports:Ii};(function(e,t,r,i){(function(n,i){"object"===typeof t&&"undefined"!==typeof r?r.exports=i():"function"===typeof e&&e.amd?e(i):(n="undefined"!==typeof globalThis?globalThis:n||self,n.EphoxContactWrapper=i())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},t={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new c(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(u){n(u)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)})(e)})(t);var r=t.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,Ii,Yi);var Ri=Yi.exports.boltExport,Ni=function(e){var t=$.none(),n=[],r=function(e){return Ni((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?u(e):n.push(e)},o=function(e){a()||(t=$.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){Z(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},Hi=function(e){return Ni((function(t){t(e)}))},zi={nu:Ni,pure:Hi},ji=function(e){setTimeout((function(){throw e}),0)},Bi=function(e){var t=function(t){e().then(t,ji)},n=function(t){return Bi((function(){return e().then(t)}))},r=function(t){return Bi((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return Bi((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return zi.nu(t)},a=function(){var t=null;return Bi((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Vi=function(e){return Bi((function(){return new Ri(e)}))},$i=function(e){return Bi((function(){return Ri.resolve(e)}))},Ui={nu:Vi,pure:$i},Wi=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):Z(e,(function(e,t){e.get(i(t))}))}))},qi=function(e){return Wi(e,Ui.nu)},Gi=function(e){var t=function(t){return Gi(e)},n=function(t){return Gi(e)},r=function(t){return Gi(t(e))},i=function(t){return Gi(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},u=function(t){return t(e)},l=function(t){return t(e)},c=function(){return $.some(e)};return{isValue:H,isError:N,getOr:O(e),getOrThunk:O(e),getOrDie:O(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:u,forall:l,toOptional:c}},Ki=function(e){var t=function(e){return e()},n=function(){return I(String(e))()},r=E,i=function(e){return e()},o=function(t){return Ki(e)},a=function(t){return Ki(t(e))},s=function(t){return Ki(e)},u=function(t,n){return t(e)};return{isValue:N,isError:H,getOr:E,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:u,map:o,mapError:a,each:C,bind:s,exists:N,forall:H,toOptional:$.none}},Ji=function(e,t){return e.fold((function(){return Ki(t)}),Gi)},Xi={value:Gi,error:Ki,fromOption:Ji},Qi=function(e){if(!b(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Z(e,(function(r,i){var o=ye(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!b(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var u=function(e){var r=ye(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ce(t,(function(e){return J(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:u,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Zi={generate:Qi};Zi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var eo=function(e){return e.fold(E,E)};function to(e,t,n,r,i){return e(n,r)?$.some(n):S(i)&&i(n)?$.none():t(n,r,i)}var no,ro,io,oo,ao,so,uo,lo,co,fo,ho,po,mo,go,vo,_o,bo,yo,xo,wo=function(e,t,n){var r=e.dom,i=S(n)?n:N;while(r.parentNode){r=r.parentNode;var o=yn.fromDom(r);if(t(o))return $.some(o);if(i(o))break}return $.none()},ko=function(e,t,n){var r=function(e,t){return t(e)};return to(r,wo,e,t,n)},Mo=function(e,t){var n=e.dom;return n.parentNode?So(yn.fromDom(n.parentNode),(function(n){return!Pn(e,n)&&t(n)})):$.none()},So=function(e,t){var n=function(e){return t(yn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(yn.fromDom)},Lo=function(e,t,n){return wo(e,(function(e){return Dn(e,t)}),n)},Co=function(e,t){return An(t,e)},To=function(e,t,n){var r=function(e,t){return Dn(e,t)};return to(r,Lo,e,t,n)},Do=window.Promise?window.Promise:Ri,Oo=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(e){window.setTimeout(e,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(e,t)},Eo=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Ao=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Po=function(e){return clearTimeout(e)},Fo=function(e){return clearInterval(e)},Io=function(e,t){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=Eo((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Yo={requestAnimationFrame:function(e,t){no?no.then(e):no=new Do((function(e){t||(t=document.body),Oo(e,t)})).then(e)},setTimeout:Eo,setInterval:Ao,setEditorTimeout:function(e,t,n){return Eo((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Ao((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Io,throttle:Io,clearInterval:Fo,clearTimeout:Po},Ro=function(e,t){void 0===t&&(t={});var n=0,r={},i=yn.fromDom(e),o=qn(i),a=t.maxLoadTime||5e3,s=function(e){t.referrerPolicy=e},u=function(e){xr(hr(i),e)},l=function(e){var t=hr(i);Co(t,"#"+e).each(Lr)},c=function(e){return Ee(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},d=function(n,i,s){var l,d=pn._addCacheSuffix(n),f=c(d);r[d]=f,f.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();f.status=t,f.passed=[],f.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},p=function(){return h(f.passed,2)},m=function(){return h(f.failed,3)},g=function(e,t){e()||(Date.now()-b<a?Yo.setTimeout(t):m())},v=function(){g((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],i=r.ownerNode;if(i&&i.id===l.id)return p(),!0}return!1}),v)};if(i&&f.passed.push(i),s&&f.failed.push(s),1!==f.status)if(2!==f.status)if(3!==f.status){f.status=1;var _=yn.fromTag("link",o.dom);vi(_,{rel:"stylesheet",type:"text/css",id:f.id});var b=Date.now();t.contentCssCors&&gi(_,"crossOrigin","anonymous"),t.referrerPolicy&&gi(_,"referrerpolicy",t.referrerPolicy),l=_.dom,l.onload=v,l.onerror=m,u(_),gi(_,"href",d)}else m();else p()},f=function(e){return Ui.nu((function(t){d(e,T(t,O(Xi.value(e))),T(t,O(Xi.error(e))))}))},h=function(e,t,n){qi(Q(e,f)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(eo)):t(r.pass.map(eo))}))},p=function(e){var t=pn._addCacheSuffix(e);Ee(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],l(e.id))}))},m=function(e){Z(e,(function(e){p(e)}))};return{load:d,loadAll:h,unload:p,unloadAll:m,_setReferrerPolicy:s}},No=function(){var e=new WeakMap,t=function(t,n){var r=fr(t),i=r.dom;return $.from(e.get(i)).getOrThunk((function(){var t=Ro(i,n);return e.set(i,t),t}))};return{forElement:t}},Ho=No(),zo=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),jo=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Bo=["td","th"],Vo=["thead","tbody","tfoot"],$o=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Uo=["h1","h2","h3","h4","h5","h6"],Wo=["li","dd","dt"],qo=["ul","ol","dl"],Go=["pre","script","textarea","style"],Ko=function(e){var t;return function(n){return t=t||he(e,H),Ae(t,Rn(n))}},Jo=Ko(Uo),Xo=Ko(jo),Qo=function(e){return"table"===Rn(e)},Zo=function(e){return jn(e)&&!Xo(e)},ea=function(e){return jn(e)&&"br"===Rn(e)},ta=Ko($o),na=Ko(qo),ra=Ko(Wo),ia=Ko(Vo),oa=Ko(Bo),aa=Ko(Go),sa=function(e,t,n){return Lo(e,t,n).isSome()},ua="\ufeff",la=" ",ca=function(e){return e===ua},da=function(e){return e.replace(/\uFEFF/g,"")},fa=ua,ha=ca,pa=da,ma=Vr,ga=Zr,va=function(e){return ga(e)&&(e=e.parentNode),ma(e)&&e.hasAttribute("data-mce-caret")},_a=function(e){return ga(e)&&ha(e.data)},ba=function(e){return va(e)||_a(e)},ya=function(e){return e.firstChild!==e.lastChild||!ri(e.firstChild)},xa=function(e,t){var n=e.ownerDocument,r=n.createTextNode(fa),i=e.parentNode;if(t){o=e.previousSibling;if(ga(o)){if(ba(o))return o;if(Ca(o))return o.splitText(o.data.length-1)}i.insertBefore(r,e)}else{var o=e.nextSibling;if(ga(o)){if(ba(o))return o;if(La(o))return o.splitText(1),o}e.nextSibling?i.insertBefore(r,e.nextSibling):i.appendChild(r)}return r},wa=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset())===fa||e.isAtStart()&&_a(t.previousSibling))},ka=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset()-1)===fa||e.isAtEnd()&&_a(t.nextSibling))},Ma=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Sa=function(e,t,n){var r=t.ownerDocument,i=r.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(Ma());var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},La=function(e){return ga(e)&&e.data[0]===fa},Ca=function(e){return ga(e)&&e.data[e.data.length-1]===fa},Ta=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Gr(n)&&n.parentNode.removeChild(n)},Da=function(e){return e&&e.hasAttribute("data-mce-caret")?(Ta(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Oa=function(e){return va(e.startContainer)},Ea=oi,Aa=ai,Pa=ri,Fa=Zr,Ia=$r(["script","style","textarea"]),Ya=$r(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ra=$r(["table"]),Na=ba,Ha=function(e){return!Na(e)&&(Fa(e)?!Ia(e.parentNode):Ya(e)||Pa(e)||Ra(e)||ja(e))},za=function(e){return Vr(e)&&"true"===e.getAttribute("unselectable")},ja=function(e){return!1===za(e)&&Aa(e)},Ba=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(ja(e))return!1;if(Ea(e))return!0}return!0},Va=function(e){return!!ja(e)&&!0!==ie(_e(e.getElementsByTagName("*")),(function(e,t){return e||Ea(t)}),!1)},$a=function(e){return Ya(e)||Va(e)},Ua=function(e,t){return Ha(e)&&Ba(e,t)},Wa=/^[ \t\r\n]*$/,qa=function(e){return Wa.test(e)},Ga=function(e,t){var n=yn.fromDom(t),r=yn.fromDom(e);return sa(r,"pre,code",P(Pn,n))},Ka=function(e,t){return Zr(e)&&qa(e.data)&&!1===Ga(e,t)},Ja=function(e){return Vr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Xa=function(e,t){return Ha(e)&&!1===Ka(e,t)||Ja(e)||Qa(e)},Qa=Wr("data-mce-bookmark"),Za=Wr("data-mce-bogus"),es=qr("data-mce-bogus","all"),ts=function(e,t){var n=0;if(Xa(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new zo(r,e);do{if(t){if(es(r)){r=i.next(!0);continue}if(Za(r)){r=i.next();continue}}if(ri(r))n++,r=i.next();else{if(Xa(r,e))return!1;r=i.next()}}while(r);return n<=1},ns=function(e,t){return void 0===t&&(t=!0),ts(e.dom,t)},rs=function(e){return"span"===e.nodeName.toLowerCase()},is=function(e,t){return M(e)&&(Xa(e,t)||Zo(yn.fromDom(e)))},os=function(e,t){var n=new zo(e,t).prev(!1),r=new zo(e,t).next(!1),i=w(n)||is(n,t),o=w(r)||is(r,t);return i&&o},as=function(e){return rs(e)&&"bookmark"===e.getAttribute("data-mce-type")},ss=function(e,t){return Zr(e)&&e.data.length>0&&os(e,t)},us=function(e){return!!Vr(e)&&e.childNodes.length>0},ls=function(e){return ni(e)||ti(e)},cs=function(e,t,n){var r=n||t;if(Vr(t)&&as(t))return t;for(var i=t.childNodes,o=i.length-1;o>=0;o--)cs(e,i[o],r);if(Vr(t)){var a=t.childNodes;1===a.length&&as(a[0])&&t.parentNode.insertBefore(a[0],t)}return ls(t)||Xa(t,r)||us(t)||ss(t,r)||e.remove(t),t},ds=pn.makeMap,fs=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hs=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ps=/[<>&\"\']/g,ms=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,gs={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},_s={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},bs=function(e){var t=yn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},ys=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vs[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}},xs=ys("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ws=function(e,t){return e.replace(t?fs:hs,(function(e){return vs[e]||e}))},ks=function(e){return(""+e).replace(ps,(function(e){return vs[e]||e}))},Ms=function(e,t){return e.replace(t?fs:hs,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vs[e]||"&#"+e.charCodeAt(0)+";"}))},Ss=function(e,t,n){return n=n||xs,e.replace(t?fs:hs,(function(e){return vs[e]||n[e]||e}))},Ls=function(e,t){var n=ys(t)||xs,r=function(e,t){return e.replace(t?fs:hs,(function(e){return void 0!==vs[e]?vs[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return Ss(e,t,n)},o=ds(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:Ss:o.numeric?Ms:ws},Cs=function(e){return e.replace(ms,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):gs[t]||String.fromCharCode(t)):_s[e]||xs[e]||bs(e)}))},Ts={encodeRaw:ws,encodeAllRaw:ks,encodeNumeric:Ms,encodeNamed:Ss,getEncodeFunc:Ls,decode:Cs},Ds={},Os={},Es=pn.makeMap,As=pn.each,Ps=pn.extend,Fs=pn.explode,Is=pn.inArray,Ys=function(e,t){return e=pn.trim(e),e?e.split(t||" "):[]},Rs=function(e,t){var n=Es(e," ",Es(e.toUpperCase()," "));return Ps(n,t)},Ns=function(e){return Rs("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Hs=function(e){var t,n,r,i,o,a,s={},u=function(e,n,r){var i,o,a,u=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=Ys(r));var l=Ys(e);i=l.length;while(i--)o=Ys([t,n].join(" ")),a={attributes:u(o),attributesOrder:o,children:u(r,Os)},s[l[i]]=a},l=function(e,t){var n,r,i,o,a=Ys(e);n=a.length;var u=Ys(t);while(n--)for(r=s[a[n]],i=0,o=u.length;i<o;i++)r.attributes[u[i]]={},r.attributesOrder.push(u[i])};return Ds[e]?Ds[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),As(Ys(a),(function(e){u(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),As(Ys(o),(function(e){u(e,"",i)}))),i=i||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),u("address dt dd div caption","",i),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",i),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",i),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",i),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",i),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),u("param","name value"),u("map","name",[i,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",i),u("th","colspan rowspan headers scope abbr",i),u("form","accept-charset action autocomplete enctype method name novalidate target",i),u("fieldset","disabled form name",[i,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[i,"li"].join(" ")),u("noscript","",i),"html4"!==e&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",i),u("mark rt rp summary bdi","",r),u("canvas","width height",i),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",i),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[i,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",i),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[i,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("img","loading"),l("iframe","sandbox seamless allowfullscreen loading")),As(Ys("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Ds[e]=s,s)},zs=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),As(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Es(e,/[, ]/):Fs(e,/[, ]/)}))),n},js=function(e){var t={},n={},r=[],i={},o={},a=function(t,n,r){var i=e[t];return i?i=Es(i,/[, ]/,Es(i.toUpperCase(),/[, ]/)):(i=Ds[t],i||(i=Rs(n,r),Ds[t]=i)),i};e=e||{};var s=Hs(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var u=zs(e.valid_styles),l=zs(e.invalid_styles,"map"),c=zs(e.valid_classes,"map"),d=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),f=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),_=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),b=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",_),y=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");As((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){o[e]=new RegExp("</"+e+"[^>]*>","gi")}));var x=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var n,i,o,a,s,u,l,c,d,f,h,p,m,g,v,_,b,y,w=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,k=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,M=/[*?+]/;if(e){var S=Ys(e,",");for(t["@"]&&(_=t["@"].attributes,b=t["@"].attributesOrder),n=0,i=S.length;n<i;n++)if(s=w.exec(S[n]),s){if(g=s[1],d=s[2],v=s[3],c=s[5],p={},m=[],u={attributes:p,attributesOrder:m},"#"===g&&(u.paddEmpty=!0),"-"===g&&(u.removeEmpty=!0),"!"===s[4]&&(u.removeEmptyAttrs=!0),_&&(we(_,(function(e,t){p[t]=e})),m.push.apply(m,b)),c)for(c=Ys(c,"|"),o=0,a=c.length;o<a;o++)if(s=k.exec(c[o]),s){if(l={},h=s[1],f=s[2].replace(/[\\:]:/g,":"),g=s[3],y=s[4],"!"===h&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(f),l.required=!0),"-"===h){delete p[f],m.splice(Is(m,f),1);continue}g&&("="===g&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:f,value:y}),l.defaultValue=y),":"===g&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:f,value:y}),l.forcedValue=y),"<"===g&&(l.validValues=Es(y,"?"))),M.test(f)?(u.attributePatterns=u.attributePatterns||[],l.pattern=x(f),u.attributePatterns.push(l)):(p[f]||m.push(f),p[f]=l)}_||"@"!==d||(_=p,b=m),v&&(u.outputName=d,t[v]=u),M.test(d)?(u.pattern=x(d),r.push(u)):t[d]=u}}},k=function(e){t={},r=[],w(e),As(s,(function(e,t){n[t]=e.children}))},M=function(e){var r=/^(~)?(.+)$/;e&&(Ds.text_block_elements=Ds.block_elements=null,As(Ys(e,","),(function(e){var o=r.exec(e),a="~"===o[1],s=a?"span":"div",u=o[2];if(n[u]=n[s],i[u]=s,a||(b[u.toUpperCase()]={},b[u]={}),!t[u]){var l=t[s];l=Ps({},l),delete l.removeEmptyAttrs,delete l.removeEmpty,t[u]=l}As(n,(function(e,t){e[s]&&(n[t]=e=Ps({},n[t]),e[u]=e[s])}))})))},S=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Ds[e.schema]=null,t&&As(Ys(t,","),(function(e){var t,i,o=r.exec(e);o&&(i=o[1],t=i?n[o[2]]:n[o[2]]={"#comment":{}},t=n[o[2]],As(Ys(o[3],"|"),(function(e){"-"===i?delete t[e]:t[e]={}})))}))},L=function(e){var n,i=t[e];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(e))return i};e.valid_elements?k(e.valid_elements):(As(s,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&As(Ys("strong/b em/i"),(function(e){var n=Ys(e,"/");t[n[1]].outputName=n[0]})),As(y,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),As(Ys("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),As(Ys("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),As(Ys("span"),(function(e){t[e].removeEmptyAttrs=!0}))),M(e.custom_elements),S(e.valid_children),w(e.extended_valid_elements),S("+ol[ul|ol],+ul[ul|ol]"),As({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Ys(e))})),e.invalid_elements&&As(Fs(e.invalid_elements),(function(e){t[e]&&delete t[e]})),L("span")||w("span[!data-mce-type|*]");var C=O(u),T=O(l),D=O(c),E=O(p),A=O(b),P=O(_),F=O(y),I=O(h),Y=O(f),R=O(g),N=O(v),H=O(d),z=O(o),j=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},B=function(e,t){var n,r,i=L(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},V=O(i);return{children:n,elements:t,getValidStyles:C,getValidClasses:D,getBlockElements:A,getInvalidStyles:T,getShortEndedElements:I,getTextBlockElements:P,getTextInlineElements:F,getBoolAttrs:E,getElementRule:L,getSelfClosingElements:Y,getNonEmptyElements:R,getMoveCaretBeforeOnEnterElements:N,getWhiteSpaceElements:H,getSpecialElements:z,isValidChild:j,isValid:B,getCustomElements:V,addValidElements:w,setValidElements:k,addCustomElements:M,addValidChildren:S}},Bs=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},Vs=function(e,t){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,c={},d=ua;e=e||{},t&&(r=t.getValidStyles(),i=t.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+d).split(" ");for(n=0;n<f.length;n++)c[f[n]]=d+n,c[d+n]=f[n];return{toHex:function(e){return e.replace(a,Bs)},parse:function(t){var r,i,f,h,p={},m=e.url_converter,g=e.url_converter_scope||o,v=function(e,t,r){var i=p[e+"-top"+t];if(i){var o=p[e+"-right"+t];if(o){var a=p[e+"-bottom"+t];if(a){var s=p[e+"-left"+t];if(s){var u=[i,o,a,s];n=u.length-1;while(n--)if(u[n]!==u[n+1])break;n>-1&&r||(p[e+t]=-1===n?u[0]:u.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},_=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},b=function(e,t,n,r){_(t)&&_(n)&&_(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},y=function(e){return h=!0,c[e]},x=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return c[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},w=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},k=function(e){return e.replace(/\\[0-9a-f]+/gi,w)},M=function(t,n,r,i,o,a){if(o=o||a,o)return o=x(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=x(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,y).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,y)}));while(r=u.exec(t))if(u.lastIndex=r.index+r[0].length,i=r[1].replace(l,"").toLowerCase(),f=r[2].replace(l,""),i&&f){if(i=k(i),f=k(f),-1!==i.indexOf(d)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(a,Bs),f=f.replace(s,M),p[i]=h?x(f,!0):f}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),b("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",o=function(t){var i,o=r[t];if(o)for(var a=0,s=o.length;a<s;a++)t=o[a],i=e[t],i&&(n+=(n.length>0?" ":"")+t+": "+i+";")},a=function(e,t){var n=i["*"];return(!n||!n[e])&&(n=i[t],!(n&&n[e]))};return t&&r?(o("*"),o(t)):we(e,(function(e,r){!e||i&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},$s={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Us=function(e){return e instanceof Event||S(e.initEvent)},Ws=function(e){return e.isDefaultPrevented===H||e.isDefaultPrevented===N},qs=function(e){return k(e.preventDefault)||Us(e)},Gs=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Ae($s,r)||(n[r]=e[r]);return M(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Ks=function(e,t,n,r){var i,o=Gs(t,r);return o.type=e,k(o.target)&&(o.target=null!==(i=o.srcElement)&&void 0!==i?i:n),qs(t)&&(o.preventDefault=function(){o.defaultPrevented=!0,o.isDefaultPrevented=H,S(t.preventDefault)?t.preventDefault():Us(t)&&(t.returnValue=!1)},o.stopPropagation=function(){o.cancelBubble=!0,o.isPropagationStopped=H,S(t.stopPropagation)?t.stopPropagation():Us(t)&&(t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=H,o.stopPropagation()},Ws(o)||(o.isDefaultPrevented=!0===o.defaultPrevented?H:N,o.isPropagationStopped=!0===o.cancelBubble?H:N,o.isImmediatePropagationStopped=N)),o},Js="mce-data-",Xs=/^(?:mouse|contextmenu)|click/,Qs=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Zs=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},eu=function(e){return M(e)&&Xs.test(e.type)},tu=function(e,t){var n=Ks(e.type,e,document,t);if(eu(e)&&w(e.pageX)&&!w(e.clientX)){var r=n.target.ownerDocument||document,i=r.documentElement,o=r.body,a=n;a.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),a.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}return w(n.metaKey)&&(n.metaKey=!1),n},nu=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Zs(e,"DOMContentLoaded",a),Zs(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i)),e=null};o()?a():Qs(e,"DOMContentLoaded",a),n.domLoaded||Qs(e,"load",a)}},ru=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Js+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var i,o,a,s,u,l,c,d=this,f=window,h=function(e){d.executeHandlers(tu(e||f.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?i=e[d.expando]:(i=d.count++,e[d.expando]=i,d.events[i]={}),r=r||e;var p=t.split(" ");a=p.length;while(a--)s=p[a],l=h,u=c=!1,"DOMContentLoaded"===s&&(s="ready"),d.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,tu({type:s})):(d.hasMouseEnterLeave||(u=d.mouseEnterLeave[s],u&&(l=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tu(e||f.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==s&&"focusout"!==s||(c=!0,u="focusin"===s?"focus":"blur",l=function(e){e=tu(e||f.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),o=d.events[i][s],o?"ready"===s&&d.domLoaded?n(tu({type:s})):o.push({func:n,scope:r}):(d.events[i][s]=o=[{func:n,scope:r}],o.fakeName=u,o.capture=c,o.nativeHandler=l,"ready"===s?nu(e,l,d):Qs(e,u||s,l,c)));return e=o=null,n}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s;if(!e||3===e.nodeType||8===e.nodeType)return this;var u=e[this.expando];if(u){if(s=this.events[u],t){var l=t.split(" ");i=l.length;while(i--)if(a=l[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var c=r.nativeHandler,d=r.fakeName,f=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=c,r.fakeName=d,r.capture=f,s[a]=r}}n&&0!==r.length||(delete s[a],Zs(e,r.fakeName||a,r.nativeHandler,r.capture))}}else we(s,(function(t,n){Zs(e,t.fakeName||n,t.nativeHandler,t.capture)})),s={};for(a in s)if(Ae(s,a))return this;delete this.events[u];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=tu({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),iu="sizzle"+-new Date,ou=window.document,au=0,su=0,uu=Bu(),lu=Bu(),cu=Bu(),du=function(e,t){return e===t&&(ho=!0),0},fu="undefined",hu=1<<31,pu={}.hasOwnProperty,mu=[],gu=mu.pop,vu=mu.push,_u=mu.push,bu=mu.slice,yu=mu.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},xu="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",wu="[\\x20\\t\\r\\n\\f]",ku="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Mu="\\["+wu+"*("+ku+")(?:"+wu+"*([*^$|!~]?=)"+wu+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ku+"))|)"+wu+"*\\]",Su=":("+ku+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Mu+")*)|.*)\\)|)",Lu=new RegExp("^"+wu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+wu+"+$","g"),Cu=new RegExp("^"+wu+"*,"+wu+"*"),Tu=new RegExp("^"+wu+"*([>+~]|"+wu+")"+wu+"*"),Du=new RegExp("="+wu+"*([^\\]'\"]*?)"+wu+"*\\]","g"),Ou=new RegExp(Su),Eu=new RegExp("^"+ku+"$"),Au={ID:new RegExp("^#("+ku+")"),CLASS:new RegExp("^\\.("+ku+")"),TAG:new RegExp("^("+ku+"|[*])"),ATTR:new RegExp("^"+Mu),PSEUDO:new RegExp("^"+Su),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+wu+"*(even|odd|(([+-]|)(\\d*)n|)"+wu+"*(?:([+-]|)"+wu+"*(\\d+)|))"+wu+"*\\)|)","i"),bool:new RegExp("^(?:"+xu+")$","i"),needsContext:new RegExp("^"+wu+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+wu+"*((?:-\\d)?\\d*)"+wu+"*\\)|)(?=[^-]|$)","i")},Pu=/^(?:input|select|textarea|button)$/i,Fu=/^h\d$/i,Iu=/^[^{]+\{\s*\[native \w/,Yu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ru=/[+~]/,Nu=/'|\\/g,Hu=new RegExp("\\\\([\\da-f]{1,6}"+wu+"?|("+wu+")|.)","ig"),zu=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{_u.apply(mu=bu.call(ou.childNodes),ou.childNodes),mu[ou.childNodes.length].nodeType}catch(_j){_u={apply:mu.length?function(e,t){vu.apply(e,bu.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var ju=function(e,t,n,r){var i,o,a,s,u,l,c,d,f,h;if((t?t.ownerDocument||t:ou)!==mo&&po(t),t=t||mo,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(vo&&!r){if(i=Yu.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&xo(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return _u.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&ro.getElementsByClassName)return _u.apply(n,t.getElementsByClassName(a)),n}if(ro.qsa&&(!_o||!_o.test(e))){if(d=c=iu,f=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=so(e),(c=t.getAttribute("id"))?d=c.replace(Nu,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",u=l.length;while(u--)l[u]=d+Ju(l[u]);f=Ru.test(e)&&Gu(t.parentNode)||t,h=l.join(",")}if(h)try{return _u.apply(n,f.querySelectorAll(h)),n}catch(p){}finally{c||t.removeAttribute("id")}}}return lo(e.replace(Lu,"$1"),t,n,r)};function Bu(){var e=[];function t(n,r){return e.push(n+" ")>io.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Vu(e){return e[iu]=!0,e}function $u(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||hu)-(~e.sourceIndex||hu);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Uu(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function Wu(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function qu(e){return Vu((function(t){return t=+t,Vu((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Gu(e){return e&&typeof e.getElementsByTagName!==fu&&e}function Ku(){}function Ju(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Xu(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=su++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l=[au,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(u=t[iu]||(t[iu]={}),(s=u[r])&&s[0]===au&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=e(t,n,a))return!0}}}function Qu(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Zu(e,t,n){for(var r=0,i=t.length;r<i;r++)ju(e,t[r],n);return n}function el(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function tl(e,t,n,r,i,o){return r&&!r[iu]&&(r=tl(r)),i&&!i[iu]&&(i=tl(i,o)),Vu((function(o,a,s,u){var l,c,d,f=[],h=[],p=a.length,m=o||Zu(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:el(m,f,e,s,u),v=n?i||(o?e:p||r)?[]:a:g;if(n&&n(g,v,s,u),r){l=el(v,h),r(l,[],s,u),c=l.length;while(c--)(d=l[c])&&(v[h[c]]=!(g[h[c]]=d))}if(o){if(i||e){if(i){l=[],c=v.length;while(c--)(d=v[c])&&l.push(g[c]=d);i(null,v=[],l,u)}c=v.length;while(c--)(d=v[c])&&(l=i?yu.call(o,d):f[c])>-1&&(o[l]=!(a[l]=d))}}else v=el(v===a?v.splice(p,v.length):v),i?i(null,a,v,u):_u.apply(a,v)}))}function nl(e){for(var t,n,r,i=e.length,o=io.relative[e[0].type],a=o||io.relative[" "],s=o?1:0,u=Xu((function(e){return e===t}),a,!0),l=Xu((function(e){return yu.call(t,e)>-1}),a,!0),c=[function(e,n,r){var i=!o&&(r||n!==co)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=io.relative[e[s].type])c=[Xu(Qu(c),n)];else{if(n=io.filter[e[s].type].apply(null,e[s].matches),n[iu]){for(r=++s;r<i;r++)if(io.relative[e[r].type])break;return tl(s>1&&Qu(c),s>1&&Ju(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Lu,"$1"),n,s<r&&nl(e.slice(s,r)),r<i&&nl(e=e.slice(r)),r<i&&Ju(e))}c.push(n)}return Qu(c)}function rl(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,u){var l,c,d,f=0,h="0",p=i&&[],m=[],g=co,v=i||r&&io.find.TAG("*",u),_=au+=null==g?1:Math.random()||.1,b=v.length;for(u&&(co=o!==mo&&o);h!==b&&null!=(l=v[h]);h++){if(r&&l){c=0;while(d=e[c++])if(d(l,o,a)){s.push(l);break}u&&(au=_)}n&&((l=!d&&l)&&f--,i&&p.push(l))}if(f+=h,n&&h!==f){c=0;while(d=t[c++])d(p,m,o,a);if(i){if(f>0)while(h--)p[h]||m[h]||(m[h]=gu.call(s));m=el(m)}_u.apply(s,m),u&&!i&&m.length>0&&f+t.length>1&&ju.uniqueSort(s)}return u&&(au=_,co=g),p};return n?Vu(i):i}ro=ju.support={},ao=ju.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},po=ju.setDocument=function(e){var t,n=e?e.ownerDocument||e:ou,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==mo&&9===n.nodeType&&n.documentElement?(mo=n,go=n.documentElement,vo=!ao(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){po()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){po()}))),ro.attributes=!0,ro.getElementsByTagName=!0,ro.getElementsByClassName=Iu.test(n.getElementsByClassName),ro.getById=!0,io.find.ID=function(e,t){if(typeof t.getElementById!==fu&&vo){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},io.filter.ID=function(e){var t=e.replace(Hu,zu);return function(e){return e.getAttribute("id")===t}},io.find.TAG=ro.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==fu)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},io.find.CLASS=ro.getElementsByClassName&&function(e,t){if(vo)return t.getElementsByClassName(e)},bo=[],_o=[],ro.disconnectedMatch=!0,_o=_o.length&&new RegExp(_o.join("|")),bo=bo.length&&new RegExp(bo.join("|")),t=Iu.test(go.compareDocumentPosition),xo=t||Iu.test(go.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},du=t?function(e,t){if(e===t)return ho=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!ro.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===ou&&xo(ou,e)?-1:t===n||t.ownerDocument===ou&&xo(ou,t)?1:fo?yu.call(fo,e)-yu.call(fo,t):0:4&r?-1:1)}:function(e,t){if(e===t)return ho=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],u=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:fo?yu.call(fo,e)-yu.call(fo,t):0;if(o===a)return $u(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)u.unshift(r);while(s[i]===u[i])i++;return i?$u(s[i],u[i]):s[i]===ou?-1:u[i]===ou?1:0},n):mo},ju.matches=function(e,t){return ju(e,null,null,t)},ju.matchesSelector=function(e,t){if((e.ownerDocument||e)!==mo&&po(e),t=t.replace(Du,"='$1']"),ro.matchesSelector&&vo&&(!bo||!bo.test(t))&&(!_o||!_o.test(t)))try{var n=yo.call(e,t);if(n||ro.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(_j){}return ju(t,mo,null,[e]).length>0},ju.contains=function(e,t){return(e.ownerDocument||e)!==mo&&po(e),xo(e,t)},ju.attr=function(e,t){(e.ownerDocument||e)!==mo&&po(e);var n=io.attrHandle[t.toLowerCase()],r=n&&pu.call(io.attrHandle,t.toLowerCase())?n(e,t,!vo):void 0;return void 0!==r?r:ro.attributes||!vo?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ju.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ju.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ho=!ro.detectDuplicates,fo=!ro.sortStable&&e.slice(0),e.sort(du),ho){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return fo=null,e},oo=ju.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oo(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=oo(t);return n},io=ju.selectors={cacheLength:50,createPseudo:Vu,match:Au,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Hu,zu),e[3]=(e[3]||e[4]||e[5]||"").replace(Hu,zu),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ju.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ju.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Au.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ou.test(n)&&(t=so(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Hu,zu).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=uu[e+" "];return t||(t=new RegExp("(^|"+wu+")"+e+"("+wu+"|$)"))&&uu(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==fu&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ju.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!u&&!s;if(g){if(o){while(m){d=t;while(d=d[m])if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&_){c=g[iu]||(g[iu]={}),l=c[e]||[],h=l[0]===au&&l[1],f=l[0]===au&&l[2],d=h&&g.childNodes[h];while(d=++h&&d&&d[m]||(f=h=0)||p.pop())if(1===d.nodeType&&++f&&d===t){c[e]=[au,h,f];break}}else if(_&&(l=(t[iu]||(t[iu]={}))[e])&&l[0]===au)f=l[1];else while(d=++h&&d&&d[m]||(f=h=0)||p.pop())if((s?d.nodeName.toLowerCase()===v:1===d.nodeType)&&++f&&(_&&((d[iu]||(d[iu]={}))[e]=[au,f]),d===t))break;return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,t){var n,r=io.pseudos[e]||io.setFilters[e.toLowerCase()]||ju.error("unsupported pseudo: "+e);return r[iu]?r(t):r.length>1?(n=[e,e,"",t],io.setFilters.hasOwnProperty(e.toLowerCase())?Vu((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=yu.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Vu((function(e){var t=[],n=[],r=uo(e.replace(Lu,"$1"));return r[iu]?Vu((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:Vu((function(e){return function(t){return ju(e,t).length>0}})),contains:Vu((function(e){return e=e.replace(Hu,zu),function(t){return(t.textContent||t.innerText||oo(t)).indexOf(e)>-1}})),lang:Vu((function(e){return Eu.test(e||"")||ju.error("unsupported lang: "+e),e=e.replace(Hu,zu).toLowerCase(),function(t){var n;do{if(n=vo?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===go},focus:function(e){return e===mo.activeElement&&(!mo.hasFocus||mo.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!io.pseudos.empty(e)},header:function(e){return Fu.test(e.nodeName)},input:function(e){return Pu.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:qu((function(){return[0]})),last:qu((function(e,t){return[t-1]})),eq:qu((function(e,t,n){return[n<0?n+t:n]})),even:qu((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:qu((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:qu((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:qu((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},io.pseudos.nth=io.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(e){io.pseudos[e]=Uu(e)})),Z(["submit","reset"],(function(e){io.pseudos[e]=Wu(e)})),Ku.prototype=io.filters=io.pseudos,io.setFilters=new Ku,so=ju.tokenize=function(e,t){var n,r,i,o,a,s,u,l=lu[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=io.preFilter;while(a){for(o in n&&!(r=Cu.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Tu.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Lu," ")}),a=a.slice(n.length)),io.filter)io.filter.hasOwnProperty(o)&&(!(r=Au[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?ju.error(e):lu(e,s).slice(0)},uo=ju.compile=function(e,t){var n,r=[],i=[],o=cu[e+" "];if(!o){t||(t=so(e)),n=t.length;while(n--)o=nl(t[n]),o[iu]?r.push(o):i.push(o);o=cu(e,rl(i,r)),o.selector=e}return o},lo=ju.select=function(e,t,n,r){var i,o,a,s,u,l="function"===typeof e&&e,c=!r&&so(e=l.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&ro.getById&&9===t.nodeType&&vo&&io.relative[o[1].type]){if(t=(io.find.ID(a.matches[0].replace(Hu,zu),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=Au.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],io.relative[s=a.type])break;if((u=io.find[s])&&(r=u(a.matches[0].replace(Hu,zu),Ru.test(o[0].type)&&Gu(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&Ju(o),!e)return _u.apply(n,r),n;break}}}return(l||uo(e,c))(r,t,!vo,n,Ru.test(e)&&Gu(t.parentNode)||t),n},ro.sortStable=iu.split("").sort(du).join("")===iu,ro.detectDuplicates=!!ho,po(),ro.sortDetached=!0;var il=document,ol=Array.prototype.push,al=Array.prototype.slice,sl=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,ul=ru.Event,ll=pn.makeMap("children,contents,next,prev"),cl=function(e){return"undefined"!==typeof e},dl=function(e){return"string"===typeof e},fl=function(e){return e&&e===e.window},hl=function(e,t){t=t||il;var n,r=t.createElement("div"),i=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)i.appendChild(n);return i},pl=function(e,t,n,r){var i;if(dl(t))t=hl(t,Dl(e[0]));else if(t.length&&!t.nodeType){if(t=Pl.makeArray(t),r)for(i=t.length-1;i>=0;i--)pl(e,t[i],n,r);else for(i=0;i<t.length;i++)pl(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},ml=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},gl=function(e,t,n){var r,i;return t=Pl(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},vl=pn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),_l=pn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),bl={for:"htmlFor",class:"className",readonly:"readOnly"},yl={float:"cssFloat"},xl={},wl={},kl=function(e,t){return new Pl.fn.init(e,t)},Ml=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Sl=/^\s*|\s*$/g,Ll=function(e){return null===e||void 0===e?"":(""+e).replace(Sl,"")},Cl=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},Tl=function(e,t){var n=[];return Cl(e,(function(e,r){t(r,e)&&n.push(r)})),n},Dl=function(e){return e?9===e.nodeType?e:e.ownerDocument:il};kl.fn=kl.prototype={constructor:kl,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Pl(e).attr(t);i.context=t=document}if(dl(e)){if(i.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:sl.exec(e),!n)return Pl(t).find(e);if(n[1]){r=hl(e,Dl(t)).firstChild;while(r)ol.call(i,r),r=r.nextSibling}else{if(r=Dl(t).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return pn.toArray(this)},add:function(e,t){var n,r,i=this;if(dl(e))return i.add(Pl(e));if(!1!==t)for(n=Pl.unique(i.toArray().concat(Pl.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else ol.apply(i,Pl.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)Cl(e,(function(e,t){r.attr(e,t)}));else{if(!cl(t)){if(r[0]&&1===r[0].nodeType){if(n=xl[e],n&&n.get)return n.get(r[0],e);if(_l[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=xl[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=bl[e]||e,"object"===typeof e)Cl(e,(function(e,t){n.prop(e,t)}));else{if(!cl(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Cl(e,(function(e,t){i.css(e,t)}));else if(cl(t))e=o(e),"number"!==typeof t||vl[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=wl[e],r&&r.set)r.set(this,t);else{try{this.style[yl[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=wl[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],ul.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(cl(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Pl(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(cl(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return pl(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return pl(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?pl(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?pl(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Pl(e).append(this),this},prependTo:function(e){return Pl(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return gl(this,e)},wrapAll:function(e){return gl(this,e,!0)},wrapInner:function(e){return this.each((function(){Pl(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Pl(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Pl(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Cl(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i=ml(r,e);if(i!==t){var o=r.className;i?r.className=Ll((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e}}))),n},hasClass:function(e){return ml(this[0],e)},each:function(e){return Cl(this,e)},on:function(e,t){return this.each((function(){ul.bind(this,e,t)}))},off:function(e,t){return this.each((function(){ul.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?ul.fire(this,e.type,e):ul.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Pl(al.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Pl.find(e,this[t],r);return Pl(r)},filter:function(e){return Pl("function"===typeof e?Tl(this.toArray(),(function(t,n){return e(n,t)})):Pl.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Pl&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Pl(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Pl(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:ol,sort:Array.prototype.sort,splice:Array.prototype.splice},pn.extend(kl,{extend:pn.extend,makeArray:function(e){return fl(e)||e.nodeType?[e]:pn.toArray(e)},inArray:Ml,isArray:pn.isArray,each:Cl,trim:Ll,grep:Tl,find:ju,expr:ju.selectors,unique:ju.uniqueSort,text:ju.getText,contains:ju.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Pl.find.matchesSelector(t[0],e)?[t[0]]:[]:Pl.find.matches(e,t),t}});var Ol=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof Pl&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&Pl(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},El=function(e,t,n,r){var i=[];for(r instanceof Pl&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Pl(e).is(r))break}i.push(e)}return i},Al=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Cl({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ol(e,"parentNode")},next:function(e){return Al(e,"nextSibling",1)},prev:function(e){return Al(e,"previousSibling",1)},children:function(e){return El(e.firstChild,"nextSibling",1)},contents:function(e){return pn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){kl.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(Pl.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(ll[e]||(i=Pl.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=Pl(i);return n?o.filter(n):o}})),Cl({parentsUntil:function(e,t){return Ol(e,"parentNode",t)},nextUntil:function(e,t){return El(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return El(e,"previousSibling",1,t).slice(1)}},(function(e,t){kl.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(Pl.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=Pl.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=Pl(o);return r?a.filter(r):a}})),kl.fn.is=function(e){return!!e&&this.filter(e).length>0},kl.fn.init.prototype=kl.fn,kl.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return Pl.extend(n,this),n},kl.attrHooks=xl,kl.cssHooks=wl;var Pl=kl,Fl=pn.each,Il=pn.grep,Yl=en.ie,Rl=/^([a-z0-9],?)+$/i,Nl=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},Hl=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},zl=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i},jl=function(e,t){void 0===t&&(t={});var n={},r=window,i={},o=0,a=!0,s=!0,u=Ho.forElement(yn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),l=[],c=t.schema?t.schema:js({}),d=Vs({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),f=t.ownEvents?new ru:ru.Event,h=c.getBlockElements(),p=Pl.overrideDefaults((function(){return{context:e,element:Ee.getRoot()}})),m=function(e){if("string"===typeof e)return!!h[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!h[e.nodeName])}return!1},g=function(t){return t&&e&&v(t)?e.getElementById(t):t},_=function(e){return p("string"===typeof e?g(e):e)},b=function(e,t,n){var r,i,o=_(e);return o.length&&(r=Ae[t],i=r&&r.get?r.get(o,t):o.attr(t)),"undefined"===typeof i&&(i=n||""),i},y=function(e){var t=g(e);return t?t.attributes:[]},x=function(e,n,r){""===r&&(r=null);var i=_(e),o=i.attr(n);if(i.length){var a=Ae[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},w=function(t,n){if(!Yl||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Fl(y(t),(function(e){x(r,e.nodeName,b(t,e.nodeName))})),r},M=function(){return t.root_element||e.body},S=function(e){var t=zr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},L=function(t,n){return Fi(e.body,g(t),n)},T=function(e,n,r){var i=v(n)?_(e).css(n,r):_(e).css(n);t.update_styles&&Hl(d,i)},D=function(e,n){var r=_(e).css(n);t.update_styles&&Hl(d,r)},E=function(e,t,n){var r=_(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},A=function(e){var t,n;return e=g(e),t=E(e,"width"),n=E(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},P=function(e){e=g(e);var t=L(e),n=A(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},F=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Rl.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return ju(t,o[0].ownerDocument||o[0],null,o).length>0},I=function(e,t,n,r){var i,o=[],a=g(e);r=void 0===r,n=n||("BODY"!==M().nodeName?M().parentNode:null),pn.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return F(e,i)});while(a){if(a===n||k(a.nodeType)||ti(a)||ni(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},Y=function(e,t,n){var r=I(e,t,n,!1);return r&&r.length>0?r[0]:null},R=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return F(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},N=function(e,t){return R(e,t,"nextSibling")},H=function(e,t){return R(e,t,"previousSibling")},z=function(n,r){return ju(n,g(r)||t.root_element||e,[])},j=function(e,t,n){var r,i="string"===typeof e?g(e):e;if(!i)return!1;if(pn.isArray(i)&&(i.length||0===i.length))return r=[],Fl(i,(function(e,i){e&&r.push(t.call(n,"string"===typeof e?g(e):e,i))})),r;var o=n||this;return t.call(o,i)},B=function(e,t){_(e).each((function(e,n){Fl(t,(function(e,t){x(n,t,e)}))}))},V=function(e,t){var n=_(e);Yl?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Pl("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},$=function(t,n,r,i,o){return j(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return B(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&V(a,i)),o?a:t.appendChild(a)}))},U=function(t,n,r){return $(e.createElement(t),t,n,r,!0)},W=Ts.decode,q=Ts.encodeAllRaw,G=function(e,t,n){var r,i="";for(r in i+="<"+e,t)Pe(t,r)&&(i+=" "+r+'="'+q(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},K=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();i.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},J=function(e,t){var n=_(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},X=function(e){return j(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},Q=function(e){return d.parse(e)},ee=function(e,t){return d.serialize(e,t)},te=function(t){var r,i;if(Ee!==jl.DOM&&e===document){if(n[t])return;n[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Z(e.split(","),(function(e){i[e]=!0,u.load(e,C)}))},re=function(e,t,n){_(e).toggleClass(t,n).each((function(){""===this.className&&Pl(this).attr("class",null)}))},ie=function(e,t){_(e).addClass(t)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){return _(e).hasClass(t)},se=function(e){_(e).show()},ue=function(e){_(e).hide()},le=function(e){return"none"===_(e).css("display")},ce=function(e){return(e||"mce_")+o++},de=function(e){var t="string"===typeof e?g(e):e;return Vr(t)?t.outerHTML:Pl("<div></div>").append(Pl(t).clone()).html()},fe=function(e,t){_(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}J(Pl(this).html(t),!0)}))},he=function(e,t){var n=g(t);return j(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return j(t,(function(t){return pn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Fl(Il(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},me=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=U(t),Fl(y(e),(function(t){x(n,t.nodeName,b(e,t.nodeName))})),pe(n,e,!0)),n||e},ge=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return d.toHex(pn.trim(e))},_e=function(e){if(Vr(e)){var t="a"===e.nodeName.toLowerCase()&&!b(e,"href")&&b(e,"id");if(b(e,"name")||b(e,"data-mce-bookmark")||t)return!0}return!1},be=function(e,t){var n,r,i=0;if(_e(e))return!1;if(e=e.firstChild,e){var o=new zo(e,e.parentNode),a=c?c.getWhiteSpaceElements():{};t=t||(c?c.getNonEmptyElements():null);do{if(n=e.nodeType,Vr(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){i++,e=o.next();continue}return!1}if(_e(e))return!1}if(8===n)return!1;if(3===n&&!qa(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&qa(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},ye=function(){return e.createRange()},xe=function(e,t,n){var r,i,o,a=ye();if(e&&t)return a.setStart(e.parentNode,zl(e)),a.setEnd(t.parentNode,zl(t)),r=a.extractContents(),a=ye(),a.setStart(t.parentNode,zl(t)+1),a.setEnd(e.parentNode,zl(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(cs(Ee,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(cs(Ee,i),e),J(e),n||t},ke=function(n,i,o,a){if(pn.isArray(n)){var s=n.length,u=[];while(s--)u[s]=ke(n[s],i,o,a);return u}!t.collect||n!==e&&n!==r||l.push([n,i,o,a]);var c=f.bind(n,i,o,a||Ee);return c},Me=function(t,n,i){if(pn.isArray(t)){var o=t.length,a=[];while(o--)a[o]=Me(t[o],n,i);return a}if(l.length>0&&(t===e||t===r)){o=l.length;while(o--){var s=l[o];t!==s[0]||n&&n!==s[1]||i&&i!==s[2]||f.unbind(s[0],s[1],s[2])}}return f.unbind(t,n,i)},Se=function(e,t,n){return f.fire(e,t,n)},Le=function(e){if(e&&Vr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Ce=function(e){for(var t=M(),n=null;e&&e!==t;e=e.parentNode)if(n=Le(e),null!==n)break;return n},Te=function(){if(l.length>0){var e=l.length;while(e--){var t=l[e];f.unbind(t[0],t[1],t[2])}}we(i,(function(e,t){u.unload(t),delete i[t]})),ju.setDocument&&ju.setDocument()},De=function(e,t){if(Yl){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Oe=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Ee={doc:e,settings:t,win:r,files:i,stdMode:a,boxModel:s,styleSheetLoader:u,boundEvents:l,styles:d,schema:c,events:f,isBlock:m,$:p,$$:_,root:null,clone:w,getRoot:M,getViewPort:S,getRect:P,getSize:A,getParent:Y,getParents:I,get:g,getNext:N,getPrev:H,select:z,is:F,add:$,create:U,createHTML:G,createFragment:K,remove:J,setStyle:T,getStyle:E,setStyles:D,removeAllAttribs:X,setAttrib:x,setAttribs:B,getAttrib:b,getPos:L,parseStyle:Q,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:ie,removeClass:oe,hasClass:ae,toggleClass:re,show:se,hide:ue,isHidden:le,uniqueId:ce,setHTML:V,getOuterHTML:de,setOuterHTML:fe,decode:W,encode:q,insertAfter:he,replace:pe,rename:me,findCommonAncestor:ge,toHex:ve,run:j,getAttribs:y,isEmpty:be,createRng:ye,nodeIndex:zl,split:xe,bind:ke,unbind:Me,fire:Se,getContentEditable:Le,getContentEditableParent:Ce,destroy:Te,isChildOf:De,dumpRng:Oe},Ae=Nl(d,t,O(Ee));return Ee};jl.DOM=jl(document),jl.nodeIndex=zl;var Bl=jl.DOM,Vl=pn.each,$l=pn.grep,Ul=0,Wl=1,ql=2,Gl=3,Kl=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,i=Bl,o=function(){i.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){o(),t()},s=function(){o(),S(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},u=i.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=pn._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===ql},e.prototype.markDone=function(e){this.states[e]=ql},e.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=Ul),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i=this,o=[],a=function(e,t){Vl(i.scriptLoadedCallbacks[t],(function(t){S(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t=$l(e);if(e.length=0,Vl(t,(function(e){i.states[e]!==ql?i.states[e]!==Gl?i.states[e]!==Wl&&(i.states[e]=Wl,i.loading++,i.loadScript(e,(function(){i.states[e]=ql,i.loading--,a("success",e),s()}),(function(){i.states[e]=Gl,i.loading--,o.push(e),a("failure",e),s()}))):a("failure",e):a("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Vl(n,(function(e){0===o.length?S(e.success)&&e.success.call(e.scope):S(e.failure)&&e.failure.call(e.scope,o)}))}};s()},e.ScriptLoader=new e,e}(),Jl=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Xl=function(e){return _(e)&&Ae(e,"raw")},Ql=function(e){return b(e)&&e.length>1},Zl={},ec=Jl("en"),tc=function(){return Ee(Zl,ec.get())},nc=function(){return ke(Zl,(function(e){return $e({},e)}))},rc=function(e){e&&ec.set(e)},ic=function(){return ec.get()},oc=function(e,t){var n=Zl[e];n||(Zl[e]=n={}),we(t,(function(e,t){n[t.toLowerCase()]=e}))},ac=function(e){var t=tc().getOr({}),n=function(e){return S(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e);return Ee(t,r.toLowerCase()).map(n).getOr(r)},o=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Xl(e))return n(e.raw);if(Ql(e)){var a=e.slice(1),s=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Ae(a,t)?n(a[t]):e}));return o(s)}return o(i(e))},sc=function(){return tc().bind((function(e){return Ee(e,"_dir")})).exists((function(e){return"rtl"===e}))},uc=function(e){return Ae(Zl,e)},lc={getData:nc,setCode:rc,getCode:ic,add:oc,translate:ac,isRtl:sc,hasCode:uc},cc=function(){var e=[],t={},n={},r=[],i=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Z(n,(function(e){return e.callback()}))},o=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},s=function(e,n){!1!==cc.languageLoad&&p(e,(function(){var r=lc.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||Kl.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},u=function(t,r,o){var a=r;return e.push(a),n[t]={instance:a,dependencies:o},i(t,"added"),a},l=function(e){delete t[e],delete n[e]},c=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(e,n){var r=t[e];Z(n,(function(e){Kl.ScriptLoader.add(r+"/"+e)}))},f=function(e,t,n,r){var i=a(e);Z(i,(function(e){var n=c(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Kl))},h=function(e,r,o,a,s){if(!t[e]){var u="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=cc.baseURL+"/"+u),t[e]=u.substring(0,u.lastIndexOf("/"));var l=function(){i(e,"loaded"),f(e,r,o,a)};n[e]?l():Kl.ScriptLoader.add(u,l,a,s)}},p=function(e,i,o){void 0===o&&(o="added"),Ae(n,e)&&"added"===o||Ae(t,e)&&"loaded"===o?i():r.push({name:e,state:o,callback:i})};return{items:e,urls:t,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:u,remove:l,createUrl:c,addComponents:d,load:h,waitFor:p}};cc.languageLoad=!0,cc.baseURL="",cc.PluginManager=cc(),cc.ThemeManager=cc();var dc=function(e){var t=Jl($.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set($.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set($.some(e))};return{clear:r,isSet:i,get:o,set:a}},fc=function(){var e=dc(C),t=function(t){return e.get().each(t)};return $e($e({},e),{on:t})},hc=function(e,t){var n=null,r=function(){y(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];y(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},pc=function(e,t){var n=null,r=function(){y(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},mc=function(e,t){var n=_i(e,t);return void 0===n||""===n?[]:n.split(" ")},gc=function(e,t,n){var r=mc(e,t),i=r.concat([n]);return gi(e,t,i.join(" ")),!0},vc=function(e,t,n){var r=ne(mc(e,t),(function(e){return e!==n}));return r.length>0?gi(e,t,r.join(" ")):xi(e,t),!1},_c=function(e){return void 0!==e.dom.classList},bc=function(e){return mc(e,"class")},yc=function(e,t){return gc(e,"class",t)},xc=function(e,t){return vc(e,"class",t)},wc=function(e,t){_c(e)?e.dom.classList.add(t):yc(e,t)},kc=function(e){var t=_c(e)?e.dom.classList:bc(e);0===t.length&&xi(e,"class")},Mc=function(e,t){if(_c(e)){var n=e.dom.classList;n.remove(t)}else xc(e,t);kc(e)},Sc=function(e,t){return _c(e)&&e.dom.classList.contains(t)},Lc=function(e,t){var n=[];return Z(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Lc(e,t))})),n},Cc=function(e,t){return En(t,e)},Tc=O("mce-annotation"),Dc=O("data-mce-annotation"),Oc=O("data-mce-annotation-uid"),Ec=function(e,t){var n=e.selection.getRng(),r=yn.fromDom(n.startContainer),i=yn.fromDom(e.getBody()),o=t.fold((function(){return"."+Tc()}),(function(e){return"["+Dc()+'="'+e+'"]'})),a=ir(r,n.startOffset).getOr(r),s=To(a,o,(function(e){return Pn(e,i)})),u=function(e,t){return yi(e,t)?$.some(_i(e,t)):$.none()};return s.bind((function(t){return u(t,""+Oc()).bind((function(n){return u(t,""+Dc()).map((function(t){var r=Pc(e,n);return{uid:n,name:t,elements:r}}))}))}))},Ac=function(e){return jn(e)&&Sc(e,Tc())},Pc=function(e,t){var n=yn.fromDom(e.getBody());return Cc(n,"["+Oc()+'="'+t+'"]')},Fc=function(e,t){var n=yn.fromDom(e.getBody()),r=Cc(n,"["+Dc()+'="'+t+'"]'),i={};return Z(r,(function(e){var t=_i(e,Oc()),n=Ee(i,t).getOr([]);i[t]=n.concat([e])})),i},Ic=function(e,t){var n=Jl({}),r=function(){return{listeners:[],previous:fc()}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=Ee(i,e).getOrThunk(r),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){Z(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:Q(n,(function(e){return e.dom}))})}))}))},s=function(e){i(e,(function(t){Z(t.listeners,(function(t){return t(!1,e)}))}))},u=pc((function(){var t=n.get(),r=pe(ye(t));Z(r,(function(t){o(t,(function(n){var r=n.previous.get();return Ec(e,$.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.clear())}),(function(e){var t=e.uid,i=e.name,o=e.elements;li(r,t)||(a(i,t,o),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){u.cancel()})),e.on("NodeChange",(function(){u.throttle()}));var l=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:l}},Yc=function(e,t){var n=function(e){return $.from(e.attr(Dc())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Z(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Rc=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return Ee(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Nc=0,Hc=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Nc++,e+"_"+r+Nc+String(n)},zc=function(e,t){Z(t,(function(t){wc(e,t)}))},jc=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(yn.fromDom(r))},Bc=function(e){return Q(e,yn.fromDom)},Vc=function(e){return e.dom.innerHTML},$c=function(e,t){var n=Wn(e),r=n.dom,i=yn.fromDom(r.createDocumentFragment()),o=jc(t,r);Mr(i,o),Sr(e),xr(e,i)},Uc=function(e,t){return yn.fromDom(e.dom.cloneNode(t))},Wc=function(e){return Uc(e,!1)},qc=function(e){return Uc(e,!0)},Gc=function(e,t,n){void 0===n&&(n=N);var r=new zo(e,t),i=function(e){var t;do{t=r[e]()}while(t&&!Zr(t)&&!n(t));return $.from(t).filter(Zr)};return{current:function(){return $.from(r.current()).filter(Zr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Kc=function(e,t){var n=t||function(t){return e.isBlock(t)||ri(t)||ai(t)},r=function(e,t,n,i){if(Zr(e)){var o=i(e,t,e.data);if(-1!==o)return $.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))},i=function(e,t,i,o){var a=Gc(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},o=function(e,t,i,o){var a=Gc(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Jc=Math.round,Xc=function(e){return e?{left:Jc(e.left),top:Jc(e.top),bottom:Jc(e.bottom),right:Jc(e.right),width:Jc(e.width),height:Jc(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Qc=function(e,t){return e=Xc(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Zc=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ed=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},td=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ed(t.top-e.bottom,e,t)},nd=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ed(t.bottom-e.top,e,t)},rd=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},id=function(e,t,n){return Math.min(Math.max(e,t),n)},od=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},ad=function(e,t){if(Vr(e)&&e.hasChildNodes()){var n=e.childNodes,r=id(t,0,n.length-1);return n[r]}return e},sd=function(e,t){return t<0&&Vr(e)&&e.hasChildNodes()?void 0:ad(e,t)},ud=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),ld=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&ud.test(e)},cd=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},dd=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},fd=Vr,hd=Ha,pd=Ur("display","block table"),md=Ur("float","left right"),gd=dd(fd,hd,F(md)),vd=F(Ur("white-space","pre pre-line pre-wrap")),_d=Zr,bd=ri,yd=jl.nodeIndex,xd=sd,wd=function(e){return"createRange"in e?e.createRange():jl.DOM.createRng()},kd=function(e){return e&&/[\r\n\t ]/.test(e)},Md=function(e){return!!e.setStart&&!!e.setEnd},Sd=function(e){var t=e.startContainer,n=e.startOffset;if(kd(e.toString())&&vd(t.parentNode)&&Zr(t)){var r=t.data;if(kd(r[n-1])||kd(r[n+1]))return!0}return!1},Ld=function(e){var t=e.ownerDocument,n=wd(t),r=t.createTextNode(la),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Xc(n.getBoundingClientRect());return i.removeChild(r),o},Cd=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Zr(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),Dd(o)}return null},Td=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Dd=function(e){var t,n=e.getClientRects();return t=n.length>0?Xc(n[0]):Xc(e.getBoundingClientRect()),!Md(e)&&bd(e)&&Td(t)?Ld(e):Td(t)&&Md(e)?Cd(e):t},Od=function(e,t){var n=Qc(e,t);return n.width=1,n.right=n.left+1,n},Ed=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Zc(e,t[t.length-1])||t.push(e))},r=function(e,r){var i=wd(e.ownerDocument);if(r<e.data.length){if(ld(e.data[r]))return t;if(ld(e.data[r-1])&&(i.setStart(e,r),i.setEnd(e,r+1),!Sd(i)))return n(Od(Dd(i),!1)),t}r>0&&(i.setStart(e,r-1),i.setEnd(e,r),Sd(i)||n(Od(Dd(i),!1))),r<e.data.length&&(i.setStart(e,r),i.setEnd(e,r+1),Sd(i)||n(Od(Dd(i),!0)))},i=e.container(),o=e.offset();if(_d(i))return r(i,o),t;if(fd(i))if(e.isAtEnd()){var a=xd(i,o);_d(a)&&r(a,a.data.length),gd(a)&&!bd(a)&&n(Od(Dd(a),!1))}else{a=xd(i,o);if(_d(a)&&r(a,0),gd(a)&&e.isAtEnd())return n(Od(Dd(a),!1)),t;var s=xd(e.container(),e.offset()-1);gd(s)&&!bd(s)&&(pd(s)||pd(a)||!gd(a))&&n(Od(Dd(s),!1)),gd(a)&&n(Od(Dd(a),!0))}return t},Ad=function(e,t,n){var r=function(){return _d(e),0===t},i=function(){return _d(e)?t>=e.data.length:t>=e.childNodes.length},o=function(){var n=wd(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Ed(Ad(e,t))),n},s=function(){return a().length>0},u=function(n){return n&&e===n.container()&&t===n.offset()},l=function(n){return xd(e,n?t-1:t)};return{container:O(e),offset:O(t),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:u,getNode:l}};Ad.fromRangeStart=function(e){return Ad(e.startContainer,e.startOffset)},Ad.fromRangeEnd=function(e){return Ad(e.endContainer,e.endOffset)},Ad.after=function(e){return Ad(e.parentNode,yd(e)+1)},Ad.before=function(e){return Ad(e.parentNode,yd(e))},Ad.isAbove=function(e,t){return di(ge(t.getClientRects()),ve(e.getClientRects()),td).getOr(!1)},Ad.isBelow=function(e,t){return di(ve(t.getClientRects()),ge(e.getClientRects()),nd).getOr(!1)},Ad.isAtStart=function(e){return!!e&&e.isAtStart()},Ad.isAtEnd=function(e){return!!e&&e.isAtEnd()},Ad.isTextPosition=function(e){return!!e&&Zr(e.container())},Ad.isElementPosition=function(e){return!1===Ad.isTextPosition(e)};var Pd,Fd=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},Id=function(e,t,n){t.insertNode(n),Fd(e,n.previousSibling),Fd(e,n.nextSibling)},Yd=function(e,t,n){var r=$.from(n.firstChild),i=$.from(n.lastChild);t.insertNode(n),r.each((function(t){return Fd(e,t.previousSibling)})),i.each((function(t){return Fd(e,t.nextSibling)}))},Rd=function(e,t,n){ni(n)?Yd(e,t,n):Id(e,t,n)},Nd=Zr,Hd=Gr,zd=jl.nodeIndex,jd=function(e){var t=e.parentNode;return Hd(t)?jd(t):t},Bd=function(e){return e?je(e.childNodes,(function(e,t){return Hd(t)&&"BR"!==t.nodeName?e=e.concat(Bd(t)):e.push(t),e}),[]):[]},Vd=function(e,t){while(e=e.previousSibling){if(!Nd(e))break;t+=e.data.length}return t},$d=function(e){return function(t){return e===t}},Ud=function(e){var t,n;t=Bd(jd(e)),n=Be(t,$d(e),e),t=t.slice(0,n+1);var r=je(t,(function(e,n,r){return Nd(n)&&Nd(t[r-1])&&e++,e}),0);return t=He(t,$r([e.nodeName])),n=Be(t,$d(e),e),n-r},Wd=function(e){var t;return t=Nd(e)?"text()":e.nodeName.toLowerCase(),t+"["+Ud(e)+"]"},qd=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Gd=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),Nd(n)?i=Vd(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(Wd(n)),a=qd(e,n),a=He(a,F(Gr)),s=s.concat(Ne(a,(function(e){return Wd(e)}))),s.reverse().join("/")+","+i},Kd=function(e,t,n){var r=Bd(e);return r=He(r,(function(e,t){return!Nd(e)||!Nd(r[t-1])})),r=He(r,$r([t])),r[n]},Jd=function(e,t){var n,r=e,i=0;while(Nd(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!Nd(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return Nd(e)&&t>e.data.length&&(t=e.data.length),Ad(e,t)},Xd=function(e,t){var n;if(!t)return null;var r=t.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=je(i,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Kd(e,n[1],parseInt(n[2],10))):null}),e);return o?Nd(o)?Jd(o,parseInt(n,10)):(n="after"===n?zd(o)+1:zd(o),Ad(o.parentNode,n)):null},Qd=ai,Zd=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Zr(r);r=r.previousSibling)i+=e(r.data).length;return i},ef=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],u=[],l=0,c=e.getRoot();for(Zr(a)?u.push(n?Zd(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(l=1,s=Math.max(0,o.length-1)),u.push(e.nodeIndex(o[s],n)+l));a&&a!==c;a=a.parentNode)u.push(e.nodeIndex(a,n));return u},tf=function(e,t,n,r){var i=t.dom,o={};return o.start=ef(i,e,n,r,!0),t.isCollapsed()||(o.end=ef(i,e,n,r,!1)),Oa(r)&&(o.isFakeCaret=!0),o},nf=function(e,t,n){var r=0;return pn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},rf=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],Vr(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},of=function(e){return rf(e,!0),rf(e,!1),e},af=function(e,t){var n;if(Vr(e)&&(e=ad(e,t),Qd(e)))return e;if(ba(e)){if(Zr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Qd(n))return n;if(n=e.nextSibling,Qd(n))return n}},sf=function(e){return af(e.startContainer,e.startOffset)||af(e.endContainer,e.endOffset)},uf=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Qd(r)||"IMG"===i)return{name:i,index:nf(n.dom,i,r)};var a=sf(o);return a?(i=a.tagName,{name:i,index:nf(n.dom,i,a)}):tf(e,n,t,o)},lf=function(e){var t=e.getRng();return{start:Gd(e.dom.getRoot(),Ad.fromRangeStart(t)),end:Gd(e.dom.getRoot(),Ad.fromRangeEnd(t))}},cf=function(e){return{rng:e.getRng()}},df=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},ff=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:nf(n,s,a)};var u=of(r.cloneRange());if(!o){u.collapse(!1);var l=df(n,i+"_end",t);Rd(n,u,l)}r=of(r),r.collapse(!0);var c=df(n,i+"_start",t);return Rd(n,r,c),e.moveToBookmark({id:i,keep:!0}),{id:i}},hf=function(e,t,n){return 2===t?uf(pa,n,e):3===t?lf(e):t?cf(e):ff(e,!1)},pf=P(uf,E,!0),mf=jl.DOM,gf="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vf=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return Ee(i,e.id).getOr(n)}return r},_f=function(e){return e.getParam("iframe_attrs",{})},bf=function(e){return e.getParam("doctype","<!DOCTYPE html>")},yf=function(e){return e.getParam("document_base_url","")},xf=function(e){return vf(e,"body_id","tinymce")},wf=function(e){return vf(e,"body_class","")},kf=function(e){return e.getParam("content_security_policy","")},Mf=function(e){return e.getParam("br_in_pre",!0)},Sf=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Lf=function(e){return e.getParam("forced_root_block_attrs",{})},Cf=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Tf=function(e){return e.getParam("no_newline_selector","")},Df=function(e){return e.getParam("keep_styles",!0)},Of=function(e){return e.getParam("end_container_on_empty_block",!1)},Ef=function(e){return pn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Af=function(e){return pn.explode(e.getParam("font_size_classes",""))},Pf=function(e){return e.getParam("images_dataimg_filter",H,"function")},Ff=function(e){return e.getParam("automatic_uploads",!0,"boolean")},If=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Yf=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Rf=function(e){return e.getParam("icons","","string")},Nf=function(e){return e.getParam("icons_url","","string")},Hf=function(e){return e.getParam("images_upload_url","","string")},zf=function(e){return e.getParam("images_upload_base_path","","string")},jf=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Bf=function(e){return e.getParam("images_upload_handler",null,"function")},Vf=function(e){return e.getParam("content_css_cors",!1,"boolean")},$f=function(e){return e.getParam("referrer_policy","","string")},Uf=function(e){return e.getParam("language","en","string")},Wf=function(e){return e.getParam("language_url","","string")},qf=function(e){return e.getParam("indent_use_margin",!1)},Gf=function(e){return e.getParam("indentation","40px","string")},Kf=function(e){var t=e.getParam("content_css");return v(t)?Q(t.split(","),dt):b(t)?t:!1===t||e.inline?[]:["default"]},Jf=function(e){var t=e.getParam("font_css",[]);return b(t)?t:Q(t.split(","),dt)},Xf=function(e){return e.getParam("directionality",lc.isRtl()?"rtl":void 0)},Qf=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Zf=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},eh=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},th=function(e){return e.getParam("placeholder",mf.getAttrib(e.getElement(),"placeholder"),"string")},nh=function(e){return e.getParam("event_root")},rh=function(e){return e.getParam("service_message")},ih=function(e){return e.getParam("theme")},oh=function(e){return e.getParam("validate")},ah=function(e){return!1!==e.getParam("inline_boundaries")},sh=function(e){return e.getParam("formats")},uh=function(e){var t=e.getParam("preview_styles",gf);return v(t)?t:""},lh=function(e){return e.getParam("format_empty_lines",!1,"boolean")},ch=function(e){return e.getParam("custom_ui_selector","","string")},dh=function(e){return e.getParam("theme_url")},fh=function(e){return e.getParam("inline")},hh=function(e){return e.getParam("hidden_input")},ph=function(e){return e.getParam("submit_patch")},mh=function(e){return"xml"===e.getParam("encoding")},gh=function(e){return e.getParam("add_form_submit_trigger")},vh=function(e){return e.getParam("add_unload_trigger")},_h=function(e){return""!==Sf(e)},bh=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},yh=function(e){return e.getParam("disable_nodechange")},xh=function(e){return e.getParam("readonly")},wh=function(e){return e.getParam("content_css_cors")},kh=function(e){return e.getParam("plugins","","string")},Mh=function(e){return e.getParam("external_plugins")},Sh=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Lh=function(e){return e.getParam("visual",!0,"boolean")},Ch=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Th=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Dh=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Oh=Vr,Eh=Zr,Ah=function(e){var t=e.parentNode;t&&t.removeChild(e)},Ph=function(e){var t=pa(e);return{count:e.length-t.length,text:t}},Fh=function(e){var t;while(-1!==(t=e.data.lastIndexOf(fa)))e.deleteData(t,1)},Ih=function(e,t){return jh(e),t},Yh=function(e,t){var n=Ph(e.data.substr(0,t.offset())),r=Ph(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Fh(e),Ad(e,t.offset()-n.count)):t},Rh=function(e,t){var n=t.container(),r=K(_e(n.childNodes),e).map((function(e){return e<t.offset()?Ad(n,t.offset()-1):t})).getOr(t);return jh(e),r},Nh=function(e,t){return Eh(e)&&t.container()===e?Yh(e,t):Ih(e,t)},Hh=function(e,t){return t.container()===e.parentNode?Rh(e,t):Ih(e,t)},zh=function(e,t){return Ad.isTextPosition(t)?Nh(e,t):Hh(e,t)},jh=function(e){Oh(e)&&ba(e)&&(ya(e)?e.removeAttribute("data-mce-caret"):Ah(e)),Eh(e)&&(Fh(e),0===e.data.length&&Ah(e))},Bh=Ut().browser,Vh=ai,$h=ui,Uh=si,Wh="*[contentEditable=false],video,audio,embed,object",qh=function(e,t,n){var r,i,o=Qc(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,i=e.scrollTop||a.scrollTop}else{var s=e.getBoundingClientRect();r=e.scrollLeft-s.left,i=e.scrollTop-s.top}o.left+=r,o.right+=r,o.top+=i,o.bottom+=i,o.width=1;var u=t.offsetWidth-t.clientWidth;return u>0&&(n&&(u*=-1),o.left+=u,o.right+=u),o},Gh=function(e){for(var t=Cc(yn.fromDom(e),Wh),n=0;n<t.length;n++){var r=t[n].dom,i=r.previousSibling;if(Ca(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,La(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Kh=function(e,t,n,r){var i,o,a=fc(),s=Sf(e),u=s.length>0?s:"p",l=function(e,r){var i;if(c(),Uh(r))return null;if(!n(r))return o=xa(r,e),i=r.ownerDocument.createRange(),Xh(o.nextSibling)?(i.setStart(o,0),i.setEnd(o,0)):(i.setStart(o,1),i.setEnd(o,1)),i;o=Sa(u,r,e);var s=qh(t,r,e);Pl(o).css("top",s.top);var l=Pl('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css($e({},s)).appendTo(t)[0];return a.set({caret:l,element:r,before:e}),e&&Pl(l).addClass("mce-visual-caret-before"),d(),i=r.ownerDocument.createRange(),i.setStart(o,0),i.setEnd(o,0),i},c=function(){Gh(t),o&&(jh(o),o=null),a.on((function(e){Pl(e.caret).remove(),a.clear()})),i&&(Yo.clearInterval(i),i=void 0)},d=function(){i=Yo.setInterval((function(){r()?Pl("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Pl("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},f=function(){a.on((function(e){var n=qh(t,e.element,e.before);Pl(e.caret).css($e({},n))}))},h=function(){return Yo.clearInterval(i)},p=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:l,hide:c,getCss:p,reposition:f,destroy:h}},Jh=function(){return Bh.isIE()||Bh.isEdge()||Bh.isFirefox()},Xh=function(e){return Vh(e)||$h(e)},Qh=function(e){return Xh(e)||Jr(e)&&Jh()},Zh=ai,ep=ui,tp=Ur("display","block table table-cell table-caption list-item"),np=ba,rp=va,ip=Vr,op=Ha,ap=function(e){return e>0},sp=function(e){return e<0},up=function(e,t){var n;while(n=e(t))if(!rp(n))return n;return null},lp=function(e,t,n,r,i){var o=new zo(e,r),a=Zh(e)||rp(e);if(sp(t)){if(a&&(e=up(o.prev.bind(o),!0),n(e)))return e;while(e=up(o.prev.bind(o),i))if(n(e))return e}if(ap(t)){if(a&&(e=up(o.next.bind(o),!0),n(e)))return e;while(e=up(o.next.bind(o),i))if(n(e))return e}return null},cp=function(e,t){while(e&&e!==t){if(tp(e))return e;e=e.parentNode}return null},dp=function(e,t,n){return cp(e.container(),n)===cp(t.container(),n)},fp=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return ip(n)?n.childNodes[r+e]:null},hp=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},pp=function(e,t,n){return cp(t,e)===cp(n,e)},mp=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var i=n[r];if(np(i)&&(i=i[r]),Zh(i)||ep(i)){if(pp(t,i,n))return i;break}if(op(i))break;n=n.parentNode}return null},gp=P(hp,!0),vp=P(hp,!1),_p=function(e,t,n){var r,i=P(mp,!0,t),o=P(mp,!1,t),a=n.startContainer,s=n.startOffset;if(va(a)){ip(a)||(a=a.parentNode);var u=a.getAttribute("data-mce-caret");if("before"===u&&(r=a.nextSibling,Qh(r)))return gp(r);if("after"===u&&(r=a.previousSibling,Qh(r)))return vp(r)}if(!n.collapsed)return n;if(Zr(a)){if(np(a)){if(1===e){if(r=o(a),r)return gp(r);if(r=i(a),r)return vp(r)}if(-1===e){if(r=i(a),r)return vp(r);if(r=o(a),r)return gp(r)}return n}if(Ca(a)&&s>=a.data.length-1)return 1===e&&(r=o(a),r)?gp(r):n;if(La(a)&&s<=1)return-1===e&&(r=i(a),r)?vp(r):n;if(s===a.data.length)return r=o(a),r?gp(r):n;if(0===s)return r=i(a),r?vp(r):n}return n},bp=function(e,t){return $.from(fp(e?0:-1,t)).filter(Zh)},yp=function(e,t,n){var r=_p(e,t,n);return-1===e?Ad.fromRangeStart(r):Ad.fromRangeEnd(r)},xp=function(e){return $.from(e.getNode()).map(yn.fromDom)},wp=function(e){return $.from(e.getNode(!0)).map(yn.fromDom)},kp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Mp=function(e,t){var n=dp(e,t);return!(n||!ri(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Pd||(Pd={}));var Sp=ai,Lp=Zr,Cp=Vr,Tp=ri,Dp=Ha,Op=$a,Ep=Ua,Ap=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Pp=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Fp=function(e,t){if(ap(e)){if(Dp(t.previousSibling)&&!Lp(t.previousSibling))return Ad.before(t);if(Lp(t))return Ad(t,0)}if(sp(e)){if(Dp(t.nextSibling)&&!Lp(t.nextSibling))return Ad.after(t);if(Lp(t))return Ad(t,t.data.length)}return sp(e)?Tp(t)?Ad.before(t):Ad.after(t):Ad.before(t)},Ip=function(e,t){var n=t.nextSibling;return n&&Dp(n)?Lp(n)?Ad(n,0):Ad.before(n):Yp(Pd.Forwards,Ad.after(t),e)},Yp=function(e,t,n){var r,i,o,a;if(!Cp(n)||!t)return null;if(t.isEqual(Ad.after(n))&&n.lastChild){if(a=Ad.after(n.lastChild),sp(e)&&Dp(n.lastChild)&&Cp(n.lastChild))return Tp(n.lastChild)?Ad.before(n.lastChild):a}else a=t;var s=a.container(),u=a.offset();if(Lp(s)){if(sp(e)&&u>0)return Ad(s,--u);if(ap(e)&&u<s.length)return Ad(s,++u);r=s}else{if(sp(e)&&u>0&&(i=Pp(s,u-1),Dp(i)))return!Op(i)&&(o=lp(i,e,Ep,i),o)?Lp(o)?Ad(o,o.data.length):Ad.after(o):Lp(i)?Ad(i,i.data.length):Ad.before(i);if(ap(e)&&u<s.childNodes.length&&(i=Pp(s,u),Dp(i)))return Tp(i)?Ip(n,i):!Op(i)&&(o=lp(i,e,Ep,i),o)?Lp(o)?Ad(o,0):Ad.before(o):Lp(i)?Ad(i,0):Ad.after(i);r=i||a.getNode()}if((ap(e)&&a.isAtEnd()||sp(e)&&a.isAtStart())&&(r=lp(r,e,H,n,!0),Ep(r,n)))return Fp(e,r);i=lp(r,e,Ep,n);var l=Ve(ne(Ap(s,n),Sp));return!l||i&&l.contains(i)?i?Fp(e,i):null:(a=ap(e)?Ad.after(l):Ad.before(l),a)},Rp=function(e){return{next:function(t){return Yp(Pd.Forwards,t,e)},prev:function(t){return Yp(Pd.Backwards,t,e)}}},Np=function(e,t,n){var r=e?Ad.before(n):Ad.after(n);return Up(e,t,r)},Hp=function(e){return ri(e)?Ad.before(e):Ad.after(e)},zp=function(e){return Ad.isTextPosition(e)?0===e.offset():Ha(e.getNode())},jp=function(e){if(Ad.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ha(e.getNode(!0))},Bp=function(e,t){return!Ad.isTextPosition(e)&&!Ad.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Vp=function(e){return!Ad.isTextPosition(e)&&ri(e.getNode())},$p=function(e,t,n){return e?!Bp(t,n)&&!Vp(t)&&jp(t)&&zp(n):!Bp(n,t)&&zp(t)&&jp(n)},Up=function(e,t,n){var r=Rp(t);return $.from(e?r.next(n):r.prev(n))},Wp=function(e,t,n){return Up(e,t,n).bind((function(r){return dp(n,r,t)&&$p(e,n,r)?Up(e,t,r):$.some(r)}))},qp=function(e,t,n,r){return Wp(e,t,n).bind((function(n){return r(n)?qp(e,t,n,r):$.some(n)}))},Gp=function(e,t){var n=e?t.firstChild:t.lastChild;return Zr(n)?$.some(Ad(n,e?0:n.data.length)):n?Ha(n)?$.some(e?Ad.before(n):Hp(n)):Np(e,t,n):$.none()},Kp=P(Up,!0),Jp=P(Up,!1),Xp=P(Gp,!0),Qp=P(Gp,!1),Zp="_mce_caret",em=function(e){return Vr(e)&&e.id===Zp},tm=function(e,t){while(t&&t!==e){if(t.id===Zp)return t;t=t.parentNode}return null},nm=function(e){return v(e.start)},rm=function(e){return Ae(e,"rng")},im=function(e){return Ae(e,"id")},om=function(e){return Ae(e,"name")},am=function(e){return pn.isArray(e.start)},sm=function(e,t){return Vr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},um=function(e,t){var n,r=e.createRng();return n=Xd(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Xd(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},lm=function(e,t){var n=e.ownerDocument.createTextNode(fa);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},cm=function(e){return!1===e.hasChildNodes()},dm=function(e,t){return Qp(e).fold(N,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},fm=function(e,t,n){return!(!cm(t)||!tm(e,t))&&(lm(t,n),!0)},hm=function(e,t,n,r){var i,o,a,s,u=n[t?"start":"end"],l=e.getRoot();if(u){for(a=u[0],o=l,i=u.length-1;i>=1;i--){if(s=o.childNodes,fm(l,o,r))return!0;if(u[i]>s.length-1)return!!fm(l,o,r)||dm(o,r);o=s[u[i]]}3===o.nodeType&&(a=Math.min(u[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(u[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},pm=function(e){return Zr(e)&&e.data.length>0},mm=function(e,t,n){var r,i,o,a,s,u,l=e.get(n.id+"_"+t),c=n.keep;if(l){if(r=l.parentNode,"start"===t?(c?l.hasChildNodes()?(r=l.firstChild,i=1):pm(l.nextSibling)?(r=l.nextSibling,i=0):pm(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)+1):i=e.nodeIndex(l),s=r,u=i):(c?l.hasChildNodes()?(r=l.firstChild,i=1):pm(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)):i=e.nodeIndex(l),s=r,u=i),!c){a=l.previousSibling,o=l.nextSibling,pn.each(pn.grep(l.childNodes),(function(e){Zr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(l=e.get(n.id+"_"+t))e.remove(l,!0);a&&o&&a.nodeType===o.nodeType&&Zr(a)&&!en.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,u=i)}return $.some(Ad(s,u))}return $.none()},gm=function(e,t){var n=e.createRng();return hm(e,!0,t,n)&&hm(e,!1,t,n)?$.some(n):$.none()},vm=function(e,t){var n=mm(e,"start",t),r=mm(e,"end",t);return di(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(sm(e,t.container()),t.offset()),r.setEnd(sm(e,n.container()),n.offset()),r}))},_m=function(e,t){return $.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},bm=function(e,t){var n=e.dom;if(t){if(am(t))return gm(n,t);if(nm(t))return $.some(um(n,t));if(im(t))return vm(n,t);if(om(t))return _m(n,t);if(rm(t))return $.some(t.rng)}return $.none()},ym=function(e,t,n){return hf(e,t,n)},xm=function(e,t){bm(e,t).each((function(t){e.setRng(t)}))},wm=function(e){return Vr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},km=function(e){return function(t){return e===t}},Mm=km(la),Sm=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Lm=function(e){return!Sm(e)&&!Mm(e)},Cm=function(e){return!!e.nodeType},Tm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Dm=function(e,t,n){var r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!Tm(i.childNodes[r]))&&Vr(i)){var o=i.childNodes,a=void 0;r<o.length?(i=o[r],a=new zo(i,e.getParent(i,e.isBlock))):(i=o[o.length-1],a=new zo(i,e.getParent(i,e.isBlock)),a.next(!0));for(var s=a.current();s;s=a.next())if(Zr(s)&&!Pm(s))return n.setStart(s,0),void t.setRng(n)}},Om=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Vr(e)||!Pm(e))return e}},Em=function(e,t){return Cm(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Am=function(e,t,n){return e.schema.isValidChild(t,n)},Pm=function(e,t){if(void 0===t&&(t=!1),M(e)&&Zr(e)){var n=t?e.data.replace(/ /g," "):e.data;return qa(n)}return!1},Fm=function(e){return M(e)&&Zr(e)&&0===e.length},Im=function(e,t){return S(e)?e=e(t):M(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Ym=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Rm=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Nm=function(e,t,n){return Rm(e,e.getStyle(t,n),n)},Hm=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},zm=function(e,t,n){return e.getParents(t,n,e.getRoot())},jm=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return X(["styles","attributes"],(function(n){return Ee(e,n).exists((function(e){var n=b(e)?e:Oe(e);return X(n,t)}))}))};return X(e.formatter.get(t),n)},Bm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(e){return Te(e,(function(e,t){return X(r,(function(e){return e===t}))}))};return X(e.formatter.get(t),(function(t){var r=i(t);return X(e.formatter.get(n),(function(e){var t=i(e);return Fe(r,t)}))}))},Vm=function(e){return Pe(e,"block")},$m=function(e){return Pe(e,"selector")},Um=function(e){return Pe(e,"inline")},Wm=function(e){return $m(e)&&Um(e)&&li(Ee(e,"mixed"),!0)},qm=function(e){return $m(e)&&!1!==e.expand&&!Um(e)},Gm=wm,Km=zm,Jm=Pm,Xm=Em,Qm=function(e){return ri(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Zm=function(e,t){var n=t;while(n){if(Vr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},eg=function(e,t,n,r){for(var i=t.data,o=n;e?o>=0:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1},tg=function(e,t,n){return eg(e,t,n,(function(e){return Mm(e)||Sm(e)}))},ng=function(e,t,n){return eg(e,t,n,Lm)},rg=function(e,t,n,r,i,o){var a,s=e.getParent(n,e.isBlock)||t,u=function(t,n,r){var o=Kc(e),u=i?o.backwards:o.forwards;return $.from(u(t,n,(function(e,t){return Gm(e.parentNode)?-1:(a=e,r(i,e,t))}),s))},l=u(n,r,tg);return l.bind((function(e){return o?u(e.container,e.offset+(i?-1:0),ng):$.some(e)})).orThunk((function(){return a?$.some({container:a,offset:i?0:a.length}):$.none()}))},ig=function(e,t,n,r,i){Zr(r)&&mt(r.data)&&r[i]&&(r=r[i]);for(var o=Km(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var u=t[s];if((!M(u.collapsed)||u.collapsed===n.collapsed)&&($m(u)&&e.is(o[a],u.selector)))return o[a]}return r},og=function(e,t,n,r){var i=n,o=e.dom,a=o.getRoot(),s=t[0];if(Vm(s)&&(i=s.wrapper?null:o.getParent(n,s.block,a)),!i){var u=o.getParent(n,"LI,TD,TH");i=o.getParent(Zr(n)?n.parentNode:n,(function(t){return t!==a&&Xm(e,t)}),u)}if(i&&Vm(s)&&s.wrapper&&(i=Km(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],Ym(i,"br"))break}return i||n},ag=function(e,t,n,r){var i=n.parentNode;return!M(n[r])&&(!(i!==t&&!k(i)&&!e.isBlock(i))||ag(e,t,i,r))},sg=function(e,t,n,r,i){var o=n,a=i?"previousSibling":"nextSibling",s=e.getRoot();if(Zr(n)&&!Jm(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(o))return o;for(var u=o[a];u;u=u[a]){var l=Zr(u)&&!ag(e,s,u,a);if(!Gm(u)&&!Qm(u)&&!Jm(u,l))return o}if(o===s||o.parentNode===s){n=o;break}o=o.parentNode}return n},ug=function(e){return Gm(e.parentNode)||Gm(e)},lg=function(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,u=e.dom,l=n[0];if(Vr(i)&&i.hasChildNodes()&&(i=ad(i,o),Zr(i)&&(o=0)),Vr(a)&&a.hasChildNodes()&&(a=ad(a,t.collapsed?s:s-1),Zr(a)&&(s=a.nodeValue.length)),i=Zm(u,i),a=Zm(u,a),ug(i)&&(i=Gm(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Zr(i)&&(o=t.collapsed?i.length:0)),ug(a)&&(a=Gm(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(s=t.collapsed?0:a.length)),t.collapsed){var c=rg(u,e.getBody(),i,o,!0,r);c.each((function(e){var t=e.container,n=e.offset;i=t,o=n}));var d=rg(u,e.getBody(),a,s,!1,r);d.each((function(e){var t=e.container,n=e.offset;a=t,s=n}))}return(Um(l)||l.block_expand)&&(Um(l)&&Zr(i)&&0!==o||(i=sg(u,n,i,o,!0)),Um(l)&&Zr(a)&&s!==a.nodeValue.length||(a=sg(u,n,a,s,!1))),qm(l)&&(i=ig(u,n,t,i,"previousSibling"),a=ig(u,n,t,a,"nextSibling")),(Vm(l)||$m(l))&&(i=og(e,n,i,"previousSibling"),a=og(e,n,a,"nextSibling"),Vm(l)&&(u.isBlock(i)||(i=sg(u,n,i,o,!0)),u.isBlock(a)||(a=sg(u,n,a,s,!1)))),Vr(i)&&(o=u.nodeIndex(i),i=i.parentNode),Vr(a)&&(s=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},cg=function(e,t,n){var r=t.startOffset,i=ad(t.startContainer,r),o=t.endOffset,a=ad(t.endContainer,o-1),s=function(e){var t=e[0];Zr(t)&&t===i&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===o&&e.length>0&&n===a&&Zr(n)&&e.splice(e.length-1,1),e},u=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},l=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},c=function(e,t,r){for(var i=r?"nextSibling":"previousSibling",o=e,a=o.parentNode;o&&o!==t;o=a){a=o.parentNode;var l=u(o===e?o:o[i],i);l.length&&(r||l.reverse(),n(s(l)))}};if(i===a)return n(s([i]));var d=e.findCommonAncestor(i,a);if(e.isChildOf(i,a))return c(i,d,!0);if(e.isChildOf(a,i))return c(a,d);var f=l(i,d)||i,h=l(a,d)||a;c(i,f,!0);var p=u(f===i?f:f.nextSibling,"nextSibling",h===a?h.nextSibling:h);p.length&&n(s(p)),c(a,h)},dg=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},fg=function(e){return le(e,(function(e){var t=od(e);return t?[yn.fromDom(t)]:[]}))},hg=function(e){return dg(e).length>1},pg=function(e){return ne(fg(e),oa)},mg=function(e){return Cc(e,"td[data-mce-selected],th[data-mce-selected]")},gg=function(e,t){var n=mg(t);return n.length>0?n:pg(e)},vg=function(e){return gg(dg(e.selection.getSel()),yn.fromDom(e.getBody()))},_g=function(e,t){return Lo(e,"table",t)},bg=function(e){var t=e.startContainer,n=e.startOffset;return Zr(t)?0===n?$.some(yn.fromDom(t)):$.none():$.from(t.childNodes[n]).map(yn.fromDom)},yg=function(e){var t=e.endContainer,n=e.endOffset;return Zr(t)?n===t.data.length?$.some(yn.fromDom(t)):$.none():$.from(t.childNodes[n-1]).map(yn.fromDom)},xg=function(e){return or(e).fold(O([e]),(function(t){return[e].concat(xg(t))}))},wg=function(e){return ar(e).fold(O([e]),(function(t){return"br"===Rn(t)?Zn(t).map((function(t){return[e].concat(wg(t))})).getOr([]):[e].concat(wg(t))}))},kg=function(e,t){return di(bg(t),yg(t),(function(t,n){var r=ae(xg(e),P(Pn,t)),i=ae(wg(e),P(Pn,n));return r.isSome()&&i.isSome()})).getOr(!1)},Mg=function(e,t,n,r){var i=n,o=new zo(n,i),a=Te(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!J(["td","th","table"],t.toLowerCase())}));do{if(Zr(n)&&0!==pn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},Sg=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Lg=function(e,t){var n=vg(e);n.length>0?Z(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)},Cg=function(e,t,n){var r=ff(e,t);n(r),e.moveToBookmark(r)},Tg=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?$.from(t.dom.nodeValue):$.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Dg=Tg(Bn,"text"),Og=function(e){return Dg.get(e)},Eg=function(e){return Bn(e)&&Og(e)===fa},Ag=function(e,t,n,r){return Jn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||Eg(t)?"valid":Ac(t)?"existing":em(t.dom)?"caret":Am(e,n,r)&&Am(e,Rn(i),n)?"valid":"invalid-child"}))},Pg=function(e,t){var n=lg(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Fg=function(e,t,n,r){var i=t.uid,o=void 0===i?Hc("mce-annotation"):i,a=Ue(t,["uid"]),s=yn.fromTag("span",e);wc(s,Tc()),gi(s,""+Oc(),o),gi(s,""+Dc(),n);var u=r(o,a),l=u.attributes,c=void 0===l?{}:l,d=u.classes,f=void 0===d?[]:d;return vi(s,c),zc(s,f),s},Ig=function(e,t,n,r,i){var o=[],a=Fg(e.getDoc(),i,n,r),s=fc(),u=function(){s.clear()},l=function(){return s.get().getOrThunk((function(){var e=Wc(a);return o.push(e),s.set(e),e}))},c=function(e){Z(e,d)},d=function(t){var n=Ag(e,t,"span",Rn(t));switch(n){case"invalid-child":u();var r=rr(t);c(r),u();break;case"valid":var i=l();wr(t,i);break}},f=function(e){var t=Q(e,yn.fromDom);c(t)};return cg(e.dom,t,(function(e){u(),f(e)})),o},Yg=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection,o=i.getRng(),a=vg(e).length>0;if(o.collapsed&&!a&&Pg(e,o),i.getRng().collapsed&&!a){var s=Fg(e.getDoc(),r,t,n.decorate);$c(s,la),i.getRng().insertNode(s.dom),i.select(s.dom)}else Cg(i,!1,(function(){Lg(e,(function(i){Ig(e,i,t,n.decorate,r)}))}))}))},Rg=function(e){var t=Rc();Yc(e,t);var n=Ic(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Yg(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Ec(e,$.some(t)).each((function(e){var t=e.elements;Z(t,Cr)}))},getAll:function(t){var n=Fc(e,t);return ke(n,(function(e){return Q(e,(function(e){return e.dom}))}))}}},Ng=function(e){return{getBookmark:P(ym,e),moveToBookmark:P(xm,e)}};Ng.isBookmarkNode=wm;var Hg=function(e,t){while(t&&t!==e){if(oi(t)||ai(t))return t;t=t.parentNode}return null},zg=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Vr(r))return X(r.getClientRects(),(function(n){return rd(n,e,t)}))}return X(n.getClientRects(),(function(n){return rd(n,e,t)}))},jg=function(e,t){return e.fire("PreProcess",t)},Bg=function(e,t){return e.fire("PostProcess",t)},Vg=function(e){return e.fire("remove")},$g=function(e){return e.fire("detach")},Ug=function(e,t){return e.fire("SwitchMode",{mode:t})},Wg=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},qg=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Gg=function(e){return e.fire("PreInit")},Kg=function(e){return e.fire("PostRender")},Jg=function(e){return e.fire("Init")},Xg=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Qg=function(e,t,n){return e.fire(t,n)},Zg=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ai,rv=function(e,t){var n,r,i,o,a,s,u,l,c,d,f,h,p,m,g,v,_,b="data-mce-selected",y=t.dom,x=pn.each,w=t.getDoc(),k=document,S=Math.abs,L=Math.round,C=t.getBody(),T={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},O=function(e){return ui(e)||y.hasClass(e,"mce-preview-object")},E=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return D(e.target)&&!zg(n.clientX,n.clientY,t)}return D(e.target)&&!zg(e.clientX,e.clientY,t)},A=function(e){var n=e.target;E(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},P=function(e){return y.is(e,"figure.image")?[e.querySelector("img")]:y.hasClass(e,"mce-preview-object")&&M(e.firstElementChild)?[e,e.firstElementChild]:[e]},F=function(e){var n=Zf(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(y.hasClass(e,"mce-preview-object")?Dn(yn.fromDom(e.firstElementChild),n):Dn(yn.fromDom(e),n))))},I=function(e){return O(e)?y.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},Y=function(e,n,r){if(M(r)){var i=P(e);Z(i,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?y.setStyle(e,n,r):y.setAttrib(e,n,""+r)}))}},R=function(e,t,n){Y(e,"width",t),Y(e,"height",n)},N=function(e){var a,b,x,w,k;a=e.screenX-s,b=e.screenY-u,m=a*o[2]+d,g=b*o[3]+f,m=m<5?5:m,g=g<5?5:g,x=(D(n)||O(n))&&!1!==eh(t)?!tv.modifierPressed(e):tv.modifierPressed(e),x&&(S(a)>S(b)?(g=L(m*h),m=L(g/h)):(m=L(g/h),g=L(m*h))),R(r,m,g),w=o.startPos.x+a,k=o.startPos.y+b,w=w>0?w:0,k=k>0?k:0,y.setStyles(i,{left:w,top:k,display:"block"}),i.innerHTML=m+" &times; "+g,o[2]<0&&r.clientWidth<=m&&y.setStyle(r,"left",l+(d-m)),o[3]<0&&r.clientHeight<=g&&y.setStyle(r,"top",c+(f-g)),a=C.scrollWidth-v,b=C.scrollHeight-_,a+b!==0&&y.setStyles(i,{left:w-a,top:k-b}),p||(Wg(t,n,d,f,"corner-"+o.name),p=!0)},H=function(){var e=p;p=!1,e&&(Y(n,"width",m),Y(n,"height",g)),y.unbind(w,"mousemove",N),y.unbind(w,"mouseup",H),k!==w&&(y.unbind(k,"mousemove",N),y.unbind(k,"mouseup",H)),y.remove(r),y.remove(i),y.remove(a),z(n),e&&(qg(t,n,m,g,"corner-"+o.name),y.setAttrib(n,"style",y.getAttrib(n,"style"))),t.nodeChanged()},z=function(e){$();var l=y.getPos(e,C),c=l.x,p=l.y,M=e.getBoundingClientRect(),S=M.width||M.right-M.left,L=M.height||M.bottom-M.top;n!==e&&(j(),n=e,m=g=0);var D=t.fire("ObjectSelected",{target:e}),O=y.getAttrib(n,b,"1");F(e)&&!D.isDefaultPrevented()?x(T,(function(e,t){var l,m=function(l){var m=P(n)[0];s=l.screenX,u=l.screenY,d=m.clientWidth,f=m.clientHeight,h=f/d,o=e,o.name=t,o.startPos={x:S*e[0]+c,y:L*e[1]+p},v=C.scrollWidth,_=C.scrollHeight,a=y.add(C,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),y.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=I(n),y.addClass(r,"mce-clonedresizable"),y.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",y.setStyles(r,{left:c,top:p,margin:0}),R(r,S,L),r.removeAttribute(b),C.appendChild(r),y.bind(w,"mousemove",N),y.bind(w,"mouseup",H),k!==w&&(y.bind(k,"mousemove",N),y.bind(k,"mouseup",H)),i=y.add(C,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+f)};l=y.get("mceResizeHandle"+t),l&&y.remove(l),l=y.add(C,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(l.contentEditable=!1),y.bind(l,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=l,y.setStyles(l,{left:S*e[0]+c-l.offsetWidth/2,top:L*e[1]+p-l.offsetHeight/2})})):j(),y.getAttrib(n,b)||n.setAttribute(b,O)},j=function(){$(),n&&n.removeAttribute(b),we(T,(function(e,t){var n=y.get("mceResizeHandle"+t);n&&(y.unbind(n),y.remove(n))}))},B=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(x(y.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(b)})),i="mousedown"===n.type?n.target:e.getNode(),i=y.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,C)&&(U(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?z(i):j())},V=function(e){return nv(Hg(t.getBody(),e))},$=function(){we(T,(function(e){e.elm&&(y.unbind(e.elm),delete e.elm)}))},U=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(U(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||V(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Yo.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(V(e.target)||ui(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};y.bind(C,"mscontrolselect",e),t.on("remove",(function(){return y.unbind(C,"mscontrolselect",e)}))}var r=Yo.throttle((function(e){t.composing||B(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",j),t.on("contextmenu longpress",A,!0)})),t.on("remove",$);var W=function(){n=r=a=null};return{isResizable:F,showResizeRect:z,hideResizeRect:j,updateResizeRect:B,destroy:W}},iv=function(e){return oi(e)||ai(e)},ov=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=pn.toArray(o.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},sv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ai(ov(n,t,iv))?null:e},uv=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(o.caretRangeFromPoint)r=o.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return sv(r,n.body)}return r},lv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},cv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},dv=function(e,t,n){return null!==cv(e,t,n)},fv=function(e,t,n){return dv(e,t,(function(e){return e.nodeName===n}))},hv=function(e){return e&&"TABLE"===e.nodeName},pv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},mv=function(e,t){return ba(e)&&!1===dv(e,t,em)},gv=function(e,t,n){var r=new zo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ri(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},_v=function(e,t){while(t&&t!==e){if(ai(t))return!0;t=t.parentNode}return!1},bv=function(e,t,n,r,i){var o,a,s=e.getRoot(),u=e.schema.getNonEmptyElements(),l=e.getParent(i.parentNode,e.isBlock)||s;if(r&&ri(i)&&t&&e.isEmpty(l))return $.some(Ad(i.parentNode,e.nodeIndex(i)));var c=new zo(i,l);while(a=c[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||mv(a,s))return $.none();if(Zr(a)&&a.nodeValue.length>0)return!1===fv(a,s,"A")?$.some(Ad(a,r?a.nodeValue.length:0)):$.none();if(e.isBlock(a)||u[a.nodeName.toLowerCase()])return $.none();o=a}return n&&o?$.some(Ad(o,0)):$.none()},yv=function(e,t,n,r){var i,o,a,s,u=e.getRoot(),l=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var c=Vr(i)&&o===i.childNodes.length,d=e.schema.getNonEmptyElements();if(s=n,ba(i))return $.none();if(Vr(i)&&o>i.childNodes.length-1&&(s=!1),ti(i)&&(i=u,o=0),i===u){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(ba(a))return $.none();if(d[a.nodeName]||hv(a))return $.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Zr(i)&&c?i.data.length:0,!t&&i===u.lastChild&&hv(i))return $.none();if(_v(u,i)||ba(i))return $.none();if(i.hasChildNodes()&&!1===hv(i)){a=i;var f=new zo(i,u);do{if(ai(a)||ba(a)){l=!1;break}if(Zr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,l=!0;break}if(d[a.nodeName.toLowerCase()]&&!pv(a)){o=e.nodeIndex(a),i=a.parentNode,s||o++,l=!0;break}}while(a=s?f.next():f.prev())}}}return t&&(Zr(i)&&0===o&&bv(e,c,t,!0,i).each((function(e){i=e.container(),o=e.offset(),l=!0})),Vr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!ri(a)||vv(a,"A")||gv(e,a,!1)||gv(e,a,!0)||bv(e,c,t,!0,a).each((function(e){i=e.container(),o=e.offset(),l=!0})))),s&&!t&&Zr(i)&&o===i.nodeValue.length&&bv(e,c,t,!1,i).each((function(e){i=e.container(),o=e.offset(),l=!0})),l?$.some(Ad(i,o)):$.none()},xv=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=Ad.fromRangeStart(t);return yv(e,n,!0,r).each((function(e){n&&Ad.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||yv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),lv(t,r)?$.none():$.some(r)},wv=function(e,t){return e.splitText(t)},kv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Zr(t)?n>0&&n<t.nodeValue.length&&(r=wv(t,n),t=r.previousSibling,i>n?(i-=n,t=r=wv(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Zr(t)&&n>0&&n<t.nodeValue.length&&(t=wv(t,n),n=0),Zr(r)&&i>0&&i<r.nodeValue.length&&(r=wv(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},Mv=function(e){var t=function(t,n){return cg(e,t,n)},n=kv,r=function(t){return xv(e,t).fold(N,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};Mv.compareRanges=lv,Mv.getCaretRangeFromPoint=uv,Mv.getSelectedNode=od,Mv.getNode=ad;var Sv,Lv=function(e,t){var n=function(t,n){if(!L(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;pi(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Si(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return ie(t,(function(t,n){var r=Si(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Cv=Lv("height",(function(e){var t=e.dom;return Tr(e)?t.getBoundingClientRect().height:t.offsetHeight})),Tv=function(e){return Cv.get(e)},Dv=function(e,t){var n=e.view(t);return n.fold(O([]),(function(t){var n=e.owner(t),r=Dv(e,n);return[t].concat(r)}))},Ov=function(e,t){var n=t.owner(e);return Dv(t,n)},Ev=function(e){var t,n=e.dom===document?$.none():$.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(yn.fromDom)},Av=function(e){return qn(e)},Pv=Object.freeze({__proto__:null,view:Ev,owner:Av}),Fv=function(e){var t=yn.fromDom(document),n=Ir(t),r=Ov(e,Pv),i=Fr(e),o=re(r,(function(e,t){var n=Fr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Or(o.left+i.left+n.left,o.top+i.top+n.top)},Iv=function(e){return"textarea"===Rn(e)},Yv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Rv=function(e,t){e.fire("AfterScrollIntoView",t)},Nv=function(e,t){var n=rr(e);if(0===n.length||Iv(e))return{element:e,offset:t};if(t<n.length&&!Iv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Iv(r)?{element:e,offset:t}:"img"===Rn(r)?{element:r,offset:1}:Bn(r)?{element:r,offset:Og(r).length}:{element:r,offset:rr(r).length}},Hv=function(e,t){var n=Pr(e),r=Tv(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},zv=function(e,t){var n=Nv(e,t),r=yn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+fa+"</span>");return _r(n.element,r),Hv(r,(function(){return Lr(r)}))},jv=function(e){return Hv(yn.fromDom(e),C)},Bv=function(e,t,n,r){Wv(e,(function(i,o){return $v(e,t,n,r)}),n)},Vv=function(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!Yv(e,o)){var a=Ir(t).top;n(t,a,r,i),Rv(e,o)}},$v=function(e,t,n,r){var i=yn.fromDom(e.getBody()),o=yn.fromDom(e.getDoc());Di(i);var a=zv(yn.fromDom(n.startContainer),n.startOffset);Vv(e,o,t,a,r),a.cleanup()},Uv=function(e,t,n,r){var i=yn.fromDom(e.getDoc());Vv(e,i,n,jv(t),r)},Wv=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(yn.fromDom(r),yn.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},qv=function(e,t,n,r){var i=e.pos;if(n)Yr(i.left,i.top,r);else{var o=i.top-t+e.height;Yr(i.left,o,r)}},Gv=function(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,u=s-a>=n;if(a<t)qv(r,n,!1!==i,e);else if(a>o){var l=u?!1!==i:!0===i;qv(r,n,l,e)}else s>o&&!u&&qv(r,n,!0===i,e)},Kv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Gv(e,t,i,n,r)},Jv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Gv(e,t,i,n,r);var o=Fv(n.element),a=zr(window);o.top<a.y?Rr(n.element,!1!==r):o.top>a.bottom&&Rr(n.element,!0===r)},Xv=function(e,t,n){return Bv(e,Kv,t,n)},Qv=function(e,t,n){return Uv(e,t,Kv,n)},Zv=function(e,t,n){return Bv(e,Jv,t,n)},e_=function(e,t,n){return Uv(e,t,Jv,n)},t_=function(e,t,n){var r=e.inline?Qv:e_;r(e,t,n)},n_=function(e,t,n){var r=e.inline?Xv:Zv;r(e,t,n)},r_=function(){return yn.fromDom(document)},i_=function(e){return e.dom.focus()},o_=function(e){var t=fr(e).dom;return e.dom===t.activeElement},a_=function(e){return void 0===e&&(e=r_()),$.from(e.dom.activeElement).map(yn.fromDom)},s_=function(e){return a_(fr(e)).filter((function(t){return e.dom.contains(t.dom)}))},u_=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},l_={create:u_},c_=Zi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),d_=function(e,t,n,r){return e.fold(t,n,r)},f_=function(e){return e.fold(E,E,E)},h_=c_.before,p_=c_.on,m_=c_.after,g_={before:h_,on:p_,after:m_,cata:d_,getStart:f_},v_=Zi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),__=function(e){return v_.exact(e.start,e.soffset,e.finish,e.foffset)},b_=function(e){return e.match({domRange:function(e){return yn.fromDom(e.startContainer)},relative:function(e,t){return g_.getStart(e)},exact:function(e,t,n,r){return e}})},y_=v_.domRange,x_=v_.relative,w_=v_.exact,k_=function(e){var t=b_(e);return Kn(t)},M_=l_.create,S_={domRange:y_,relative:x_,exact:w_,exactFromRange:__,getWin:k_,range:M_},L_=Ut().browser,C_=function(e,t){var n=Bn(t)?Og(t).length:rr(t).length+1;return e>n?n:e<0?0:e},T_=function(e){return S_.range(e.start,C_(e.soffset,e.start),e.finish,C_(e.foffset,e.finish))},D_=function(e,t){return!Br(t.dom)&&(Yn(e,t)||Pn(e,t))},O_=function(e){return function(t){return D_(e,t.start)&&D_(e,t.finish)}},E_=function(e){return!0===e.inline||L_.isIE()},A_=function(e){return S_.range(yn.fromDom(e.startContainer),e.startOffset,yn.fromDom(e.endContainer),e.endOffset)},P_=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?$.from(t.getRangeAt(0)):$.none();return n.map(A_)},F_=function(e){var t=Kn(e);return P_(t.dom).filter(O_(e))},I_=function(e,t){return $.from(t).filter(O_(e)).map(T_)},Y_=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),$.some(t)}catch(n){return $.none()}},R_=function(e){var t=E_(e)?F_(yn.fromDom(e.getBody())):$.none();e.bookmark=t.isSome()?t:e.bookmark},N_=function(e,t){var n=yn.fromDom(e.getBody()),r=E_(e)?$.from(t):$.none(),i=r.map(A_).filter(O_(n));e.bookmark=i.isSome()?i:e.bookmark},H_=function(e){var t=e.bookmark?e.bookmark:$.none();return t.bind((function(t){return I_(yn.fromDom(e.getBody()),t)})).bind(Y_)},z_=function(e){H_(e).each((function(t){return e.selection.setRng(t)}))},j_=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},B_={isEditorUIElement:j_},V_=function(e){return"nodechange"===e.type&&e.selectionChange},$_=function(e,t){var n=function(){t.throttle()};jl.DOM.bind(document,"mouseup",n),e.on("remove",(function(){jl.DOM.unbind(document,"mouseup",n)}))},U_=function(e){e.on("focusout",(function(){R_(e)}))},W_=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},q_=function(e,t){var n=Ut().browser;n.isIE()?U_(e):W_(e,t),e.on("keyup NodeChange",(function(t){V_(t)||R_(e)}))},G_=function(e){var t=hc((function(){R_(e)}),0);e.on("init",(function(){e.inline&&$_(e,t),q_(e,t)})),e.on("remove",(function(){t.cancel()}))},K_=jl.DOM,J_=function(e){return B_.isEditorUIElement(e)},X_=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Q_=function(e,t){var n=ch(e),r=K_.getParent(t,(function(t){return J_(t)||!!n&&e.dom.is(t,n)}));return null!==r},Z_=function(e){try{var t=fr(yn.fromDom(e.getElement()));return a_(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},eb=function(e,t){var n=t.editor;G_(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Yo.setEditorTimeout(n,(function(){var t=e.focusedEditor;Q_(n,Z_(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Sv||(Sv=function(t){var n=e.activeEditor;n&&gr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Q_(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},K_.bind(document,"focusin",Sv))},tb=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(K_.unbind(document,"focusin",Sv),Sv=null)},nb=function(e){e.on("AddEditor",P(eb,e)),e.on("RemoveEditor",P(tb,e))},rb=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},ib=function(e){return e.collapsed?$.from(ad(e.startContainer,e.startOffset)).map(yn.fromDom):$.none()},ob=function(e,t){return ib(t).bind((function(t){return ia(t)?$.some(t):!1===Yn(e,t)?$.some(e):$.none()}))},ab=function(e,t){ob(yn.fromDom(e.getBody()),t).bind((function(e){return Xp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},sb=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},ub=function(e){return o_(e)||s_(e).isSome()},lb=function(e){return e.iframeElement&&o_(yn.fromDom(e.iframeElement))},cb=function(e){var t=e.getBody();return t&&ub(yn.fromDom(t))},db=function(e){var t=fr(yn.fromDom(e.getElement()));return a_(t).filter((function(t){return!X_(t.dom)&&Q_(e,t.dom)})).isSome()},fb=function(e){return e.inline?cb(e):lb(e)},hb=function(e){return fb(e)||db(e)},pb=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===fb(e)&&H_(e).each((function(t){e.selection.setRng(t),r=t}));var i=rb(e,t.getNode());if(e.$.contains(n,i))return sb(i),ab(e,r),void mb(e);e.inline||(en.opera||sb(n),e.getWin().focus()),(en.gecko||e.inline)&&(sb(n),ab(e,r)),mb(e)},mb=function(e){return e.editorManager.setActive(e)},gb=function(e,t){e.removed||(t?mb(e):pb(e))},vb=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return $.from(o).map(yn.fromDom).map((function(e){return r&&t.collapsed?e:ir(e,i(e,a)).getOr(e)})).bind((function(e){return jn(e)?$.some(e):Jn(e).filter(jn)})).map((function(e){return e.dom})).getOr(e)},_b=function(e,t,n){return vb(e,t,!0,n,(function(e,t){return Math.min(sr(e),t)}))},bb=function(e,t,n){return vb(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},yb=function(e,t){var n=e;while(e&&Zr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},xb=function(e,t){var n,r,i;if(!t)return e;r=t.startContainer,i=t.endContainer;var o=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?yb(r.nextSibling,!0):r.parentNode,i=0===a?yb(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},wb=function(e,t,n,r){var i,o=[],a=e.getRoot();if(n=e.getParent(n||_b(a,t,t.collapsed),e.isBlock),r=e.getParent(r||bb(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new zo(n,a);while((i=s.next())&&i!==r)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},kb=function(e,t,n){return $.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(Mg(e,i,t,!0),Mg(e,i,t,!1)),i}))},Mb=function(e,t){return Q(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Sb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Lb=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},Cb=function(e){if(!qa(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Tb=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Db=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Sb[t]||1);return n&&we(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&we(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Lb(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Lb(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(Tb(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;if(Tb(i))return!1}if(8===i.type)return!1;if(3===i.type&&!Cb(i))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&qa(i.value))return!1;if(n&&n(i))return!1}while(i=Lb(i,r));return!0},e.prototype.walk=function(e){return Lb(this,null,e)},e}(),Ob=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=Hc("img"),a=0,s=0;while(t=n.exec(e)){var u=t[0],l=o+"_"+s++;i[l]=u,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(l),a=t.index+u.length}var c=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:c}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:c})},Eb=function(e,t){return e.replace(t.re,(function(e){return Ee(t.uris,e).getOr(e)}))},Ab=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?$.some({type:t[1],data:decodeURIComponent(t[2])}):$.none()},Pb=pn.each,Fb=pn.trim,Ib="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Yb={ftp:21,http:80,https:443,mailto:25},Rb=["img","video"],Nb=function(e,t){return M(e)?!e:!M(t)||!J(Rb,t)},Hb=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?Nb(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},zb=function(){function e(t,n){t=Fb(t),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var o=0===t.indexOf("//");if(0!==t.indexOf("/")||o||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(a,t);else{var s=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}t=t.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);Pb(Ib,(function(e,t){var n=u[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Ts.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(i){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!Hb(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Yb[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},e.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),u=t.split("/");for(Pb(s,(function(e){e&&o.push(e)})),s=o,n=u.length-1,o=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?i>0?i--:o.push(u[n]):i++);return n=s.length-i,r=n<=0?de(o).join("/"):s.slice(0,n).join("/")+"/"+de(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),jb=pn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),Bb=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Vb=qe((function(){return document.implementation.createHTMLDocument("parser")})),$b=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;while(0!==a){r.lastIndex=s;while(1){var u=r.exec(t);if(null===u)return s;if("!"===u[1]){s=lt(u[2],"--")?Wb(t,!1,u.index+"!--".length):Wb(t,!0,u.index+1);break}i.lastIndex=r.lastIndex;var l=i.exec(t);if(!y(l)&&l.index===r.lastIndex){"/"===u[1]?a-=1:Ae(o,u[2])||(a+=1),s=r.lastIndex+l[0].length;break}}}return s},Ub=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},Wb=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&Ub(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(e);return s?s.index+s[0].length:r.length},qb=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},Gb=function(e,t){void 0===t&&(t=js()),e=e||{};var n=Vb(),r=n.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:C,o=e.cdata?e.cdata:C,a=e.text?e.text:C,s=e.start?e.start:C,u=e.end?e.end:C,l=e.pi?e.pi:C,c=e.doctype?e.doctype:C,d=function(d,f){void 0===f&&(f="html");var h,p,m,g,v,_,b,y,x,w,k,M,S,L,C,T,D,O,E,A,P=d.html,F=0,I=[],Y=0,R=Ts.decode,N=pn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),H="html"===f?0:1,z=function(e){var t,n;t=I.length;while(t--)if(I[t].name===e)break;if(t>=0){for(n=I.length-1;n>=t;n--)e=I[n],e.valid&&u(e.name);I.length=t}},j=function(e,t){return a(Eb(e,d),t)},B=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Eb(t,d)))},V=function(e){return Eb(e,d)},$=function(e,t){var n=e||"",r=!lt(n,"--"),i=Wb(P,r,t);return e=P.substr(t,i-t),B(r?n+e:e),i+1},U=function(t,i,o,a,s){if(i=i.toLowerCase(),o=V(i in J?i:R(o||a||s||"")),X&&!y&&!1===Bb(i)){var u=L[i];if(!u&&C){var l=C.length;while(l--)if(u=C[l],u.pattern.test(i))break;-1===l&&(u=null)}if(!u)return;if(u.validValues&&!(o in u.validValues))return}var c="name"===i||"id"===i;c&&t in jb&&(o in n||o in r)||N[i]&&!zb.isDomSafe(o,t,e)||y&&(i in N||0===i.indexOf("on"))||(g.map[i]=o,g.push({name:i,value:o}))},W=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),q=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,G=t.getShortEndedElements(),K=e.self_closing_elements||t.getSelfClosingElements(),J=t.getBoolAttrs(),X=e.validate,Q=e.remove_internals,Z=e.fix_self_closing,ee=t.getSpecialElements(),te=P+">";while(h=W.exec(te)){var ne=h[0];if(F<h.index&&j(R(P.substr(F,h.index-F))),p=h[7])p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),z(p);else if(p=h[8]){if(h.index+ne.length>P.length){j(R(P.substr(h.index))),F=h.index+ne.length;continue}p=p.toLowerCase(),":"===p.charAt(0)&&(p=p.substr(1)),x=p in G,Z&&K[p]&&I.length>0&&I[I.length-1].name===p&&z(p);var re=qb(q,h[9]);if(null!==re){if("all"===re){F=$b(t,P,W.lastIndex),W.lastIndex=F;continue}k=!1}if(!X||(w=t.getElementRule(p))){if(k=!0,X&&(L=w.attributes,C=w.attributePatterns),(S=h[9])?(y=-1!==S.indexOf("data-mce-type"),y&&Q&&(k=!1),g=[],g.map={},S.replace(q,(function(e,t,n,r,i){return U(p,t,n,r,i),""}))):(g=[],g.map={}),X&&!y){if(T=w.attributesRequired,D=w.attributesDefault,O=w.attributesForced,E=w.removeEmptyAttrs,E&&!g.length&&(k=!1),O){v=O.length;while(v--)M=O[v],b=M.name,A=M.value,"{$uid}"===A&&(A="mce_"+Y++),g.map[b]=A,g.push({name:b,value:A})}if(D){v=D.length;while(v--)M=D[v],b=M.name,b in g.map||(A=M.value,"{$uid}"===A&&(A="mce_"+Y++),g.map[b]=A,g.push({name:b,value:A}))}if(T){v=T.length;while(v--)if(T[v]in g.map)break;-1===v&&(k=!1)}if(M=g.map["data-mce-bogus"]){if("all"===M){F=$b(t,P,W.lastIndex),W.lastIndex=F;continue}k=!1}}k&&s(p,g,x)}else k=!1;if(m=ee[p]){m.lastIndex=F=h.index+ne.length,(h=m.exec(P))?(k&&(_=P.substr(F,h.index-F)),F=h.index+h[0].length):(_=P.substr(F),F=P.length),k&&(_.length>0&&j(_,!0),u(p)),W.lastIndex=F;continue}x||(S&&S.indexOf("/")===S.length-1?k&&u(p):I.push({name:p,valid:k}))}else if(p=h[1])B(p);else if(p=h[2]){var ie=1===H||e.preserve_cdata||I.length>0&&t.isValidChild(I[I.length-1].name,"#cdata");if(!ie){F=$("",h.index+2),W.lastIndex=F;continue}o(p)}else if(p=h[3])c(p);else{if((p=h[4])||"<!"===ne){F=$(p,h.index+ne.length),W.lastIndex=F;continue}if(p=h[5]){if(1!==H){F=$("?",h.index+2),W.lastIndex=F;continue}l(p,h[6])}}F=h.index+ne.length}for(F<P.length&&j(R(P.substr(F))),v=I.length-1;v>=0;v--)p=I[v],p.valid&&u(p.name)},f=function(e,t){void 0===t&&(t="html"),d(Ob(e),t)};return{parse:f}};Gb.findEndTag=$b;var Kb=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Jb=function(e,t){var n,r=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,i=e.schema,o=Kb(e.getTempAttrs(),t),a=i.getShortEndedElements();while(n=r.exec(o)){var s=r.lastIndex,u=n[0].length,l=void 0;l=a[n[1]]?s:Gb.findEndTag(i,o,s),o=o.substring(0,s-u)+o.substring(l),r.lastIndex=s-u}return pa(o)},Xb=Jb,Qb=function(e,t){var n=Sf(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Zb=function(e,t){return $e($e({},e),{format:t,get:!0,getInner:!0})},ey=function(e,t,n,r){var i,o=Zb(t,n),a=t.no_events?o:e.fire("BeforeGetContent",o);return i="raw"===a.format?pn.trim(Xb(e.serializer,r.innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":pa(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Qb(e,e.serializer.serialize(r,a)),J(["text","tree"],a.format)||aa(yn.fromDom(r))?a.content=i:a.content=pn.trim(i),a.no_events?a.content:e.fire("GetContent",a).content},ty=function(e,t,n){return $.from(e.getBody()).fold(O("tree"===t.format?new Db("body",11):""),(function(r){return ey(e,t,n,r)}))},ny=pn.each,ry=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return ny(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(Ae(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Ae(t,r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!wm(t)&&!wm(n)))};return{compare:t}},iy=pn.makeMap,oy=function(e){var t=[];e=e||{};var n=e.indent,r=iy(e.indent_before||""),i=iy(e.indent_after||""),o=Ts.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,u){var l,c,d,f;if(n&&r[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n")),t.push("<",e),s)for(l=0,c=s.length;l<c;l++)d=s[l],t.push(" ",d.name,'="',o(d.value,!0),'"');t[t.length]=!u||a?">":" />",u&&n&&i[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},ay=function(e,t){void 0===t&&(t=js());var n=oy(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,u=e.shortEnded,l=e.attributes;if(i&&l&&l.length>1){var c=[];c.map={};var d=t.getElementRule(e.name);if(d){for(var f=0,h=d.attributesOrder.length;f<h;f++){var p=d.attributesOrder[f];if(p in l.map){var m=l.map[p];c.map[p]=m,c.push({name:p,value:m})}}for(f=0,h=l.length;f<h;f++){p=l[f].name;if(!(p in c.map)){m=l.map[p];c.map[p]=m,c.push({name:p,value:m})}}l=c}}if(n.start(e.name,l,u),!u){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},sy=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Z(e,(function(e){sy.add(e)}))})();var uy=["font","text-decoration","text-emphasis"],ly=function(e,t){return ye(e.parseStyle(e.getAttrib(t,"style")))},cy=function(e){return sy.has(e)},dy=function(e,t){return ce(ly(e,t),(function(e){return!cy(e)}))},fy=function(e){return ne(e,(function(e){return X(uy,(function(t){return lt(e,t)}))}))},hy=function(e,t,n){var r=ly(e,t),i=ly(e,n),o=function(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return pt(i)&&pt(o)&&i!==o};return X(r,(function(e){var t=function(t){return X(t,(function(t){return t===e}))};if(!t(i)&&t(uy)){var n=fy(i);return X(n,o)}return o(e)}))},py=function(e,t,n){return $.from(n.container()).filter(Zr).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},my=P(py,!0,Sm),gy=P(py,!1,Sm),vy=function(e){var t=e.container();return Zr(t)&&(0===t.data.length||ha(t.data)&&Ng.isBookmarkNode(t.parentNode))},_y=function(e,t){return function(n){return $.from(fp(e?0:-1,n)).filter(t).isSome()}},by=function(e){return ii(e)&&"block"===Si(yn.fromDom(e),"display")},yy=function(e){return ai(e)&&!Kr(e)},xy=_y(!0,by),wy=_y(!1,by),ky=_y(!0,ui),My=_y(!1,ui),Sy=_y(!0,Jr),Ly=_y(!1,Jr),Cy=_y(!0,yy),Ty=_y(!1,yy),Dy=function(e){var t=[],n=e.dom;while(n)t.push(yn.fromDom(n)),n=n.lastChild;return t},Oy=function(e){var t=Cc(e,"br"),n=ne(Dy(e).slice(-1),ea);t.length===n.length&&Z(n,Lr)},Ey=function(e){Sr(e),xr(e,yn.fromHtml('<br data-mce-bogus="1">'))},Ay=function(e){ar(e).each((function(t){Zn(t).each((function(n){Xo(e)&&ea(t)&&Xo(n)&&Lr(t)}))}))},Py=function(e){return e.slice(0,-1)},Fy=function(e,t,n){return Yn(t,e)?Py(Xn(e,(function(e){return n(e)||Pn(e,t)}))):[]},Iy=function(e,t){return Fy(e,t,N)},Yy=function(e,t){return[e].concat(Iy(e,t))},Ry=function(e,t,n){return qp(e,t,n,vy)},Ny=function(e,t){return ae(Yy(yn.fromDom(t.container()),e),Xo)},Hy=function(e,t,n){return Ry(e,t.dom,n).forall((function(e){return Ny(t,n).fold((function(){return!1===dp(e,n,t.dom)}),(function(r){return!1===dp(e,n,t.dom)&&Yn(r,yn.fromDom(e.container()))}))}))},zy=function(e,t,n){return Ny(t,n).fold((function(){return Ry(e,t.dom,n).forall((function(e){return!1===dp(e,n,t.dom)}))}),(function(t){return Ry(e,t.dom,n).isNone()}))},jy=P(zy,!1),By=P(zy,!0),Vy=P(Hy,!1),$y=P(Hy,!0),Uy=function(e){return xp(e).exists(ea)},Wy=function(e,t,n){var r=ne(Yy(yn.fromDom(n.container()),t),Xo),i=ge(r).getOr(t);return Up(e,i.dom,n).filter(Uy)},qy=function(e,t){return xp(t).exists(ea)||Wy(!0,e,t).isSome()},Gy=function(e,t){return wp(t).exists(ea)||Wy(!1,e,t).isSome()},Ky=P(Wy,!1),Jy=P(Wy,!0),Xy=function(e){return Ad.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Qy=function(e,t){var n=ne(Yy(yn.fromDom(t.container()),e),Xo);return ge(n).getOr(e)},Zy=function(e,t){return Xy(t)?gy(t):gy(t)||Jp(Qy(e,t).dom,t).exists(gy)},ex=function(e,t){return Xy(t)?my(t):my(t)||Kp(Qy(e,t).dom,t).exists(my)},tx=function(e){return J(["pre","pre-wrap"],e)},nx=function(e){return xp(e).bind((function(e){return ko(e,jn)})).exists((function(e){return tx(Si(e,"white-space"))}))},rx=function(e,t){return Jp(e.dom,t).isNone()},ix=function(e,t){return Kp(e.dom,t).isNone()},ox=function(e,t){return rx(e,t)||ix(e,t)||jy(e,t)||By(e,t)||Gy(e,t)||qy(e,t)},ax=function(e,t){return!nx(t)&&(ox(e,t)||Zy(e,t)||ex(e,t))},sx=function(e,t){return!nx(t)&&(jy(e,t)||Vy(e,t)||Gy(e,t)||Zy(e,t))},ux=function(e){var t=e.container(),n=e.offset();return Zr(t)&&n<t.data.length?Ad(t,n+1):e},lx=function(e,t){return!nx(t)&&(By(e,t)||$y(e,t)||qy(e,t)||ex(e,t))},cx=function(e,t){return sx(e,t)||lx(e,ux(t))},dx=function(e,t){return Mm(e.charAt(t))},fx=function(e){var t=e.container();return Zr(t)&&ut(t.data,la)},hx=function(e){var t=e.split("");return Q(t,(function(e,n){return Mm(e)&&n>0&&n<t.length-1&&Lm(t[n-1])&&Lm(t[n+1])?" ":e})).join("")},px=function(e,t){var n=t.data,r=Ad(t,0);return!(!dx(n,0)||cx(e,r))&&(t.data=" "+n.slice(1),!0)},mx=function(e){var t=e.data,n=hx(t);return n!==t&&(e.data=n,!0)},gx=function(e,t){var n=t.data,r=Ad(t,n.length-1);return!(!dx(n,n.length-1)||cx(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},vx=function(e,t){return $.some(t).filter(fx).bind((function(t){var n=t.container(),r=px(e,n)||mx(n)||gx(e,n);return r?$.some(t):$.none()}))},_x=function(e){var t=yn.fromDom(e.getBody());e.selection.isCollapsed()&&vx(t,Ad.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},bx=function(e,t,n){var r=ie(e,(function(r,i){return Sm(i)||Mm(i)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+la}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},yx=function(e,t,n){if(0!==n){var r=yn.fromDom(e),i=wo(r,Xo).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&lx(i,Ad(e,e.data.length)),s=0===t&&sx(i,Ad(e,0));e.replaceData(t,n,bx(o,s,a))}},xx=function(e,t){var n=e.data.slice(t),r=n.length-ft(n).length;yx(e,t,r)},wx=function(e,t){var n=e.data.slice(0,t),r=n.length-ht(n).length;yx(e,t-r,r)},kx=function(e,t,n,r){void 0===r&&(r=!0);var i=ht(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Lr(yn.fromDom(a)),n&&xx(o,i),o},Mx=function(e,t){var n=e.container(),r=e.offset();return!1===Ad.isTextPosition(e)&&n===t.parentNode&&r>Ad.before(t).offset()},Sx=function(e,t){return Mx(t,e)?Ad(t.container(),t.offset()-1):t},Lx=function(e){return Zr(e)?Ad(e,0):Ad.before(e)},Cx=function(e){return Zr(e)?Ad(e,e.data.length):Ad.after(e)},Tx=function(e){return Ha(e.previousSibling)?$.some(Cx(e.previousSibling)):e.previousSibling?Qp(e.previousSibling):$.none()},Dx=function(e){return Ha(e.nextSibling)?$.some(Lx(e.nextSibling)):e.nextSibling?Xp(e.nextSibling):$.none()},Ox=function(e,t){var n=Ad.before(t.previousSibling?t.previousSibling:t.parentNode);return Jp(e,n).fold((function(){return Kp(e,Ad.after(t))}),$.some)},Ex=function(e,t){return Kp(e,Ad.after(t)).fold((function(){return Jp(e,Ad.before(t))}),$.some)},Ax=function(e,t){return Tx(t).orThunk((function(){return Dx(t)})).orThunk((function(){return Ox(e,t)}))},Px=function(e,t){return Dx(t).orThunk((function(){return Tx(t)})).orThunk((function(){return Ex(e,t)}))},Fx=function(e,t,n){return e?Px(t,n):Ax(t,n)},Ix=function(e,t,n){return Fx(e,t,n).map(P(Sx,n))},Yx=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Rx=function(e){return function(t){return t.dom===e}},Nx=function(e,t){return t&&Ae(e.schema.getBlockElements(),Rn(t))},Hx=function(e){if(ns(e)){var t=yn.fromHtml('<br data-mce-bogus="1">');return Sr(e),xr(e,t),$.some(Ad.before(t.dom))}return $.none()},zx=function(e,t,n){var r=Zn(e).filter(Bn),i=er(e).filter(Bn);return Lr(e),fi(r,i,t,(function(e,t,r){var i=e.dom,o=t.dom,a=i.data.length;return kx(i,o,n),r.container()===o?Ad(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return wx(e.dom,e.dom.length)})),i.each((function(e){return xx(e.dom,0)}))),t}))},jx=function(e,t){return Ae(e.schema.getTextInlineElements(),Rn(t))},Bx=function(e,t,n,r){void 0===r&&(r=!0);var i=Ix(t,e.getBody(),n.dom),o=wo(n,P(Nx,e),Rx(e.getBody())),a=zx(n,i,jx(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(Hx).fold((function(){r&&Yx(e,t,a)}),(function(n){r&&Yx(e,t,$.some(n))}))},Vx=function(e){return function(t){return Pn(e,t)}},$x=function(e){return Cc(e,"td,th")},Ux=function(e,t){var n=function(e){return _g(yn.fromDom(e),t)},r=n(e.startContainer),i=n(e.endContainer),o=r.isSome(),a=i.isSome(),s=di(r,i,Pn).getOr(!1),u=!s&&o&&a;return{startTable:r,endTable:i,isStartInTable:o,isEndInTable:a,isSameTable:s,isMultiTable:u}},Wx=function(e,t){return{start:e,end:t}},qx=function(e,t,n){return{rng:e,table:t,cells:n}},Gx=Zi.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Kx=function(e,t){return To(yn.fromDom(e),"td,th",t)},Jx=function(e){return!Pn(e.start,e.end)},Xx=function(e,t){return _g(e.start,t).bind((function(n){return _g(e.end,t).bind((function(e){return hi(Pn(n,e),n)}))}))},Qx=function(e,t){return!Jx(e)&&Xx(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},Zx=function(e,t){var n=Kx(e.startContainer,t),r=Kx(e.endContainer,t);return di(n,r,Wx)},ew=function(e){return function(t){return _g(t,e).bind((function(e){return ve($x(e)).map((function(e){return Wx(t,e)}))}))}},tw=function(e){return function(t){return _g(t,e).bind((function(e){return ge($x(e)).map((function(e){return Wx(e,t)}))}))}},nw=function(e){return function(t){return Xx(t,e).map((function(e){return qx(t,e,$x(e))}))}},rw=function(e,t,n,r){if(n.collapsed||!e.forall(Jx))return $.none();if(t.isSameTable){var i=e.bind(nw(r));return $.some({start:i,end:i})}var o=Kx(n.startContainer,r),a=Kx(n.endContainer,r),s=o.bind(ew(r)).bind(nw(r)),u=a.bind(tw(r)).bind(nw(r));return $.some({start:s,end:u})},iw=function(e,t){return se(e,(function(e){return Pn(e,t)}))},ow=function(e){return di(iw(e.cells,e.rng.start),iw(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},aw=function(e,t,n){return e.exists((function(e){return Qx(e,n)&&kg(e.start,t)}))},sw=function(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i},uw=function(e,t,n,r){return rw(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,i=ow(e).getOr([]);if(r&&e.cells.length===i.length)return $.some(Gx.fullTable(e.table));if(i.length>0){if(r)return $.some(Gx.partialTable(i,$.none()));var o=sw(n,t);return $.some(Gx.partialTable(i,$.some($e($e({},t),{rng:o}))))}return $.none()}))},lw=function(e,t,n,r){return rw(e,t,n,r).bind((function(e){var r=e.start,i=e.end,o=r.bind(ow).getOr([]),a=i.bind(ow).getOr([]);if(o.length>0&&a.length>0){var s=sw(n,t);return $.some(Gx.multiTable(o,a,s))}return $.none()}))},cw=function(e,t){var n=Vx(e),r=Zx(t,n),i=Ux(t,n);return aw(r,t,n)?r.map((function(e){return Gx.singleCellTable(t,e.start)})):i.isMultiTable?lw(r,i,t,n):uw(r,i,t,n)},dw=function(e){var t=zn(e)?Zn(e):ar(e);return t.bind(dw).orThunk((function(){return $.some(e)}))},fw=function(e){return Z(e,(function(e){xi(e,"contenteditable"),Ey(e)}))},hw=function(e,t){return $.from(e.dom.getParent(t,e.dom.isBlock)).map(yn.fromDom)},pw=function(e,t,n){n.each((function(n){t?Lr(n):(Ey(n),e.selection.setCursorLocation(n.dom,0))}))},mw=function(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),bw(e,i,t,!1)},gw=function(e){var t=vg(e),n=yn.fromDom(e.selection.getNode());si(n.dom)&&ns(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&X(t,(function(e){return Pn(e,n)}))&&gi(n,"data-mce-selected","1")},vw=function(e,t,n){var r=e.selection.getRng(),i=n.bind((function(n){var i=n.rng,o=n.isStartInTable,a=hw(e,o?i.endContainer:i.startContainer);i.deleteContents(),pw(e,o,a.filter(ns));var s=o?t[0]:t[t.length-1];return mw(e,s,r,o),ns(s)?$.none():$.some(o?t.slice(1):t.slice(0,-1))})).getOr(t);return fw(i),gw(e),!0},_w=function(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];mw(e,o,i,!0),mw(e,a,i,!1);var s=ns(o)?t:t.slice(1),u=ns(a)?n:n.slice(0,-1);return fw(s.concat(u)),r.deleteContents(),gw(e),!0},bw=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i=dw(n).getOr(n),o=yn.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));if(ns(o)&&(Ey(o),r&&e.selection.setCursorLocation(o.dom,0)),!Pn(n,o)){var a=li(Jn(o),n)?[]:Qn(o);Z(a.concat(rr(n)),(function(e){Pn(e,o)||Yn(e,o)||!ns(e)||Lr(e)}))}return!0},yw=function(e,t){return Bx(e,!1,t),!0},xw=function(e,t,n){return cw(t,n).map((function(t){return t.fold(P(bw,e),P(yw,e),P(vw,e),P(_w,e))}))},ww=function(e,t){return Tw(e,t)},kw=function(e,t,n,r){return Lw(t,r).fold((function(){return xw(e,t,n)}),(function(t){return ww(e,t)})).getOr(!1)},Mw=function(e,t,n){var r=yn.fromDom(e.getBody()),i=e.selection.getRng();return 0!==n.length?vw(e,n,$.none()):kw(e,r,i,t)},Sw=function(e,t){return ae(Yy(t,e),oa)},Lw=function(e,t){return ae(Yy(t,e),Un("caption"))},Cw=function(e,t,n,r,i){return Wp(n,e.getBody(),i).bind((function(e){return Sw(t,yn.fromDom(e.getNode())).map((function(e){return!1===Pn(e,r)}))}))},Tw=function(e,t){return Ey(t),e.selection.setCursorLocation(t.dom,0),$.some(!0)},Dw=function(e,t,n,r){return Xp(e.dom).bind((function(i){return Qp(e.dom).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},Ow=function(e,t){return Tw(e,t)},Ew=function(e,t,n){return Lw(e,yn.fromDom(n.getNode())).map((function(e){return!1===Pn(e,t)}))},Aw=function(e,t,n,r,i){return Wp(n,e.getBody(),i).bind((function(o){return Dw(r,n,i,o)?Ow(e,r):Ew(t,r,o)})).or($.some(!0))},Pw=function(e,t,n,r){var i=Ad.fromRangeStart(e.selection.getRng());return Sw(n,r).bind((function(r){return ns(r)?Tw(e,r):Cw(e,n,t,r,i)})).getOr(!1)},Fw=function(e,t,n,r){var i=Ad.fromRangeStart(e.selection.getRng());return ns(r)?Tw(e,r):Aw(e,n,t,r,i)},Iw=function(e,t){return e?Sy(t):Ly(t)},Yw=function(e,t){var n=Ad.fromRangeStart(e.selection.getRng());return Iw(t,n)||Up(t,e.getBody(),n).exists((function(e){return Iw(t,e)}))},Rw=function(e,t,n){var r=yn.fromDom(e.getBody());return Lw(r,n).fold((function(){return Pw(e,t,r,n)||Yw(e,t)}),(function(n){return Fw(e,t,r,n).getOr(!1)}))},Nw=function(e,t){var n=yn.fromDom(e.selection.getStart(!0)),r=vg(e);return e.selection.isCollapsed()&&0===r.length?Rw(e,t,n):Mw(e,n,r)},Hw=function(e,t,n,r){var i=document.createRange();return i.setStart(e,t),i.setEnd(n,r),i},zw=function(e){var t=Ad.fromRangeStart(e),n=Ad.fromRangeEnd(e),r=e.commonAncestorContainer;return Up(!1,r,n).map((function(i){return!dp(t,n,r)&&dp(t,i,r)?Hw(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},jw=function(e){return e.collapsed?e:zw(e)},Bw=function(e){return e.firstChild&&e.firstChild===e.lastChild},Vw=function(e){return"br"===e.name||e.value===la},$w=function(e,t){var n=e.getBlockElements();return n[t.name]&&Bw(t)&&Vw(t.firstChild)},Uw=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||$w(e,t))},Ww=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),Uw(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},qw=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},Gw=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return qw(i)},Kw=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},Jw=function(e){return e.data===la||ri(e)},Xw=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&Jw(e.firstChild)},Qw=function(e){return!e.firstChild||Xw(e)},Zw=function(e){return e.length>0&&Qw(e[e.length-1])?e.slice(0,-1):e},ek=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},tk=function(e,t){return!!ek(e,t)},nk=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},rk=function(e,t){var n=Ad.before(e),r=Rp(t),i=r.next(n);return i?i.toRange():null},ik=function(e,t){var n=Ad.after(e),r=Rp(t),i=r.prev(n);return i?i.toRange():null},ok=function(e,t,n,r){var i=nk(e,r),o=e.parentNode;return o.insertBefore(i[0],e),pn.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),ik(t[t.length-1],n)},ak=function(e,t,n){var r=e.parentNode;return pn.each(t,(function(t){r.insertBefore(t,e)})),rk(e,n)},sk=function(e,t,n,r){return r.insertAfter(t.reverse(),e),ik(t[0],n)},uk=function(e,t,n,r){var i=Gw(t,e,r),o=ek(t,n.startContainer),a=Zw(Kw(i.firstChild)),s=1,u=2,l=t.getRoot(),c=function(e){var r=Ad.fromRangeStart(n),i=Rp(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||ek(t,a.getNode())!==o};return c(s)?ak(o,a,l):c(u)?sk(o,a,l,t):ok(o,a,l,n)},lk=function(e,t,n){var r=yn.fromDom(e.getRoot());return n=sx(r,Ad.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=lx(r,Ad.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},ck=si,dk=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,ck);return n===r&&kg(yn.fromDom(n),t)}return!1},fk=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},hk=function(e,t){$.from(e.getParent(t,"td,th")).map(yn.fromDom).each(Ay)},pk=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=ry(r);pn.each(r.select("*[data-mce-fragment]"),(function(e){var t=M(n[e.nodeName.toLowerCase()]);if(t&&dy(r,e))for(var a=e.parentNode;M(a)&&a!==i;a=a.parentNode){var s=hy(r,e,a);if(s)break;if(o.compare(a,e)){r.remove(e,!0);break}}}))}},mk=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},gk=function(e){pn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},vk=function(e){return!!e.getAttribute("data-mce-fragment")},_k=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},bk=function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=Hg(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),void i.select(o);var a=r.createRng(),s=t.previousSibling;if(Zr(s)){if(a.setStart(s,s.nodeValue.length),!en.ie){var u=t.nextSibling;Zr(u)&&(s.appendData(u.data),u.parentNode.removeChild(u))}}else a.setStartBefore(t),a.setEndBefore(t);var l=function(t){var n=Ad.fromRangeStart(t),r=Rp(e.getBody());if(n=r.next(n),n)return n.toRange()},c=r.getParent(t,r.isBlock);r.remove(t),c&&r.isEmpty(c)&&(e.$(c).empty(),a.setStart(c,0),a.setEnd(c,0),ck(c)||vk(c)||!(n=l(a))?r.add(c,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(c))),i.setRng(a)}},yk=function(e){var t=e.dom,n=jw(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,ck);dk(t,n,r)?bw(e,n,yn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},xk=function(e,t,n){var r,i,o,a=e.selection,s=e.dom;/^ | $/.test(t)&&(t=lk(s,a.getRng(),t));var u=e.parser,l=n.merge,c=ay({validate:oh(e)},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',f=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(f.isDefaultPrevented())e.fire("SetContent",{content:f.content,format:"html",selection:!0,paste:n.paste});else{t=f.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),i=a.getRng();var h=i.startContainer||(i.parentElement?i.parentElement():null),p=e.getBody();h===p&&a.isCollapsed()&&s.isBlock(p.firstChild)&&_k(e,p.firstChild)&&s.isEmpty(p.firstChild)&&(i=s.createRng(),i.setStart(p.firstChild,0),i.setEnd(p.firstChild,0),a.setRng(i)),a.isCollapsed()||yk(e),r=a.getNode();var m={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},g=u.parse(t,m);if(!0===n.paste&&Ww(e.schema,g)&&tk(s,r))return i=uk(c,s,a.getRng(),g),a.setRng(i),void e.fire("SetContent",f);if(mk(g),o=g.lastChild,"mce_marker"===o.attr("id")){var v=o;for(o=o.prev;o;o=o.walk(!0))if(3===o.type||!s.isBlock(o.name)){e.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(v,o,"br"===o.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),m.invalid){e.selection.setContent(d),r=a.getNode();var _=e.getBody();9===r.nodeType?r=o=_:o=r;while(o!==_)r=o,o=o.parentNode;t=r===_?_.innerHTML:s.getOuterHTML(r),t=c.serialize(u.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return c.serialize(g)})))),r===_?s.setHTML(_,t):s.setOuterHTML(r,t)}else t=c.serialize(g),fk(e,t,r);pk(e,l),bk(e,s.get("mce_marker")),gk(e.getBody()),hk(s,a.getStart()),e.fire("SetContent",f),e.addVisual()}},wk=function(e,t){t(e),e.firstChild&&wk(e.firstChild,t),e.next&&wk(e.next,t)},kk=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&wk(n.firstChild,(function(n){Z(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Z(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)Ae(r,a)&&o.push(r[a]);for(var s in i)Ae(i,s)&&o.push(i[s]);return o},Mk=function(e,t,n){var r=kk(e,t,n);Z(r,(function(e){Z(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},Sk="html",Lk=function(e){return e instanceof Db},Ck=function(e){fb(e)&&Xp(e.getBody()).each((function(t){var n=t.getNode(),r=Jr(n)?Xp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},Tk=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&Ck(e)},Dk=function(e,t,n,r){if(0===n.length||/^\s+$/.test(n)){var i='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>");var o=Sf(e);o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,Lf(e),n)):n||(n='<br data-mce-bogus="1">'),Tk(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=ay({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(yn.fromDom(t))?n:pn.trim(n),Tk(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},Ok=function(e,t,n,r){Mk(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=ay({validate:e.validate},e.schema).serialize(n);return r.content=aa(yn.fromDom(t))?i:pn.trim(i),Tk(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},Ek=function(e,t){return $e($e({format:Sk},e),{set:!0,content:Lk(t)?"":t})},Ak=function(e,t,n){var r=Ek(n,t),i=n.no_events?r:e.fire("BeforeSetContent",r);return Lk(t)||(t=i.content),$.from(e.getBody()).fold(O(t),(function(n){return Lk(t)?Ok(e,n,t,i):Dk(e,n,t,i)}))},Pk=function(e,t){return Mo(e,t).isSome()},Fk=function(e){return S(e)?e:N},Ik=function(e,t,n){var r=e.dom,i=Fk(n);while(r.parentNode){r=r.parentNode;var o=yn.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return $.none()},Yk=function(e,t,n){var r=t(e),i=Fk(n);return r.orThunk((function(){return i(e)?$.none():Ik(e,t,i)}))},Rk=Ym,Nk=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if($m(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return!0}return!1},Hk=function(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!Nk(e,t,n)||(t.parentNode===o||!!Bk(e,t,n,r,!0))})),!!Bk(e,t,n,r,i))},zk=function(e,t,n){return!!Rk(t,n.inline)||(!!Rk(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},jk=function(e,t,n,r,i,o){var a=n[r];if(S(n.onmatch))return n.onmatch(t,n,r);if(a)if(w(a.length)){for(var s in a)if(Ae(a,s)){var u="attributes"===r?e.getAttrib(t,s):Nm(e,t,s),l=Im(a[s],o),c=k(u)||mt(u);if(c&&k(l))continue;if(i&&c&&!n.exact)return!1;if((!i||n.exact)&&!Rk(u,Rm(e,l,s)))return!1}}else for(var d=0;d<a.length;d++)if("attributes"===r?e.getAttrib(t,a[d]):Nm(e,t,a[d]))return!0;return!0},Bk=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var u=o[s];if(zk(e.dom,t,u)&&jk(a,t,u,"attributes",i,r)&&jk(a,t,u,"styles",i,r)){var l=u.classes;if(l)for(var c=0;c<l.length;c++)if(!e.dom.hasClass(t,Im(l[c],r)))return;return u}}},Vk=function(e,t,n,r,i){if(r)return Hk(e,r,t,n,i);if(r=e.selection.getNode(),Hk(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!Hk(e,o,t,n,i))},$k=function(e,t,n){var r=[],i={},o=e.selection.getStart();return e.dom.getParent(o,(function(o){for(var a=0;a<t.length;a++){var s=t[a];!i[s]&&Bk(e,o,s,n)&&(i[s]=!0,r.push(s))}}),e.dom.getRoot()),r},Uk=function(e,t){var n=function(t){return Pn(t,yn.fromDom(e.getBody()))},r=function(t,n){return Bk(e,t.dom,n)?$.some(n):$.none()};return $.from(e.selection.getStart(!0)).bind((function(e){return Yk(yn.fromDom(e),(function(e){return be(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},Wk=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=e.selection.getStart(),o=zm(r,i),a=n.length-1;a>=0;a--){var s=n[a];if(!$m(s)||M(s.defaultBlock))return!0;for(var u=o.length-1;u>=0;u--)if(r.is(o[u],s.selector))return!0}return!1},qk=function(e,t,n){return ie(n,(function(n,r){var i=jm(e,r);return e.formatter.matchNode(t,r,{},i)?n.concat([r]):n}),[])},Gk=fa,Kk="_mce_caret",Jk=function(e,t){return e.importNode(t,!0)},Xk=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==Gk||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},Qk=function(e){return Xk(e).length>0},Zk=function(e){if(e){var t=new zo(e,e);for(e=t.current();e;e=t.next())if(Zr(e))return e}return null},eM=function(e){var t=yn.fromTag("span");return vi(t,{id:Kk,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&xr(t,yn.fromText(Gk)),t},tM=function(e){var t=Zk(e);return t&&t.nodeValue.charAt(0)===Gk&&t.deleteData(0,1),t},nM=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(Qk(t))Bx(e,!1,yn.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=o.startContainer,u=o.startOffset,l=o.endContainer,c=o.endOffset,d=tM(t);r.remove(t,!0),s===d&&u>0&&o.setStart(d,u-1),l===d&&c>0&&o.setEnd(d,c-1),a&&r.isEmpty(a)&&Ey(yn.fromDom(a)),i.setRng(o)}},rM=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)nM(e,t,n);else if(t=tm(e.getBody(),i.getStart()),!t)while(t=r.get(Kk))nM(e,t,!1)},iM=function(e,t,n){var r=e.dom,i=r.getParent(n,P(Em,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(Oy(yn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},oM=function(e,t){return e.appendChild(t),t},aM=function(e,t){var n=re(e,(function(e,t){return oM(e,t.cloneNode(!1))}),t);return oM(n,n.ownerDocument.createTextNode(Gk))},sM=function(e,t,n,r,i,o){var a=e.formatter,s=e.dom,u=ne(ye(a.get()),(function(e){return e!==r&&!ut(e,"removeformat")})),l=qk(e,n,u),c=ne(l,(function(t){return!Bm(e,t,r)}));if(c.length>0){var d=n.cloneNode(!1);return s.add(t,d),a.remove(r,i,d,o),s.remove(d),$.some(d)}return $.none()},uM=function(e,t,n){var r,i,o=e.selection,a=o.getRng(),s=a.startOffset,u=a.startContainer,l=u.nodeValue;r=tm(e.getBody(),o.getStart()),r&&(i=Zk(r));var c=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(l&&s>0&&s<l.length&&c.test(l.charAt(s))&&c.test(l.charAt(s-1))){var d=o.getBookmark();a.collapse(!0);var f=lg(e,a,e.formatter.get(t));f=kv(f),e.formatter.apply(t,n,f),o.moveToBookmark(d)}else r&&i.nodeValue===Gk||(r=Jk(e.getDoc(),eM(!0).dom),i=r.firstChild,a.insertNode(r),s=1),e.formatter.apply(t,n,r),o.setCursorLocation(i,s)},lM=function(e,t,n,r){var i,o,a,s=e.dom,u=e.selection,l=[],c=u.getRng(),d=c.startContainer,f=c.startOffset;o=d,3===d.nodeType&&(f!==d.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(Bk(e,o,t,n,r)){a=o;break}o.nextSibling&&(i=!0),l.push(o),o=o.parentNode}if(a)if(i){var h=u.getBookmark();c.collapse(!0);var p=lg(e,c,e.formatter.get(t),!0);p=kv(p),e.formatter.remove(t,n,p,r),u.moveToBookmark(h)}else{var m=tm(e.getBody(),a),g=eM(!1).dom;iM(e,g,null!==m?m:a);var v=sM(e,g,a,t,n,r),_=aM(l.concat(v.toArray()),g);nM(e,m,!1),u.setCursorLocation(_,1),s.isEmpty(a)&&s.remove(a)}},cM=function(e,t){var n=e.selection,r=e.getBody();rM(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==Gk||rM(e,tm(r,n.getStart())),37!==t&&39!==t||rM(e,tm(r,n.getStart()))},dM=function(e){e.on("mouseup keydown",(function(t){cM(e,t.keyCode)}))},fM=function(e,t){var n=eM(!1),r=aM(t,n.dom);return _r(yn.fromDom(e),n),Lr(yn.fromDom(e)),Ad(r,0)},hM=function(e,t){var n=e.schema.getTextInlineElements();return Ae(n,Rn(t))&&!em(t.dom)&&!Gr(t.dom)},pM=function(e){return em(e.dom)&&Qk(e.dom)},mM={},gM=He,vM=Re,_M=function(e,t){var n=mM[e];n||(mM[e]=[]),mM[e].push(t)},bM=function(e,t){vM(mM[e],(function(e){e(t)}))};_M("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return o(e.previousSibling)&&-1!==ze(t,e.previousSibling)},i=function(e,t){Pl(t).remove(),Pl(e).append("<br><br>").append(t.childNodes)},o=$r(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),vM(gM(gM(t,o),r),(function(e){i(e.previousSibling,e)})))}));var yM=pn.each,xM=function(e){return Vr(e)&&!wm(e)&&!em(e)&&!Gr(e)},wM=function(e,t){for(var n=e;n;n=n[t]){if(Zr(n)&&pt(n.data))return e;if(Vr(n)&&!wm(n))return n}return e},kM=function(e,t,n){var r=ry(e);if(t&&n&&(t=wM(t,"previousSibling"),n=wM(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling,t.appendChild(o)}return e.remove(n),pn.each(pn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},MM=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var i=kM(e,Om(r),r);kM(e,i,Om(i,!0))}},SM=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";yM(e.select(r,n),(function(n){xM(n)&&yM(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},LM=function(e,t,n){yM(e.childNodes,(function(e){xM(e)&&(t(e)&&n(e),e.hasChildNodes()&&LM(e,t,n))}))},CM=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},TM=function(e,t){return function(n){return!(!n||!Nm(e,n,t))}},DM=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),CM(e,r)}},OM=Zi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),EM=/^(src|href|style)$/,AM=pn.each,PM=Ym,FM=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},IM=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},YM=function(e,t,n){var r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];if(Vr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Zr(r)&&n&&i>=r.nodeValue.length&&(r=new zo(r,e.getBody()).next()||r),Zr(r)&&!n&&0===i&&(r=new zo(r,e.getBody()).prev()||r),r},RM=function(e,t){var n=t?"firstChild":"lastChild";if(FM(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},NM=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},HM=function(e,t,n,r,i){var o=yn.fromDom(t),a=yn.fromDom(e.create(r,i)),s=n?nr(o):tr(o);return Mr(a,s),n?(_r(o,a),yr(a,o)):(br(o,a),xr(a,o)),a.dom},zM=function(e,t,n){return!(!Um(n)||!PM(t,n.inline))||(!(!Vm(n)||!PM(t,n.block))||($m(n)?Vr(t)&&e.is(t,n.selector):void 0))},jM=function(e,t){return t.links&&"A"===e.nodeName},BM=function(e,t,n,r){var i=Om(t,n,r);return k(i)||"BR"===i.nodeName||e.isBlock(i)},VM=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=Sf(e);Vm(n)&&(a?i===o.getRoot()&&(n.list_block&&PM(t,n.list_block)||Z(_e(t.childNodes),(function(t){Am(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=NM(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):o.isBlock(t)&&!o.isBlock(i)&&(BM(o,t,!1)||BM(o,t.firstChild,!0,!0)||t.insertBefore(o.create("br"),t.firstChild),BM(o,t,!0)||BM(o,t.lastChild,!1,!0)||t.appendChild(o.create("br")))),Wm(n)&&!PM(n.inline,t)||o.remove(t,!0)},$M=function(e,t,n,r,i){var o,a=e.dom;if(!zM(a,r,t)&&!jM(r,t))return OM.keep();var s=r;if(Um(t)&&"all"===t.remove&&b(t.preserve_attributes)){var u=ne(a.getAttribs(s),(function(e){return J(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(s),Z(u,(function(e){return a.setAttrib(s,e.name,e.value)})),u.length>0)return OM.rename("span")}if("all"!==t.remove){AM(t.styles,(function(e,r){e=Rm(a,Im(e,n),r+""),L(r)&&(r=e,i=null),(t.remove_similar||!i||PM(Nm(a,i,r),e))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),AM(t.attributes,(function(e,r){var o;if(e=Im(e,n),L(r)&&(r=e,i=null),t.remove_similar||!i||PM(a.getAttrib(i,r),e)){if("class"===r&&(e=a.getAttrib(s,r),e&&(o="",Z(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o)))return void a.setAttrib(s,r,o);if(EM.test(r)&&s.removeAttribute("data-mce-"+r),"style"===r&&$r(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(r),void a.setStyle(s,"list-style-type","none");"class"===r&&s.removeAttribute("className"),s.removeAttribute(r)}})),AM(t.classes,(function(e){e=Im(e,n),i&&!a.hasClass(i,e)||a.removeClass(s,e)}));for(var l=a.getAttribs(s),c=0;c<l.length;c++){var d=l[c].nodeName;if(0!==d.indexOf("_")&&0!==d.indexOf("data-"))return OM.keep()}}return"none"!==t.remove?(VM(e,s,t),OM.removed()):OM.keep()},UM=function(e,t,n,r,i){return $M(e,t,n,r,i).fold(N,(function(t){return e.dom.rename(r,t),!0}),H)},WM=function(e,t,n,r,i){var o;return Z(zm(e.dom,t.parentNode).reverse(),(function(t){if(!o&&"_start"!==t.id&&"_end"!==t.id){var a=Bk(e,t,n,r,i);a&&!1!==a.split&&(o=t)}})),o},qM=function(e,t,n,r){return $M(e,t,n,r,r).fold(O(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),O(null))},GM=function(e,t,n,r,i,o,a,s){var u,l,c,d=e.dom;if(n){for(var f=n.parentNode,h=r.parentNode;h&&h!==f;h=h.parentNode){u=d.clone(h,!1);for(var p=0;p<t.length;p++)if(u=qM(e,t[p],s,u),null===u)break;u&&(l&&u.appendChild(l),c||(c=u),l=u)}!o||a.mixed&&d.isBlock(n)||(r=d.split(n,r)),l&&(i.parentNode.insertBefore(l,i),c.appendChild(i),Um(a)&&MM(d,a,s,l))}return r},KM=function(e,t,n,r,i){var o=e.formatter.get(t),a=o[0],s=!0,u=e.dom,l=e.selection,c=function(r){var s=WM(e,r,t,n,i);return GM(e,o,s,r,r,!0,a,n)},d=function(e){return wm(e)&&Vr(e)&&("_start"===e.id||"_end"===e.id)},f=function(t){return X(o,(function(r){return UM(e,r,n,t,t)}))},h=function(t){var n=!0,r=!1;Vr(t)&&u.getContentEditable(t)&&(n=s,s="true"===u.getContentEditable(t),r=!0);var i=_e(t.childNodes);if(s&&!r){var l=f(t),c=l||X(o,(function(e){return zk(u,t,e)})),d=t.parentNode;!c&&M(d)&&qm(a)&&f(d)}if(a.deep&&i.length){for(var p=0;p<i.length;p++)h(i[p]);r&&(s=n)}var m=["underline","line-through","overline"];Z(m,(function(n){Vr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Hm(u,t.parentNode)===n&&UM(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},p=function(e){var t=u.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return d(n)&&(n=n[e?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),u.remove(t,!0),n},m=function(t){var n,r,i=lg(e,t,o,t.collapsed);if(a.split){if(i=kv(i),n=YM(e,i,!0),r=YM(e,i),n!==r){if(n=RM(n,!0),r=RM(r,!1),IM(u,n,r)){var s=$.from(n.firstChild).getOr(n);return c(HM(u,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(IM(u,r,n)){s=$.from(r.lastChild).getOr(r);return c(HM(u,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1)}n=NM(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=NM(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var l=u.createRng();l.setStartAfter(n),l.setEndBefore(r),cg(u,l,(function(e){Z(e,(function(e){wm(e)||wm(e.parentNode)||c(e)}))})),c(n),c(r),n=p(!0),r=p()}else n=r=c(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=u.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=u.nodeIndex(r)+1}cg(u,i,(function(e){Z(e,h)}))};if(r){if(Cm(r)){var g=u.createRng();g.setStartBefore(r),g.setEndAfter(r),m(g)}else m(r);ev(e,t,r,n)}else if("false"!==u.getContentEditable(l.getNode()))l.isCollapsed()&&Um(a)&&!vg(e).length?lM(e,t,n,i):(Cg(l,!0,(function(){Lg(e,m)})),Um(a)&&Vk(e,t,n,l.getStart())&&Dm(u,l,l.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=l.getNode();for(var v=0;v<o.length;v++)if(o[v].ceFalseOverride&&UM(e,o[v],n,r,r))break;ev(e,t,r,n)}},JM=pn.each,XM=function(e,t,n,r){var i=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Hm(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(pn.walk(r,i,"childNodes"),i(r))},QM=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&LM(r,TM(e,"fontSize"),DM(e,"backgroundColor",Im(t.styles.backgroundColor,n)))},ZM=function(e,t,n,r){!Um(t)||"sub"!==t.inline&&"sup"!==t.inline||(LM(r,TM(e,"fontSize"),DM(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},eS=function(e,t,n,r){JM(t,(function(t){Um(t)&&JM(e.dom.select(t.inline,r),(function(r){xM(r)&&UM(e,t,n,r,t.exact?r:null)})),SM(e.dom,t,r)}))},tS=function(e,t,n,r,i){Bk(e,i.parentNode,n,r)&&UM(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(Bk(e,o,n,r))return UM(e,t,r,i),!0}))},nS=pn.each,rS=function(e){return Vr(e)&&!wm(e)&&!em(e)&&!Gr(e)},iS=function(e,t,n,r){if(lh(e)&&Um(t)){var i=Ns(e.schema),o=Pk(yn.fromDom(n),(function(e){return em(e.dom)}));return Pe(i,r)&&ns(yn.fromDom(n.parentNode),!1)&&!o}return!1},oS=function(e,t,n,r){var i=e.formatter.get(t),o=i[0],a=!r&&e.selection.isCollapsed(),s=e.dom,u=e.selection,l=function(e,t){if(void 0===t&&(t=o),S(t.onformat)&&t.onformat(e,t,n,r),nS(t.styles,(function(t,r){s.setStyle(e,r,Im(t,n))})),t.styles){var i=s.getAttrib(e,"style");i&&s.setAttrib(e,"data-mce-style",i)}nS(t.attributes,(function(t,r){s.setAttrib(e,r,Im(t,n))})),nS(t.classes,(function(t){t=Im(t,n),s.hasClass(e,t)||s.addClass(e,t)}))},c=function(e,t){var n=!1;return nS(e,(function(e){return!!$m(e)&&(M(e.collapsed)&&e.collapsed!==a?void 0:s.is(t,e.selector)&&!em(t)?(l(t,e),n=!0,!1):void 0)})),n},d=function(e){if(v(e)){var t=s.create(e);return l(t),t}return null},f=function(r,a,s){var u=[],f=!0,h=o.inline||o.block,p=d(h);cg(r,a,(function(a){var d,m=function(a){var g=!1,v=f,_=a.nodeName.toLowerCase(),b=a.parentNode,y=b.nodeName.toLowerCase();if(Vr(a)&&r.getContentEditable(a)&&(v=f,f="true"===r.getContentEditable(a),g=!0),ri(a)&&!iS(e,o,a,y))return d=null,void(Vm(o)&&r.remove(a));if(Vm(o)&&o.wrapper&&Bk(e,a,t,n))d=null;else{if(f&&!g&&Vm(o)&&!o.wrapper&&Em(e,_)&&Am(e,y,h)){var x=r.rename(a,h);return l(x),u.push(x),void(d=null)}if($m(o)){var w=c(i,a);if(!w&&M(b)&&qm(o)&&(w=c(i,b)),!Um(o)||w)return void(d=null)}!f||g||!Am(e,h,_)||!Am(e,y,h)||!s&&Zr(a)&&ha(a.data)||em(a)||Um(o)&&r.isBlock(a)?(d=null,Z(_e(a.childNodes),m),g&&(f=v),d=null):(d||(d=r.clone(p,!1),a.parentNode.insertBefore(d,a),u.push(d)),d.appendChild(a))}};Z(a,m)})),!0===o.links&&Z(u,(function(e){var t=function(e){"A"===e.nodeName&&l(e,o),Z(_e(e.childNodes),t)};t(e)})),Z(u,(function(a){var s=function(e){var t=0;return Z(e.childNodes,(function(e){Fm(e)||wm(e)||t++})),t},c=function(e){var t=ae(e.childNodes,rS).filter((function(e){return zk(r,e,o)}));return t.map((function(t){var n=r.clone(t,!1);return l(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},d=s(a);!(u.length>1)&&r.isBlock(a)||0!==d?(Um(o)||Vm(o)&&o.wrapper)&&(o.exact||1!==d||(a=c(a)),eS(e,i,n,a),tS(e,o,t,n,a),QM(r,o,n,a),XM(r,o,n,a),ZM(r,o,n,a),MM(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(u.getNode())){if(o){if(r)if(Cm(r)){if(!c(i,r)){var h=s.createRng();h.setStartBefore(r),h.setEndAfter(r),f(s,lg(e,h,i),!0)}}else f(s,r,!0);else if(a&&Um(o)&&!vg(e).length)uM(e,t,n);else{var p=u.getNode(),m=i[0];e.settings.forced_root_block||!m.defaultBlock||s.getParent(p,s.isBlock)||oS(e,m.defaultBlock),u.setRng(jw(u.getRng())),Cg(u,!0,(function(){Lg(e,(function(t,n){var r=n?t:lg(e,t,i);f(s,r,!1)}))})),Dm(s,u,u.getRng()),e.nodeChanged()}bM(t,e)}Zg(e,t,r,n)}else{r=u.getNode();for(var g=0,_=i.length;g<_;g++){var b=i[g];if(b.ceFalseOverride&&$m(b)&&s.is(r,b.selector)){l(r,b);break}}Zg(e,t,r,n)}},aS=function(e){return Ae(e,"vars")},sS=function(e,t){e.set({}),t.on("NodeChange",(function(n){dS(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=$.from(n.node).map((function(e){return Cm(e)?e:e.startContainer})).bind((function(e){return Vr(e)?$.some(e):$.from(e.parentElement)})).getOrThunk((function(){return uS(t)}));dS(t,r,e.get())}))},uS=function(e){return e.selection.getStart()},lS=function(e,t,n,r,i){var o=function(t){var o=e.formatter.matchNode(t,n,null!==i&&void 0!==i?i:{},r);return!w(o)},a=function(t){return!!Nk(e,t,n)||!r&&M(e.formatter.matchNode(t,n,i,!0))};return oe(t,o,a)},cS=function(e,t){var n=null!==t&&void 0!==t?t:uS(e);return ne(zm(e.dom,n),(function(e){return Vr(e)&&!Gr(e)}))},dS=function(e,t,n){var r=cS(e,t);we(n,(function(n,i){var o=function(n){var o=lS(e,r,i,n.similar,aS(n)?n.vars:void 0),a=o.isSome();if(n.state.get()!==a){n.state.set(a);var s=o.getOr(t);aS(n)?n.callback(a,{node:s,format:i,parents:r}):Z(n.callbacks,(function(e){return e(a,{node:s,format:i,parents:r})}))}};Z([n.withSimilar,n.withoutSimilar],o),Z(n.withVars,o)}))},fS=function(e,t,n,r,i,o){var a=t.get();Z(n.split(","),(function(t){var n=Ee(a,t).getOrThunk((function(){var e={withSimilar:{state:Jl(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Jl(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),s=function(){var n=cS(e);return lS(e,n,t,i,o).isSome()};if(w(o)){var u=i?n.withSimilar:n.withoutSimilar;u.callbacks.push(r),1===u.callbacks.length&&u.state.set(s())}else n.withVars.push({state:Jl(s()),similar:i,vars:o,callback:r})})),t.set(a)},hS=function(e,t,n){var r=e.get();Z(t.split(","),(function(e){return Ee(r,e).each((function(t){r[e]={withSimilar:$e($e({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:$e($e({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},pS=function(e,t,n,r,i,o){return null===t.get()&&sS(t,e),fS(e,t,n,r,i,o),{unbind:function(){return hS(t,n,r)}}},mS=function(e,t,n,r){var i=e.formatter.get(t);!Vk(e,t,n,r)||"toggle"in i[0]&&!i[0].toggle?oS(e,t,n,r):KM(e,t,n,r)},gS=function(e,t){var n=t||document,r=n.createDocumentFragment();return Z(e,(function(e){r.appendChild(e.dom)})),yn.fromDom(r)},vS=function(e,t,n){return{element:e,width:t,rows:n}},_S=function(e,t){return{element:e,cells:t}},bS=function(e,t){return{x:e,y:t}},yS=function(e,t){var n=parseInt(_i(e,t),10);return isNaN(n)?1:n},xS=function(e,t,n,r,i){for(var o=yS(i,"rowspan"),a=yS(i,"colspan"),s=e.rows,u=n;u<n+o;u++){s[u]||(s[u]=_S(qc(r),[]));for(var l=t;l<t+a;l++){var c=s[u].cells;c[l]=u===n&&l===t?i:Wc(i)}}},wS=function(e,t,n){var r=e.rows,i=r[n]?r[n].cells:[];return!!i[t]},kS=function(e,t,n){while(wS(e,t,n))t++;return t},MS=function(e){return ie(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},SS=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Pn(i[o],t))return $.some(bS(o,r));return $.none()},LS=function(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var u=a[s].cells,l=t<r?u.slice(t,r+1):u.slice(r,t+1);o.push(_S(a[s].element,l))}return o},CS=function(e,t,n){var r=t.x,i=t.y,o=n.x,a=n.y,s=i<a?LS(e,r,i,o,a):LS(e,r,a,o,i);return vS(e.element,MS(s),s)},TS=function(e,t){var n=Wc(e.element),r=yn.fromTag("tbody");return Mr(r,t),xr(n,r),n},DS=function(e){return Q(e.rows,(function(e){var t=Q(e.cells,(function(e){var t=qc(e);return xi(t,"colspan"),xi(t,"rowspan"),t})),n=Wc(e.element);return Mr(n,t),n}))},OS=function(e){var t=vS(Wc(e),0,[]);return Z(Cc(e,"tr"),(function(e,n){Z(Cc(e,"td,th"),(function(r,i){xS(t,kS(t,i,n),n,e,r)}))})),vS(t.element,MS(t.rows),t.rows)},ES=function(e){return TS(e,DS(e))},AS=function(e,t,n){return SS(e,t).bind((function(t){return SS(e,n).map((function(n){return CS(e,t,n)}))}))},PS=function(e){return ae(e,(function(e){return"ul"===Rn(e)||"ol"===Rn(e)}))},FS=function(e,t){return ae(e,(function(e){return"li"===Rn(e)&&kg(e,t)})).fold(O([]),(function(t){return PS(e).map((function(e){var t=yn.fromTag(Rn(e)),n=Te(Ti(e),(function(e,t){return lt(t,"list-style")}));return Mi(t,n),[yn.fromTag("li"),t]})).getOr([])}))},IS=function(e,t){var n=ie(t,(function(e,t){return xr(t,e),t}),e);return t.length>0?gS([n]):n},YS=function(e){return ra(e)?Jn(e).filter(na).fold(O([]),(function(t){return[e,t]})):na(e)?[e]:[]},RS=function(e,t){var n=yn.fromDom(t.commonAncestorContainer),r=Yy(n,e),i=ne(r,(function(e){return Zo(e)||Jo(e)})),o=FS(r,t),a=i.concat(o.length?o:YS(n));return Q(a,Wc)},NS=function(){return gS([])},HS=function(e,t){return IS(yn.fromDom(t.cloneContents()),RS(e,t))},zS=function(e,t){return Lo(t,"table",P(Pn,e))},jS=function(e,t){return zS(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=OS(e);return AS(i,n,r).map((function(e){return gS([ES(e)])}))})).getOrThunk(NS)},BS=function(e,t){return t.length>0&&t[0].collapsed?NS():HS(e,t[0])},VS=function(e,t){var n=gg(t,e);return n.length>0?jS(e,n):BS(e,t)},$S=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},US=function(e,t){return t>=0&&t<e.length&&Sm(e.charAt(t))},WS=function(e,t){var n=pa(e.innerText);return t?$S(n):n},qS=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},GS=function(e){return $.from(e.selection.getRng()).map((function(t){var n=$.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),i=qS(n),o=en.browser.isIE()&&"pre"!==i,a=e.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),s=WS(a,o),u=pa(a.textContent);if(e.dom.remove(a),US(u,0)||US(u,u.length-1)){var l=n.getOr(r),c=WS(l,o),d=c.indexOf(s);if(-1===d)return s;var f=US(c,d-1),h=US(c,d+s.length);return(f?" ":"")+s+(h?" ":"")}return s})).getOr("")},KS=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),i=e.selection.getSel(),o=Mb(e,dg(i)),a=t.contextual?VS(yn.fromDom(e.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},JS=function(e,t){return $e($e({},e),{format:t,get:!0,selection:!0})},XS=function(e,t,n){void 0===n&&(n={});var r=JS(n,t),i=e.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return GS(e);i.getInner=!0;var o=KS(e,i);return"tree"===i.format?o:(i.content=e.selection.isCollapsed()?"":o,e.fire("GetContent",i),i.content)},QS=0,ZS=1,eL=2,tL=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var l=u(n,r,i,o);if(null===l||l.start===r&&l.diag===r-o||l.end===n&&l.diag===n-i){var c=n,d=i;while(c<r||d<o)c<r&&d<o&&e[c]===t[d]?(s.push([QS,e[c]]),++c,++d):r-n>o-i?(s.push([eL,e[c]]),++c):(s.push([ZS,t[d]]),++d)}else{a(n,l.start,i,l.start-l.diag,s);for(var f=l.start;f<l.end;++f)s.push([QS,e[f]]);a(l.end,r,l.end-l.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},u=function(n,o,a,u){var l=o-n,c=u-a;if(0===l||0===c)return null;var d,f,h,p,m,g=l-c,v=c+l,_=(v%2===0?v:v+1)/2;for(r[1+_]=n,i[1+_]=o+1,d=0;d<=_;++d){for(f=-d;f<=d;f+=2){h=f+_,f===-d||f!==d&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-f;while(p<o&&m<u&&e[p]===t[m])r[h]=++p,++m;if(g%2!==0&&g-d<=f&&f<=g+d&&i[h-g]<=r[h])return s(i[h-g],f+n-a,o,u)}for(f=g-d;f<=g+d;f+=2){h=f+_-g,f===g-d||f!==g+d&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,m=p-n+a-f;while(p>=n&&m>=a&&e[p]===t[m])i[h]=p--,m--;if(g%2===0&&-d<=f&&f<=d&&i[h]<=r[h+g])return s(i[h],f+n-a,o,u)}}},l=[];return a(0,e.length,0,t.length,l),l},nL=function(e){return Vr(e)?e.outerHTML:Zr(e)?Ts.encodeRaw(e.data,!1):ei(e)?"\x3c!--"+e.data+"--\x3e":""},rL=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},iL=function(e,t,n){var r=rL(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},oL=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},aL=function(e,t){var n=0;Z(e,(function(e){e[0]===QS?n++:e[0]===ZS?(iL(t,e[1],n),n++):e[0]===eL&&oL(t,n)}))},sL=function(e){return ne(Q(_e(e.childNodes),nL),(function(e){return e.length>0}))},uL=function(e,t){var n=Q(_e(t.childNodes),nL);return aL(tL(n,e),t),t},lL=qe((function(){return document.implementation.createHTMLDocument("undo")})),cL=function(e){return-1!==e.indexOf("</iframe>")},dL=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},fL=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},hL=function(e){var t=sL(e.getBody()),n=le(t,(function(t){var n=Jb(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return cL(r)?dL(n):fL(r)},pL=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?uL(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!M(r)||!am(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},mL=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},gL=function(e){var t=yn.fromTag("body",lL());return $c(t,mL(e)),Z(Cc(t,"*[data-mce-bogus]"),Cr),Vc(t)},vL=function(e,t){return mL(e)===mL(t)},_L=function(e,t){return gL(e)===gL(t)},bL=function(e,t){return!(!e||!t)&&(!!vL(e,t)||_L(e,t))},yL=function(e){return 0===e.get()},xL=function(e,t,n){yL(n)&&(e.typing=t)},wL=function(e,t){e.typing&&(xL(e,!1,t),e.add())},kL=function(e){e.typing&&(e.typing=!1,e.add())},ML=function(e,t,n){yL(t)&&n.set(pf(e.selection))},SL=function(e,t,n,r,i,o,a){var s=hL(e);if(o=o||{},o=pn.extend(o,s),!1===yL(r)||e.removed)return null;var u=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&bL(u,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var l=bh(e);if(l&&t.data.length>l){for(var c=0;c<t.data.length-1;c++)t.data[c]=t.data[c+1];t.data.length--,n.set(t.data.length)}o.bookmark=pf(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var d={level:o,lastLevel:u,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",d),e.fire("change",d)):e.fire("AddUndo",d),o},LL=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},CL=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];pL(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},TL=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],pL(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},DL=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,xL(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],pL(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},OL=function(e){e.clear(),e.add()},EL=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!bL(hL(e),t.data[0])},AL=function(e,t){return t.get()<e.data.length-1&&!e.typing},PL=function(e,t,n){return wL(e,t),e.beforeChange(),e.ignore(n),e.add()},FL=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},IL=function(e,t){var n=e.dom,r=M(t)?t:e.getBody();w(e.hasVisual)&&(e.hasVisual=Lh(e)),Z(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Ch(e),i=n.getAttrib(t,"border");i&&"0"!==i||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var o=n.getAttrib(t,"name")||t.id,a=Th(e);o&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},YL=function(e){return{undoManager:{beforeChange:function(t,n){return ML(e,t,n)},add:function(t,n,r,i,o,a){return SL(e,t,n,r,i,o,a)},undo:function(t,n,r){return DL(e,t,n,r)},redo:function(t,n){return TL(e,t,n)},clear:function(t,n){return LL(e,t,n)},reset:function(e){return OL(e)},hasUndo:function(t,n){return EL(e,t,n)},hasRedo:function(e,t){return AL(e,t)},transact:function(e,t,n){return PL(e,t,n)},ignore:function(e,t){return FL(e,t)},extra:function(t,n,r,i){return CL(e,t,n,r,i)}},formatter:{match:function(t,n,r,i){return Vk(e,t,n,r,i)},matchAll:function(t,n){return $k(e,t,n)},matchNode:function(t,n,r,i){return Bk(e,t,n,r,i)},canApply:function(t){return Wk(e,t)},closest:function(t){return Uk(e,t)},apply:function(t,n,r){return oS(e,t,n,r)},remove:function(t,n,r,i){return KM(e,t,n,r,i)},toggle:function(t,n,r){return mS(e,t,n,r)},formatChanged:function(t,n,r,i,o){return pS(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return ty(e,t,n)},setContent:function(t,n){return Ak(e,t,n)},insertContent:function(t,n){return xk(e,t,n)},addVisual:function(t){return IL(e,t)}},selection:{getContent:function(t,n){return XS(e,t,n)}},raw:{getModel:function(){return $.none()}}}},RL=function(e){var t=function(e){return _(e)?e:{}},n=e.undoManager,r=e.formatter,i=e.editor,o=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,i){return n.extra(r,i)}},formatter:{match:function(e,n,i,o){return r.match(e,t(n),o)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,i){return r.apply(e,t(n))},remove:function(e,n,i,o){return r.remove(e,t(n))},toggle:function(e,n,i){return r.toggle(e,t(n))},formatChanged:function(e,t,n,i,o){return r.formatChanged(t,n,i,o)}},editor:{getContent:function(e,t){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e,t){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return o.getContent(t)}},raw:{getModel:function(){return $.some(a.getRawModel())}}}},NL=function(){var e=O(null),t=O("");return{undoManager:{beforeChange:C,add:e,undo:e,redo:e,clear:C,reset:C,hasUndo:N,hasRedo:N,transact:e,ignore:C,extra:C},formatter:{match:N,matchAll:O([]),matchNode:O(void 0),canApply:N,closest:t,apply:C,remove:C,toggle:C,formatChanged:O({unbind:C})},editor:{getContent:t,setContent:t,insertContent:C,addVisual:C},selection:{getContent:t},raw:{getModel:O($.none())}}},HL=function(e){return Ae(e.plugins,"rtc")},zL=function(e){return Ee(e.plugins,"rtc").bind((function(e){return $.from(e.setup)}))},jL=function(e){var t=e;return zL(e).fold((function(){return t.rtcInstance=YL(e),$.none()}),(function(e){return t.rtcInstance=NL(),$.some((function(){return e().then((function(e){return t.rtcInstance=RL(e),e.rtc.isRemote}))}))}))},BL=function(e){return e.rtcInstance?e.rtcInstance:YL(e)},VL=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},$L=function(e,t,n){VL(e).undoManager.beforeChange(t,n)},UL=function(e,t,n,r,i,o,a){return VL(e).undoManager.add(t,n,r,i,o,a)},WL=function(e,t,n,r){return VL(e).undoManager.undo(t,n,r)},qL=function(e,t,n){return VL(e).undoManager.redo(t,n)},GL=function(e,t,n){VL(e).undoManager.clear(t,n)},KL=function(e,t){VL(e).undoManager.reset(t)},JL=function(e,t,n){return VL(e).undoManager.hasUndo(t,n)},XL=function(e,t,n){return VL(e).undoManager.hasRedo(t,n)},QL=function(e,t,n,r){return VL(e).undoManager.transact(t,n,r)},ZL=function(e,t,n){VL(e).undoManager.ignore(t,n)},eC=function(e,t,n,r,i){VL(e).undoManager.extra(t,n,r,i)},tC=function(e,t,n,r,i){return VL(e).formatter.match(t,n,r,i)},nC=function(e,t,n){return VL(e).formatter.matchAll(t,n)},rC=function(e,t,n,r,i){return VL(e).formatter.matchNode(t,n,r,i)},iC=function(e,t){return VL(e).formatter.canApply(t)},oC=function(e,t){return VL(e).formatter.closest(t)},aC=function(e,t,n,r){VL(e).formatter.apply(t,n,r)},sC=function(e,t,n,r,i){VL(e).formatter.remove(t,n,r,i)},uC=function(e,t,n,r){VL(e).formatter.toggle(t,n,r)},lC=function(e,t,n,r,i,o){return VL(e).formatter.formatChanged(t,n,r,i,o)},cC=function(e,t,n){return BL(e).editor.getContent(t,n)},dC=function(e,t,n){return BL(e).editor.setContent(t,n)},fC=function(e,t,n){return BL(e).editor.insertContent(t,n)},hC=function(e,t,n){return VL(e).selection.getContent(t,n)},pC=function(e,t){return VL(e).editor.addVisual(t)},mC=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return hC(e,n,t)},gC=function(e){return 0===e.dom.length?(Lr(e),$.none()):$.some(e)},vC=function(e,t){return e.filter((function(e){return Ng.isBookmarkNode(e.dom)})).bind(t?er:Zn)},_C=function(e,t,n,r){var i=e.dom,o=t.dom,a=r?i.length:o.length;r?(kx(i,o,!1,!r),n.setStart(o,a)):(kx(o,i,!1,!r),n.setEnd(o,a))},bC=function(e,t){Jn(e).each((function(n){var r=e.dom;t&&sx(n,Ad(r,0))?xx(r,0):!t&&lx(n,Ad(r,r.length))&&wx(r,r.length)}))},yC=function(e,t,n,r){e.bind((function(e){var i=r?wx:xx;return i(e.dom,r?e.dom.length:0),t.filter(Bn).map((function(t){return _C(e,t,n,r)}))})).orThunk((function(){var e=vC(t,r).or(t).filter(Bn);return e.map((function(e){return bC(e,r)}))}))},xC=function(e,t){var n=$.from(t.firstChild).map(yn.fromDom),r=$.from(t.lastChild).map(yn.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Zn).filter(Bn).bind(gC),o=r.bind(er).filter(Bn).bind(gC);yC(i,n,e,!0),yC(o,r,e,!1),e.collapse(!1)},wC=function(e,t){return $e($e({format:"html"},e),{set:!0,selection:!0,content:t})},kC=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,$e($e({isRootContent:!0,forced_root_block:!1},i),t));return ay({validate:e.validate},e.schema).serialize(o)}return t.content},MC=function(e,t,n){void 0===n&&(n={});var r=wC(n,t),i=r;if(!r.no_events){var o=e.fire("BeforeSetContent",r);if(o.isDefaultPrevented())return void e.fire("SetContent",o);i=o}i.content=kC(e,i);var a=e.selection.getRng();xC(a,a.createContextualFragment(i.content)),e.selection.setRng(a),n_(e,a),i.no_events||e.fire("SetContent",i)},SC=function(e,t,n){if(e&&Ae(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function LC(e,t){var n,r,i=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},o=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=o(t),s={};pn.each(n,(function(e,t){i(t,a).each((function(n){r[t]||(Z(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),s[t]=e}))})),pn.each(r,(function(e,n){s[n]||(delete r[n],pn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),i(e,o(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){SC(n,e,a),SC(r,e,a)}}}}}var CC=function(e){return!!e.select},TC=function(e){return!(!e||!e.ownerDocument)&&Yn(yn.fromDom(e.ownerDocument),yn.fromDom(e))},DC=function(e){return!!e&&(!!CC(e)||TC(e.startContainer)&&TC(e.endContainer))},OC=function(e,t,n,r){var i,o,a=LC(e,r).selectorChangedWithUnbind,s=function(t,n){var i=e.createRng();M(t)&&M(n)?(i.setStart(t,n),i.setEnd(t,n),b(i),g(!1)):(Mg(e,i,r.getBody(),!0),b(i))},u=function(e){return mC(r,e)},l=function(e,t){return MC(r,e,t)},c=function(e){return _b(r.getBody(),_(),e)},d=function(e){return bb(r.getBody(),_(),e)},f=function(e,t){return P.getBookmark(e,t)},h=function(e){return P.moveToBookmark(e)},p=function(t,n){return kb(e,t,n).each(b),t},m=function(){var e=_(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=function(e){var t=_();t.collapse(!!e),b(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},_=function(){var n,a,s,u=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},l=t.document;if(void 0!==r.bookmark&&!1===fb(r)){var c=H_(r);if(c.isSome())return c.map((function(e){return Mb(r,[e])[0]})).getOr(l.createRange())}try{(n=v())&&!Br(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():l.createRange(),a=Mb(r,[a])[0])}catch(d){}return a||(a=l.createRange?l.createRange():l.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=e.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===u(a.START_TO_START,a,i)&&0===u(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},b=function(e,t){var n;if(DC(e)){var a=CC(e)?e:null;if(a){o=null;try{a.select()}catch(l){}}else{var s=v(),u=r.fire("SetSelectionRange",{range:e,forward:t});if(e=u.range,s){o=e;try{s.removeAllRanges(),s.addRange(e)}catch(l){}!1===t&&s.extend&&(s.collapse(e.endContainer,e.endOffset),s.extend(e.startContainer,e.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!s.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),s.anchorNode===e.startContainer&&s.focusNode===e.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},y=function(t){return l(e.getOuterHTML(t)),t},x=function(){return xb(r.getBody(),_())},w=function(t,n){return wb(e,_(),t,n)},k=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||Br(n)||Br(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},S=function(){var t=_(),n=v();if(!hg(n)&&Sg(r)){var i=xv(e,t);return i.each((function(e){b(e,k())})),i.getOr(t)}return t},L=function(e,t){return a(e,t),A},C=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},T=function(e,t){M(e)?t_(r,e,t):n_(r,_(),t)},D=function(e,t){return b(uv(e,t,r.getDoc()))},O=function(){var e=_();return e.collapsed?Ad.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},E=function(){t=i=o=null,F.destroy()},A={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:g,setCursorLocation:s,getContent:u,setContent:l,getBookmark:f,moveToBookmark:h,select:p,isCollapsed:m,isForward:k,setNode:y,getNode:x,getSel:v,setRng:b,getRng:_,getStart:c,getEnd:d,getSelectedBlocks:w,normalize:S,selectorChanged:L,selectorChangedWithUnbind:a,getScrollContainer:C,scrollIntoView:T,placeCaretAt:D,getBoundingClientRect:O,destroy:E},P=Ng(A),F=rv(A,r);return A.bookmarkManager=P,A.controlSelection=F,A},EC=function(e,t){Z(t,(function(t){e.attr(t,null)}))},AC=function(e,t,n){e.addNodeFilter("font",(function(e){Z(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),EC(e,["color","face","size"])}))}))},PC=function(e,t){e.addNodeFilter("strike",(function(e){Z(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},FC=function(e,t){var n=Vs();t.convert_fonts_to_spans&&AC(e,n,pn.explode(t.font_size_legacy_values)),PC(e,n)},IC=function(e,t){t.inline_styles&&FC(e,t)},YC=function(e){return new Do((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===i.status?t(i.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},RC=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},NC=function(e,t){var n;try{n=atob(t)}catch(_j){return $.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return $.some(new Blob([r],{type:e}))},HC=function(e){return new Do((function(t){var n=RC(e),r=n.type,i=n.data;NC(r,i).fold((function(){return t(new Blob([]))}),t)}))},zC=function(e){return 0===e.indexOf("blob:")?YC(e):0===e.indexOf("data:")?HC(e):null},jC=function(e){return new Do((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},BC=0,VC=function(e){return(e||"blobid")+BC++},$C=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):zC(t.src).then((function(r){jC(r).then((function(a){i=RC(a).data,o=e.create(VC(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));var a=RC(t.src),s=a.data,u=a.type;i=s,o=e.getByData(i,u),o?n({image:t,blobInfo:o}):zC(t.src).then((function(r){o=e.create(VC(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},UC=function(e){return e?_e(e.getElementsByTagName("img")):[]},WC=function(e,t){var n={},r=function(r,i){i||(i=H);var o=ne(UC(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))})),a=Q(o,(function(e){if(void 0!==n[e.src])return new Do((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Do((function(n,r){$C(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Do.all(a)};return{findAll:r}},qC=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new Db("br",1)).shortEnded=!0:r.empty().append(new Db("#text",3)).value=la},GC=function(e){return KC(e,"#text")&&e.firstChild.value===la},KC=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},JC=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},XC=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return JC(e,t)}))},QC=function(e,t){return e&&(Ae(t,e.name)||"br"===e.name)},ZC=function(e){return M(e.attr("data-mce-bogus"))},eT=function(e){return e.attr("src")===en.transparentSrc||M(e.attr("data-mce-placeholder"))},tT=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),we(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},nT=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");eT(e)||ZC(e)||Ab(r).filter((function(){return tT(e,t)})).bind((function(e){var t=e.type,r=e.data;return $.from(n.getByData(r,t)).orThunk((function(){return NC(t,r).map((function(e){var t=n.create(VC(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Z(e,r)}))},rT=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,u,l,c,d,f,h=e.length,p=pn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=e[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){l=a.prev;while(l){if(c=l.name,"span"!==c||"bookmark"!==l.attr("data-mce-type")){"br"===c&&(a=null);break}l=l.prev}a&&(a.remove(),XC(n,m,g,s)&&(d=n.getElementRule(s.name),d&&(d.removeEmpty?s.remove():d.paddEmpty&&qC(t,i,p,s))))}else{u=a;while(s&&s.firstChild===u&&s.lastChild===u){if(u=s,p[s.name])break;s=s.parent}u===s&&!0!==t.padd_empty_with_br&&(f=new Db("#text",3),f.value=la,a.replace(f))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?pn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var o=e[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new Db("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var i=e[r],o=i.attr("class").split(" "),a="",s=0;s<o.length;s++){var u=o[s],l=!1,c=t["*"];c&&c[u]&&(l=!0),c=t[i.name],!l&&c&&c[u]&&(l=!0),l&&(a&&(a+=" "),a+=u)}a.length||(a=null),i.attr("class",a)}})),nT(e,t)},iT=pn.makeMap,oT=pn.each,aT=pn.explode,sT=pn.extend,uT=function(e,t){void 0===t&&(t=js());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=iT("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),a=t.getSpecialElements(),u=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),i=0,o=r;i<o.length;i++){var s=o[i];t.isValidChild(n.name,s.name)||u(s,n)}e.unwrap()}},l=0;l<e.length;l++){var c=e[l],d=void 0,f=void 0,h=void 0;if(c.parent&&!c.fixed)if(o[c.name]&&"li"===c.parent.name){var p=c.next;while(p){if(!o[p.name])break;p.name="li",p.fixed=!0,c.parent.insert(p,c.parent),p=p.next}c.unwrap()}else{var m=[c];for(d=c.parent;d&&!t.isValidChild(d.name,c.name)&&!n[d.name];d=d.parent)m.push(d);if(d&&m.length>1)if(t.isValidChild(d.name,c.name)){m.reverse(),f=s(m[0].clone());for(var g=f,v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(h=s(m[v].clone()),g.append(h)):h=g;for(var _=m[v].firstChild;_&&_!==m[v+1];){var b=_.next;h.append(_),_=b}g=h}XC(t,r,i,f)?d.insert(c,m[0],!0):(d.insert(f,m[0],!0),d.insert(c,f)),d=m[0],(XC(t,r,i,d)||KC(d,"br"))&&d.empty().remove()}else u(c);else if(c.parent){if("li"===c.name){p=c.prev;if(p&&("ul"===p.name||"ol"===p.name)){p.append(c);continue}if(p=c.next,p&&("ul"===p.name||"ol"===p.name)){p.insert(c,p.firstChild,!0);continue}c.wrap(s(new Db("ul",1)));continue}t.isValidChild(c.parent.name,"div")&&t.isValidChild("div",c.name)?c.wrap(s(new Db("div",1))):u(c)}}}},s=function(e){var t=e.name;if(t in n){var a=i[t];a?a.push(e):i[t]=[e]}var s=r.length;while(s--){var u=r[s].name;if(u in e.attributes.map){a=o[u];a?a.push(e):o[u]=[e]}}return e},u=function(e,t){oT(aT(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},l=function(){var e=[];for(var t in n)Ae(n,t)&&e.push({name:t,callbacks:n[t]});return e},c=function(e,t){oT(aT(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},d=function(){return[].concat(r)},f=function(s,u){var l,c,d,f,h,p,m,g,v=[],_=function(e){return!1===e?"":!0===e?"p":e};u=u||{},i={},o={};var b=sT(iT("script,style,head,html,body,title,meta,param"),t.getBlockElements()),y=Ns(t),x=t.getNonEmptyElements(),w=t.children,k=e.validate,S="forced_root_block"in u?u.forced_root_block:e.forced_root_block,L=_(S),C=t.getWhiteSpaceElements(),T=/^[ \t\r\n]+/,D=/[ \t\r\n]+$/,O=/[ \t\r\n]+/g,E=/^[ \t\r\n]+$/,A=Ae(C,u.context)||Ae(C,e.root_name),P=function(){var n=H.firstChild,r=null,i=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(T,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(D,"")))};if(t.isValidChild(H.name,L.toLowerCase())){while(n){var o=n.next;3===n.type||1===n.type&&"p"!==n.name&&!b[n.name]&&!n.attr("data-mce-type")?(r||(r=F(L,1),r.attr(e.forced_root_block_attrs),H.insert(r,n)),r.append(n)):(i(r),r=null),n=o}i(r)}},F=function(e,t){var r,o=new Db(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},I=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(D,"");if(i.length>0)return void(r.value=i);var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},Y=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},R=function(e){var n=e;while(M(n)){if(n.name in y)return XC(t,x,C,n);n=n.parent}return!1},N=Gb({validate:k,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:Y(t.getSelfClosingElements()),cdata:function(e){g.append(F("#cdata",4)).value=e},text:function(e,t){var n;A||(e=e.replace(O," "),QC(g.lastChild,b)&&(e=e.replace(T,""))),0!==e.length&&(n=F("#text",3),n.raw=!!t,g.append(n).value=e)},comment:function(e){g.append(F("#comment",8)).value=e},pi:function(e,t){g.append(F(e,7)).value=t,I(g)},doctype:function(e){var t=g.append(F("#doctype",10));t.value=e,I(g)},start:function(e,n,i){var a=k?t.getElementRule(e):{};if(a){var s=F(a.outputName||e,1);s.attributes=n,s.shortEnded=i,g.append(s);var u=w[g.name];u&&w[s.name]&&!u[s.name]&&v.push(s);var l=r.length;while(l--){var c=r[l].name;c in n.map&&(p=o[c],p?p.push(s):o[c]=[s])}b[e]&&I(s),i||(g=s),!A&&C[e]&&(A=!0)}},end:function(n){var r,i,o,a=k?t.getElementRule(n):{};if(a){if(b[n]&&!A){if(r=g.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||E.test(i))&&(r.remove(),r=o),r=o}if(r=g.lastChild,r&&3===r.type)if(i=r.value.replace(D,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||E.test(i))&&(r.remove(),r=o),r=o}}A&&C[n]&&(A=!1);var s=XC(t,x,C,g),l=g.parent;a.paddInEmptyBlock&&s&&R(g)?qC(e,u,b,g):a.removeEmpty&&s?b[g.name]?g.empty().remove():g.unwrap():a.paddEmpty&&(GC(g)||s)&&qC(e,u,b,g),g=l}}},t),H=g=new Db(u.context||e.root_name,11);if(N.parse(s,u.format),k&&v.length&&(u.context?u.invalid=!0:a(v)),L&&("body"===H.name||u.isRootContent)&&P(),!u.invalid){for(m in i)if(Ae(i,m)){p=n[m],l=i[m],f=l.length;while(f--)l[f].parent||l.splice(f,1);for(c=0,d=p.length;c<d;c++)p[c](l,m,u)}for(c=0,d=r.length;c<d;c++)if(p=r[c],p.name in o){l=o[p.name],f=l.length;while(f--)l[f].parent||l.splice(f,1);for(f=0,h=p.callbacks.length;f<h;f++)p.callbacks[f](l,p.name,u)}}return H},h={schema:t,addAttributeFilter:c,getAttributeFilters:d,addNodeFilter:u,getNodeFilters:l,filterNode:s,parse:f};return rT(h,e),IC(h,e),h},lT=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var i="data-mce-"+r,o=t.url_converter,a=t.url_converter_scope,s=e.length;while(s--){var u=e[s],l=u.attr(i);void 0!==l?(u.attr(r,l.length>0?l:null),u.attr(i,null)):(l=u.attr(r),"style"===r?l=n.serializeStyle(n.parseStyle(l),u.name):o&&(l=o.call(a,l,r,u.name)),u.attr(r,l.length>0?l:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var i=e[r];if("bookmark"===i.attr("data-mce-type")&&!n.cleanup){var o=$.from(i.firstChild).exists((function(e){return!ha(e.value)}));o?i.unwrap():i.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Ts.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},i=e.length;while(i--){var o=e[i],a=o.firstChild?o.firstChild.value:"";if("script"===n){var s=o.attr("type");s&&o.attr("type","mce-no/type"===s?null:s.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var i=e[r];t.preserve_cdata&&0===i.value.indexOf("[CDATA[")?(i.name="#cdata",i.type=4,i.value=n.decode(i.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===i.value.indexOf("mce:protected ")&&(i.name="#text",i.type=3,i.raw=!0,i.value=unescape(i.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Z(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},cT=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},dT=function(e,t,n){var r,i=e.dom,o=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var s=a.createHTMLDocument("");pn.each("BODY"===o.nodeName?o.childNodes:[o],(function(e){s.body.appendChild(s.importNode(e,!0))})),o="BODY"!==o.nodeName?s.body.firstChild:s.body,r=i.doc,i.doc=s}return jg(e,$e($e({},n),{node:o})),r&&(i.doc=r),o},fT=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},hT=function(e,t,n){return fT(e,n)?dT(e,t,n):t},pT=function(e,t,n){-1===pn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},mT=function(e,t,n){if(!t.no_events&&e){var r=Bg(e,$e($e({},t),{content:n}));return r.content}return n},gT=function(e,t,n){var r=pa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(yn.fromDom(t))?r:pn.trim(r)},vT=function(e,t,n){var r=n.selection?$e({forced_root_block:!1},n):n,i=e.parse(t,r);return cT(i),i},_T=function(e,t,n){var r=ay(e,t);return r.serialize(n)},bT=function(e,t,n,r,i){var o=_T(t,n,r);return mT(e,i,o)},yT=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:jl.DOM,i=t&&t.schema?t.schema:js(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o=uT(e,i);lT(o,e,r);var a=function(n,a){void 0===a&&(a={});var s=$e({format:"html"},a),u=hT(t,n,s),l=gT(r,u,s),c=vT(o,l,s);return"tree"===s.format?c:bT(t,e,i,c,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:P(pT,o,n),getTempAttrs:O(n),getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},xT=function(e,t){var n=yT(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},wT="html",kT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:wT;return cC(e,t,n)},MT=function(e,t,n){return void 0===n&&(n={}),dC(e,t,n)},ST=jl.DOM,LT=function(e){ST.setStyle(e.id,"display",e.orgDisplay)},CT=function(e){return $.from(e).each((function(e){return e.destroy()}))},TT=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},DT=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),ST.unbind(t,"submit reset",e.formEventDelegate))},OT=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&ST.remove(i.nextSibling),Vg(e),e.editorManager.remove(e),!e.inline&&r&&LT(e),$g(e),ST.remove(e.getContainer()),CT(t),CT(n),e.destroy()}},ET=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),CT(n),CT(r)),DT(e),TT(e),e.destroyed=!0):e.remove())},AT=function(e,t){var n=_(e)&&_(t);return n?FT(e,t):t},PT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ae(o,a)&&(r[a]=e(r[a],o[a]))}return r}},FT=PT(AT),IT="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),YT="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),RT="imagetools,toc".split(","),NT=function(e){var t=ne(IT,(function(t){return Ae(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),pe(t)},HT=function(e){var t=pn.makeMap(e.plugins," "),n=function(e){return Ae(t,e)},r=We(We([],ne(YT,n),!0),le(RT,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return pe(r)},zT=function(e,t){var n=NT(e),r=HT(t),i=r.length>0,o=n.length>0,a="mobile"===t.theme;if(i||o||a){var s="\n- ",u=a?"\n\nThemes:"+s+"mobile":"",l=i?"\n\nPlugins:"+s+r.join(s):"",c=o?"\n\nSettings:"+s+n.join(s):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+u+l+c)}},jT=function(e,t){return{sections:O(e),settings:O(t)}},BT=Ut().deviceType,VT=BT.isTouch(),$T=BT.isPhone(),UT=BT.isTablet(),WT=["lists","autolink","autosave"],qT={table_grid:!1,object_resizing:!1,resize:!1},GT=function(e){var t=b(e)?e.join(" "):e,n=Q(v(t)?t.split(" "):[],dt);return ne(n,(function(e){return e.length>0}))},KT=function(e){return ne(e,P(J,WT))},JT=function(e,t){var n=Ce(t,(function(t,n){return J(e,n)}));return jT(n.t,n.f)},XT=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=Ee(r,t).getOr({});return pn.extend({},n,i)},QT=function(e,t){return Ae(e.sections(),t)},ZT=function(e,t,n){var r=e.sections();return QT(e,t)&&r[t].theme===n},eD=function(e,t){return QT(e,t)?e.sections()[t]:{}},tD=function(e,t){return Ee(e,"toolbar_mode").orThunk((function(){return Ee(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},nD=function(e,t,n,r,i){var o={id:t,theme:"silver",toolbar_mode:tD(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return $e($e({},o),r?qT:{})},rD=function(e,t){var n={resize:!1,toolbar_mode:tD(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return $e($e($e({},qT),n),t?r:{})},iD=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?pn.extend({},e.external_plugins,n):n},oD=function(e,t){return[].concat(GT(e)).concat(GT(t))},aD=function(e,t,n,r){return e&&ZT(t,"mobile","mobile")?KT(r):e&&QT(t,"mobile")?r:n},sD=function(e,t,n,r){var i=GT(n.forced_plugins),o=GT(r.plugins),a=eD(t,"mobile"),s=a.plugins?GT(a.plugins):o,u=aD(e,t,o,s),l=oD(i,u);if(en.browser.isIE()&&J(l,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return pn.extend(r,{plugins:l.join(" ")})},uD=function(e,t){return e&&QT(t,"mobile")},lD=function(e,t,n,r,i){var o=e?{mobile:rD(i.mobile||{},t)}:{},a=JT(["mobile"],FT(o,i)),s=pn.extend(n,r,a.settings(),uD(e,a)?XT(a,"mobile"):{},{validate:!0,external_plugins:iD(r,a.settings())});return sD(e,a,r,s)},cD=function(e,t,n,r,i){var o=nD(i,t,n,VT,e),a=lD($T||UT,$T,o,r,i);return!1!==a.deprecation_warnings&&zT(i,a),a},dD=function(e,t,n){return $.from(t.settings[n]).filter(e)},fD=function(e){var t={};return"string"===typeof e?Z(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[pn.trim(n[0])]=pn.trim(n[1]):t[pn.trim(n[0])]=pn.trim(n[0])})):t=e,t},hD=function(e){return function(t){return b(t)&&ce(t,e)}},pD=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?fD(i):"string"===r?dD(v,e,t).getOr(n):"number"===r?dD(L,e,t).getOr(n):"boolean"===r?dD(x,e,t).getOr(n):"object"===r?dD(_,e,t).getOr(n):"array"===r?dD(b,e,t).getOr(n):"string[]"===r?dD(hD(v),e,t).getOr(n):"function"===r?dD(S,e,t).getOr(n):i},mD=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Ae(e,t)};return{add:t,get:n,has:r}},gD=mD(),vD=function(e,t){var n=t.dom;return n[e]},_D=function(e,t){return parseInt(Si(t,e),10)},bD=P(vD,"clientWidth"),yD=P(vD,"clientHeight"),xD=P(_D,"margin-top"),wD=P(_D,"margin-left"),kD=function(e){return e.dom.getBoundingClientRect()},MD=function(e,t,n){var r=bD(e),i=yD(e);return t>=0&&n>=0&&t<=r&&n<=i},SD=function(e,t,n,r){var i=kD(t),o=e?i.left+t.dom.clientLeft+wD(t):0,a=e?i.top+t.dom.clientTop+xD(t):0,s=n-o,u=r-a;return{x:s,y:u}},LD=function(e,t,n){var r=yn.fromDom(e.getBody()),i=e.inline?r:Gn(r),o=SD(e.inline,i,t,n);return MD(i,o.x,o.y)},CD=function(e){return $.from(e).map(yn.fromDom)},TD=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return CD(t).map(Tr).getOr(!1)},DD=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},OD=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():DD()},r=function(){return $.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){se(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},u=function(u,l){if(void 0===l&&(l=!0),!e.removed&&TD(e))return l&&e.fire("BeforeOpenNotification",{notification:u}),ae(t,(function(e){return i(n().getArgs(e),u)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(u,(function(){s(t),o(),r().fold((function(){return e.focus()}),(function(e){return i_(yn.fromDom(e.getEl()))}))}));return a(t),o(),e.fire("OpenNotification",{notification:$e({},t)}),t}))},l=function(){r().each((function(e){n().close(e),s(e),o()}))},c=O(t),d=function(e){e.on("SkinLoaded",(function(){var t=rh(e);t&&u({text:t,type:"warning",timeout:0},!1),o()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Yo.requestAnimationFrame(o)})),e.on("remove",(function(){Z(t.slice(),(function(e){n().close(e)}))}))};return d(e),{open:u,close:l,getNotifications:c}},ED=cc.PluginManager,AD=cc.ThemeManager;function PD(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var FD=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():PD()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},u=function(){return $.from(t[t.length-1])},l=function(t){e.editorManager.setActive(e),R_(e);var n=t();return a(n),n},c=function(e,t){return l((function(){return n().open(e,t,s)}))},d=function(e){return l((function(){return n().openUrl(e,s)}))},f=function(e,t,i){var o=n();o.alert(e,r(i||o,t))},h=function(e,t,i){var o=n();o.confirm(e,r(i||o,t))},p=function(){u().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){Z(t,(function(e){n().close(e)}))})),{open:c,openUrl:d,alert:f,confirm:h,close:p}},ID=function(e,t){e.notificationManager.open({type:"error",text:t})},YD=function(e,t){e._skinLoaded?ID(e,t):e.on("SkinLoaded",(function(){ID(e,t)}))},RD=function(e,t){YD(e,lc.translate(["Failed to upload image: {0}",t]))},ND=function(e,t,n){Qg(e,t,{message:n}),console.error(n)},HD=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},zD=function(e,t,n){ND(e,"PluginLoadError",HD("plugin",t,n))},jD=function(e,t,n){ND(e,"IconsLoadError",HD("icons",t,n))},BD=function(e,t,n){ND(e,"LanguageLoadError",HD("language",t,n))},VD=function(e,t,n){var r=lc.translate(["Failed to initialize plugin: {0}",t]);Qg(e,"PluginLoadError",{message:r}),$D(r,n),YD(e,r)},$D=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,We([e],t,!1)):r.log.apply(r,We([e],t,!1)))},UD=function(e){return/^[a-z0-9\-]+$/i.test(e)},WD=function(e){return GD(e,Kf(e))},qD=function(e){return GD(e,Jf(e))},GD=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return Q(t,(function(t){return UD(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},KD=function(e){e.contentCSS=e.contentCSS.concat(WD(e),qD(e))},JD=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},u=function(t){n[t]=r(e,null)},l=function(e,i){n[e]=r(t,i)},c=function(e){delete n[e]},d=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:u,markUploaded:l,removeFailed:c,destroy:d}},XD=0,QD=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},ZD=function(e){return e+XD+++QD()},eO=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,i,o){if(v(e)){var a=e;return r({id:a,name:i,filename:o,blob:t,base64:n})}if(_(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||ZD("blobid"),r=e.name||n,i=e.blob;return{id:O(n),name:O(r),filename:O(e.filename||r+"."+t(i.type)),blob:O(i),base64:O(e.base64),blobUri:O(e.blobUri||URL.createObjectURL(i)),uri:O(e.uri)}},i=function(t){a(t.id())||e.push(t)},o=function(t){return ae(e,t).getOrUndefined()},a=function(e){return o((function(t){return t.id()===e}))},s=function(e){return o((function(t){return t.blobUri()===e}))},u=function(e,t){return o((function(n){return n.base64()===e&&n.blob().type===t}))},l=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},c=function(){Z(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:i,get:a,getByUri:s,getByData:u,findFirst:o,removeByUri:l,destroy:c}},tO=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,n,i,o){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",e.blob(),e.filename()),a.send(s)},o=function(){return new Do((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},s=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},u=function(e,t){pn.each(n[e],(function(e){e(t)})),delete n[e]},l=function(t,n,r){return e.markPending(t.blobUri()),new Do((function(i){var o,l;try{var c=function(){o&&(o.close(),l=C)},d=function(n){c(),e.markUploaded(t.blobUri(),n),u(t.blobUri(),a(t,n)),i(a(t,n))},f=function(n,r){var o=r||{};c(),e.removeFailed(t.blobUri()),u(t.blobUri(),s(t,n,o)),i(s(t,n,o))};l=function(e){e<0||e>100||$.from(o).orThunk((function(){return $.from(r).map(Y)})).each((function(t){o=t,t.progressBar.value(e)}))},n(t,d,f,l)}catch(h){i(s(t,h.message,{}))}}))},c=function(e){return e===i},d=function(e){var t=e.blobUri();return new Do((function(e){n[t]=n[t]||[],n[t].push(e)}))},f=function(n,r){return n=pn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Do.all(pn.map(n,(function(n){return e.isPending(n.blobUri())?d(n):l(n,t.handler,r)})))},h=function(e,n){return!t.url&&c(t.handler)?o():f(e,n)};return!1===S(t.handler)&&(t.handler=i),{upload:h}},nO=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},rO=function(e,t){return tO(t,{url:Hf(e),basePath:zf(e),credentials:jf(e),handler:Bf(e)})},iO=function(e){var t=JD(),n=rO(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?nO(e):void 0)}}},oO=function(e){var t=Jl(null);e.on("change AddUndo",(function(e){t.set($e({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!bL(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:me(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},aO=function(e){var t,n,r=eO(),i=JD(),o=[],a=oO(e),s=function(t){return function(n){return e.selection?t(n):[]}},u=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},l=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},c=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=l(e,'src="'+t+'"',r),e=l(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},d=function(t,n){Z(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=Q(e.fragments,(function(e){return c(e,t,n)})):e.content=c(e.content,t,n)}))},f=function(t,n){var r=e.convertURL(n,"src");d(t.src,n),e.$(t).attr({src:If(e)?u(n):n,"data-mce-src":r})},h=function(n){return t||(t=rO(e,i)),v().then(s((function(i){var o=Q(i,(function(e){return e.blobInfo}));return t.upload(o,nO(e)).then(s((function(t){var o=[],s=Q(t,(function(t,n){var a=i[n].blobInfo,s=i[n].image;return t.status&&Yf(e)?(r.removeByUri(s.src),HL(e)||f(s,t.url)):t.error&&(t.error.options.remove&&(d(s.getAttribute("src"),en.transparentSrc),o.push(s)),RD(e,t.error.message)),{element:s,status:t.status,uploadUri:t.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(HL(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Z(o,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(s),s})))})))},p=function(t){if(Ff(e))return h(t)},m=function(t){if(!1===ce(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Pf(e);return n(t)}return!0},g=function(e){o.push(e)},v=function(){return n||(n=WC(i,r)),n.findAll(e.getBody(),m).then(s((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(YD(e,t),!1)})),HL(e)||Z(t,(function(e){d(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},_=function(){r.destroy(),i.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=ie(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Ff(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Z(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:g,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:_}},sO=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Vr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){pn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return pn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},uO=function(e){var t={},n=function(e){return M(e)?t[e]:t},r=function(e){return Ae(t,e)},i=function(e,n){e&&(v(e)?(b(n)||(n=[n]),Z(n,(function(e){w(e.deep)&&(e.deep=!$m(e)),w(e.split)&&(e.split=!$m(e)||Um(e)),w(e.remove)&&$m(e)&&!Um(e)&&(e.remove="none"),$m(e)&&Um(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):we(e,(function(e,t){i(t,e)})))},o=function(e){return e&&t[e]&&delete t[e],t};return i(sO(e.dom)),i(sh(e)),{get:n,has:r,register:i,unregister:o}},lO=pn.each,cO=jl.DOM,dO=function(e,t){var n,r,i,o=t&&t.schema||js({}),a=function(e,t){t.classes.length&&cO.addClass(e,t.classes.join(" ")),cO.setAttribs(e,t.attrs)},s=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=cO.create(r.name);return a(t,r),t},u=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==pn.inArray(i,t)?t:i[0])},l=function(e,t,n){var r,i,o=t.length>0&&t[0],a=o&&o.name,c=u(e,a);if(c)a===c?(i=t[0],t=t.slice(1)):i=c;else if(o)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=cO.create("div"),r.appendChild(e)),pn.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),l(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=cO.create("div"),i.appendChild(l(n,e.slice(1),r.siblings)),i):""},fO=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=pn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==pn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},hO=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),pn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=pn.map(e.split(/(?:~\+|~|\+)/),fO),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},pO=function(e,t){var n,r,i,o="",a=uh(e);if(""===a)return"";var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var u=Ee(t,"preview");if(li(u,!1))return"";a=u.getOr(a)}n=t.block||t.inline||"span";var l=hO(t.selector);l.length?(l[0].name||(l[0].name=n),n=t.selector,r=dO(l,e)):r=dO([n],e);var c=cO.select(n,r)[0]||r.firstChild;return lO(t.styles,(function(e,t){var n=s(e);n&&cO.setStyle(c,t,n)})),lO(t.attributes,(function(e,t){var n=s(e);n&&cO.setAttrib(c,t,n)})),lO(t.classes,(function(e){var t=s(e);cO.hasClass(c,t)||cO.addClass(c,t)})),e.fire("PreviewFormats"),cO.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),i=cO.getStyle(e.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,lO(a.split(" "),(function(t){var n=cO.getStyle(c,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=cO.getStyle(e.getBody(),t,!0),"#ffffff"!==cO.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==cO.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===t&&n&&(o+="padding:0 2px;"),o+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),cO.remove(r),o},mO=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},gO=function(e){var t=uO(e),n=Jl(null);return mO(e),dM(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){aC(e,t,n,r)},remove:function(t,n,r,i){sC(e,t,n,r,i)},toggle:function(t,n,r){uC(e,t,n,r)},match:function(t,n,r,i){return tC(e,t,n,r,i)},closest:function(t){return oC(e,t)},matchAll:function(t,n){return nC(e,t,n)},matchNode:function(t,n,r,i){return rC(e,t,n,r,i)},canApply:function(t){return iC(e,t)},formatChanged:function(t,r,i,o){return lC(e,n,t,r,i,o)},getCssText:P(pO,e)}},vO=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},_O=function(e,t,n){var r=Jl(!1),i=function(e){xL(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;vO(r)||(wL(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;vO(t)||i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===bL(hL(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),xL(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},s=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(o(e)||a(e)||s(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},bO=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},yO=function(e){var t=fc(),n=Jl(0),r=Jl(0),i={data:[],typing:!1,beforeChange:function(){$L(e,n,t)},add:function(o,a){return UL(e,i,r,n,t,o,a)},undo:function(){return WL(e,i,n,r)},redo:function(){return qL(e,r,i.data)},clear:function(){GL(e,i,r)},reset:function(){KL(e,i)},hasUndo:function(){return JL(e,i,r)},hasRedo:function(){return XL(e,i,r)},transact:function(t){return QL(e,i,n,t)},ignore:function(t){ZL(e,n,t)},extra:function(t,n){eC(e,i,r,t,n)}};return HL(e)||_O(e,i,n),bO(e),i},xO=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),wO="data-mce-placeholder",kO=function(e){return"keydown"===e.type||"keyup"===e.type},MO=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},SO=function(e){if(kO(e)){var t=e.keyCode;return!MO(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||J(xO,t))}return!1},LO=function(e){return kO(e)&&!(MO(e)||"keyup"===e.type&&229===e.keyCode)},CO=function(e,t,n){if(ns(yn.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1},TO=function(e){var t=e.dom,n=Sf(e),r=th(e),i=function(o,a){if(!SO(o)){var s=e.getBody(),u=!LO(o)&&CO(t,s,n),l=""!==t.getAttrib(s,wO);(l!==u||a)&&(t.setAttrib(s,wO,u?r:null),t.setAttrib(s,"aria-placeholder",u?r:null),Xg(e,u),e.on(u?"keydown":"keyup",i),e.off(u?"keyup":"keydown",i))}};r&&e.on("init",(function(t){i(t,!0),e.on("change SetContent ExecCommand",i),e.on("paste",(function(t){return Yo.setEditorTimeout(e,(function(){return i(t)}))}))}))},DO=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,OO=function(e){return DO.test(e)},EO=function(e,t){return Dn(yn.fromDom(t),Qf(e))},AO=function(e){return"rtl"===jl.DOM.getStyle(e,"direction",!0)||OO(e.textContent)},PO=function(e,t,n){return ne(jl.DOM.getParents(n.container(),"*",t),e)},FO=function(e,t,n){var r=PO(e,t,n);return $.from(r[r.length-1])},IO=function(e,t,n){var r=cp(t,e),i=cp(n,e);return r&&r===i},YO=function(e){return wa(e)||ka(e)},RO=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?_a(n)?Zr(n.nextSibling)?Ad(n.nextSibling,0):Ad.after(n):wa(t)?Ad(n,r+1):t:_a(n)?Zr(n.previousSibling)?Ad(n.previousSibling,n.previousSibling.data.length):Ad.before(n):ka(t)?Ad(n,r-1):t},NO=P(RO,!0),HO=P(RO,!1),zO=function(e){return function(t){return Pn(e,yn.fromDom(t.dom.parentNode))}},jO=function(e){return ta(e)||ra(e)},BO=function(e,t){return Yn(e,t)?ko(t,jO,zO(e)):$.none()},VO=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},$O=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),VO(e))},UO=function(e,t,n){return di(Xp(n),Qp(n),(function(r,i){var o=RO(!0,r),a=RO(!1,i),s=RO(!1,t);return e?Kp(n,s).exists((function(e){return e.isEqual(a)&&t.isEqual(o)})):Jp(n,s).exists((function(e){return e.isEqual(o)&&t.isEqual(a)}))})).getOr(!0)},WO=function(e,t){return{block:e,position:t}},qO=function(e,t){return{from:e,to:t}},GO=function(e,t){var n=yn.fromDom(e),r=yn.fromDom(t.container());return BO(n,r).map((function(e){return WO(e,t)}))},KO=function(e){return!1===Pn(e.from.block,e.to.block)},JO=function(e){return Jn(e.from.block).bind((function(t){return Jn(e.to.block).filter((function(e){return Pn(t,e)}))})).isSome()},XO=function(e){return!1===ai(e.from.block.dom)&&!1===ai(e.to.block.dom)},QO=function(e,t,n){return ri(n.position.getNode())&&!1===ns(n.block)?Gp(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Up(t,e,r).bind((function(t){return GO(e,t)})):$.some(n)})).getOr(n):n},ZO=function(e,t,n){var r=GO(e,Ad.fromRangeStart(n)),i=r.bind((function(n){return Up(t,e,n.position).bind((function(n){return GO(e,n).map((function(n){return QO(e,t,n)}))}))}));return di(r,i,qO).filter((function(e){return KO(e)&&JO(e)&&XO(e)}))},eE=function(e,t,n){return n.collapsed?ZO(e,t,n):$.none()},tE=function(e){var t=rr(e);return se(t,Xo).fold(O(t),(function(e){return t.slice(0,e)}))},nE=function(e){var t=tE(e);return Z(t,Lr),t},rE=function(e,t){var n=Yy(t,e);return ae(n.reverse(),(function(e){return ns(e)})).each(Lr)},iE=function(e){return 0===ne(tr(e),(function(e){return!ns(e)})).length},oE=function(e,t,n,r){if(ns(n))return Ey(n),Xp(n.dom);iE(r)&&ns(t)&&_r(r,yn.fromTag("br"));var i=Jp(n.dom,Ad.before(r.dom));return Z(nE(t),(function(e){_r(r,e)})),rE(e,t),i},aE=function(e,t,n){if(ns(n))return Lr(n),ns(t)&&Ey(t),Xp(t.dom);var r=Qp(n.dom);return Z(nE(t),(function(e){xr(n,e)})),rE(e,t),r},sE=function(e,t){var n=Yy(t,e);return $.from(n[n.length-1])},uE=function(e,t){return Yn(t,e)?sE(t,e):$.none()},lE=function(e,t){Gp(e,t.dom).map((function(e){return e.getNode()})).map(yn.fromDom).filter(ea).each(Lr)},cE=function(e,t,n){return lE(!0,t),lE(!1,n),uE(t,n).fold(P(aE,e,t,n),P(oE,e,t,n))},dE=function(e,t,n,r){return t?cE(e,r,n):cE(e,n,r)},fE=function(e,t){var n=yn.fromDom(e.getBody()),r=eE(n.dom,t,e.selection.getRng()).bind((function(e){return dE(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},hE=function(e,t){var n=t.getRng();return di(BO(e,yn.fromDom(n.startContainer)),BO(e,yn.fromDom(n.endContainer)),(function(r,i){return!1===Pn(r,i)&&(n.deleteContents(),dE(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},pE=function(e,t){var n=yn.fromDom(t),r=P(Pn,e);return wo(n,oa,r).isSome()},mE=function(e,t){return pE(e,t.startContainer)||pE(e,t.endContainer)},gE=function(e,t){var n=Jp(e.dom,Ad.fromRangeStart(t)).isNone(),r=Kp(e.dom,Ad.fromRangeEnd(t)).isNone();return!mE(e,t)&&n&&r},vE=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},_E=function(e){var t=yn.fromDom(e.getBody()),n=e.selection.getRng();return gE(t,n)?vE(e):hE(t,e.selection)},bE=function(e,t){return!e.selection.isCollapsed()&&_E(e)},yE=oi,xE=ai,wE=function(e,t,n,r,i){return $.from(t._selectionOverrides.showCaret(e,n,r,i))},kE=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},ME=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?$.none():$.some(kE(t))},SE=function(e,t,n){var r=_p(1,e.getBody(),t),i=Ad.fromRangeStart(r),o=i.getNode();if(Xh(o))return wE(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Xh(a))return wE(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return xE(e)||yE(e)}));return Xh(s)?wE(1,e,s,!1,n):$.none()},LE=function(e,t,n){return t.collapsed?SE(e,t,n).getOr(t):t},CE=function(e){return Cy(e)||ky(e)},TE=function(e){return Ty(e)||My(e)},DE=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},OE=function(e,t,n,r,i,o){return wE(r,e,o.getNode(!i),i,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),DE(e.dom,n),!0},EE=function(e,t){var n=e.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var r=t?Pd.Forwards:Pd.Backwards,i=Rp(e.getBody()),o=P(kp,t?i.next:i.prev),a=t?CE:TE,s=yp(r,e.getBody(),n),u=RO(t,o(s));if(!u||!Mp(s,u))return!1;if(a(u))return OE(e,n,s.getNode(),r,t,u);var l=o(u);return!!(l&&a(l)&&Mp(u,l))&&OE(e,n,s.getNode(),r,t,l)},AE=function(e,t){return EE(e,t)},PE=function(e){return oa(yn.fromDom(e))||ra(yn.fromDom(e))},FE=Zi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),IE=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Vr(n)&&n.getAttribute("data-mce-caret")===r},YE=function(e,t,n,r){var i=function(t){return Zo(yn.fromDom(t))&&!dp(n,r,e)};return bp(!t,n).fold((function(){return bp(t,r).fold(N,i)}),i)},RE=function(e,t,n,r){var i=r.getNode(!1===t);return BO(yn.fromDom(e),yn.fromDom(n.getNode())).map((function(e){return ns(e)?FE.remove(e.dom):FE.moveToElement(i)})).orThunk((function(){return $.some(FE.moveToElement(i))}))},NE=function(e,t,n){return Up(t,e,n).bind((function(r){return PE(r.getNode())||YE(e,t,n,r)?$.none():t&&ai(r.getNode())||!1===t&&ai(r.getNode(!0))?RE(e,t,n,r):t&&Ty(n)||!1===t&&Cy(n)?$.some(FE.moveToPosition(r)):$.none()}))},HE=function(e,t){return e&&ai(t.nextSibling)?$.some(FE.moveToElement(t.nextSibling)):!1===e&&ai(t.previousSibling)?$.some(FE.moveToElement(t.previousSibling)):$.none()},zE=function(e,t,n){return n.fold((function(e){return $.some(FE.remove(e))}),(function(e){return $.some(FE.moveToElement(e))}),(function(n){return dp(t,n,e)?$.none():$.some(FE.moveToPosition(n))}))},jE=function(e,t,n){return IE(t,n)?HE(t,n.getNode(!1===t)).fold((function(){return NE(e,t,n)}),$.some):NE(e,t,n).bind((function(t){return zE(e,n,t)}))},BE=function(e,t,n){var r=_p(t?1:-1,e,n),i=Ad.fromRangeStart(r),o=yn.fromDom(e);return!1===t&&Ty(i)?$.some(FE.remove(i.getNode(!0))):t&&Cy(i)?$.some(FE.remove(i.getNode())):!1===t&&Cy(i)&&Gy(o,i)?Ky(o,i).map((function(e){return FE.remove(e.getNode())})):t&&Ty(i)&&qy(o,i)?Jy(o,i).map((function(e){return FE.remove(e.getNode())})):jE(e,t,i)},VE=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),Bx(e,t,yn.fromDom(n)),!0}},$E=function(e,t){return function(n){var r=t?Ad.before(n):Ad.after(n);return e.selection.setRng(r.toRange()),!0}},UE=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},WE=function(e,t){return $.from(Hg(e.getBody(),t))},qE=function(e,t){var n=e.selection.getNode();return WE(e,n).filter(ai).fold((function(){return BE(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(VE(e,t),$E(e,t),UE(e))}))}),H)},GE=function(e){Z(Cc(e,".mce-offscreen-selection"),Lr)},KE=function(e,t){var n=e.selection.getNode();if(ai(n)&&!si(n)){var r=WE(e,n.parentNode).filter(ai);return r.fold((function(){return GE(yn.fromDom(e.getBody())),Bx(e,t,yn.fromDom(e.selection.getNode())),$O(e),!0}),H)}return!1},JE=function(e){var t=e.dom,n=e.selection,r=Hg(e.getBody(),n.getNode());if(oi(r)&&t.isBlock(r)&&t.isEmpty(r)){var i=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(i),n.setRng(Ad.before(i).toRange())}return!0},XE=function(e,t){return e.selection.isCollapsed()?qE(e,t):KE(e,t)},QE=function(e,t){var n=Ad.fromRangeStart(e.selection.getRng());return Up(t,e.getBody(),n).filter((function(e){return t?xy(e):wy(e)})).bind((function(e){return $.from(fp(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},ZE=function(e,t){return!!e.selection.isCollapsed()&&QE(e,t)},eA=Zr,tA=function(e){return eA(e)&&e.data[0]===fa},nA=function(e){return eA(e)&&e.data[e.data.length-1]===fa},rA=function(e){return e.ownerDocument.createTextNode(fa)},iA=function(e){if(eA(e.previousSibling))return nA(e.previousSibling)||e.previousSibling.appendData(fa),e.previousSibling;if(eA(e))return tA(e)||e.insertData(0,fa),e;var t=rA(e);return e.parentNode.insertBefore(t,e),t},oA=function(e){if(eA(e.nextSibling))return tA(e.nextSibling)||e.nextSibling.insertData(0,fa),e.nextSibling;if(eA(e))return nA(e)||e.appendData(fa),e;var t=rA(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},aA=function(e,t){return e?iA(t):oA(t)},sA=P(aA,!0),uA=P(aA,!1),lA=function(e,t){return Zr(e.container())?aA(t,e.container()):aA(t,e.getNode())},cA=function(e,t){var n=t.get();return n&&e.container()===n&&_a(n)},dA=function(e,t){return t.fold((function(t){jh(e.get());var n=sA(t);return e.set(n),$.some(Ad(n,n.length-1))}),(function(t){return Xp(t).map((function(t){if(cA(t,e))return Ad(e.get(),1);jh(e.get());var n=lA(t,!0);return e.set(n),Ad(n,1)}))}),(function(t){return Qp(t).map((function(t){if(cA(t,e))return Ad(e.get(),e.get().length-1);jh(e.get());var n=lA(t,!1);return e.set(n),Ad(n,n.length-1)}))}),(function(t){jh(e.get());var n=uA(t);return e.set(n),$.some(Ad(n,1))}))},fA=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return $.none()},hA=Zi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),pA=function(e,t){var n=cp(t,e);return n||e},mA=function(e,t,n){var r=NO(n),i=pA(t,r.container());return FO(e,i,r).fold((function(){return Kp(i,r).bind(P(FO,e,i)).map((function(e){return hA.before(e)}))}),$.none)},gA=function(e,t){return null===tm(e,t)},vA=function(e,t,n){return FO(e,t,n).filter(P(gA,t))},_A=function(e,t,n){var r=HO(n);return vA(e,t,r).bind((function(e){var t=Jp(e,r);return t.isNone()?$.some(hA.start(e)):$.none()}))},bA=function(e,t,n){var r=NO(n);return vA(e,t,r).bind((function(e){var t=Kp(e,r);return t.isNone()?$.some(hA.end(e)):$.none()}))},yA=function(e,t,n){var r=HO(n),i=pA(t,r.container());return FO(e,i,r).fold((function(){return Jp(i,r).bind(P(FO,e,i)).map((function(e){return hA.after(e)}))}),$.none)},xA=function(e){return!1===AO(kA(e))},wA=function(e,t,n){var r=fA([mA,_A,bA,yA],[e,t,n]);return r.filter(xA)},kA=function(e){return e.fold(E,E,E,E)},MA=function(e){return e.fold(O("before"),O("start"),O("end"),O("after"))},SA=function(e){return e.fold(hA.before,hA.before,hA.after,hA.after)},LA=function(e){return e.fold(hA.start,hA.start,hA.end,hA.end)},CA=function(e,t){return MA(e)===MA(t)&&kA(e)===kA(t)},TA=function(e,t,n,r,i,o){return di(FO(t,n,r),FO(t,n,i),(function(t,r){return t!==r&&IO(n,t,r)?hA.after(e?t:r):o})).getOr(o)},DA=function(e,t){return e.fold(H,(function(e){return!CA(e,t)}))},OA=function(e,t,n,r,i){var o=RO(e,i),a=Up(e,n,o).map(P(RO,e)),s=a.fold((function(){return r.map(SA)}),(function(i){return wA(t,n,i).map(P(TA,e,t,n,o,i)).filter(P(DA,r))}));return s.filter(xA)},EA=function(e,t){return e?t.fold(T($.some,hA.start),$.none,T($.some,hA.after),$.none):t.fold($.none,T($.some,hA.before),$.none,T($.some,hA.end))},AA=function(e,t,n,r){var i=RO(e,r),o=wA(t,n,i);return wA(t,n,i).bind(P(EA,e)).orThunk((function(){return OA(e,t,n,o,r)}))};P(AA,!1),P(AA,!0);var PA,FA=function(e){return S(e.selection.getSel().modify)},IA=function(e,t,n){var r=e?1:-1;return t.setRng(Ad(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},YA=function(e,t){var n=t.selection.getRng(),r=e?Ad.fromRangeEnd(n):Ad.fromRangeStart(n);return!!FA(t)&&(e&&wa(r)?IA(!0,t.selection,r):!(e||!ka(r))&&IA(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(PA||(PA={}));var RA,NA=function(e,t){return e===Pd.Backwards?de(t):t},HA=function(e,t,n){return e===Pd.Forwards?t.next(n):t.prev(n)},zA=function(e,t,n,r){return ri(r.getNode(t===Pd.Forwards))?PA.Br:!1===dp(n,r)?PA.Block:PA.Wrap},jA=function(e,t,n,r){var i=Rp(n),o=r,a=[];while(o){var s=HA(t,i,o);if(!s)break;if(ri(s.getNode(!1)))return t===Pd.Forwards?{positions:NA(t,a).concat([s]),breakType:PA.Br,breakAt:$.some(s)}:{positions:NA(t,a),breakType:PA.Br,breakAt:$.some(s)};if(s.isVisible()){if(e(o,s)){var u=zA(n,t,o,s);return{positions:NA(t,a),breakType:u,breakAt:$.some(s)}}a.push(s),o=s}else o=s}return{positions:NA(t,a),breakType:PA.Eol,breakAt:$.none()}},BA=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===Pd.Backwards?i.concat(r):[r].concat(i)})).getOr([])},VA=function(e,t){return ie(e,(function(e,n){return e.fold((function(){return $.some(n)}),(function(r){return di(ge(r.getClientRects()),ge(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),$.none())},$A=function(e,t){return ge(t.getClientRects()).bind((function(t){return VA(e,t.left)}))},UA=P(jA,Ad.isAbove,-1),WA=P(jA,Ad.isBelow,1),qA=P(BA,-1,UA),GA=P(BA,1,WA),KA=function(e,t){return UA(e,t).breakAt.isNone()},JA=function(e,t){return WA(e,t).breakAt.isNone()},XA=function(e){return Xp(e).map((function(t){return[t].concat(WA(e,t).positions)})).getOr([])},QA=function(e){return Qp(e).map((function(t){return UA(e,t).positions.concat(t)})).getOr([])},ZA=function(e){var t=function(t){return Q(t,(function(t){var n=Xc(t);return n.node=e,n}))};if(Vr(e))return t(e.getClientRects());if(Zr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},eP=function(e){return le(e,ZA)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(RA||(RA={}));var tP,nP,rP=function(e,t,n,r){while(r=lp(r,e,Ua,t))if(n(r))return},iP=function(e,t,n,r,i,o){var a=0,s=[],u=function(r){var o=eP([r]);-1===e&&(o=o.reverse());for(var u=0;u<o.length;u++){var c=o[u];if(!n(c,l)){if(s.length>0&&t(c,Ve(s))&&a++,c.line=a,i(c))return!0;s.push(c)}}},l=Ve(o.getClientRects());if(!l)return s;var c=o.getNode();return u(c),rP(e,r,u,c),s},oP=function(e,t){return t.line>e},aP=function(e,t){return t.line===e},sP=P(iP,RA.Up,td,nd),uP=P(iP,RA.Down,nd,td),lP=function(e,t,n,r){var i,o,a,s,u=Rp(t),l=[],c=0,d=function(e){return Ve(e.getClientRects())};1===e?(i=u.next,o=nd,a=td,s=Ad.after(r)):(i=u.prev,o=td,a=nd,s=Ad.before(r));var f=d(s);do{if(s.isVisible()){var h=d(s);if(!a(h,f)){l.length>0&&o(h,Ve(l))&&c++;var p=Xc(h);if(p.position=s,p.line=c,n(p))return l;l.push(p)}}}while(s=i(s));return l},cP=function(e){return function(t){return oP(e,t)}},dP=function(e){return function(t){return aP(e,t)}},fP=ai,hP=lp,pP=function(e,t){return Math.abs(e.left-t)},mP=function(e,t){return Math.abs(e.right-t)},gP=function(e,t){return e>=t.left&&e<=t.right},vP=function(e,t){return e>=t.top&&e<=t.bottom},_P=function(e){return Pe(e,"node")},bP=function(e,t,n){return void 0===n&&(n=H),je(e,(function(e,r){if(gP(t,r))return n(r)?r:e;if(gP(t,e))return n(e)?e:r;var i=Math.min(pP(e,t),mP(e,t)),o=Math.min(pP(r,t),mP(r,t));return o===i&&_P(r)&&fP(r.node)||o<i?r:e}))},yP=function(e,t,n,r,i){var o=hP(r,e,Ua,t,!i);do{if(!o||n(o))return}while(o=hP(o,e,Ua,t))},xP=function(e,t,n){void 0===n&&(n=!0);var r=[],i=function(e,n){var i=ne(eP([n]),(function(n){return!e(n,t)}));return r=r.concat(i),0===i.length};return r.push(t),yP(RA.Up,e,P(i,td),t.node,n),yP(RA.Down,e,P(i,nd),t.node,n),r},wP=function(e){return ne(_e(e.getElementsByTagName("*")),Qh)},kP=function(e,t){return{node:e.node,before:pP(e,t)<mP(e,t)}},MP=function(e,t,n){var r=eP(wP(e)),i=ne(r,P(vP,n)),o=function(e){return!Jr(e.node)&&!ui(e.node)},a=bP(i,t,o);if(a){var s=o(a);if(a=bP(xP(e,a,s),t,o),a&&Qh(a.node))return kP(a,t)}return null},SP=function(e,t){e.selection.setRng(t),n_(e,e.selection.getRng())},LP=function(e,t,n){return $.some(LE(e,t,n))},CP=function(e,t,n,r,i,o){var a=t===Pd.Forwards,s=Rp(e.getBody()),u=P(kp,a?s.next:s.prev),l=a?r:i;if(!n.collapsed){var c=od(n);if(o(c))return wE(t,e,c,t===Pd.Backwards,!1)}var d=yp(t,e.getBody(),n);if(l(d))return ME(e,d.getNode(!a));var f=RO(a,u(d)),h=Oa(n);if(!f)return h?$.some(n):$.none();if(l(f))return wE(t,e,f.getNode(!a),a,!1);var p=u(f);return p&&l(p)&&Mp(f,p)?wE(t,e,p.getNode(!a),a,!1):h?LP(e,f.toRange(),!1):$.none()},TP=function(e,t,n,r,i,o){var a=yp(t,e.getBody(),n),s=Ve(a.getClientRects()),u=t===RA.Down;if(!s)return $.none();var l,c=u?uP:sP,d=c(e.getBody(),cP(1),a),f=ne(d,dP(1)),h=s.left,p=bP(f,h);if(p&&o(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return wE(t,e,p.node,m<g,!1)}if(l=r(a)?a.getNode():i(a)?a.getNode(!0):od(n),l){var v=lP(t,e.getBody(),cP(1),l),_=bP(ne(v,dP(1)),h);if(_)return LP(e,_.position.toRange(),!1);if(_=Ve(ne(v,dP(0))),_)return LP(e,_.position.toRange(),!1)}return 0===f.length?DP(e,u).filter(u?i:r).map((function(t){return LE(e,t.toRange(),!1)})):$.none()},DP=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=Ad.fromRangeEnd(n),o=WA(r,i);return ve(o.positions)}i=Ad.fromRangeStart(n),o=UA(r,i);return ge(o.positions)},OP=function(e,t,n){return DP(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},EP=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},AP=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},PP=function(e,t,n){return dA(t,n).map((function(t){return EP(e,t),n}))},FP=function(e,t,n){var r=e.getBody(),i=Ad.fromRangeStart(e.selection.getRng()),o=P(EO,e),a=AA(n,o,r,i);return a.bind((function(n){return PP(e,t,n)}))},IP=function(e,t,n){var r=Q(Cc(yn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),i=ne(r,e),o=ne(n,e);Z(fe(i,o),P(AP,!1)),Z(fe(o,i),P(AP,!0))},YP=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Ad.fromRangeStart(e.selection.getRng());Ad.isTextPosition(n)&&!1===YO(n)&&(EP(e,zh(t.get(),n)),t.set(null))}},RP=function(e,t,n,r){if(t.selection.isCollapsed()){var i=ne(r,e);Z(i,(function(r){var i=Ad.fromRangeStart(t.selection.getRng());wA(e,t.getBody(),i).bind((function(e){return PP(t,n,e)}))}))}},NP=function(e,t,n){return!!ah(e)&&FP(e,t,n).isSome()},HP=function(e,t,n){return!!ah(t)&&YA(e,t)},zP=function(e){var t=Jl(null),n=P(EO,e);return e.on("NodeChange",(function(r){!ah(e)||en.browser.isIE()&&r.initial||(IP(n,e.dom,r.parents),YP(e,t),RP(n,e,t,r.parents))})),t},jP=P(HP,!0),BP=P(HP,!1),VP=function(e,t,n){if(ah(e)){var r=DP(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Ad.fromRangeEnd(n):Ad.fromRangeStart(n)}));return wA(P(EO,e),e.getBody(),r).exists((function(t){var r=SA(t);return dA(n,r).exists((function(t){return EP(e,t),!0}))}))}return!1},$P=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},UP=function(e){return di(Xp(e),Qp(e),(function(t,n){var r=RO(!0,t),i=RO(!1,n);return Kp(e,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)},WP=function(e,t){return function(n){return dA(t,n).exists((function(t){return EP(e,t),!0}))}},qP=function(e,t,n,r){var i=e.getBody(),o=P(EO,e);e.undoManager.ignore((function(){e.selection.setRng($P(n,r)),e.execCommand("Delete"),wA(o,i,Ad.fromRangeStart(e.selection.getRng())).map(LA).map(WP(e,t))})),e.nodeChanged()},GP=function(e,t){var n=cp(t,e);return n||e},KP=function(e,t,n,r){var i=GP(e.getBody(),r.container()),o=P(EO,e),a=wA(o,i,r);return a.bind((function(e){return n?e.fold(O($.some(LA(e))),$.none,O($.some(SA(e))),$.none):e.fold($.none,O($.some(SA(e))),$.none,O($.some(LA(e))))})).map(WP(e,t)).getOrThunk((function(){var s=Wp(n,i,r),u=s.bind((function(e){return wA(o,i,e)}));return di(a,u,(function(){return FO(o,i,r).exists((function(t){return!!UP(t)&&(Bx(e,n,yn.fromDom(t)),!0)}))})).orThunk((function(){return u.bind((function(i){return s.map((function(i){return n?qP(e,t,r,i):qP(e,t,i,r),!0}))}))})).getOr(!1)}))},JP=function(e,t,n){if(e.selection.isCollapsed()&&ah(e)){var r=Ad.fromRangeStart(e.selection.getRng());return KP(e,t,n,r)}return!1},XP=function(e,t){var n=Yy(t,e);return se(n,Xo).fold(O(n),(function(e){return n.slice(0,e)}))},QP=function(e){return 1===sr(e)},ZP=function(e,t,n,r){var i=P(hM,t),o=Q(ne(r,i),(function(e){return e.dom}));if(0===o.length)Bx(t,e,n);else{var a=fM(n.dom,o);t.selection.setRng(a.toRange())}},eF=function(e,t){var n=yn.fromDom(e.getBody()),r=yn.fromDom(e.selection.getStart()),i=ne(XP(n,r),QP);return ve(i).exists((function(n){var r=Ad.fromRangeStart(e.selection.getRng());return!(!UO(t,r,n.dom)||pM(n))&&(ZP(t,e,n,i),!0)}))},tF=function(e,t){return!!e.selection.isCollapsed()&&eF(e,t)},nF=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),Bx(e,t,yn.fromDom(n)),!0},rF=function(e,t){var n=t?ky:My,r=t?Pd.Forwards:Pd.Backwards,i=yp(r,e.getBody(),e.selection.getRng());return n(i)?nF(e,t,i.getNode(!t)):$.from(RO(t,i)).filter((function(e){return n(e)&&Mp(i,e)})).exists((function(n){return nF(e,t,n.getNode(!t))}))},iF=function(e,t){var n=e.selection.getNode();return!!ui(n)&&nF(e,t,n)},oF=function(e,t){return e.selection.isCollapsed()?rF(e,t):iF(e,t)},aF=function(e){return ko(e,(function(e){return oi(e.dom)||ai(e.dom)})).exists((function(e){return oi(e.dom)}))},sF=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},uF=function(e,t){var n=e||Qo(t)?"margin":"padding",r="rtl"===Si(t,"direction")?"-right":"-left";return n+r},lF=function(e,t,n,r,i,o){var a=uF(n,yn.fromDom(o));if("outdent"===t){var s=Math.max(0,sF(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=sF(o.style[a])+r+i;e.setStyle(o,a,s)}},cF=function(e,t){return ce(t,(function(t){var n=uF(qf(e),t),r=Ci(t,n).map(sF).getOr(0),i=e.dom.getContentEditable(t.dom);return"false"!==i&&r>0}))},dF=function(e){var t=pF(e);return!e.mode.isReadOnly()&&(t.length>1||cF(e,t))},fF=function(e){return na(e)||ra(e)},hF=function(e){return Jn(e).exists(fF)},pF=function(e){return ne(Bc(e.selection.getSelectedBlocks()),(function(e){return!fF(e)&&!hF(e)&&aF(e)}))},mF=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Gf(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),u=qf(e),l=Sf(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==l||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Z(pF(e),(function(e){lF(n,t,u,s,a,e.dom)}))},gF=function(e,t){if(e.selection.isCollapsed()&&dF(e)){var n=e.dom,r=e.selection.getRng(),i=Ad.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&jy(yn.fromDom(o),i))return mF(e,"outdent"),!0}return!1},vF=function(e,t){e.getDoc().execCommand(t,!1,null)},_F=function(e,t){gF(e)||XE(e,!1)||AE(e,!1)||JP(e,t,!1)||fE(e,!1)||Nw(e)||ZE(e,!1)||oF(e,!1)||bE(e)||tF(e,!1)||(vF(e,"Delete"),$O(e))},bF=function(e,t){XE(e,!0)||AE(e,!0)||JP(e,t,!0)||fE(e,!0)||Nw(e)||ZE(e,!0)||oF(e,!0)||bE(e)||tF(e,!0)||vF(e,"ForwardDelete")},yF=function(e,t){e.addCommand("delete",(function(){_F(e,t)})),e.addCommand("forwardDelete",(function(){bF(e,t)}))},xF=5,wF=400,kF=function(e){return void 0===e.touches||1!==e.touches.length?$.none():$.some(e.touches[0])},MF=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>xF||r>xF},SF=function(e){var t=fc(),n=Jl(!1),r=pc((function(t){e.fire("longpress",$e($e({},t),{type:"longpress"})),n.set(!0)}),wF);e.on("touchstart",(function(e){kF(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(o)}))}),!0),e.on("touchmove",(function(i){r.cancel(),kF(i).each((function(r){t.on((function(i){MF(r,i)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&t.get().filter((function(e){return e.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():e.fire("tap",$e($e({},i),{type:"tap"}))}))}),!0)},LF=function(e,t){return Ae(e,t.nodeName)},CF=function(e,t){return!!Zr(t)||!!Vr(t)&&(!LF(e,t)&&!wm(t))},TF=function(e,t,n){return X(Iy(yn.fromDom(n),yn.fromDom(t)),(function(t){return LF(e,t.dom)}))},DF=function(e,t){if(Zr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||LF(e,t.nextSibling)))return!0}return!1},OF=function(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),u=o.getStart(),l=e.getBody(),c=Sf(e);if(u&&Vr(u)&&c){var d=l.nodeName.toLowerCase();if(a.isValidChild(d,c.toLowerCase())&&!TF(s,l,u)){var f=o.getRng(),h=f.startContainer,p=f.startOffset,m=f.endContainer,g=f.endOffset,v=fb(e);u=l.firstChild;while(u)if(CF(s,u)){if(DF(s,u)){n=u,u=u.nextSibling,i.remove(n);continue}t||(t=i.create(c,Lf(e)),u.parentNode.insertBefore(t,u),r=!0),n=u,u=u.nextSibling,t.appendChild(n)}else t=null,u=u.nextSibling;r&&v&&(f.setStart(h,p),f.setEnd(m,g),o.setRng(f),e.nodeChanged())}}},EF=function(e){Sf(e)&&e.on("NodeChange",P(OF,e))},AF=function(e){return Co(yn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},PF=function(e){e.selection.setRng(e.selection.getRng())},FF=function(e,t){t.hasAttribute("data-mce-caret")&&(Da(t),PF(e),e.selection.scrollIntoView(t))},IF=function(e,t){var n=AF(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void FF(e,n)):void(ya(n)&&(FF(e,n),e.undoManager.add()))},YF=function(e){e.on("keyup compositionstart",P(IF,e))},RF=ai,NF=function(e,t,n){return CP(t,e,n,Cy,Ty,RF)},HF=function(e,t,n){var r=function(e){return Cy(e)||Sy(e)},i=function(e){return Ty(e)||Ly(e)};return TP(t,e,n,r,i,RF)},zF=function(e){var t=e.dom.create(Sf(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},jF=function(e,t,n){var r=Rp(e.getBody()),i=P(kp,1===t?r.next:r.prev);if(n.collapsed&&_h(e)){var o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(Ad.fromRangeStart(n));if(!a){var s=zF(e);1===t?e.$(o).after(s):e.$(o).before(s),e.selection.select(s,!0),e.selection.collapse()}}},BF=function(e,t){var n=t?Pd.Forwards:Pd.Backwards,r=e.selection.getRng();return NF(n,e,r).orThunk((function(){return jF(e,n,r),$.none()}))},VF=function(e,t){var n=t?1:-1,r=e.selection.getRng();return HF(n,e,r).orThunk((function(){return jF(e,n,r),$.none()}))},$F=function(e,t){return BF(e,t).exists((function(t){return SP(e,t),!0}))},UF=function(e,t){return VF(e,t).exists((function(t){return SP(e,t),!0}))},WF=function(e,t){var n=t?Ty:Cy;return OP(e,t,n)},qF=function(e){return J(["figcaption"],Rn(e))},GF=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},KF=function(e,t,n){n?xr(e,t):yr(e,t)},JF=function(e,t){var n=yn.fromTag("br");return KF(e,n,t),GF(n)},XF=function(e,t,n,r){var i=yn.fromTag(n),o=yn.fromTag("br");return vi(i,r),xr(i,o),KF(e,i,t),GF(o)},QF=function(e,t,n,r){return""===t?JF(e,r):XF(e,r,t,n)},ZF=function(e,t){var n=P(Pn,t);return ko(yn.fromDom(e.container()),Xo,n).filter(qF)},eI=function(e,t,n){return t?JA(e.dom,n):KA(e.dom,n)},tI=function(e,t){var n=yn.fromDom(e.getBody()),r=Ad.fromRangeStart(e.selection.getRng()),i=Sf(e),o=Lf(e);return ZF(r,n).exists((function(){if(eI(n,t,r)){var a=QF(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},nI=function(e,t){return!!e.selection.isCollapsed()&&tI(e,t)},rI=function(e){return Q(e,(function(e){return $e({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:C},e)}))},iI=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},oI=function(e,t){return le(rI(e),(function(e){return iI(e,t)?[e]:[]}))},aI=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},sI=function(e,t){return ae(oI(e,t),(function(e){return e.action()}))},uI=function(e,t){var n=t?Pd.Forwards:Pd.Backwards,r=e.selection.getRng();return CP(e,n,r,ky,My,ui).exists((function(t){return SP(e,t),!0}))},lI=function(e,t){var n=t?1:-1,r=e.selection.getRng();return TP(e,n,r,ky,My,ui).exists((function(t){return SP(e,t),!0}))},cI=function(e,t){var n=t?My:ky;return OP(e,t,n)},dI=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},fI=function(e,t){return le(t,(function(t){var n=dI(Xc(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},hI=function(e,t,n){return ie(e,(function(e,r){return e.fold((function(){return $.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return $.some(o<i?r:e)}))}),$.none())},pI=function(e,t,n,r,i){var o=Cc(yn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(fI(e,o),(function(e){return t(e,i)}));return hI(a,r,i).map((function(e){return e.cell}))},mI=function(e){return e.bottom},gI=function(e){return e.top},vI=function(e,t){return e.y<t},_I=function(e,t){return e.y>t},bI=P(pI,mI,vI),yI=P(pI,gI,_I),xI=function(e,t){return ge(t.getClientRects()).bind((function(t){return bI(e,t.left,t.top)})).bind((function(e){return $A(QA(e),t)}))},wI=function(e,t){return ve(t.getClientRects()).bind((function(t){return yI(e,t.left,t.top)})).bind((function(e){return $A(XA(e),t)}))},kI=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},MI=function(e){return e.breakType===PA.Wrap&&0===e.positions.length},SI=function(e){return e.breakType===PA.Br&&1===e.positions.length},LI=function(e,t,n){var r=e(t,n);return MI(r)||!ri(n.getNode())&&SI(r)?!kI(e,t,r):r.breakAt.isNone()},CI=P(LI,UA),TI=P(LI,WA),DI=function(e,t,n){var r=Ad.fromRangeStart(t);return Gp(!e,n).exists((function(e){return e.isEqual(r)}))},OI=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;return!(!Jh()||!DI(t,i,n))&&(wE(o,e,n,!t,!1).each((function(t){SP(e,t)})),!0)},EI=function(e,t,n){return xI(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return VA(qA(e,Ad.before(t)),n.left)}))})).getOr(Ad.before(t))},AI=function(e,t,n){return wI(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return VA(GA(e,Ad.after(t)),n.left)}))})).getOr(Ad.after(t))},PI=function(e,t){var n=t.getNode(e);return Vr(n)&&"TABLE"===n.nodeName?$.some(n):$.none()},FI=function(e,t,n,r){var i=Sf(t);i?t.undoManager.transact((function(){var r=yn.fromTag(i);vi(r,Lf(t)),xr(r,yn.fromTag("br")),e?br(yn.fromDom(n),r):_r(yn.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),SP(t,o)})):SP(t,r.toRange())},II=function(e,t,n){var r=PI(!!t,n),i=!1===t;r.fold((function(){return SP(e,n.toRange())}),(function(r){return Gp(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return SP(e,n.toRange())}),(function(i){return FI(t,e,r,n)}))}))},YI=function(e,t,n,r){var i=e.selection.getRng(),o=Ad.fromRangeStart(i),a=e.getBody();if(!t&&CI(r,o)){var s=EI(a,n,o);return II(e,t,s),!0}if(t&&TI(r,o)){s=AI(a,n,o);return II(e,t,s),!0}return!1},RI=function(e,t,n){return $.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return $.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)},NI=function(e,t){return RI(e,t,OI)},HI=function(e,t){return RI(e,t,YI)},zI=function(e,t,n){var r=Ut().os;sI([{keyCode:tv.RIGHT,action:aI($F,e,!0)},{keyCode:tv.LEFT,action:aI($F,e,!1)},{keyCode:tv.UP,action:aI(UF,e,!1)},{keyCode:tv.DOWN,action:aI(UF,e,!0)},{keyCode:tv.RIGHT,action:aI(NI,e,!0)},{keyCode:tv.LEFT,action:aI(NI,e,!1)},{keyCode:tv.UP,action:aI(HI,e,!1)},{keyCode:tv.DOWN,action:aI(HI,e,!0)},{keyCode:tv.RIGHT,action:aI(uI,e,!0)},{keyCode:tv.LEFT,action:aI(uI,e,!1)},{keyCode:tv.UP,action:aI(lI,e,!1)},{keyCode:tv.DOWN,action:aI(lI,e,!0)},{keyCode:tv.RIGHT,action:aI(NP,e,t,!0)},{keyCode:tv.LEFT,action:aI(NP,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:aI(jP,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:aI(BP,e,t)},{keyCode:tv.UP,action:aI(nI,e,!1)},{keyCode:tv.DOWN,action:aI(nI,e,!0)}],n).each((function(e){n.preventDefault()}))},jI=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&zI(e,t,n)}))},BI=function(e,t,n){sI([{keyCode:tv.BACKSPACE,action:aI(gF,e,!1)},{keyCode:tv.BACKSPACE,action:aI(XE,e,!1)},{keyCode:tv.DELETE,action:aI(XE,e,!0)},{keyCode:tv.BACKSPACE,action:aI(AE,e,!1)},{keyCode:tv.DELETE,action:aI(AE,e,!0)},{keyCode:tv.BACKSPACE,action:aI(JP,e,t,!1)},{keyCode:tv.DELETE,action:aI(JP,e,t,!0)},{keyCode:tv.BACKSPACE,action:aI(Nw,e,!1)},{keyCode:tv.DELETE,action:aI(Nw,e,!0)},{keyCode:tv.BACKSPACE,action:aI(ZE,e,!1)},{keyCode:tv.DELETE,action:aI(ZE,e,!0)},{keyCode:tv.BACKSPACE,action:aI(oF,e,!1)},{keyCode:tv.DELETE,action:aI(oF,e,!0)},{keyCode:tv.BACKSPACE,action:aI(bE,e,!1)},{keyCode:tv.DELETE,action:aI(bE,e,!0)},{keyCode:tv.BACKSPACE,action:aI(fE,e,!1)},{keyCode:tv.DELETE,action:aI(fE,e,!0)},{keyCode:tv.BACKSPACE,action:aI(tF,e,!1)},{keyCode:tv.DELETE,action:aI(tF,e,!0)}],n).each((function(e){n.preventDefault()}))},VI=function(e,t){sI([{keyCode:tv.BACKSPACE,action:aI(JE,e)},{keyCode:tv.DELETE,action:aI(JE,e)}],t)},$I=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&BI(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&VI(e,t)}))},UI=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},WI=function(e,t){var n,r=t,i=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=UI(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(i.doc.createTextNode(la),t.firstChild)}var s=i.createRng();if(t.normalize(),t.hasChildNodes()){var u=new zo(t,t);while(n=u.current()){if(Zr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=u.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else ri(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),n_(e,s)}},qI=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},GI=function(e){return $.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},KI=function(e){return GI(e).fold(O(""),(function(e){return e.nodeName.toUpperCase()}))},JI=function(e){return GI(e).filter((function(e){return ra(yn.fromDom(e))})).isSome()},XI=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},QI=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},ZI=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},eY=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},tY=function(e){return eY(e)&&eY(e.parentNode)},nY=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},rY=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Vr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},iY=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){tY(n)&&(i="LI");var s=i?t(i):o.create("BR");if(rY(n,r,!0)&&rY(n,r,!1))if(ZI(n,"LI")){var u=nY(n);o.insertAfter(s,u),QI(n)?o.remove(u):o.remove(n)}else o.replace(s,n);else if(rY(n,r,!0))ZI(n,"LI")?(o.insertAfter(s,nY(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(rY(n,r,!1))o.insertAfter(s,nY(n)),o.remove(r);else{n=nY(n);var l=a.cloneRange();l.setStartAfter(r),l.setEndAfter(n);var c=l.extractContents();"LI"===i&&XI(c,"LI")?(s=c.firstChild,o.insertAfter(c,n)):(o.insertAfter(c,n),o.insertAfter(s,n)),o.remove(r)}WI(e,s)}},oY=function(e){Z(Lc(yn.fromDom(e),Bn),(function(e){var t=e.dom;t.nodeValue=pa(t.nodeValue)}))},aY=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},sY=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},uY=function(e){e.innerHTML='<br data-mce-bogus="1">'},lY=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},cY=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},dY=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;Vr(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||aY(e,i))&&e.remove(i)}},fY=function(e,t,n){return!1===Zr(t)?n:e?1===n&&t.data.charAt(n-1)===fa?0:n:n===t.data.length-1&&t.data.charAt(n)===fa?t.data.length:n},hY=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,fY(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,fY(!1,e.endContainer,e.endOffset)),t},pY=function(e){do{Zr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},mY=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},gY=function(e,t,n){var r=e.dom;$.from(n.style).map(r.parseStyle).each((function(e){var n=Ti(yn.fromDom(t)),i=$e($e({},n),e);r.setStyles(t,i)}));var i=$.from(n.class).map((function(e){return e.split(/\s+/)})),o=$.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));di(i,o,(function(e,n){var i=ne(n,(function(t){return!J(e,t)})),o=We(We([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var a=["style","class"],s=Te(n,(function(e,t){return!J(a,t)}));r.setAttribs(t,s)},vY=function(e,t){var n=Sf(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Lf(e);gY(e,t,r)}},_Y=function(e,t,n,r,i){var o,a,s,u,l,c,d=t||"P",f=e.dom,h=mY(f,r);if(a=f.getParent(r,f.isBlock),!a||!cY(f,a)){if(a=a||h,c=a===e.getBody()||sY(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=f.create(d),vY(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;u=r;while(u.parentNode!==a)u=u.parentNode;while(u&&!f.isBlock(u))s=u,u=u.previousSibling;if(s&&e.schema.isValidChild(c,d.toLowerCase())){o=f.create(d),vY(e,o),s.parentNode.insertBefore(o,s),u=s;while(u&&!f.isBlock(u))l=u.nextSibling,o.appendChild(u),u=l;n.setStart(r,i),n.setEnd(r,i)}}return r},bY=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},yY=function(e,t){var n,r,i,o,a,s,u,l,c,d,f=e.dom,h=e.schema,p=h.getNonEmptyElements(),m=e.selection.getRng(),g=function(t){var n,i,a,s=r,u=h.getTextInlineElements();if(n=t||"TABLE"===l||"HR"===l?f.create(t||c):o.cloneNode(!1),a=n,!1===Df(e))f.setAttrib(n,"style",null),f.setAttrib(n,"class",null);else do{if(u[s.nodeName]){if(em(s)||wm(s))continue;i=s.cloneNode(!1),f.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==x);return vY(e,n),uY(a),n},v=function(e){var t,n,a=fY(e,r,i);if(Zr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&d&&!e)return!0;if(e&&Vr(r)&&r===o.firstChild)return!0;if(lY(r,"TABLE")||lY(r,"HR"))return d&&!e||!d&&e;var s=new zo(r,o);Zr(r)&&(e&&0===a?s.prev():e||a!==r.nodeValue.length||s.next());while(t=s.current()){if(Vr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Zr(t)&&!qa(t.nodeValue))return!1;e?s.prev():s.next()}return!0},_=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(l)&&"HGROUP"!==w?g(c):g(),Of(e)&&cY(f,u)&&f.isEmpty(o)?a=f.split(u,o):f.insertAfter(a,o),WI(e,a)};xv(f,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,i=m.startOffset,c=Sf(e);var b=!(!t||!t.shiftKey),y=!(!t||!t.ctrlKey);Vr(r)&&r.hasChildNodes()&&(d=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=d&&Zr(r)?r.nodeValue.length:0);var x=mY(f,r);if(x){(c&&!b||!c&&b)&&(r=_Y(e,c,m,r,i)),o=f.getParent(r,f.isBlock),u=o?f.getParent(o.parentNode,f.isBlock):null,l=o?o.nodeName.toUpperCase():"";var w=u?u.nodeName.toUpperCase():"";"LI"!==w||y||(o=u,u=u.parentNode,l=w),/^(LI|DT|DD)$/.test(l)&&f.isEmpty(o)?iY(e,g,u,o,c):c&&o===e.getBody()||(c=c||"P",va(o)?(a=Da(o),f.isEmpty(o)&&uY(o),vY(e,a),WI(e,a)):v()?_():v(!0)?(a=o.parentNode.insertBefore(g(),o),WI(e,lY(o,"HR")?a:o)):(n=hY(m).cloneRange(),n.setEndAfter(o),s=n.extractContents(),oY(s),pY(s),a=s.firstChild,f.insertAfter(s,o),dY(f,p,a),bY(f,o),f.isEmpty(o)&&uY(o),a.normalize(),f.isEmpty(a)?(f.remove(a),_()):(vY(e,a),WI(e,a))),f.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},xY=function(e,t,n){var r,i=new zo(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},wY=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),n_(e,r)},kY=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();xv(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var l=s>u.childNodes.length-1;u=u.childNodes[Math.min(s,u.childNodes.length-1)]||u,s=l&&3===u.nodeType?u.nodeValue.length:0}var c=o.getParent(u,o.isBlock),d=c?o.getParent(c.parentNode,o.isBlock):null,f=d?d.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==f||h||(c=d),u&&3===u.nodeType&&s>=u.nodeValue.length&&(xY(e.schema,u,c)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Rd(o,a,n),wY(e,n,r),e.undoManager.add()},MY=function(e,t){var n=yn.fromTag("br");_r(yn.fromDom(t),n),e.undoManager.add()},SY=function(e,t){CY(e.getBody(),t)||br(yn.fromDom(t),yn.fromTag("br"));var n=yn.fromTag("br");br(yn.fromDom(t),n),wY(e,n.dom,!1),e.undoManager.add()},LY=function(e){return ri(e.getNode())},CY=function(e,t){return!!LY(Ad.after(t))||Kp(e,Ad.after(t)).map((function(e){return ri(e.getNode())})).getOr(!1)},TY=function(e){return e&&"A"===e.nodeName&&"href"in e},DY=function(e){return e.fold(N,TY,TY,N)},OY=function(e){var t=P(EO,e),n=Ad.fromRangeStart(e.selection.getRng());return wA(t,e.getBody(),n).filter(DY)},EY=function(e,t){t.fold(C,P(MY,e),P(SY,e),C)},AY=function(e,t){var n=OY(e);n.isSome()?n.each(P(EY,e)):kY(e,t)},PY=function(e,t){return GI(e).filter((function(e){return t.length>0&&Dn(yn.fromDom(e),t)})).isSome()},FY=function(e){return PY(e,Cf(e))},IY=function(e){return PY(e,Tf(e))},YY=Zi.generate([{br:[]},{block:[]},{none:[]}]),RY=function(e,t){return IY(e)},NY=function(e){return function(t,n){var r=""===Sf(t);return r===e}},HY=function(e){return function(t,n){return JI(t)===e}},zY=function(e,t){return function(n,r){var i=KI(n)===e.toUpperCase();return i===t}},jY=function(e){return zY("pre",e)},BY=function(){return zY("summary",!0)},VY=function(e){return function(t,n){return Mf(t)===e}},$Y=function(e,t){return FY(e)},UY=function(e,t){return t},WY=function(e){var t=Sf(e),n=qI(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},qY=function(e,t){return function(n,r){var i=ie(e,(function(e,t){return e&&t(n,r)}),!0);return i?$.some(t):$.none()}},GY=function(e,t){return fA([qY([RY],YY.none()),qY([BY()],YY.br()),qY([jY(!0),VY(!1),UY],YY.br()),qY([jY(!0),VY(!1)],YY.block()),qY([jY(!0),VY(!0),UY],YY.block()),qY([jY(!0),VY(!0)],YY.br()),qY([HY(!0),UY],YY.br()),qY([HY(!0)],YY.block()),qY([NY(!0),UY,WY],YY.block()),qY([NY(!0)],YY.br()),qY([$Y],YY.br()),qY([NY(!1),UY],YY.br()),qY([WY],YY.block())],[e,!(!t||!t.shiftKey)]).getOr(YY.none())},KY=function(e,t){GY(e,t).fold((function(){AY(e,t)}),(function(){yY(e,t)}),C)},JY=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),kL(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),KY(e,t)})))},XY=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&JY(e,t)}))},QY=function(e,t,n){sI([{keyCode:tv.END,action:aI(WF,e,!0)},{keyCode:tv.HOME,action:aI(WF,e,!1)},{keyCode:tv.END,action:aI(cI,e,!0)},{keyCode:tv.HOME,action:aI(cI,e,!1)},{keyCode:tv.END,action:aI(VP,e,!0,t)},{keyCode:tv.HOME,action:aI(VP,e,!1,t)}],n).each((function(e){n.preventDefault()}))},ZY=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&QY(e,t,n)}))},eR=Ut().browser,tR=function(e){var t=hc((function(){e.composing||_x(e)}),0);eR.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},nR=function(e){tR(e),e.on("input",(function(t){!1===t.isComposing&&_x(e)}))},rR=Ut(),iR=function(e,t,n){sI([{keyCode:tv.PAGE_UP,action:aI(VP,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:aI(VP,e,!0,t)}],n)},oR=function(e){return e.stopImmediatePropagation()},aR=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},sR=function(e,t,n){n&&!e.get()?t.on("NodeChange",oR,!0):!n&&e.get()&&t.off("NodeChange",oR),e.set(n)},uR=function(e,t){if(!rR.os.isOSX()){var n=Jl(!1);e.on("keydown",(function(t){aR(t)&&sR(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&iR(e,t,r),aR(r)&&n.get()&&(sR(n,e,!1),e.nodeChanged())}))}},lR=function(e,t){var n=t.container(),r=t.offset();return Zr(n)?(n.insertData(r,e),$.some(Ad(n,r+e.length))):xp(t).map((function(n){var r=yn.fromText(e);return t.isAtEnd()?br(n,r):_r(n,r),Ad(r.dom,e.length)}))},cR=P(lR,la),dR=P(lR," "),fR=function(e){return function(t){return t.fold((function(t){return Jp(e.dom,Ad.before(t))}),(function(e){return Xp(e)}),(function(e){return Qp(e)}),(function(t){return Kp(e.dom,Ad.after(t))}))}},hR=function(e,t){return function(n){return ax(e,n)?cR(t):dR(t)}},pR=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},mR=function(e){var t=Ad.fromRangeStart(e.selection.getRng()),n=yn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=P(EO,e),i=Ad.fromRangeStart(e.selection.getRng());return wA(r,e.getBody(),i).bind(fR(n)).bind(hR(n,t)).exists(pR(e))}return!1},gR=function(e,t){sI([{keyCode:tv.SPACEBAR,action:aI(mR,e)}],t).each((function(e){t.preventDefault()}))},vR=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&gR(e,t)}))},_R=function(e){var t=zP(e);return YF(e),jI(e,t),$I(e,t),XY(e),vR(e),nR(e),ZY(e,t),uR(e,t),t},bR=function(e){return HL(e)?Jl(null):_R(e)},yR=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&lv(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Sg(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Sg(e)&&("IMG"===e.selection.getNode().nodeName?Yo.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!yh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),xR=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},wR=function(e){e.parser.addNodeFilter("details",(function(e){Z(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Z(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},kR=function(e){xR(e),wR(e)},MR=function(e){return Vr(e)&&ta(yn.fromDom(e))},SR=function(e){var t=e.selection.getRng(),n=Ad.fromRangeStart(t),r=Ad.fromRangeEnd(t);if(Ad.isElementPosition(n)){var i=n.container();MR(i)&&Xp(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Ad.isElementPosition(r)){i=n.container();MR(i)&&Qp(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(jw(t))},LR=function(e){e.on("click",(function(t){t.detail>=3&&SR(e)}))},CR=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}},TR=function(e){return e.inline?CR(e.getBody()):{left:0,top:0}},DR=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},OR=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},ER=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=CR(e.getContentAreaContainer()),r=OR(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},AR=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},PR=function(e,t){return AR(TR(e),DR(e),ER(e,t))},FR=ai,IR=oi,YR=function(e,t){return FR(t)&&t!==e},RR=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!FR(t)},NR=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},HR=function(e,t,n,r){var i=e.dom,o=t.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},zR=function(e,t){e.parentNode!==t&&t.appendChild(e)},jR=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},BR=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},VR=function(e){return 0===e.button},$R=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},UR=function(e,t){return function(n){if(VR(n)){var r=ae(t.dom.getParents(n.target),cd(FR,IR)).getOr(null);if(YR(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:HR(t,r,r.offsetWidth,r.offsetHeight)})}}}},WR=function(e,t){var n=Yo.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=$R(e,PR(t,r));zR(e.ghost,t.getBody()),jR(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},qR=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},GR=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(RR(t,qR(t.selection),e.element)){var r=NR(e.element),i=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||t.undoManager.transact((function(){BR(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),JR(e)}},KR=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),JR(e)}},JR=function(e){e.on((function(e){BR(e.ghost)})),e.clear()},XR=function(e){var t=fc(),n=jl.DOM,r=document,i=UR(t,e),o=WR(t,e),a=GR(t,e),s=KR(t,e);e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),e.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&s()}))},QR=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(FR(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},ZR=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(J(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&YD(e,"Dropped file type is not supported"))}},n=function(n){Q_(e,n.target)&&t(n)},r=function(){var r=jl.DOM,i=e.dom,o=document,a=e.inline?e.getBody():e.getDoc(),s=["drop","dragover"];Z(s,(function(e){r.bind(o,e,n),i.bind(a,e,t)})),e.on("remove",(function(){Z(s,(function(e){r.unbind(o,e,n),i.unbind(a,e,t)}))}))};e.on("init",(function(){Yo.setEditorTimeout(e,r,0)}))},eN=function(e){XR(e),QR(e),Sh(e)&&ZR(e)},tN=function(e){var t=hc((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=LE(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},nN=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(ui(n)){var r=Hg(e.getBody(),n),i=ai(r)?r:n;e.selection.getNode()!==i&&ME(e,i).each((function(t){return e.selection.setRng(t)}))}}))}))},rN=oi,iN=ai,oN=function(e,t){return Hg(e.getBody(),t)},aN=function(e){var t,n=e.selection,r=e.dom,i=r.isBlock,o=e.getBody(),a=Kh(e,o,i,(function(){return fb(e)})),s="sel-"+r.uniqueId(),u="data-mce-selected",l=function(e){return r.hasClass(e,"mce-offscreen-selection")},c=function(e){return e!==o&&(iN(e)||ui(e))&&r.isChildOf(e,o)},d=function(e){return Cy(e)||Ty(e)||ky(e)||My(e)},f=function(){var e=r.get(s);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,m=function(t,r,i,o){void 0===o&&(o=!0);var s=e.fire("ShowCaret",{target:r,direction:t,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===t),a.show(i,r))},g=function(e){e.hasAttribute("data-mce-caret")&&(Da(e),h(p()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&LD(e,t.clientX,t.clientY)&&SE(e,n,!1).each(h)})),e.on("click",(function(t){var i=oN(e,t.target);i&&(iN(i)&&(t.preventDefault(),e.focus()),rN(i)&&r.isChildOf(i,n.getNode())&&S())})),e.on("blur NewBlock",S),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(e){var t=e.firstChild;if(k(t))return!1;var n=Ad.before(t);if(ri(n.getNode())&&1===e.childNodes.length)return!d(n);var r=Rp(e),i=r.next(n);return i&&!d(i)},u=function(e,t){var n=r.getParent(e,i),o=r.getParent(t,i);return n===o},g=function(t,n){var o=r.getParent(t,i),a=r.getParent(n,i);return!k(o)&&(!(t===a||!r.isChildOf(o,a)||!1!==iN(oN(e,o)))||!r.isChildOf(a,o)&&!u(o,a)&&s(o))};e.on("tap",(function(t){var n=t.target,r=oN(e,n);iN(r)?(t.preventDefault(),ME(e,r).each(M)):c(n)&&ME(e,n).each(M)}),!0),e.on("mousedown",(function(t){var i=t.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==LD(e,t.clientX,t.clientY)){var a=oN(e,i);if(a)iN(a)?(t.preventDefault(),ME(e,a).each(M)):(S(),rN(a)&&t.shiftKey||zg(t.clientX,t.clientY,n.getRng())||(C(),n.placeCaretAt(t.clientX,t.clientY)));else if(c(i))ME(e,i).each(M);else if(!1===Qh(i)){S(),C();var s=MP(o,t.clientX,t.clientY);if(s&&!g(i,s.node)){t.preventDefault();var u=m(1,s.node,s.before,!1);h(u),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||iN(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=y(e.range);var t=M(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;b(t)||v(n)||C(),l(n)||S()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=f();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),eN(e),tN(e),nN(e)},_=function(e){return ba(e)||La(e)||Ca(e)},b=function(e){return _(e.startContainer)||_(e.endContainer)},y=function(t){var n=e.schema.getShortEndedElements(),i=r.createRng(),o=t.startContainer,a=t.startOffset,s=t.endContainer,u=t.endOffset;return Ae(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Ae(n,s.nodeName.toLowerCase())?0===u?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,u),i},x=function(t,i,o){var a=e.$,u=Co(yn.fromDom(e.getBody()),"#"+s).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),u.appendTo(e.getBody()));var l=r.createRng();i===o&&en.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),l.setStartAfter(u[0].firstChild.firstChild),l.setEndAfter(i)):(u.empty().append(la).append(i).append(la),l.setStart(u[0].firstChild,1),l.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(t,e.getBody()).y}),u[0].focus();var c=n.getSel();return c.removeAllRanges(),c.addRange(l),l},w=function(n){var i=n.cloneNode(!0),o=e.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=x(n,o.targetClone,i),s=yn.fromDom(n);return Z(Cc(yn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Pn(s,e)||xi(e,u)})),r.getAttrib(n,u)||n.setAttribute(u,"1"),t=n,C(),a},M=function(e,t){if(!e)return null;if(e.collapsed){if(!b(e)){var n=t?1:-1,i=yp(n,o,e),a=i.getNode(!t);if(Qh(a))return m(n,a,!!t&&!i.isAtEnd(),!1);var s=i.getNode(t);if(Qh(s))return m(n,s,!t&&!i.isAtEnd(),!1)}return null}var u=e.startContainer,l=e.startOffset,d=e.endOffset;if(3===u.nodeType&&0===l&&iN(u.parentNode)&&(u=u.parentNode,l=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(d===l+1&&u===e.endContainer){var f=u.childNodes[l];if(c(f))return w(f)}return null},S=function(){t&&t.removeAttribute(u),Co(yn.fromDom(e.getBody()),"#"+s).each(Lr),t=null},L=function(){a.destroy(),t=null},C=function(){a.hide()};return en.ceFalse&&!HL(e)&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:C,destroy:L}},sN=function(e){var t=pn.each,n=tv.BACKSPACE,r=tv.DELETE,i=e.dom,o=e.selection,a=e.parser,s=en.gecko,u=en.ie,l=en.webkit,c="data:text/mce-internal,",d=u?"Text":"URL",f=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},h=function(e){return e.isDefaultPrevented()},p=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&o.select(t.target),n=e.selection.getContent(),n.length>0&&(r=c+escape(e.id)+","+escape(n),t.dataTransfer.setData(d,r)))},m=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(d),t&&t.indexOf(c)>=0)?(t=t.substr(c.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},g=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),o.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var o,s,u=t.keyCode;if(!h(t)&&(u===r||u===n)){if(o=e.selection.isCollapsed(),s=e.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},_=function(){e.shortcuts.add("meta+a",null,"SelectAll")},b=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=o.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ba(n.startContainer))return;o.placeCaretAt(t.clientX,t.clientY)}else o.setRng(n)}))},y=function(){e.on("keydown",(function(t){if(!h(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),t.preventDefault())}}}))},x=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!h(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Yo.setEditorTimeout(e,(function(){n.focus()}))}}))},w=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),o.select(n))}))},k=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};e.on("keypress",(function(t){var i;if(!h(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var i;!h(t)&&r()&&(i=n(),Yo.setEditorTimeout(e,(function(){i()})))}))},M=function(){e.on("keydown",(function(e){if(!h(e)&&e.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var t=o.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},S=function(){e.on("keydown",(function(t){var n,r;if(!h(t)&&t.keyCode===tv.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,u=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},L=function(){var t=function(){f("StyleWithCSS",!1),f("enableInlineTableEditing",!1),Zf(e)||f("enableObjectResizing",!1)};xh(e)||e.on("BeforeExecCommand mousedown",t)},T=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},D=function(){Sf(e)&&e.on("init",(function(){f("DefaultParagraphSeparator",Sf(e))}))},O=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||o.normalize()}),!0)},E=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},A=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},P=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},F=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},I=function(){f("AutoUrlDetect",!1)},Y=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},R=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},N=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},H=function(){e.on("dragstart",(function(e){p(e)})),e.on("drop",(function(t){if(!h(t)){var n=m(t);if(n&&n.id!==e.id){t.preventDefault();var r=uv(t.x,t.y,e.getDoc());o.setRng(r),g(n.html,!0)}}}))},z=C,j=function(){if(!s||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},B=function(){l&&(b(),w(),R(),_(),en.iOS&&(A(),P(),Y())),s&&(x(),L(),E(),F())},V=function(){S(),v(),en.windowsPhone||O(),l&&(b(),w(),D(),R(),M(),N(),en.iOS?(A(),P(),Y()):_()),en.ie>=11&&(P(),M()),en.ie&&(_(),I(),H()),s&&(y(),x(),k(),L(),T(),E(),F(),M())};return HL(e)?B():V(),{refreshContentEditable:z,isHidden:j}},uN=jl.DOM,lN=function(e,t){var n=yn.fromDom(e.getBody()),r=hr(fr(n)),i=yn.fromTag("style");gi(i,"type","text/css"),xr(i,yn.fromText(t)),xr(r,i),e.on("remove",(function(){Lr(i)}))},cN=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},dN=function(e){return Te(e,(function(e){return!1===w(e)}))},fN=function(e){var t=e.settings;return dN({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},hN=function(e){var t=e.settings,n=e.editorUpload.blobCache;return dN({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:cN(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},pN=function(e){var t=e.settings;return $e($e($e({},hN(e)),fN(e)),dN({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},mN=function(e){var t=uT(hN(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o=t.length,a=e.dom,s="data-mce-"+n;while(o--)if(r=t[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var i=t[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new Db("br",1)).shortEnded=!0)}})),t},gN=function(e){e.settings.auto_focus&&Yo.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},vN=function(e){var t=e.dom.getRoot();e.inline||Sg(e)&&e.selection.getStart(!0)!==t||Xp(t).each((function(t){var n=t.getNode(),r=Jr(n)?Xp(n).getOr(t):t;en.browser.isIE()?N_(e,r.toRange()):e.selection.setRng(r.toRange())}))},_N=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Jg(e),e.focus(!0),vN(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),gN(e)},bN=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},yN=function(e,t,n){var r=[new Do((function(n,r){return bN(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Do((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},xN=function(e){var t=bN(e),n=Jf(e),r=e.contentCSS,i=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},o=function(){e.removed?i():e.on("remove",i)};if(e.contentStyles.length>0){var a="";pn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var s=Do.all(yN(e,r,n)).then(o).catch(o);return e.settings.content_style&&lN(e,e.settings.content_style),s},wN=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Gg(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,uN.setAttrib(r,"spellcheck","false")),e.quirks=sN(e),Kg(e);var i=Xf(e);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){pn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},kN=function(e){HL(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},MN=function(e){!0!==e.removed&&(kN(e),_N(e))},SN=function(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(uN.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o=e.getBody();o.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===uN.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=e.getParam("content_editable_state",!0)),o.disabled=!1,e.editorUpload=aO(e),e.schema=js(fN(e)),e.dom=jl(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Vf(e),referrerPolicy:$f(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=mN(e),e.serializer=xT(pN(e),e),e.selection=OC(e.dom,e.getWin(),e.serializer,e),e.annotator=Rg(e),e.formatter=gO(e),e.undoManager=yO(e),e._nodeChangeDispatcher=new yR(e),e._selectionOverrides=aN(e),SF(e),kR(e),HL(e)||LR(e);var a=bR(e);yF(e,a),EF(e),TO(e);var s=jL(e);wN(e),s.fold((function(){xN(e).then((function(){return MN(e)}))}),(function(t){e.setProgressState(!0),xN(e).then((function(){t().then((function(t){e.setProgressState(!1),MN(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),MN(e)}))}))}))},LN=jl.DOM,CN=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=ZD("mce");e[n]=function(){SN(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return LN.setAttrib(t,"src",r),!0}return!1},TN=function(e,t,n,r){var i=yn.fromTag("iframe");return vi(i,r),vi(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),wc(i,"tox-edit-area__iframe"),i},DN=function(e){var t=bf(e)+"<html><head>";yf(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=xf(e),r=wf(e),i=e.translate(Dh(e));return kf(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+kf(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>',t},ON=function(e,t){var n=e.translate("Rich Text Area"),r=TN(e.id,n,t.height,_f(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var i=CN(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=DN(e),LN.add(t.iframeContainer,r),i},EN=function(e,t){var n=ON(e,t);t.editorContainer&&(LN.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=LN.isHidden(t.editorContainer)),e.getElement().style.display="none",LN.setAttrib(e.id,"aria-hidden","true"),n||SN(e)},AN=jl.DOM,PN=function(e,t,n){var r=ED.get(n),i=ED.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=pn.trim(n),r&&-1===pn.inArray(t,n)){if(pn.each(ED.dependencies(n),(function(n){PN(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(_j){VD(e,n,_j)}}},FN=function(e){return e.replace(/^\-/,"")},IN=function(e){var t=[];pn.each(kh(e).split(/[ ,]/),(function(n){PN(e,t,FN(n))}))},YN=function(e){var t=pn.trim(Rf(e)),n=e.ui.registry.getAll().icons,r=$e($e({},gD.get("default").icons),gD.get(t).icons);we(r,(function(t,r){Ae(n,r)||e.ui.registry.addIcon(r,t)}))},RN=function(e){var t=ih(e);if(v(t)){e.settings.theme=FN(t);var n=AD.get(t);e.theme=new n(e,AD.urls[t]),e.theme.init&&e.theme.init(e,AD.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},NN=function(e){return e.theme.renderUI()},HN=function(e){var t=e.getElement(),n=ih(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},zN=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},jN=function(e){var t=AN.create("div");return AN.insertAfter(t,e),zN(t)},BN=function(e){var t=e.getElement();return e.inline?zN(null):jN(t)},VN=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(ih(e))?NN(e):S(ih(e))?HN(e):BN(e)},$N=function(e,t){var n={show:$.from(t.show).getOr(C),hide:$.from(t.hide).getOr(C),disable:$.from(t.disable).getOr(C),isDisabled:$.from(t.isDisabled).getOr(N),enable:function(){e.mode.isReadOnly()||$.from(t.enable).map(R)}};e.ui=$e($e({},e.ui),n)},UN=function(e){e.fire("ScriptsLoaded"),YN(e),RN(e),IN(e);var t=VN(e);$N(e,$.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,KD(e),e.inline?SN(e):EN(e,n)},WN=jl.DOM,qN=function(e){return"-"===e.charAt(0)},GN=function(e,t){var n=Uf(t),r=Wf(t);if(!1===lc.hasCode(n)&&"en"!==n){var i=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,C,void 0,(function(){BD(t,i,n)}))}},KN=function(e,t,n,r){var i=ih(t);if(v(i)){if(!qN(i)&&!Ae(AD.urls,i)){var o=dh(t);o?AD.load(i,t.documentBaseURI.toAbsolute(o)):AD.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){AD.waitFor(i,r)}))}else r()},JN=function(e){return $.from(Nf(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:$.none()}}))},XN=function(e,t,n){return $.from(t).filter((function(e){return e.length>0&&!gD.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:$.some(t)}}))},QN=function(e,t,n){var r=XN(t,"default",n),i=JN(t).orThunk((function(){return XN(t,Rf(t),"")}));Z(ci([r,i]),(function(n){e.add(n.url,C,void 0,(function(){jD(t,n.url,n.name.getOrUndefined())}))}))},ZN=function(e,t){pn.each(Mh(e),(function(t,n){ED.load(n,t,C,void 0,(function(){zD(e,t,n)})),e.settings.plugins+=" "+n})),pn.each(kh(e).split(/[ ,]/),(function(n){if(n=pn.trim(n),n&&!ED.urls[n])if(qN(n)){n=n.substr(1,n.length);var r=ED.dependencies(n);pn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},i=ED.createUrl(r,n);ED.load(i.resource,i,C,void 0,(function(){zD(e,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};ED.load(n,i,C,void 0,(function(){zD(e,i.prefix+i.resource+i.suffix,n)}))}}))},eH=function(e,t){var n=Kl.ScriptLoader;KN(n,e,t,(function(){GN(n,e),QN(n,e,t),ZN(e,t),n.loadQueue((function(){e.removed||UN(e)}),e,(function(){e.removed||UN(e)}))}))},tH=function(e,t){return Ho.forElement(e,{contentCssCors:wh(t),referrerPolicy:$f(t)})},nH=function(e){var t=e.id;lc.setCode(Uf(e));var n=function(){WN.unbind(window,"ready",n),e.render()};if(ru.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=yn.fromDom(e.getElement()),i=wi(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return xi(r,e.name)})),vi(r,i)})),e.ui.styleSheetLoader=tH(r,e),fh(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||WN.getParent(t,"form");o&&(e.formElement=o,hh(e)&&!Qr(e.getElement())&&(WN.insertAfter(WN.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},WN.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!ph(e)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=FD(e),e.notificationManager=OD(e),mh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=WN.encode(e.content))})),gh(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vh(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),eH(e,e.suffix)}}else WN.bind(window,"ready",n)},rH=function(e,t){return pC(e,t)},iH={"font-size":"size","font-family":"face"},oH=function(e,t,n){var r=function(t){return Ci(t,e).orThunk((function(){return"font"===Rn(t)?Ee(iH,e).bind((function(e){return bi(t,e)})):$.none()}))},i=function(e){return Pn(yn.fromDom(t),e)};return Yk(yn.fromDom(n),(function(e){return r(e)}),i)},aH=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},sH=function(e,t){return $.from(jl.DOM.getStyle(t,e,!0))},uH=function(e){return function(t,n){return $.from(n).map(yn.fromDom).filter(jn).bind((function(n){return oH(e,t,n.dom).or(sH(e,n.dom))})).getOr("")}},lH=uH("font-size"),cH=T(aH,uH("font-family")),dH=function(e){return Xp(e.getBody()).map((function(e){var t=e.container();return Zr(t)?t.parentNode:t}))},fH=function(e){return $.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?$.none():$.from(e.selection.getStart(!0))}))},hH=function(e,t){return fH(e).orThunk(P(dH,e)).map(yn.fromDom).filter(jn).bind(t)},pH=function(e,t){return hH(e,D($.some,t))},mH=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Ef(e),i=Af(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},gH=function(e){var t=e.split(/\s*,\s*/);return Q(t,(function(e){return-1===e.indexOf(" ")||lt(e,'"')||lt(e,"'")?e:"'"+e+"'"})).join(",")},vH=function(e,t){var n=mH(e,t);e.formatter.toggle("fontname",{value:gH(n)}),e.nodeChanged()},_H=function(e){return pH(e,(function(t){return cH(e.getBody(),t.dom)})).getOr("")},bH=function(e,t){e.formatter.toggle("fontsize",{value:mH(e,t)}),e.nodeChanged()},yH=function(e){return pH(e,(function(t){return lH(e.getBody(),t.dom)})).getOr("")},xH=function(e){return pH(e,(function(t){var n=yn.fromDom(e.getBody()),r=Yk(t,(function(e){return Ci(e,"line-height")}),P(Pn,n)),i=function(){var e=parseFloat(Si(t,"line-height")),n=parseFloat(Si(t,"font-size"));return String(e/n)};return r.getOrThunk(i)})).getOr("")},wH=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},kH=function(e){if("string"!==typeof e){var t=pn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},MH=function(e,t){var n=kH(t);fC(e,n.content,n.details)},SH=pn.each,LH=pn.map,CH=pn.inArray,TH=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?z_(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var s=e.toLowerCase();if(i=a.commands.exec[s])return i(s,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(SH(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{o=a.editor.getDoc().execCommand(e,t,n)}catch(u){}return!!o&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;SH(e,(function(e,r){SH(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":C,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){gb(e,r)},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),SH("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){vH(e,r)},FontSize:function(t,n,r){bH(e,r)},LineHeight:function(t,n,r){wH(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){MH(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){KY(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){mF(e,t)},mceRepaint:C,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),oi);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return AY(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=LH(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==CH(i,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return dF(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return _H(e)}),this),t.addQueryValueHandler("FontSize",(function(){return yH(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return xH(e)}),this)},e}(),DH="data-mce-contenteditable",OH=function(e,t,n){Sc(e,t)&&!1===n?Mc(e,t):n&&wc(e,t)},EH=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},AH=function(e,t){e.dom.contentEditable=t?"true":"false"},PH=function(e){Z(Cc(e,'*[contenteditable="true"]'),(function(e){gi(e,DH,"true"),AH(e,!1)}))},FH=function(e){Z(Cc(e,"*["+DH+'="true"]'),(function(e){xi(e,DH),AH(e,!0)}))},IH=function(e){$.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},YH=function(e){e.selection.setRng(e.selection.getRng())},RH=function(e,t){var n=yn.fromDom(e.getBody());OH(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),IH(e),e.readonly=!0,AH(n,!1),PH(n)):(e.readonly=!1,AH(n,!0),FH(n),EH(e,"StyleWithCSS",!1),EH(e,"enableInlineTableEditing",!1),EH(e,"enableObjectResizing",!1),hb(e)&&e.focus(),YH(e),e.nodeChanged())},NH=function(e){return e.readonly},HH=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){NH(e)&&Z(t,(function(e){e.attr(DH,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(DH,(function(t){NH(e)&&Z(t,(function(e){e.attr("contenteditable",e.attr(DH))}))})),e.serializer.addTempAttr(DH)},zH=function(e){e.serializer?HH(e):e.on("PreInit",(function(){HH(e)}))},jH=function(e){return"click"===e.type},BH=function(e,t){var n=function(t){return Pn(t,yn.fromDom(e.getBody()))};return To(t,"a",n).bind((function(e){return bi(e,"href")}))},VH=function(e,t){if(jH(t)&&!tv.metaKeyPressed(t)){var n=yn.fromDom(t.target);BH(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+st(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},$H=function(e){e.on("ShowCaret",(function(t){NH(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){NH(e)&&t.preventDefault()}))},UH=pn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),WH=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||N}return e.isNative=function(e){return!!UH[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Ks(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=N),t){var i={func:t,removed:!1};r&&pn.extend(i,r);var o=e.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],u=this.bindings[s];u||(u=[],this.toggleEvent(s,!0)),u=n?We([i],u,!0):We(We([],u,!0),[i],!1),this.bindings[s]=u}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return we(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var s=te(a,(function(e){return e.func===t}));a=s.fail,this.bindings[o]=a,Z(s.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[o])}}}else we(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),qH=function(e){return e._eventDispatcher||(e._eventDispatcher=new WH({scope:e,toggleEvent:function(t,n){WH.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},GH={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=qH(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return qH(this).on(e,t,n)},off:function(e,t){return qH(this).off(e,t)},once:function(e,t){return qH(this).once(e,t)},hasEventListeners:function(e){return qH(this).has(e)}},KH=jl.DOM,JH=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nh(e);return n?(e.eventRoot||(e.eventRoot=KH.select(n)[0]),e.eventRoot):e.getBody()},XH=function(e){return!e.hidden&&!NH(e)},QH=function(e,t,n){XH(e)?e.fire(t,n):NH(e)&&VH(e,n)},ZH=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=JH(e,t);if(nh(e)){if(tP||(tP={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||tP&&(we(tP,(function(t,n){e.dom.unbind(JH(e,n))})),tP=null)}))),tP[t])return;n=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||KH.isChildOf(r,a))&&QH(i[o],t,n)}},tP[t]=n,KH.bind(r,t,n)}else n=function(n){QH(e,t,n)},KH.bind(r,t,n),e.delegates[t]=n}},ez=$e($e({},GH),{bindPendingEventDelegates:function(){var e=this;pn.each(e._pendingNativeEvents,(function(t){ZH(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?ZH(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(JH(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(we(e.delegates,(function(t,n){e.dom.unbind(JH(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),tz=["design","readonly"],nz=function(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(_j){return void console.error("problem while activating editor mode "+r+":",_j)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&RH(e,o.editorReadOnly),t.set(r),Ug(e,r)},rz=function(e,t,n,r){if(r!==n.get()){if(!Ae(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?nz(e,n,t,r):e.on("init",(function(){return nz(e,n,t,r)}))}},iz=function(e,t,n){var r;if(J(tz,t))throw new Error("Cannot override default mode "+t);return $e($e({},e),(r={},r[t]=$e($e({},n),{deactivate:function(){try{n.deactivate()}catch(_j){console.error("problem while deactivating editor mode "+t+":",_j)}}}),r))},oz=function(e){var t=Jl("design"),n=Jl({design:{activate:C,deactivate:C,editorReadOnly:!1},readonly:{activate:C,deactivate:C,editorReadOnly:!0}});return zH(e),$H(e),{isReadOnly:function(){return NH(e)},set:function(r){return rz(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(iz(n.get(),e,t))}}},az=pn.each,sz=pn.explode,uz={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},lz=pn.makeMap("alt,ctrl,shift,meta,access"),cz=function(e){var t,n={};az(sz(e.toLowerCase(),"+"),(function(e){e in lz?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=uz[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in lz)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},dz=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(az(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return az(sz(pn.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:pn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var i=pn.map(sz(e,">"),cz);return i[i.length-1]=pn.extend(i[i.length-1],{func:n,scope:r||this.editor}),pn.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),fz=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=$e($e({},r),{type:t})}},u=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},hz=function(){var e=fz();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},pz=jl.DOM,mz=pn.extend,gz=pn.each,vz=pn.resolve,_z=en.ie,bz=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,mz(this,ez),this.settings=cD(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Kl.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),jl.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),cc.languageLoad=this.settings.language_load,cc.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new zb(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new dz(this),this.editorCommands=new TH(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:hz(),styleSheetLoader:void 0,show:C,hide:C,enable:C,disable:C,isDisabled:N};var i=this,o=oz(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Pl.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){nH(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return fb(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?vz(r):0,o=vz(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,t)},e.prototype.translate=function(e){return lc.translate(e)},e.prototype.getParam=function(e,t,n){return pD(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=J(kh(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==ED.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(pz.show(e.getContainer()),pz.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(_z&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(pz.hide(e.getContainer()),pz.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=Qr(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Qr(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=pz.getParent(r.id,"form"))&&gz(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return MT(this,e,t)},e.prototype.getContent=function(e){return kT(this,e)},e.prototype.insertContent=function(e,t){t&&(e=mz({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?MT(this,this.startContent,{format:"raw"}):MT(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=pz.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=pz.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){rH(this,e)},e.prototype.remove=function(){OT(this)},e.prototype.destroy=function(e){ET(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),yz=jl.DOM,xz=pn.explode,wz=pn.each,kz=pn.extend,Mz=0,Sz=!1,Lz=[],Cz=[],Tz=function(e){return"length"!==e},Dz=function(e){var t=e.type;wz(Fz.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},Oz=function(e){e!==Sz&&(e?Pl(window).on("resize scroll",Dz):Pl(window).off("resize scroll",Dz),Sz=e)},Ez=function(e){var t=Cz;delete Lz[e.id];for(var n=0;n<Lz.length;n++)if(Lz[n]===e){Lz.splice(n,1);break}return Cz=ne(Cz,(function(t){return e!==t})),Fz.activeEditor===e&&(Fz.activeEditor=Cz.length>0?Cz[0]:null),Fz.focusedEditor===e&&(Fz.focusedEditor=null),t.length!==Cz.length},Az=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(Ez(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},Pz="CSS1Compat"!==document.compatMode,Fz=$e($e({},GH),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Pl,majorVersion:"5",minorVersion:"10.7",releaseDate:"2022-12-06",editors:Lz,i18n:lc,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=zb.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var u=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==u.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}if(!e&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new zb(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new zb(n.baseURL),n.suffix=r,nb(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&we(r,(function(e,t){cc.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=pn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},o=function(e){var t=e.id;return t||(t=Ee(e,"name").filter((function(e){return!yz.get(e)})).getOrThunk(yz.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},s=function(e,t){return t.constructor===RegExp?t.test(e.className):yz.hasClass(e,t)},u=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return $D("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(Pz)return $D("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return wz(e.types,(function(e){t=t.concat(yz.select(e.selector))})),t;if(e.selector)return yz.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&wz(xz(n),(function(e){var n=yz.get(e);n?t.push(n):wz(document.forms,(function(n){wz(n.elements,(function(n){n.name===e&&(e="mce_editor_"+Mz++,yz.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":wz(yz.select("textarea"),(function(n){e.editor_deselector&&s(n,e.editor_deselector)||e.editor_selector&&!s(n,e.editor_selector)||t.push(n)}));break}return t},l=function(e){t=e},c=function(){var t,r=0,s=[],d=function(e,i,o){var a=new bz(e,i,n);s.push(a),a.on("init",(function(){++r===t.length&&l(s)})),a.targetElm=a.targetElm||o,a.render()};yz.unbind(window,"ready",c),a("onpageload"),t=Pl.unique(u(e)),e.types?wz(e.types,(function(n){pn.each(t,(function(t){return!yz.is(t,n.selector)||(d(o(t),kz({},e,n),t),!1)}))})):(pn.each(t,(function(e){Az(n.get(e.id))})),t=pn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?l([]):wz(t,(function(t){i(e,t)?$D("Could not initialize inline editor on invalid inline target element",t):d(o(t),e,t)})))};return n.settings=e,yz.bind(window,"ready",c),new Do((function(e){t?e(t):l=function(t){e(t)}}))},get:function(e){return 0===arguments.length?Cz.slice(0):v(e)?ae(Cz,(function(t){return t.id===e})).getOr(null):L(e)&&Cz[e]?Cz[e]:null},add:function(e){var t=this,n=Lz[e.id];return n===e||(null===t.get(e.id)&&(Tz(e.id)&&(Lz[e.id]=e),Lz.push(e),Cz.push(e)),Oz(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),nP||(nP=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",nP))),e},createEditor:function(e,t){return this.add(new bz(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,y(r.get(n.id))?null:(Ez(n)&&r.fire("RemoveEditor",{editor:n}),0===Cz.length&&window.removeEventListener("beforeunload",nP),n.remove(),Oz(Cz.length>0),n);wz(yz.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=Cz.length-1;t>=0;t--)r.remove(Cz[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new bz(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){wz(Cz,(function(e){e.save()}))},addI18n:function(e,t){lc.add(e,t)},translate:function(e){return lc.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new zb(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new zb(this.baseURL)}});Fz.setup();var Iz,Yz,Rz=Math.min,Nz=Math.max,Hz=Math.round,zz=function(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,u=t.h,l=(n||"").split("");return"b"===l[0]&&(i+=u),"r"===l[1]&&(r+=s),"c"===l[0]&&(i+=Hz(u/2)),"c"===l[1]&&(r+=Hz(s/2)),"b"===l[3]&&(i-=a),"r"===l[4]&&(r-=o),"c"===l[3]&&(i-=Hz(a/2)),"c"===l[4]&&(r-=Hz(o/2)),Uz(r,i,o,a)},jz=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=zz(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},Bz=function(e,t,n){return Uz(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},Vz=function(e,t){var n=Nz(e.x,t.x),r=Nz(e.y,t.y),i=Rz(e.x+e.w,t.x+t.w),o=Rz(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:Uz(n,r,i-n,o-r)},$z=function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,u=t.y+t.h,l=Nz(0,t.x-r),c=Nz(0,t.y-i),d=Nz(0,o-s),f=Nz(0,a-u);return r+=l,i+=c,n&&(o+=l,a+=c,r-=d,i-=f),o-=d,a-=f,Uz(r,i,o-r,a-i)},Uz=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},Wz=function(e){return Uz(e.left,e.top,e.width,e.height)},qz={inflate:Bz,relativePosition:zz,findBestRelativePosition:jz,intersect:Vz,clamp:$z,create:Uz,fromClientRect:Wz},Gz=function(e,t,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}},a=o(e),s=o(t),u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return s.apply(null,e)}),n))};return{start:u,resolve:a,reject:s}},Kz=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Do((function(e,a){var s=Gz(e,a);t[n]=s.resolve,Kl.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Do.resolve(r)};return{load:n,add:r}},Jz=Kz(),Xz=pn.each,Qz=pn.extend,Zz=function(){};Zz.extend=Iz=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!Yz&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(e,t){return function(){var r=this,i=r._super;r._super=n[e];var o=t.apply(r,arguments);return r._super=i,o}};Yz=!0;var a=new t;return Yz=!1,e.Mixins&&(Xz(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&Xz(e.Methods.split(","),(function(t){e[t]=i})),e.Properties&&Xz(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&Xz(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=Qz({},n.Defaults,e.Defaults)),we(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=o(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=Iz,r};var ej,tj=Math.min,nj=Math.max,rj=Math.round,ij=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o;r=0,i=0,o=0,e/=255,t/=255,n/=255;var a=tj(e,tj(t,n)),s=nj(e,nj(t,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var u=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-u/(s-a)),i=(s-a)/s,o=s,{h:rj(r),s:rj(100*i),v:rj(100*o)}},a=function(e,t,o){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=nj(0,tj(t,1)),o=nj(0,tj(o,1)),0!==t){var a=e/60,s=o*t,u=s*(1-Math.abs(a%2-1)),l=o-s;switch(Math.floor(a)){case 0:n=s,r=u,i=0;break;case 1:n=u,r=s,i=0;break;case 2:n=0,r=s,i=u;break;case 3:n=0,r=u,i=s;break;case 4:n=u,r=0,i=s;break;case 5:n=s,r=0,i=u;break;default:n=r=i=0}n=rj(255*(n+l)),r=rj(255*(r+l)),i=rj(255*(i+l))}else n=r=i=rj(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},u=function(){return{r:n,g:r,b:i}},l=function(){return o(n,r,i)},c=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&c(e),t.toRgb=u,t.toHsv=l,t.toHex=s,t.parse=c,t},oj=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},aj={serialize:oj,parse:function(e){try{return JSON.parse(e)}catch(t){}}},sj={callbacks:{},count:0,send:function(e){var t=this,n=jl.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},uj=$e($e({},GH),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Yo.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",uj.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&pn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=uj.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Yo.setTimeout(r,10)}}),lj=pn.extend,cj=function(){function e(e){this.settings=lj({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=lj(this.settings,e);r.success=function(e,i){e=aj.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=aj.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",uj.send(r)},e}(),dj=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var fj="__storage_test__";ej=window.localStorage,ej.setItem(fj,fj),ej.removeItem(fj)}catch(_j){ej=dj()}var hj=ej,pj={geom:{Rect:qz},util:{Promise:Do,Delay:Yo,Tools:pn,VK:tv,URI:zb,Class:Zz,EventDispatcher:WH,Observable:GH,I18n:lc,XHR:uj,JSON:aj,JSONRequest:cj,JSONP:sj,LocalStorage:hj,Color:ij,ImageUploader:iO},dom:{EventUtils:ru,Sizzle:ju,DomQuery:Pl,TreeWalker:zo,TextSeeker:Kc,DOMUtils:jl,ScriptLoader:Kl,RangeUtils:Mv,Serializer:xT,StyleSheetLoader:Ro,ControlSelection:rv,BookmarkManager:Ng,Selection:OC,Event:ru.Event},html:{Styles:Vs,Entities:Ts,Node:Db,Schema:js,SaxParser:Gb,DomParser:uT,Writer:oy,Serializer:ay},Env:en,AddOnManager:cc,Annotator:Rg,Formatter:gO,UndoManager:yO,EditorCommands:TH,WindowManager:FD,NotificationManager:OD,EditorObservable:ez,Shortcuts:dz,Editor:bz,FocusManager:B_,EditorManager:Fz,DOM:jl.DOM,ScriptLoader:Kl.ScriptLoader,PluginManager:ED,ThemeManager:AD,IconManager:gD,Resource:Jz,trim:pn.trim,isArray:pn.isArray,is:pn.is,toArray:pn.toArray,makeMap:pn.makeMap,each:pn.each,map:pn.map,grep:pn.grep,inArray:pn.inArray,extend:pn.extend,create:pn.create,walk:pn.walk,createNS:pn.createNS,resolve:pn.resolve,explode:pn.explode,_addCacheSuffix:pn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},mj=pn.extend(Fz,pj),gj=function(t){try{e.exports=t}catch(n){}},vj=function(e){window.tinymce=e,window.tinyMCE=e};vj(mj),gj(mj)})()},4023:function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=60)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=c[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+v+'~="'+e.id+'"]');if(r){if(p)return m;r.parentNode.removeChild(r)}if(_){var o=h++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(v,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(64),c={},d=u&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},g=null,v="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){p=n,g=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i],s=c[a.id];s.refs--,n.push(s)}t?(o=l(e,t),r(o)):o=[];for(i=0;i<n.length;i++){s=n[i];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(a=e,s=e.default);var l,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=r),l){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=l,c.render=function(e,t){return l.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,l):[l]}return{esModule:a,exports:s,options:c}}},function(e,t,n){"use strict";function r(e,t){var n,r=e&&e.a;!(n=e&&e.hsl?(0,o.default)(e.hsl):e&&e.hex&&e.hex.length>0?(0,o.default)(e.hex):e&&e.hsv?(0,o.default)(e.hsv):e&&e.rgba?(0,o.default)(e.rgba):e&&e.rgb?(0,o.default)(e.rgb):(0,o.default)(e))||void 0!==n._a&&null!==n._a||n.setAlpha(r||1);var i=n.toHsl(),a=n.toHsv();return 0===i.s&&(a.h=i.h=e.h||e.hsl&&e.hsl.h||t||0),{hsl:i,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:a,oldHue:e.h||t||i.h,source:e.source,a:e.a||n.getAlpha()}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={props:["value"],data:function(){return{val:r(this.value)}},computed:{colors:{get:function(){return this.val},set:function(e){this.val=e,this.$emit("input",e)}}},watch:{value:function(e){this.val=r(e)}},methods:{colorChange:function(e,t){this.oldHue=this.colors.hsl.h,this.colors=r(e,t||this.oldHue)},isValidHex:function(e){return(0,o.default)(e).isValid()},simpleCheckForValidColor:function(e){for(var t=["r","g","b","a","h","s","l","v"],n=0,r=0,i=0;i<t.length;i++){var o=t[i];e[o]&&(n++,isNaN(e[o])||r++)}if(n===r)return e},paletteUpperCase:function(e){return e.map((function(e){return e.toUpperCase()}))},isTransparent:function(e){return 0===(0,o.default)(e).getAlpha()}}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){u||n(66)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(68),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/common/EditableInput.vue",t.default=d.exports},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(8),i=n(18);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(16),i=n(42),o=n(25),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(17)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(90),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(29)("wks"),i=n(19),o=n(4).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function r(e){u||n(111)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(113),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/common/Hue.vue",t.default=d.exports},function(e,t){e.exports=!0},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";function r(e){u||n(123)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(54),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(127),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/common/Saturation.vue",t.default=d.exports},function(e,t,n){"use strict";function r(e){u||n(128)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(55),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(133),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/common/Alpha.vue",t.default=d.exports},function(e,t,n){"use strict";function r(e){u||n(130)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(132),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/common/Checkboard.vue",t.default=d.exports},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(46),i=n(30);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(29)("keys"),i=n(19);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(15),i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(8).f,i=n(6),o=n(11)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(11)},function(e,t,n){var r=n(4),i=n(15),o=n(14),a=n(32),s=n(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(5),s=r(a),u=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];t.default={name:"Compact",mixins:[o.default],props:{palette:{type:Array,default:function(){return u}}},components:{"ed-in":s.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(e){this.handleChange(e.target.value)},handleChange:function(e){var t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||e.length>5)&&this.$emit("change",t)},handleKeyDown:function(e){var t=this.val,n=Number(t);if(n){var r=this.arrowOffset||1;38===e.keyCode&&(t=n+r,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=n-r,this.handleChange(t),e.preventDefault())}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];t.default={name:"Grayscale",mixins:[i.default],props:{palette:{type:Array,default:function(){return o}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(3),s=r(a);t.default={name:"Material",mixins:[s.default],components:{"ed-in":o.default},methods:{onChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),o=r(i),a=n(3),s=r(a),u=n(13),l=r(u);t.default={name:"Slider",mixins:[s.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:l.default},computed:{normalizedSwatches:function(){return this.swatches.map((function(e){return"object"!==(void 0===e?"undefined":(0,o.default)(e))?{s:.5,l:e}:e}))}},methods:{isActive:function(e,t){var n=this.colors.hsl;return 1===n.l&&1===e.l||0===n.l&&0===e.l||Math.abs(n.l-e.l)<.01&&Math.abs(n.s-e.s)<.01},hueChange:function(e){this.colorChange(e)},handleSwClick:function(e,t){this.colorChange({h:this.colors.hsl.h,s:t.s,l:t.l,source:"hsl"})}}}},function(e,t,n){"use strict";var r=n(14),i=n(41),o=n(44),a=n(7),s=n(26),u=n(88),l=n(31),c=n(95),d=n(11)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){u(n,t,p);var _,b,y,x=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",k="values"==m,M=!1,S=e.prototype,L=S[d]||S["@@iterator"]||m&&S[m],C=L||x(m),T=m?k?x("entries"):C:void 0,D="Array"==t&&S.entries||L;if(D&&(y=c(D.call(new e)))!==Object.prototype&&y.next&&(l(y,w,!0),r||"function"==typeof y[d]||a(y,d,h)),k&&L&&"values"!==L.name&&(M=!0,C=function(){return L.call(this)}),r&&!v||!f&&!M&&S[d]||a(S,d,C),s[t]=C,s[w]=h,m)if(_={values:k?C:x("values"),keys:g?C:x("keys"),entries:T},v)for(b in _)b in S||o(S,b,_[b]);else i(i.P+i.F*(f||M),t,_);return _}},function(e,t,n){var r=n(4),i=n(15),o=n(86),a=n(7),s=n(6),u=function(e,t,n){var l,c,d,f=e&u.F,h=e&u.G,p=e&u.S,m=e&u.P,g=e&u.B,v=e&u.W,_=h?i:i[t]||(i[t]={}),b=_.prototype,y=h?r:p?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(c=!f&&y&&void 0!==y[l])&&s(_,l)||(d=c?y[l]:n[l],_[l]=h&&"function"!=typeof y[l]?n[l]:g&&c?o(d,r):v&&y[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((_.virtual||(_.virtual={}))[l]=d,e&u.R&&b&&!b[l]&&a(b,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){e.exports=!n(9)&&!n(17)((function(){return 7!=Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(12),i=n(4).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(16),i=n(89),o=n(30),a=n(28)("IE_PROTO"),s=function(){},u=function(){var e,t=n(43)("iframe"),r=o.length;for(t.style.display="none",n(94).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(6),i=n(10),o=n(91)(!1),a=n(28)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(46),i=n(30).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var e=this.value.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.value},directionClass:function(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop:function(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r,i,o=n.clientWidth,a=n.clientHeight,s=n.getBoundingClientRect().left+window.pageXOffset,u=n.getBoundingClientRect().top+window.pageYOffset,l=e.pageX||(e.touches?e.touches[0].pageX:0),c=e.pageY||(e.touches?e.touches[0].pageY:0),d=l-s,f=c-u;"vertical"===this.direction?(f<0?r=360:f>a?r=0:(i=-100*f/a+100,r=360*i/100),this.colors.hsl.h!==r&&this.$emit("change",{h:r,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(d<0?r=0:d>o?r=360:(i=100*d/o,r=360*i/100),this.colors.hsl.h!==r&&this.$emit("change",{h:r,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(118),o=r(i),a=n(3),s=r(a),u=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],l=["900","700","500","300","100"],c=function(){var e=[];return u.forEach((function(t){var n=[];"black"===t.toLowerCase()||"white"===t.toLowerCase()?n=n.concat(["#000000","#FFFFFF"]):l.forEach((function(e){var r=o.default[t][e];n.push(r.toUpperCase())})),e.push(n)})),e}();t.default={name:"Swatches",mixins:[s.default],props:{palette:{type:Array,default:function(){return c}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(5),s=r(a),u=n(20),l=r(u),c=n(13),d=r(c),f=n(21),h=r(f);t.default={name:"Photoshop",mixins:[o.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:l.default,hue:d.default,alpha:h.default,"ed-in":s.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(125),o=r(i),a=n(126),s=r(a);t.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,s.default)((function(e,t){e(t)}),20,{leading:!0,trailing:!1}),handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r=n.clientWidth,i=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,u=e.pageX||(e.touches?e.touches[0].pageX:0),l=e.pageY||(e.touches?e.touches[0].pageY:0),c=(0,o.default)(u-a,0,r),d=(0,o.default)(l-s,0,i),f=c/r,h=(0,o.default)(-d/i+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:f,v:h,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(e){this.$emit("change",e)},handleMouseDown:function(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:i.default},computed:{colors:function(){return this.value},gradientColor:function(){var e=this.colors.rgba,t=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r,i=n.clientWidth,o=n.getBoundingClientRect().left+window.pageXOffset,a=e.pageX||(e.touches?e.touches[0].pageX:0),s=a-o;r=s<0?0:s>i?1:Math.round(100*s/i)/100,this.colors.a!==r&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:r,source:"rgba"})}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function r(e,t,n){if("undefined"==typeof document)return null;var r=document.createElement("canvas");r.width=r.height=2*n;var i=r.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null}function i(e,t,n){var i=e+","+t+","+n;if(o[i])return o[i];var a=r(e,t,n);return o[i]=a,a}Object.defineProperty(t,"__esModule",{value:!0});var o={};t.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+i(this.white,this.grey,this.size)+")"}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(5),s=r(a),u=n(20),l=r(u),c=n(13),d=r(c),f=n(21),h=r(f),p=n(22),m=r(p),g=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];t.default={name:"Sketch",mixins:[o.default],components:{saturation:l.default,hue:d.default,alpha:h.default,"ed-in":s.default,checkboard:m.default},props:{presetColors:{type:Array,default:function(){return g}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var e=void 0;return e=this.colors.a<1?this.colors.hex8:this.colors.hex,e.replace("#","")},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"}},methods:{handlePreset:function(e){this.colorChange({hex:e,source:"hex"})},childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b||e.a)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(5),s=r(a),u=n(20),l=r(u),c=n(13),d=r(c),f=n(21),h=r(f),p=n(22),m=r(p);t.default={name:"Chrome",mixins:[o.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:l.default,hue:d.default,alpha:h.default,"ed-in":s.default,checkboard:m.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var e=this.colors.hsl,t=e.h,n=e.s,r=e.l;return{h:t.toFixed(),s:(100*n).toFixed()+"%",l:(100*r).toFixed()+"%"}},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){var t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,n=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:n,source:"hsl"})}},toggleViews:function(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(3),s=r(a),u=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];t.default={name:"Twitter",mixins:[s.default],components:{editableInput:o.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return u}},triangle:{default:"top-left",validator:function(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(61),o=r(i),a=n(70),s=r(a),u=n(74),l=r(u),c=n(78),d=r(c),f=n(115),h=r(f),p=n(120),m=r(p),g=n(135),v=r(g),_=n(139),b=r(_),y=n(143),x=r(y),w=n(21),k=r(w),M=n(22),S=r(M),L=n(5),C=r(L),T=n(13),D=r(T),O=n(20),E=r(O),A=n(3),P=r(A),F={version:"2.8.1",Compact:o.default,Grayscale:s.default,Twitter:x.default,Material:l.default,Slider:d.default,Swatches:h.default,Photoshop:m.default,Sketch:v.default,Chrome:b.default,Alpha:k.default,Checkboard:S.default,EditableInput:C.default,Hue:D.default,Saturation:E.default,ColorMixin:P.default};e.exports=F},function(e,t,n){"use strict";function r(e){u||n(62)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(35),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(69),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Compact.vue",t.default=d.exports},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("6ce8a5a8",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-compact {\n  padding-top: 5px;\n  padding-left: 5px;\n  width: 245px;\n  border-radius: 2px;\n  box-sizing: border-box;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-compact-colors {\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-compact-color-item {\n  list-style: none;\n  width: 15px;\n  height: 15px;\n  float: left;\n  margin-right: 5px;\n  margin-bottom: 5px;\n  position: relative;\n  cursor: pointer;\n}\n.vc-compact-color-item--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-compact-color-item--white .vc-compact-dot {\n  background: #000;\n}\n.vc-compact-dot {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  bottom: 5px;\n  left: 5px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],u=o[2],l=o[3],c={id:e+":"+i,css:s,media:u,sourceMap:l};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}},function(e,t,n){var r;!function(i){function o(e,t){if(e=e||"",t=t||{},e instanceof o)return e;if(!(this instanceof o))return new o(e,t);var n=a(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=$(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=$(this._r)),this._g<1&&(this._g=$(this._g)),this._b<1&&(this._b=$(this._b)),this._ok=n.ok,this._tc_id=V++}function a(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,u=!1;return"string"==typeof e&&(e=H(e)),"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(t=s(e.r,e.g,e.b),a=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(r=I(e.s),i=I(e.v),t=d(e.h,r,i),a=!0,u="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(r=I(e.s),o=I(e.l),t=l(e.h,r,o),a=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=T(n),{ok:a,format:e.format||u,r:U(255,W(t.r,0)),g:U(255,W(t.g,0)),b:U(255,W(t.b,0)),a:n}}function s(e,t,n){return{r:255*D(e,255),g:255*D(t,255),b:255*D(n,255)}}function u(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,i,o=W(e,t,n),a=U(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:s}}function l(e,t,n){function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i,o,a;if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=r(u,s,e+1/3),o=r(u,s,e),a=r(u,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}function c(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,i,o=W(e,t,n),a=U(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:s}}function d(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),l=r%6;return{r:255*[n,s,a,a,u,n][l],g:255*[u,n,n,s,a,a][l],b:255*[a,a,u,n,n,s][l]}}function f(e,t,n,r){var i=[F($(e).toString(16)),F($(t).toString(16)),F($(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(e,t,n,r,i){var o=[F($(e).toString(16)),F($(t).toString(16)),F($(n).toString(16)),F(Y(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function p(e,t,n,r){return[F(Y(r)),F($(e).toString(16)),F($(t).toString(16)),F($(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s-=t/100,n.s=O(n.s),o(n)}function g(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s+=t/100,n.s=O(n.s),o(n)}function v(e){return o(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l+=t/100,n.l=O(n.l),o(n)}function b(e,t){t=0===t?0:t||10;var n=o(e).toRgb();return n.r=W(0,U(255,n.r-$(-t/100*255))),n.g=W(0,U(255,n.g-$(-t/100*255))),n.b=W(0,U(255,n.b-$(-t/100*255))),o(n)}function y(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l-=t/100,n.l=O(n.l),o(n)}function x(e,t){var n=o(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,o(n)}function w(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function k(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+120)%360,s:t.s,l:t.l}),o({h:(n+240)%360,s:t.s,l:t.l})]}function M(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+90)%360,s:t.s,l:t.l}),o({h:(n+180)%360,s:t.s,l:t.l}),o({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+72)%360,s:t.s,l:t.l}),o({h:(n+216)%360,s:t.s,l:t.l})]}function L(e,t,n){t=t||6,n=n||30;var r=o(e).toHsl(),i=360/n,a=[o(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(o(r));return a}function C(e,t){t=t||6;for(var n=o(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],u=1/t;t--;)s.push(o({h:r,s:i,v:a})),a=(a+u)%1;return s}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){A(e)&&(e="100%");var n=P(e);return e=U(t,W(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function O(e){return U(1,W(0,e))}function E(e){return parseInt(e,16)}function A(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function P(e){return"string"==typeof e&&-1!=e.indexOf("%")}function F(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function Y(e){return i.round(255*parseFloat(e)).toString(16)}function R(e){return E(e)/255}function N(e){return!!J.CSS_UNIT.exec(e)}function H(e){e=e.replace(j,"").replace(B,"").toLowerCase();var t,n=!1;if(G[e])e=G[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=J.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=J.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=J.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=J.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=J.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=J.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=J.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:R(t[4]),format:n?"name":"hex8"}:(t=J.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:n?"name":"hex"}:(t=J.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:R(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=J.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:n?"name":"hex"}}function z(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var j=/^\s+/,B=/\s+$/,V=0,$=i.round,U=i.min,W=i.max,q=i.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=T(e),this._roundA=$(100*this._a)/100,this},toHsv:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=c(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),r=$(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),r=$(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return h(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:$(this._r),g:$(this._g),b:$(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+$(this._r)+", "+$(this._g)+", "+$(this._b)+")":"rgba("+$(this._r)+", "+$(this._g)+", "+$(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:$(100*D(this._r,255))+"%",g:$(100*D(this._g,255))+"%",b:$(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+$(100*D(this._r,255))+"%, "+$(100*D(this._g,255))+"%, "+$(100*D(this._b,255))+"%)":"rgba("+$(100*D(this._r,255))+"%, "+$(100*D(this._g,255))+"%, "+$(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(K[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=o(e);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:q(),g:q(),b:q()})},o.mix=function(e,t,n){n=0===n?0:n||50;var r=o(e).toRgb(),i=o(t).toRgb(),a=n/100;return o({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},o.readability=function(e,t){var n=o(e),r=o(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(e,t,n){var r,i,a=o.readability(e,t);switch(i=!1,r=z(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},o.mostReadable=function(e,t,n){var r,i,a,s,u=null,l=0;n=n||{},i=n.includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<t.length;c++)(r=o.readability(e,t[c]))>l&&(l=r,u=o(t[c]));return o.isReadable(e,u,{level:a,size:s})||!i?u:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var G=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K=o.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(G),J=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==e&&e.exports?e.exports=o:void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r)}(Math)},function(e,t,n){var r=n(67);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("0f73e73c",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-editable-input {\n  position: relative;\n}\n.vc-input__input {\n  padding: 0;\n  border: 0;\n  outline: none;\n}\n.vc-input__label {\n  text-transform: capitalize;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":e.labelId},domProps:{value:e.val},on:{keydown:e.handleKeyDown,input:[function(t){t.target.composing||(e.val=t.target.value)},e.update]}}),e._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:e.label,id:e.labelId}},[e._v(e._s(e.labelSpanText))]),e._v(" "),n("span",{staticClass:"vc-input__desc"},[e._v(e._s(e.desc))])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[n("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),(function(t){return n("li",{key:t,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":"#FFFFFF"===t},style:{background:t},attrs:{role:"option","aria-label":"color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])})),0)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(71)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(37),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(73),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Grayscale.vue",t.default=d.exports},function(e,t,n){var r=n(72);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("21ddbb74",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-grayscale {\n  width: 125px;\n  border-radius: 2px;\n  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-grayscale-colors {\n  border-radius: 2px;\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-grayscale-color-item {\n  list-style: none;\n  width: 25px;\n  height: 25px;\n  float: left;\n  position: relative;\n  cursor: pointer;\n}\n.vc-grayscale-color-item--white .vc-grayscale-dot {\n  background: #000;\n}\n.vc-grayscale-dot {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 6px;\n  height: 6px;\n  margin: -3px 0 0 -2px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[n("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),(function(t){return n("li",{key:t,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":"#FFFFFF"==t},style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])})),0)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(75)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(77),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Material.vue",t.default=d.exports},function(e,t,n){var r=n(76);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("1ff3af73",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,'\n.vc-material {\n  width: 98px;\n  height: 98px;\n  padding: 16px;\n  font-family: "Roboto";\n  position: relative;\n  border-radius: 2px;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-material .vc-input__input {\n  width: 100%;\n  margin-top: 12px;\n  font-size: 15px;\n  color: #333;\n  height: 30px;\n}\n.vc-material .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 11px;\n  color: #999;\n  text-transform: capitalize;\n}\n.vc-material-hex {\n  border-bottom-width: 2px;\n  border-bottom-style: solid;\n}\n.vc-material-split {\n  display: flex;\n  margin-right: -10px;\n  padding-top: 11px;\n}\n.vc-material-third {\n  flex: 1;\n  padding-right: 10px;\n}\n',""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[n("ed-in",{staticClass:"vc-material-hex",style:{borderColor:e.colors.hex},attrs:{label:"hex"},on:{change:e.onChange},model:{value:e.colors.hex,callback:function(t){e.$set(e.colors,"hex",t)},expression:"colors.hex"}}),e._v(" "),n("div",{staticClass:"vc-material-split"},[n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"r"},on:{change:e.onChange},model:{value:e.colors.rgba.r,callback:function(t){e.$set(e.colors.rgba,"r",t)},expression:"colors.rgba.r"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"g"},on:{change:e.onChange},model:{value:e.colors.rgba.g,callback:function(t){e.$set(e.colors.rgba,"g",t)},expression:"colors.rgba.g"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"b"},on:{change:e.onChange},model:{value:e.colors.rgba.b,callback:function(t){e.$set(e.colors.rgba,"b",t)},expression:"colors.rgba.b"}})],1)])],1)},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(79)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(114),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Slider.vue",t.default=d.exports},function(e,t,n){var r=n(80);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7982aa43",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-slider {\n  position: relative;\n  width: 410px;\n}\n.vc-slider-hue-warp {\n  height: 12px;\n  position: relative;\n}\n.vc-slider-hue-warp .vc-hue-picker {\n  width: 14px;\n  height: 14px;\n  border-radius: 6px;\n  transform: translate(-7px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-slider-swatches {\n  display: flex;\n  margin-top: 20px;\n}\n.vc-slider-swatch {\n  margin-right: 1px;\n  flex: 1;\n  width: 20%;\n}\n.vc-slider-swatch:first-child {\n  margin-right: 1px;\n}\n.vc-slider-swatch:first-child .vc-slider-swatch-picker {\n  border-radius: 2px 0px 0px 2px;\n}\n.vc-slider-swatch:last-child {\n  margin-right: 0;\n}\n.vc-slider-swatch:last-child .vc-slider-swatch-picker {\n  border-radius: 0px 2px 2px 0px;\n}\n.vc-slider-swatch-picker {\n  cursor: pointer;\n  height: 12px;\n}\n.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {\n  transform: scaleY(1.8);\n  border-radius: 3.6px/2px;\n}\n.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 0.6px #ddd;\n}\n",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(82),o=r(i),a=n(100),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(84),n(96),e.exports=n(32).f("iterator")},function(e,t,n){"use strict";var r=n(85)(!0);n(40)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(23),i=n(24);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(87);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(45),i=n(18),o=n(31),a={};n(7)(a,n(11)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(8),i=n(16),o=n(27);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(10),i=n(92),o=n(93);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(23),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(23),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(6),i=n(48),o=n(28)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(97);for(var r=n(4),i=n(7),o=n(26),a=n(11)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],d=c&&c.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},function(e,t,n){"use strict";var r=n(98),i=n(99),o=n(26),a=n(10);e.exports=n(40)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(102),n(108),n(109),n(110),e.exports=n(15).Symbol},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(9),a=n(41),s=n(44),u=n(103).KEY,l=n(17),c=n(29),d=n(31),f=n(19),h=n(11),p=n(32),m=n(33),g=n(104),v=n(105),_=n(16),b=n(12),y=n(48),x=n(10),w=n(25),k=n(18),M=n(45),S=n(106),L=n(107),C=n(49),T=n(8),D=n(27),O=L.f,E=T.f,A=S.f,P=r.Symbol,F=r.JSON,I=F&&F.stringify,Y=h("_hidden"),R=h("toPrimitive"),N={}.propertyIsEnumerable,H=c("symbol-registry"),z=c("symbols"),j=c("op-symbols"),B=Object.prototype,V="function"==typeof P&&!!C.f,$=r.QObject,U=!$||!$.prototype||!$.prototype.findChild,W=o&&l((function(){return 7!=M(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(B,t);r&&delete B[t],E(e,t,n),r&&e!==B&&E(B,t,r)}:E,q=function(e){var t=z[e]=M(P.prototype);return t._k=e,t},G=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},K=function(e,t,n){return e===B&&K(j,t,n),_(e),t=w(t,!0),_(n),i(z,t)?(n.enumerable?(i(e,Y)&&e[Y][t]&&(e[Y][t]=!1),n=M(n,{enumerable:k(0,!1)})):(i(e,Y)||E(e,Y,k(1,{})),e[Y][t]=!0),W(e,t,n)):E(e,t,n)},J=function(e,t){_(e);for(var n,r=g(t=x(t)),i=0,o=r.length;o>i;)K(e,n=r[i++],t[n]);return e},X=function(e,t){return void 0===t?M(e):J(M(e),t)},Q=function(e){var t=N.call(this,e=w(e,!0));return!(this===B&&i(z,e)&&!i(j,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,Y)&&this[Y][e])||t)},Z=function(e,t){if(e=x(e),t=w(t,!0),e!==B||!i(z,t)||i(j,t)){var n=O(e,t);return!n||!i(z,t)||i(e,Y)&&e[Y][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=A(x(e)),r=[],o=0;n.length>o;)i(z,t=n[o++])||t==Y||t==u||r.push(t);return r},te=function(e){for(var t,n=e===B,r=A(n?j:x(e)),o=[],a=0;r.length>a;)!i(z,t=r[a++])||n&&!i(B,t)||o.push(z[t]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(j,n),i(this,Y)&&i(this[Y],e)&&(this[Y][e]=!1),W(this,e,k(1,n))};return o&&U&&W(B,e,{configurable:!0,set:t}),q(e)},s(P.prototype,"toString",(function(){return this._k})),L.f=Z,T.f=K,n(50).f=S.f=ee,n(34).f=Q,C.f=te,o&&!n(14)&&s(B,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=D(h.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(H,e+="")?H[e]:H[e]=P(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in H)if(H[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!V,"Object",{create:X,defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l((function(){C.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return C.f(y(e))}}),F&&a(a.S+a.F*(!V||l((function(){var e=P();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,I.apply(F,r)}}),P.prototype[R]||n(7)(P.prototype,R,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(19)("meta"),i=n(12),o=n(6),a=n(8).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(17)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:f,onFreeze:h}},function(e,t,n){var r=n(27),i=n(49),o=n(34);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(47);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),i=n(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(34),i=n(18),o=n(10),a=n(25),s=n(6),u=n(42),l=Object.getOwnPropertyDescriptor;t.f=n(9)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(33)("asyncIterator")},function(e,t,n){n(33)("observable")},function(e,t,n){var r=n(112);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7c5f1a1c",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-hue {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  border-radius: 2px;\n}\n.vc-hue--horizontal {\n  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue--vertical {\n  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue-container {\n  cursor: pointer;\n  margin: 0 2px;\n  position: relative;\n  height: 100%;\n}\n.vc-hue-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-hue-picker {\n  cursor: pointer;\n  margin-top: 1px;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  transform: translateX(-2px) ;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-hue",e.directionClass]},[n("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":e.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-hue-pointer",style:{top:e.pointerTop,left:e.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[n("div",{staticClass:"vc-slider-hue-warp"},[n("hue",{on:{change:e.hueChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},e._l(e.normalizedSwatches,(function(t,r){return n("div",{key:r,staticClass:"vc-slider-swatch",attrs:{"data-index":r,"aria-label":"color:"+e.colors.hex,role:"button"},on:{click:function(n){return e.handleSwClick(r,t)}}},[n("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":e.isActive(t,r),"vc-slider-swatch-picker--white":1===t.l},style:{background:"hsl("+e.colors.hsl.h+", "+100*t.s+"%, "+100*t.l+"%)"}})])})),0)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(116)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(119),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Swatches.vue",t.default=d.exports},function(e,t,n){var r=n(117);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("10f839a2",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-swatches {\n  width: 320px;\n  height: 240px;\n  overflow-y: scroll;\n  background-color: #fff;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n}\n.vc-swatches-box {\n  padding: 16px 0 6px 16px;\n  overflow: hidden;\n}\n.vc-swatches-color-group {\n  padding-bottom: 10px;\n  width: 40px;\n  float: left;\n  margin-right: 10px;\n}\n.vc-swatches-color-it {\n  box-sizing: border-box;\n  width: 40px;\n  height: 24px;\n  cursor: pointer;\n  background: #880e4f;\n  margin-bottom: 1px;\n  overflow: hidden;\n  -ms-border-radius: 2px 2px 0 0;\n  -moz-border-radius: 2px 2px 0 0;\n  -o-border-radius: 2px 2px 0 0;\n  -webkit-border-radius: 2px 2px 0 0;\n  border-radius: 2px 2px 0 0;\n}\n.vc-swatches-color--white {\n  border: 1px solid #DDD;\n}\n.vc-swatches-pick {\n  fill: rgb(255, 255, 255);\n  margin-left: 8px;\n  display: block;\n}\n.vc-swatches-color--white .vc-swatches-pick {\n  fill: rgb(51, 51, 51);\n}\n",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return i})),n.d(t,"purple",(function(){return o})),n.d(t,"deepPurple",(function(){return a})),n.d(t,"indigo",(function(){return s})),n.d(t,"blue",(function(){return u})),n.d(t,"lightBlue",(function(){return l})),n.d(t,"cyan",(function(){return c})),n.d(t,"teal",(function(){return d})),n.d(t,"green",(function(){return f})),n.d(t,"lightGreen",(function(){return h})),n.d(t,"lime",(function(){return p})),n.d(t,"yellow",(function(){return m})),n.d(t,"amber",(function(){return g})),n.d(t,"orange",(function(){return v})),n.d(t,"deepOrange",(function(){return _})),n.d(t,"brown",(function(){return b})),n.d(t,"grey",(function(){return y})),n.d(t,"blueGrey",(function(){return x})),n.d(t,"darkText",(function(){return w})),n.d(t,"lightText",(function(){return k})),n.d(t,"darkIcons",(function(){return M})),n.d(t,"lightIcons",(function(){return S})),n.d(t,"white",(function(){return L})),n.d(t,"black",(function(){return C}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},u={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},l={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},f={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},h={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},m={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},g={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},_={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},y={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},x={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},w={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},M={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},L="#ffffff",C="#000000";t.default={red:r,pink:i,purple:o,deepPurple:a,indigo:s,blue:u,lightBlue:l,cyan:c,teal:d,green:f,lightGreen:h,lime:p,yellow:m,amber:g,orange:v,deepOrange:_,brown:b,grey:y,blueGrey:x,darkText:w,lightText:k,darkIcons:M,lightIcons:S,white:L,black:C}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":e.pick}},[n("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},e._l(e.palette,(function(t,r){return n("div",{key:r,staticClass:"vc-swatches-color-group"},e._l(t,(function(t){return n("div",{key:t,class:["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===t}],style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":e.equal(t),"data-color":t},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.equal(t),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])})),0)})),0)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(121)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(134),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Photoshop.vue",t.default=d.exports},function(e,t,n){var r=n(122);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("080365d4",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,'\n.vc-photoshop {\n  background: #DCDCDC;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);\n  box-sizing: initial;\n  width: 513px;\n  font-family: Roboto;\n}\n.vc-photoshop__disable-fields {\n  width: 390px;\n}\n.vc-ps-head {\n  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);\n  border-bottom: 1px solid #B1B1B1;\n  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);\n  height: 23px;\n  line-height: 24px;\n  border-radius: 4px 4px 0 0;\n  font-size: 13px;\n  color: #4D4D4D;\n  text-align: center;\n}\n.vc-ps-body {\n  padding: 15px;\n  display: flex;\n}\n.vc-ps-saturation-wrap {\n  width: 256px;\n  height: 256px;\n  position: relative;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n  overflow: hidden;\n}\n.vc-ps-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-ps-hue-wrap {\n  position: relative;\n  height: 256px;\n  width: 19px;\n  margin-left: 10px;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n}\n.vc-ps-hue-pointer {\n  position: relative;\n}\n.vc-ps-hue-pointer--left,\n.vc-ps-hue-pointer--right {\n  position: absolute;\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 5px 0 5px 8px;\n  border-color: transparent transparent transparent #555;\n}\n.vc-ps-hue-pointer--left:after,\n.vc-ps-hue-pointer--right:after {\n  content: "";\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 4px 0 4px 6px;\n  border-color: transparent transparent transparent #fff;\n  position: absolute;\n  top: 1px;\n  left: 1px;\n  transform: translate(-8px, -5px);\n}\n.vc-ps-hue-pointer--left {\n  transform: translate(-13px, -4px);\n}\n.vc-ps-hue-pointer--right {\n  transform: translate(20px, -4px) rotate(180deg);\n}\n.vc-ps-controls {\n  width: 180px;\n  margin-left: 10px;\n  display: flex;\n}\n.vc-ps-controls__disable-fields {\n  width: auto;\n}\n.vc-ps-actions {\n  margin-left: 20px;\n  flex: 1;\n}\n.vc-ps-ac-btn {\n  cursor: pointer;\n  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);\n  border: 1px solid #878787;\n  border-radius: 2px;\n  height: 20px;\n  box-shadow: 0 1px 0 0 #EAEAEA;\n  font-size: 14px;\n  color: #000;\n  line-height: 20px;\n  text-align: center;\n  margin-bottom: 10px;\n}\n.vc-ps-previews {\n  width: 60px;\n}\n.vc-ps-previews__swatches {\n  border: 1px solid #B3B3B3;\n  border-bottom: 1px solid #F0F0F0;\n  margin-bottom: 2px;\n  margin-top: 1px;\n}\n.vc-ps-previews__pr-color {\n  height: 34px;\n  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;\n}\n.vc-ps-previews__label {\n  font-size: 14px;\n  color: #000;\n  text-align: center;\n}\n.vc-ps-fields {\n  padding-top: 5px;\n  padding-bottom: 9px;\n  width: 80px;\n  position: relative;\n}\n.vc-ps-fields .vc-input__input {\n  margin-left: 40%;\n  width: 40%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 5px;\n  font-size: 13px;\n  padding-left: 3px;\n  margin-right: 10px;\n}\n.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {\n  top: 0;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n  position: absolute;\n}\n.vc-ps-fields .vc-input__label {\n  left: 0;\n  width: 34px;\n}\n.vc-ps-fields .vc-input__desc {\n  right: 0;\n  width: 0;\n}\n.vc-ps-fields__divider {\n  height: 5px;\n}\n.vc-ps-fields__hex .vc-input__input {\n  margin-left: 20%;\n  width: 80%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 6px;\n  font-size: 13px;\n  padding-left: 3px;\n}\n.vc-ps-fields__hex .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 14px;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n}\n',""])},function(e,t,n){var r=n(124);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("b5380e52",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-saturation,\n.vc-saturation--white,\n.vc-saturation--black {\n  cursor: pointer;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n.vc-saturation--white {\n  background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n}\n.vc-saturation--black {\n  background: linear-gradient(to top, #000, rgba(0,0,0,0));\n}\n.vc-saturation-pointer {\n  cursor: pointer;\n  position: absolute;\n}\n.vc-saturation-circle {\n  cursor: head;\n  width: 4px;\n  height: 4px;\n  box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);\n  border-radius: 50%;\n  transform: translate(-2px, -2px);\n}\n",""])},function(e,t){function n(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}e.exports=n},function(e,t){function r(e,t,n){function r(t){var n=m,r=g;return m=g=void 0,x=t,_=e.apply(r,n)}function i(e){return x=e,b=setTimeout(c,t),S?r(e):_}function a(e){var n=e-y,r=e-x,i=t-n;return L?k(i,v-r):i}function s(e){var n=e-y,r=e-x;return void 0===y||n>=t||n<0||L&&r>=v}function c(){var e=M();if(s(e))return d(e);b=setTimeout(c,a(e))}function d(e){return b=void 0,C&&m?r(e):(m=g=void 0,_)}function f(){void 0!==b&&clearTimeout(b),x=0,m=y=g=b=void 0}function h(){return void 0===b?_:d(M())}function p(){var e=M(),n=s(e);if(m=arguments,g=this,y=e,n){if(void 0===b)return i(y);if(L)return b=setTimeout(c,t),r(y)}return void 0===b&&(b=setTimeout(c,t)),_}var m,g,v,_,b,y,x=0,S=!1,L=!1,C=!0;if("function"!=typeof e)throw new TypeError(l);return t=u(t)||0,o(n)&&(S=!!n.leading,L="maxWait"in n,v=L?w(u(n.maxWait)||0,t):v,C="trailing"in n?!!n.trailing:C),p.cancel=f,p.flush=h,p}function i(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function a(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||a(e)&&x.call(e)==d}function u(e){if("number"==typeof e)return e;if(s(e))return c;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var n=p.test(e);return n||m.test(e)?g(e.slice(2),n?2:8):h.test(e)?c:+e}var l="Expected a function",c=NaN,d="[object Symbol]",f=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,v="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,_="object"==typeof self&&self&&self.Object===Object&&self,b=v||_||Function("return this")(),y=Object.prototype,x=y.toString,w=Math.max,k=Math.min,M=function(){return b.Date.now()};e.exports=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:e.bgColor},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),e._v(" "),n("div",{staticClass:"vc-saturation--black"}),e._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){var r=n(129);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("4dc1b086",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-alpha {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-checkboard-wrap {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  overflow: hidden;\n}\n.vc-alpha-gradient {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-container {\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n  height: 100%;\n  margin: 0 3px;\n}\n.vc-alpha-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-alpha-picker {\n  cursor: pointer;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  margin-top: 1px;\n  transform: translateX(-2px);\n}\n",""])},function(e,t,n){var r=n(131);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7e15c05b",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-checkerboard {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  background-size: contain;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vc-checkerboard",style:e.bgStyle})},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:e.gradientColor}}),e._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*e.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-photoshop",e.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[n("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[e._v(e._s(e.head))]),e._v(" "),n("div",{staticClass:"vc-ps-body"},[n("div",{staticClass:"vc-ps-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-ps-hue-wrap"},[n("hue",{attrs:{direction:"vertical"},on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}},[n("div",{staticClass:"vc-ps-hue-pointer"},[n("i",{staticClass:"vc-ps-hue-pointer--left"}),n("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),e._v(" "),n("div",{class:["vc-ps-controls",e.disableFields?"vc-ps-controls__disable-fields":""]},[n("div",{staticClass:"vc-ps-previews"},[n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.newLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-previews__swatches"},[n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.colors.hex},attrs:{"aria-label":"New color is "+e.colors.hex}}),e._v(" "),n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.currentColor},attrs:{"aria-label":"Current color is "+e.currentColor},on:{click:e.clickCurrentColor}})]),e._v(" "),n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.currentLabel))])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-ps-actions"},[n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.acceptLabel},on:{click:e.handleAccept}},[e._v(e._s(e.acceptLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.cancelLabel},on:{click:e.handleCancel}},[e._v(e._s(e.cancelLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-fields"},[n("ed-in",{attrs:{label:"h",desc:"°",value:e.hsv.h},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"s",desc:"%",value:e.hsv.s,max:100},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"v",desc:"%",value:e.hsv.v,max:100},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),e.hasResetButton?n("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:e.handleReset}},[e._v(e._s(e.resetLabel))]):e._e()])])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(136)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(138),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Sketch.vue",t.default=d.exports},function(e,t,n){var r=n(137);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("612c6604",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-sketch {\n  position: relative;\n  width: 200px;\n  padding: 10px 10px 0;\n  box-sizing: initial;\n  background: #fff;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);\n}\n.vc-sketch-saturation-wrap {\n  width: 100%;\n  padding-bottom: 75%;\n  position: relative;\n  overflow: hidden;\n}\n.vc-sketch-controls {\n  display: flex;\n}\n.vc-sketch-sliders {\n  padding: 4px 0;\n  flex: 1;\n}\n.vc-sketch-sliders .vc-hue,\n.vc-sketch-sliders .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-sketch-hue-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-sketch-alpha-wrap {\n  position: relative;\n  height: 10px;\n  margin-top: 4px;\n  overflow: hidden;\n}\n.vc-sketch-color-wrap {\n  width: 24px;\n  height: 24px;\n  position: relative;\n  margin-top: 4px;\n  margin-left: 4px;\n  border-radius: 3px;\n}\n.vc-sketch-active-color {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  border-radius: 2px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);\n  z-index: 2;\n}\n.vc-sketch-color-wrap .vc-checkerboard {\n  background-size: auto;\n}\n.vc-sketch-field {\n  display: flex;\n  padding-top: 4px;\n}\n.vc-sketch-field .vc-input__input {\n  width: 90%;\n  padding: 4px 0 3px 10%;\n  border: none;\n  box-shadow: inset 0 0 0 1px #ccc;\n  font-size: 10px;\n}\n.vc-sketch-field .vc-input__label {\n  display: block;\n  text-align: center;\n  font-size: 11px;\n  color: #222;\n  padding-top: 3px;\n  padding-bottom: 4px;\n  text-transform: capitalize;\n}\n.vc-sketch-field--single {\n  flex: 1;\n  padding-left: 6px;\n}\n.vc-sketch-field--double {\n  flex: 2;\n}\n.vc-sketch-presets {\n  margin-right: -10px;\n  margin-left: -10px;\n  padding-left: 10px;\n  padding-top: 10px;\n  border-top: 1px solid #eee;\n}\n.vc-sketch-presets-color {\n  border-radius: 3px;\n  overflow: hidden;\n  position: relative;\n  display: inline-block;\n  margin: 0 10px 10px 0;\n  vertical-align: top;\n  cursor: pointer;\n  width: 16px;\n  height: 16px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n}\n.vc-sketch-presets-color .vc-checkerboard {\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n  border-radius: 3px;\n}\n.vc-sketch__disable-alpha .vc-sketch-color-wrap {\n  height: 10px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-sketch",e.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:e.activeColor},attrs:{"aria-label":"Current color is "+e.activeColor}}),e._v(" "),n("checkboard")],1)]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[e._l(e.presetColors,(function(t){return[e.isTransparent(t)?n("div",{key:t,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}},[n("checkboard")],1):n("div",{key:t,staticClass:"vc-sketch-presets-color",style:{background:t},attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}})]}))],2)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(140)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(142),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Chrome.vue",t.default=d.exports},function(e,t,n){var r=n(141);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("1cd16048",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-chrome {\n  background: #fff;\n  border-radius: 2px;\n  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);\n  box-sizing: initial;\n  width: 225px;\n  font-family: Menlo;\n  background-color: #fff;\n}\n.vc-chrome-controls {\n  display: flex;\n}\n.vc-chrome-color-wrap {\n  position: relative;\n  width: 36px;\n}\n.vc-chrome-active-color {\n  position: relative;\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  overflow: hidden;\n  z-index: 1;\n}\n.vc-chrome-color-wrap .vc-checkerboard {\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  background-size: auto;\n}\n.vc-chrome-sliders {\n  flex: 1;\n}\n.vc-chrome-fields-wrap {\n  display: flex;\n  padding-top: 16px;\n}\n.vc-chrome-fields {\n  display: flex;\n  margin-left: -6px;\n  flex: 1;\n}\n.vc-chrome-field {\n  padding-left: 6px;\n  width: 100%;\n}\n.vc-chrome-toggle-btn {\n  width: 32px;\n  text-align: right;\n  position: relative;\n}\n.vc-chrome-toggle-icon {\n  margin-right: -4px;\n  margin-top: 12px;\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n}\n.vc-chrome-toggle-icon-highlight {\n  position: absolute;\n  width: 24px;\n  height: 28px;\n  background: #eee;\n  border-radius: 4px;\n  top: 10px;\n  left: 12px;\n}\n.vc-chrome-hue-wrap {\n  position: relative;\n  height: 10px;\n  margin-bottom: 8px;\n}\n.vc-chrome-alpha-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-chrome-hue-wrap .vc-hue {\n  border-radius: 2px;\n}\n.vc-chrome-alpha-wrap .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  transform: translate(-6px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-chrome-body {\n  padding: 16px 16px 12px;\n  background-color: #fff;\n}\n.vc-chrome-saturation-wrap {\n  width: 100%;\n  padding-bottom: 55%;\n  position: relative;\n  border-radius: 2px 2px 0 0;\n  overflow: hidden;\n}\n.vc-chrome-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-chrome-fields .vc-input__input {\n  font-size: 11px;\n  color: #333;\n  width: 100%;\n  border-radius: 2px;\n  border: none;\n  box-shadow: inset 0 0 0 1px #dadada;\n  height: 21px;\n  text-align: center;\n}\n.vc-chrome-fields .vc-input__label {\n  text-transform: uppercase;\n  font-size: 11px;\n  line-height: 11px;\n  color: #969696;\n  text-align: center;\n  display: block;\n  margin-top: 12px;\n}\n.vc-chrome__disable-alpha .vc-chrome-active-color {\n  width: 18px;\n  height: 18px;\n}\n.vc-chrome__disable-alpha .vc-chrome-color-wrap {\n  width: 30px;\n}\n.vc-chrome__disable-alpha .vc-chrome-hue-wrap {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-chrome",e.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:e.activeColor},attrs:{"aria-label":"current color is "+e.colors.hex}}),e._v(" "),e.disableAlpha?e._e():n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.fieldsIndex,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[e.hasAlpha?e._e():n("ed-in",{attrs:{label:"hex",value:e.colors.hex},on:{change:e.inputChange}}),e._v(" "),e.hasAlpha?n("ed-in",{attrs:{label:"hex",value:e.colors.hex8},on:{change:e.inputChange}}):e._e()],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===e.fieldsIndex,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:2===e.fieldsIndex,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:e.hsl.h},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:e.hsl.s},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:e.hsl.l},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:e.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:e.showHighlight,mouseenter:e.showHighlight,mouseout:e.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){u||n(144)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var s=n(146),u=!1,l=n(2),c=r,d=l(o.a,s.a,!1,c,null,null);d.options.__file="src/components/Twitter.vue",t.default=d.exports},function(e,t,n){var r=n(145);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("669a48a5",r,!1,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,"\n.vc-twitter {\n  background: #fff;\n  border: 0 solid rgba(0,0,0,0.25);\n  box-shadow: 0 1px 4px rgba(0,0,0,0.25);\n  border-radius: 4px;\n  position: relative;\n}\n.vc-twitter-triangle {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent #fff transparent;\n  position: absolute;\n}\n.vc-twitter-triangle-shadow {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent rgba(0, 0, 0, .1) transparent;\n  position: absolute;\n}\n.vc-twitter-body {\n  padding: 15px 9px 9px 15px;\n}\n.vc-twitter .vc-editable-input {\n  position: relative;\n}\n.vc-twitter .vc-editable-input input {\n  width: 100px;\n  font-size: 14px;\n  color: #666;\n  border: 0px;\n  outline: none;\n  height: 28px;\n  box-shadow: inset 0 0 0 1px #F0F0F0;\n  box-sizing: content-box;\n  border-radius: 0 4px 4px 0;\n  float: left;\n  padding: 1px;\n  padding-left: 8px;\n}\n.vc-twitter .vc-editable-input span {\n  display: none;\n}\n.vc-twitter-hash {\n  background: #F0F0F0;\n  height: 30px;\n  width: 30px;\n  border-radius: 4px 0 0 4px;\n  float: left;\n  color: #98A1A4;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.vc-twitter-swatch {\n  width: 30px;\n  height: 30px;\n  float: left;\n  border-radius: 4px;\n  margin: 0 6px 6px 0;\n  cursor: pointer;\n  position: relative;\n  outline: none;\n}\n.vc-twitter-clear {\n  clear: both;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle {\n  display: none;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {\n  display: none;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle{\n  top: -10px;\n  left: 12px;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  left: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle{\n  top: -10px;\n  right: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  right: 12px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":"hide"===e.triangle,"vc-twitter-top-left-triangle ":"top-left"===e.triangle,"vc-twitter-top-right-triangle ":"top-right"===e.triangle},style:{width:"number"==typeof e.width?e.width+"px":e.width}},[n("div",{staticClass:"vc-twitter-triangle-shadow"}),e._v(" "),n("div",{staticClass:"vc-twitter-triangle"}),e._v(" "),n("div",{staticClass:"vc-twitter-body"},[e._l(e.defaultColors,(function(t,r){return n("span",{key:r,staticClass:"vc-twitter-swatch",style:{background:t,boxShadow:"0 0 4px "+(e.equal(t)?t:"transparent")},on:{click:function(n){return e.handlerClick(t)}}})})),e._v(" "),n("div",{staticClass:"vc-twitter-hash"},[e._v("#")]),e._v(" "),n("editable-input",{attrs:{label:"#",value:e.hex},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-twitter-clear"})],2)])},i=[];r._withStripped=!0;var o={render:r,staticRenderFns:i};t.a=o}])}))},7611:function(e){!function(t,n){e.exports=n()}(window,(function(){return n={},e.m=t=[function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("27d83796",r,!1,{})},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("0e783494",r,!1,{})},function(e,t,n){var r=n(10);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("17757f60",r,!1,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,l=!1,c=function(){},d=null,f="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){l=n,d=i||{};var a=r(e,t);return m(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(u=o[s.id]).refs--,n.push(u)}for(t?m(a=r(e,t)):a=[],i=0;i<n.length;i++){var u;if(0===(u=n[i]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete o[u.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(h){var i=u++;r=s=s||g(),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var _,b=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.vue-modal-resizer {\n  display: block;\n  overflow: hidden;\n  position: absolute;\n  width: 12px;\n  height: 12px;\n  right: 0;\n  bottom: 0;\n  z-index: 9999999;\n  background: transparent;\n  cursor: se-resize;\n}\n.vue-modal-resizer::after {\n  display: block;\n  position: absolute;\n  content: '';\n  background: transparent;\n  left: 0;\n  top: 0;\n  width: 0;\n  height: 0;\n  border-bottom: 10px solid #ddd;\n  border-left: 10px solid transparent;\n}\n.vue-modal-resizer.clicked::after {\n  border-bottom: 10px solid #369be9;\n}\n",""])},function(e,t,n){"use strict";var r=n(1);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.v--modal-block-scroll {\n  overflow: hidden;\n  width: 100vw;\n}\n.v--modal-overlay {\n  position: fixed;\n  box-sizing: border-box;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100vh;\n  background: rgba(0, 0, 0, 0.2);\n  z-index: 999;\n  opacity: 1;\n}\n.v--modal-overlay.scrollable {\n  height: 100%;\n  min-height: 100vh;\n  overflow-y: auto;\n  -webkit-overflow-scrolling: touch;\n}\n.v--modal-overlay .v--modal-background-click {\n  width: 100%;\n  min-height: 100%;\n  height: auto;\n}\n.v--modal-overlay .v--modal-box {\n  position: relative;\n  overflow: hidden;\n  box-sizing: border-box;\n}\n.v--modal-overlay.scrollable .v--modal-box {\n  margin-bottom: 2px;\n}\n.v--modal {\n  background-color: white;\n  text-align: left;\n  border-radius: 3px;\n  box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);\n  padding: 0;\n}\n.v--modal.v--modal-fullscreen {\n  width: 100vw;\n  height: 100vh;\n  margin: 0;\n  left: 0;\n  top: 0;\n}\n.v--modal-top-right {\n  display: block;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n.overlay-fade-enter-active,\n.overlay-fade-leave-active {\n  transition: all 0.2s;\n}\n.overlay-fade-enter,\n.overlay-fade-leave-active {\n  opacity: 0;\n}\n.nice-modal-fade-enter-active,\n.nice-modal-fade-leave-active {\n  transition: all 0.4s;\n}\n.nice-modal-fade-enter,\n.nice-modal-fade-leave-active {\n  opacity: 0;\n  transform: translateY(-20px);\n}\n",""])},function(e,t,n){"use strict";var r=n(2);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.vue-dialog div {\n  box-sizing: border-box;\n}\n.vue-dialog .dialog-flex {\n  width: 100%;\n  height: 100%;\n}\n.vue-dialog .dialog-content {\n  flex: 1 0 auto;\n  width: 100%;\n  padding: 15px;\n  font-size: 14px;\n}\n.vue-dialog .dialog-c-title {\n  font-weight: 600;\n  padding-bottom: 15px;\n}\n.vue-dialog .dialog-c-text {\n}\n.vue-dialog .vue-dialog-buttons {\n  display: flex;\n  flex: 0 1 auto;\n  width: 100%;\n  border-top: 1px solid #eee;\n}\n.vue-dialog .vue-dialog-buttons-none {\n  width: 100%;\n  padding-bottom: 15px;\n}\n.vue-dialog-button {\n  font-size: 12px !important;\n  background: transparent;\n  padding: 0;\n  margin: 0;\n  border: 0;\n  cursor: pointer;\n  box-sizing: border-box;\n  line-height: 40px;\n  height: 40px;\n  color: inherit;\n  font: inherit;\n  outline: none;\n}\n.vue-dialog-button:hover {\n  background: rgba(0, 0, 0, 0.01);\n}\n.vue-dialog-button:active {\n  background: rgba(0, 0, 0, 0.025);\n}\n.vue-dialog-button:not(:first-of-type) {\n  border-left: 1px solid #eee;\n}\n",""])},function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.overlayTransition}},[e.visibility.overlay?n("div",{ref:"overlay",class:e.overlayClass,attrs:{"aria-expanded":e.visibility.overlay.toString(),"data-modal":e.name}},[n("div",{staticClass:"v--modal-background-click",on:{mousedown:function(t){return t.target!==t.currentTarget?null:e.handleBackgroundClick(t)},touchstart:function(t){return t.target!==t.currentTarget?null:e.handleBackgroundClick(t)}}},[n("div",{staticClass:"v--modal-top-right"},[e._t("top-right")],2),e._v(" "),n("transition",{attrs:{name:e.transition},on:{"before-enter":e.beforeTransitionEnter,"after-enter":e.afterTransitionEnter,"after-leave":e.afterTransitionLeave}},[e.visibility.modal?n("div",{ref:"modal",class:e.modalClass,style:e.modalStyle,attrs:{role:"dialog","aria-modal":"true"}},[e._t("default"),e._v(" "),e.resizable&&!e.isAutoHeight?n("resizer",{attrs:{"min-width":e.minWidth,"min-height":e.minHeight,"max-width":e.maxWidth,"max-height":e.maxHeight},on:{resize:e.handleModalResize}}):e._e()],2):e._e()])],1)]):e._e()])}function i(){var e=this.$createElement;return(this._self._c||e)("div",{class:this.className})}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return n<e?e:t<n?t:n}function l(){var e=window.innerWidth,t=document.documentElement.clientWidth;return e&&t?Math.min(e,t):t||e}n.r(t),n.d(t,"getModalsContainer",(function(){return F})),i._withStripped=r._withStripped=!0;var c=function(e){var t=0<arguments.length&&void 0!==e?e:0;return function(){return(t++).toString()}}(),d={name:"VueJsModalResizer",props:{minHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER}},data:function(){return{clicked:!1,size:{}}},mounted:function(){this.$el.addEventListener("mousedown",this.start,!1)},computed:{className:function(){return{"vue-modal-resizer":!0,clicked:this.clicked}}},methods:{start:function(e){this.clicked=!0,window.addEventListener("mousemove",this.mousemove,!1),window.addEventListener("mouseup",this.stop,!1),e.stopPropagation(),e.preventDefault()},stop:function(){this.clicked=!1,window.removeEventListener("mousemove",this.mousemove,!1),window.removeEventListener("mouseup",this.stop,!1),this.$emit("resize-stop",{element:this.$el.parentElement,size:this.size})},mousemove:function(e){this.resize(e)},resize:function(e){var t=this.$el.parentElement;if(t){var n=e.clientX-t.offsetLeft,r=e.clientY-t.offsetTop,i=Math.min(l(),this.maxWidth),o=Math.min(window.innerHeight,this.maxHeight);n=u(this.minWidth,i,n),r=u(this.minHeight,o,r),this.size={width:n,height:r},t.style.width=n+"px",t.style.height=r+"px",this.$emit("resize",{element:t,size:this.size})}}}};function f(e,t,n,r,i,o,a,s){var u,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:l}}n(5);var h=f(d,i,[],!1,null,null,null);h.options.__file="src/Resizer.vue";var p=h.exports;function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){switch(m(e)){case"number":return{type:"px",value:e};case"string":return function(e){if("auto"===e)return{type:e,value:0};var t=b.find((function(t){return t.regexp.test(e)}));return t?{type:t.name,value:parseFloat(e)}:{type:"",value:e}}(e);default:return{type:"",value:e}}}function v(e){if("string"!=typeof e)return 0<=e;var t=g(e);return("%"===t.type||"px"===t.type)&&0<t.value}var _="[-+]?[0-9]*.?[0-9]+",b=[{name:"px",regexp:new RegExp("^".concat(_,"px$"))},{name:"%",regexp:new RegExp("^".concat(_,"%$"))},{name:"px",regexp:new RegExp("^".concat(_,"$"))}];function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x={name:"VueJsModal",props:{name:{required:!0,type:String},delay:{type:Number,default:0},resizable:{type:Boolean,default:!1},adaptive:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1},scrollable:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},overlayTransition:{type:String,default:"overlay-fade"},transition:{type:String},clickToClose:{type:Boolean,default:!0},classes:{type:[String,Array],default:"v--modal"},styles:{type:[String,Array,Object]},minWidth:{type:Number,default:0,validator:function(e){return 0<=e}},minHeight:{type:Number,default:0,validator:function(e){return 0<=e}},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},width:{type:[Number,String],default:600,validator:v},height:{type:[Number,String],default:300,validator:function(e){return"auto"===e||v(e)}},pivotX:{type:Number,default:.5,validator:function(e){return 0<=e&&e<=1}},pivotY:{type:Number,default:.5,validator:function(e){return 0<=e&&e<=1}}},components:{Resizer:p},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},shift:{left:0,top:0},modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},viewportHeight:0,viewportWidth:0,mutationObserver:null}},created:function(){this.setInitialSize()},beforeMount:function(){var e=this;if(Y.event.$on("toggle",this.handleToggleEvent),window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize(),this.scrollable&&!this.isAutoHeight&&console.warn('Modal "'.concat(this.name,'" has scrollable flag set to true ')+'but height is not "auto" ('.concat(this.height,")")),this.isAutoHeight){var t=function(){if("undefined"!=typeof window)for(var e=["","WebKit","Moz","O","Ms"],t=0;t<e.length;t++){var n=e[t]+"MutationObserver";if(n in window)return window[n]}return!1}();t?this.mutationObserver=new t((function(t){e.updateRenderedHeight()})):console.warn("MutationObserver was not found. Vue-js-modal automatic resizing relies heavily on MutationObserver. Please make sure to provide shim for it.")}this.clickToClose&&window.addEventListener("keyup",this.handleEscapeKeyUp)},beforeDestroy:function(){Y.event.$off("toggle",this.handleToggleEvent),window.removeEventListener("resize",this.handleWindowResize),this.clickToClose&&window.removeEventListener("keyup",this.handleEscapeKeyUp),this.scrollable&&document.body.classList.remove("v--modal-block-scroll")},computed:{isAutoHeight:function(){return"auto"===this.modal.heightType},position:function(){var e=this.viewportHeight,t=this.viewportWidth,n=this.shift,r=this.pivotX,i=this.pivotY,o=this.trueModalWidth,a=this.trueModalHeight,s=t-o,l=Math.max(e-a,0),c=n.left+r*s,d=n.top+i*l;return{left:parseInt(u(0,s,c)),top:parseInt(u(0,l,d))}},trueModalWidth:function(){var e=this.viewportWidth,t=this.modal,n=this.adaptive,r=this.minWidth,i=this.maxWidth,o="%"===t.widthType?e/100*t.width:t.width,a=Math.max(r,Math.min(e,i));return n?u(r,a,o):o},trueModalHeight:function(){var e=this.viewportHeight,t=this.modal,n=this.isAutoHeight,r=this.adaptive,i=this.minHeight,o=this.maxHeight,a="%"===t.heightType?e/100*t.height:t.height;if(n)return this.modal.renderedHeight;var s=Math.max(i,Math.min(e,o));return r?u(i,s,a):a},overlayClass:function(){return{"v--modal-overlay":!0,scrollable:this.scrollable&&this.isAutoHeight}},modalClass:function(){return["v--modal-box",this.classes]},stylesProp:function(){return"string"==typeof this.styles?this.styles.split(";").map((function(e){return e.trim()})).filter(Boolean).map((function(e){return e.split(":")})).reduce((function(e,t){var n=o(t,2);return a({},e,s({},n[0],n[1]))}),{}):this.styles},modalStyle:function(){return[this.stylesProp,{top:this.position.top+"px",left:this.position.left+"px",width:this.trueModalWidth+"px",height:this.isAutoHeight?"auto":this.trueModalHeight+"px"}]}},watch:{visible:function(e){var t=this;e?(this.visibility.overlay=!0,setTimeout((function(){t.visibility.modal=!0,t.$nextTick((function(){t.addDraggableListeners(),t.callAfterEvent(!0)}))}),this.delay)):(this.visibility.modal=!1,setTimeout((function(){t.visibility.overlay=!1,t.$nextTick((function(){t.removeDraggableListeners(),t.callAfterEvent(!1)}))}),this.delay))}},methods:{handleToggleEvent:function(e,t,n){if(this.name===e){var r=void 0===t?!this.visible:t;this.toggle(r,n)}},setInitialSize:function(){var e=this.modal,t=g(this.width),n=g(this.height);e.width=t.value,e.widthType=t.type,e.height=n.value,e.heightType=n.type},handleEscapeKeyUp:function(e){27===e.which&&this.visible&&this.$modal.hide(this.name)},handleWindowResize:function(){this.viewportWidth=l(),this.viewportHeight=window.innerHeight,this.ensureShiftInWindowBounds()},createModalEvent:function(e){var t=0<arguments.length&&void 0!==e?e:{};return function(e){var t=0<arguments.length&&void 0!==e?e:{};return a({id:c(),timestamp:Date.now(),canceled:!1},t)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}({name:this.name,ref:this.$refs.modal},t))},handleModalResize:function(e){this.modal.widthType="px",this.modal.width=e.size.width,this.modal.heightType="px",this.modal.height=e.size.height;var t=this.modal.size;this.$emit("resize",this.createModalEvent({size:t}))},toggle:function(e,t){var n=this.reset,r=this.scrollable,i=this.visible;if(i!==e){var o=i?"before-close":"before-open";"before-open"==o?(n&&(this.setInitialSize(),this.shift.left=0,this.shift.top=0),r&&document.body.classList.add("v--modal-block-scroll")):r&&document.body.classList.remove("v--modal-block-scroll");var a=!1,s=this.createModalEvent({stop:function(){a=!0},state:e,params:t});this.$emit(o,s),a||(this.visible=e,"before-open"==o&&"undefined"!=typeof document&&document.activeElement&&"BODY"!==document.activeElement.tagName&&document.activeElement.blur&&document.activeElement.blur())}},getDraggableElement:function(){var e="string"!=typeof this.draggable?".v--modal-box":this.draggable;return e?this.$refs.overlay.querySelector(e):null},handleBackgroundClick:function(){this.clickToClose&&this.toggle(!1)},callAfterEvent:function(e){e?this.connectObserver():this.disconnectObserver();var t=e?"opened":"closed",n=this.createModalEvent({state:e});this.$emit(t,n)},addDraggableListeners:function(){var e=this;if(this.draggable){var t=this.getDraggableElement();if(t){var n=0,r=0,i=0,o=0,a=function(e){return e.touches&&0<e.touches.length?e.touches[0]:e},s=function(t){var s=t.target;if(!s||"INPUT"!==s.nodeName&&"TEXTAREA"!==s.nodeName&&"SELECT"!==s.nodeName){var c=a(t),d=c.clientX,f=c.clientY;document.addEventListener("mousemove",u),document.addEventListener("touchmove",u),document.addEventListener("mouseup",l),document.addEventListener("touchend",l),n=d,r=f,i=e.shift.left,o=e.shift.top}},u=function(t){var s=a(t),u=s.clientX,l=s.clientY;e.shift.left=i+u-n,e.shift.top=o+l-r,t.preventDefault()},l=function t(n){e.ensureShiftInWindowBounds(),document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u),document.removeEventListener("mouseup",t),document.removeEventListener("touchend",t),n.preventDefault()};t.addEventListener("mousedown",s),t.addEventListener("touchstart",s)}}},removeDraggableListeners:function(){},updateRenderedHeight:function(){this.$refs.modal&&(this.modal.renderedHeight=this.$refs.modal.getBoundingClientRect().height)},connectObserver:function(){this.mutationObserver&&this.mutationObserver.observe(this.$refs.overlay,{childList:!0,attributes:!0,subtree:!0})},disconnectObserver:function(){this.mutationObserver&&this.mutationObserver.disconnect()},beforeTransitionEnter:function(){this.connectObserver()},afterTransitionEnter:function(){},afterTransitionLeave:function(){},ensureShiftInWindowBounds:function(){var e=this.viewportHeight,t=this.viewportWidth,n=this.shift,r=this.pivotX,i=this.pivotY,o=this.trueModalWidth,a=this.trueModalHeight,s=t-o,l=Math.max(e-a,0),c=n.left+r*s,d=n.top+i*l;this.shift.left-=c-u(0,s,c),this.shift.top-=d-u(0,l,d)}}},w=(n(7),f(x,r,[],!1,null,null,null));function k(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal",{attrs:{name:"dialog",height:"auto",classes:["v--modal","vue-dialog",this.params.class],width:e.width,"pivot-y":.3,adaptive:!0,clickToClose:e.clickToClose,transition:e.transition},on:{"before-open":e.beforeOpened,"before-close":e.beforeClosed,opened:function(t){e.$emit("opened",t)},closed:function(t){e.$emit("closed",t)}}},[n("div",{staticClass:"dialog-content"},[e.params.title?n("div",{staticClass:"dialog-c-title",domProps:{innerHTML:e._s(e.params.title||"")}}):e._e(),e._v(" "),e.params.component?n(e.params.component,e._b({tag:"component"},"component",e.params.props,!1)):n("div",{staticClass:"dialog-c-text",domProps:{innerHTML:e._s(e.params.text||"")}})],1),e._v(" "),e.buttons?n("div",{staticClass:"vue-dialog-buttons"},e._l(e.buttons,(function(t,r){return n("button",{key:r,class:t.class||"vue-dialog-button",style:e.buttonStyle,attrs:{type:"button"},domProps:{innerHTML:e._s(t.title)},on:{click:function(t){t.stopPropagation(),e.click(r,t)}}},[e._v("\n      "+e._s(t.title)+"\n    ")])}))):n("div",{staticClass:"vue-dialog-buttons-none"})])}w.options.__file="src/Modal.vue";var M=w.exports;k._withStripped=!0;var S={name:"VueJsDialog",props:{width:{type:[Number,String],default:400},clickToClose:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},data:function(){return{params:{},defaultButtons:[{title:"CLOSE"}]}},computed:{buttons:function(){return this.params.buttons||this.defaultButtons},buttonStyle:function(){return{flex:"1 1 ".concat(100/this.buttons.length,"%")}}},methods:{beforeOpened:function(e){window.addEventListener("keyup",this.onKeyUp),this.params=e.params||{},this.$emit("before-opened",e)},beforeClosed:function(e){window.removeEventListener("keyup",this.onKeyUp),this.params={},this.$emit("before-closed",e)},click:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:"click",i=this.buttons[e];i&&"function"==typeof i.handler?i.handler(e,t,{source:r}):this.$modal.hide("dialog")},onKeyUp:function(e){if(13===e.which&&0<this.buttons.length){var t=1===this.buttons.length?0:this.buttons.findIndex((function(e){return e.default}));-1!==t&&this.click(t,e,"keypress")}}}},L=(n(9),f(S,k,[],!1,null,null,null));function C(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"modals-container"}},e._l(e.modals,(function(t){return n("modal",e._g(e._b({key:t.id,on:{closed:function(n){e.remove(t.id)}}},"modal",t.modalAttrs,!1),t.modalListeners),[n(t.component,e._g(e._b({tag:"component",on:{close:function(n){e.$modal.hide(t.modalAttrs.name)}}},"component",t.componentAttrs,!1),e.$listeners))],1)})))}L.options.__file="src/Dialog.vue";var T=L.exports;function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}C._withStripped=!0;var O=f({data:function(){return{modals:[]}},created:function(){this.$root._dynamicContainer=this},methods:{add:function(e,t,n,r){var i=this,o=1<arguments.length&&void 0!==t?t:{},a=2<arguments.length&&void 0!==n?n:{},s=3<arguments.length&&void 0!==r?r:{},u=c(),l=a.name||"_dynamic_modal_"+u;this.modals.push({id:u,modalAttrs:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}({},a,{name:l}),modalListeners:s,component:e,componentAttrs:o}),this.$nextTick((function(){i.$modal.show(l)}))},remove:function(e){var t=this.modals.findIndex((function(t){return t.id===e}));-1!==t&&this.modals.splice(t,1)}}},C,[],!1,null,null,null);O.options.__file="src/ModalsContainer.vue";var E=O.exports;function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(e,t,n){if(!n._dynamicContainer&&t.injectModalsContainer){var r=(i=document.createElement("div"),document.body.appendChild(i),i);new e({parent:n,render:function(e){return e(E)}}).$mount(r)}var i;return n._dynamicContainer},I={install:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};if(!this.installed){this.installed=!0,this.event=new e,this.rootInstance=null;var r=n.componentName||"Modal",i=n.dynamicDefaults||{},o=function(t,r,o,a){var s=o&&o.root?o.root:I.rootInstance,u=F(e,n,s);u?u.add(t,r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}({},i,o),a):console.warn("[vue-js-modal] In order to render dynamic modals, a <modals-container> component must be present on the page.")};e.prototype.$modal={show:function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];switch(A(e)){case"string":return function(e,t){I.event.$emit("toggle",e,!0,t)}.apply(void 0,[e].concat(r));case"object":case"function":return n.dynamic?o.apply(void 0,[e].concat(r)):console.warn("[vue-js-modal] $modal() received object as a first argument, but dynamic modals are switched off. https://github.com/euvl/vue-js-modal/#dynamic-modals");default:console.warn("[vue-js-modal] $modal() received an unsupported argument as a first argument.",e)}},hide:function(e,t){I.event.$emit("toggle",e,!1,t)},toggle:function(e,t){I.event.$emit("toggle",e,void 0,t)}},e.component(r,M),n.dialog&&e.component("VDialog",T),n.dynamic&&(e.component("ModalsContainer",E),e.mixin({beforeMount:function(){null===I.rootInstance&&(I.rootInstance=this.$root)}}))}}},Y=t.default=I}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/dist/",e(e.s=11);function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n}))},3081:function(e){
/*!
  * vue-scrollto v2.20.0
  * (c) 2019 Randjelovic Igor
  * @license MIT
  */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=4,r=.001,i=1e-7,o=10,a=11,s=1/(a-1),u="function"===typeof Float32Array;function l(e,t){return 1-3*t+3*e}function c(e,t){return 3*t-6*e}function d(e){return 3*e}function f(e,t,n){return((l(t,n)*e+c(t,n))*e+d(t))*e}function h(e,t,n){return 3*l(t,n)*e*e+2*c(t,n)*e+d(t)}function p(e,t,n,r,a){var s,u,l=0;do{u=t+(n-t)/2,s=f(u,r,a)-e,s>0?n=u:t=u}while(Math.abs(s)>i&&++l<o);return u}function m(e,t,r,i){for(var o=0;o<n;++o){var a=h(t,r,i);if(0===a)return t;var s=f(t,r,i)-e;t-=s/a}return t}function g(e){return e}var v=function(e,t,n,i){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&n===i)return g;for(var o=u?new Float32Array(a):new Array(a),l=0;l<a;++l)o[l]=f(l*s,e,n);function c(t){for(var i=0,u=1,l=a-1;u!==l&&o[u]<=t;++u)i+=s;--u;var c=(t-o[u])/(o[u+1]-o[u]),d=i+c*s,f=h(d,e,n);return f>=r?m(t,d,e,n):0===f?d:p(t,i,i+s,e,n)}return function(e){return 0===e?0:1===e?1:f(c(e),t,i)}},_={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},b=!1;try{var y=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("test",null,y)}catch(I){}var x={$:function(e){return"string"!==typeof e?e:document.querySelector(e)},on:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};t instanceof Array||(t=[t]);for(var i=0;i<t.length;i++)e.addEventListener(t[i],n,!!b&&r)},off:function(e,t,n){t instanceof Array||(t=[t]);for(var r=0;r<t.length;r++)e.removeEventListener(t[r],n)},cumulativeOffset:function(e){var t=0,n=0;do{t+=e.offsetTop||0,n+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:n}}},w=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],k={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function M(e){k=t({},k,e)}var S=function(){var t,n,r,i,o,a,s,u,l,c,d,f,h,p,m,g,b,y,M,S,L,C,T,D,O,E,A,P=function(e){u&&(T=e,S=!0)};function F(e){var t=e.scrollTop;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollTop),t}function I(e){var t=e.scrollLeft;return"body"===e.tagName.toLowerCase()&&(t=t||document.documentElement.scrollLeft),t}function Y(){L=x.cumulativeOffset(n),C=x.cumulativeOffset(t),f&&(m=C.left-L.left+a,y=m-p),h&&(b=C.top-L.top+a,M=b-g)}function R(e){if(S)return N();O||(O=e),o||Y(),E=e-O,A=Math.min(E/r,1),A=D(A),H(n,g+M*A,p+y*A),E<r?window.requestAnimationFrame(R):N()}function N(){S||H(n,b,m),O=!1,x.off(n,w,P),S&&d&&d(T,t),!S&&c&&c(t)}function H(e,t,n){h&&(e.scrollTop=t),f&&(e.scrollLeft=n),"body"===e.tagName.toLowerCase()&&(h&&(document.documentElement.scrollTop=t),f&&(document.documentElement.scrollLeft=n))}function z(m,L){var C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===e(L)?C=L:"number"===typeof L&&(C.duration=L),t=x.$(m),!t)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+m);if(n=x.$(C.container||k.container),r=C.hasOwnProperty("duration")?C.duration:k.duration,o=C.hasOwnProperty("lazy")?C.lazy:k.lazy,i=C.easing||k.easing,a=C.hasOwnProperty("offset")?C.offset:k.offset,s=C.hasOwnProperty("force")?!1!==C.force:k.force,u=C.hasOwnProperty("cancelable")?!1!==C.cancelable:k.cancelable,l=C.onStart||k.onStart,c=C.onDone||k.onDone,d=C.onCancel||k.onCancel,f=void 0===C.x?k.x:C.x,h=void 0===C.y?k.y:C.y,"function"===typeof a&&(a=a(t,n)),p=I(n),g=F(n),Y(),S=!1,!s){var O="body"===n.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:n.offsetHeight,E=g,A=E+O,N=b-a,H=N+t.offsetHeight;if(N>=E&&H<=A)return void(c&&c(t))}if(l&&l(t),M||y)return"string"===typeof i&&(i=_[i]||_["ease"]),D=v.apply(v,i),x.on(n,w,P,{passive:!0}),window.requestAnimationFrame(R),function(){T=null,S=!0};c&&c(t)}return z},L=S(),C=[];function T(e){for(var t=0;t<C.length;++t)if(C[t].el===e)return C.splice(t,1),!0;return!1}function D(e){for(var t=0;t<C.length;++t)if(C[t].el===e)return C[t]}function O(e){var t=D(e);return t||(C.push(t={el:e,binding:{}}),t)}function E(e){var t=O(this).binding;if(t.value){if(e.preventDefault(),"string"===typeof t.value)return L(t.value);L(t.value.el||t.value.element,t.value)}}var A={bind:function(e,t){O(e).binding=t,x.on(e,"click",E)},unbind:function(e){T(e),x.off(e,"click",E)},update:function(e,t){O(e).binding=t}},P={bind:A.bind,unbind:A.unbind,update:A.update,beforeMount:A.bind,unmounted:A.unbind,updated:A.update,scrollTo:L,bindings:C},F=function(e,t){t&&M(t),e.directive("scroll-to",P);var n=e.config.globalProperties||e.prototype;n.$scrollTo=P.scrollTo};return"undefined"!==typeof window&&window.Vue&&(window.VueScrollTo=P,window.VueScrollTo.setDefaults=M,window.VueScrollTo.scroller=S,window.Vue.use&&window.Vue.use(F)),P.install=F,P}))},9980:function(e,t,n){(function(t,r){e.exports=r(n(1474))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),l=n("7f20"),c=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,_,b,y){u(n,t,v);var x,w,k,M=function(e){if(!f&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",L=_==m,C=!1,T=e.prototype,D=T[d]||T[h]||_&&T[_],O=D||M(_),E=_?L?M("entries"):O:void 0,A="Array"==t&&T.entries||D;if(A&&(k=c(A.call(new e)),k!==Object.prototype&&k.next&&(l(k,S,!0),r||"function"==typeof k[d]||a(k,d,g))),L&&D&&D.name!==m&&(C=!0,O=function(){return D.call(this)}),r&&!y||!f&&!C&&T[d]||a(T,d,O),s[t]=O,s[S]=g,_)if(x={values:L?O:M(m),keys:b?O:M(p),entries:E},y)for(w in x)w in T||o(T,w,x[w]);else i(i.P+i.F*(f||C),t,x);return x}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,u=0;while(s>u)r.f(e,n=a[u++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),l=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),h=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!d){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,i){return t.exec===u?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],_=g[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",l=(""+s).split(u);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",u=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],c=u||l;c&&(a=function(e){var t,n,a,c,d=this;return l&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),u&&(t=d[s]),a=i.call(d,e),u&&a&&(d[s]=d.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,d,f,h,p=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,_=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],y=m?i:i[t]||(i[t]={}),x=y[u]||(y[u]={});for(c in m&&(n=t),n)d=!p&&b&&void 0!==b[c],f=(d?b:n)[c],h=_&&d?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,b&&a(b,c,f,e&l.U),y[c]!=f&&o(y,c,h),v&&x[c]!=f&&(x[c]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),u=Object.assign;e.exports=!u||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,c=i.f,d=o.f;while(u>l){var f,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,g=0;while(m>g)d.call(h,f=p[g++])&&(n[f]=h[f])}return n}:u},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),l=Math.max,c=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),f=String(this),h="function"===typeof t;h||(t=String(t));var v=d.global;if(v){var _=d.unicode;d.lastIndex=0}var b=[];while(1){var y=u(d,f);if(null===y)break;if(b.push(y),!v)break;var x=String(y[0]);""===x&&(d.lastIndex=s(f,o(d.lastIndex),_))}for(var w="",k=0,M=0;M<b.length;M++){y=b[M];for(var S=String(y[0]),L=l(c(a(y.index),f.length),0),C=[],T=1;T<y.length;T++)C.push(p(y[T]));var D=y.groups;if(h){var O=[S].concat(C,L,f);void 0!==D&&O.push(D);var E=String(t.apply(void 0,O))}else E=g(S,f,L,C,D,t);L>=k&&(w+=f.slice(k,L)+E,k=L+S.length)}return w+f.slice(k)}];function g(e,t,r,o,a,s){var u=r+e.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=f),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var f=d(c/10);return 0===f?n:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),l=n("2b4c"),c=l("iterator"),d=l("toStringTag"),f=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),m=0;m<p.length;m++){var g,v=p[m],_=h[v],b=a[v],y=b&&b.prototype;if(y&&(y[c]||s(y,c,f),y[d]||s(y,d,v),u[v]=f,_))for(g in r)y[g]||o(y,g,r[g],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return u}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var a=/-(\w)/g,s=o((function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))}));function u(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function l(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>u)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return i(e)||o(e,t)||s(e,t)||u()}n("6762"),n("2fdb");function c(e){if(Array.isArray(e))return a(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||d(e)||s(e)||f()}var p=n("a352"),m=n.n(p),g=n("c649");function v(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function _(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function b(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=h(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function y(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),y.call(t,e,n)}}function w(e){return["transition-group","TransitionGroup"].includes(e)}function k(e){if(!e||1!==e.length)return!1;var t=l(e,1),n=t[0].componentOptions;return!!n&&w(n.tag)}function M(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var r=0,i=0,o=M(t,n,"header");o&&(r=o.length,e=e?[].concat(h(o),h(e)):h(o));var a=M(t,n,"footer");return a&&(i=a.length,e=e?[].concat(h(e),h(a)):h(a)),{children:e,headerOffset:r,footerOffset:i}}function L(e,t){var n=null,r=function(e,t){n=v(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var o=t.on,a=t.props,s=t.attrs;return r("on",o),r("props",a),Object.assign(n.attrs,s),n}var C=["Start","Add","Remove","Update","End"],T=["Choose","Unchoose","Sort","Filter","Clone"],D=["Move"].concat(C,T).map((function(e){return"on"+e})),O=null,E={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},A={name:"draggable",inheritAttrs:!1,props:E,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=k(t);var n=S(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=L(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};C.forEach((function(n){t["on"+n]=x.call(e,n)})),T.forEach((function(n){t["on"+n]=y.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(g["a"])(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new m.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(g["a"])(t);-1===D.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=b(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=_(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&w(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),O=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(g["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(g["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(g["d"])(e.clone)},onDragUpdate:function(e){Object(g["d"])(e.item),Object(g["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=h(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(O);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:o});var a=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(a,t)},onDragEnd:function(){this.computeIndexes(),O=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",A);var P=A;t["default"]=P}})["default"]}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}();!function(){"use strict";
/*!
 * Vue.js v2.7.14
 * (c) 2014-2022 Evan You
 * Released under the MIT License.
 */
var e=Object.freeze({}),t=Array.isArray;function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return"function"===typeof e}function l(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function d(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var _=v("slot,component",!0),b=v("key,ref,slot,slot-scope,is");function y(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var x=Object.prototype.hasOwnProperty;function w(e,t){return x.call(e,t)}function k(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var M=/-(\w)/g,S=k((function(e){return e.replace(M,(function(e,t){return t?t.toUpperCase():""}))})),L=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,T=k((function(e){return e.replace(C,"-$1").toLowerCase()}));function D(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function O(e,t){return e.bind(t)}var E=Function.prototype.bind?O:D;function A(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function F(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function I(e,t,n){}var Y=function(e,t,n){return!1},R=function(e){return e};function N(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function H(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return H(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return H(e[n],t[n])}))}catch(u){return!1}}function z(e,t){for(var n=0;n<e.length;n++)if(H(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function B(e,t){return e===t?0===e&&1/e!==1/t:e===e||t===t}var V="data-server-rendered",U=["component","directive","filter"],W=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Y,isReservedAttr:Y,isUnknownElement:Y,getTagNamespace:I,parsePlatformTagName:R,mustUseProp:Y,async:!0,_lifecycleHooks:W},G=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function J(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var X=new RegExp("[^".concat(G.source,".$_\\d]"));function Q(e){if(!X.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z="__proto__"in{},ee="undefined"!==typeof window,te=ee&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0;te&&te.indexOf("android");var oe=te&&/iphone|ipad|ipod|ios/.test(te);te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te);var ae,se=te&&te.match(/firefox\/(\d+)/),ue={}.watch,le=!1;if(ee)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){le=!0}}),window.addEventListener("test-passive",null,ce)}catch(LT){}var de=function(){return void 0===ae&&(ae=!ee&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),ae},fe=ee&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var pe,me="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);pe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=null;function ve(e){void 0===e&&(e=null),e||ge&&ge._scope.off(),ge=e,e&&e._scope.on()}var _e=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),be=function(e){void 0===e&&(e="");var t=new _e;return t.text=e,t.isComment=!0,t};function ye(e){return new _e(void 0,void 0,void 0,String(e))}function xe(e){var t=new _e(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=0,ke=[],Me=function(){for(var e=0;e<ke.length;e++){var t=ke[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}ke.length=0},Se=function(){function e(){this._pending=!1,this.id=we++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ke.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n<r;n++){var i=t[n];0,i.update()}},e}();Se.target=null;var Le=[];function Ce(e){Le.push(e),Se.target=e}function Te(){Le.pop(),Se.target=Le[Le.length-1]}var De=Array.prototype,Oe=Object.create(De),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=De[e];J(Oe,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ae=Object.getOwnPropertyNames(Oe),Pe={},Fe=!0;function Ie(e){Fe=e}var Ye={notify:I,depend:I,addSub:I,removeSub:I},Re=function(){function e(e,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.value=e,this.shallow=n,this.mock=r,this.dep=r?Ye:new Se,this.vmCount=0,J(e,"__ob__",this),t(e)){if(!r)if(Z)e.__proto__=Oe;else for(var i=0,o=Ae.length;i<o;i++){var a=Ae[i];J(e,a,Oe[a])}n||this.observeArray(e)}else{var s=Object.keys(e);for(i=0;i<s.length;i++){a=s[i];He(e,a,Pe,void 0,n,r)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ne(e[t],!1,this.mock)},e}();function Ne(e,n,r){return e&&w(e,"__ob__")&&e.__ob__ instanceof Re?e.__ob__:!Fe||!r&&de()||!t(e)&&!d(e)||!Object.isExtensible(e)||e.__v_skip||We(e)||e instanceof _e?void 0:new Re(e,n,r)}function He(e,n,r,i,o,a){var s=new Se,u=Object.getOwnPropertyDescriptor(e,n);if(!u||!1!==u.configurable){var l=u&&u.get,c=u&&u.set;l&&!c||r!==Pe&&2!==arguments.length||(r=e[n]);var d=!o&&Ne(r,!1,a);return Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var n=l?l.call(e):r;return Se.target&&(s.depend(),d&&(d.dep.depend(),t(n)&&Be(n))),We(n)&&!o?n.value:n},set:function(t){var n=l?l.call(e):r;if(B(n,t)){if(c)c.call(e,t);else{if(l)return;if(!o&&We(n)&&!We(t))return void(n.value=t);r=t}d=!o&&Ne(t,!1,a),s.notify()}}}),s}}function ze(e,n,r){if(!Ue(e)){var i=e.__ob__;return t(e)&&h(n)?(e.length=Math.max(e.length,n),e.splice(n,1,r),i&&!i.shallow&&i.mock&&Ne(r,!1,!0),r):n in e&&!(n in Object.prototype)?(e[n]=r,r):e._isVue||i&&i.vmCount?r:i?(He(i.value,n,r,void 0,i.shallow,i.mock),i.dep.notify(),r):(e[n]=r,r)}}function je(e,n){if(t(e)&&h(n))e.splice(n,1);else{var r=e.__ob__;e._isVue||r&&r.vmCount||Ue(e)||w(e,n)&&(delete e[n],r&&r.dep.notify())}}function Be(e){for(var n=void 0,r=0,i=e.length;r<i;r++)n=e[r],n&&n.__ob__&&n.__ob__.dep.depend(),t(n)&&Be(n)}function Ve(e){return $e(e,!0),J(e,"__v_isShallow",!0),e}function $e(e,t){if(!Ue(e)){Ne(e,t,de());0}}function Ue(e){return!(!e||!e.__v_isReadonly)}function We(e){return!(!e||!0!==e.__v_isRef)}function qe(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(We(e))return e.value;var r=e&&e.__ob__;return r&&r.dep.depend(),e},set:function(e){var r=t[n];We(r)&&!We(e)?r.value=e:t[n]=e}})}var Ge=k((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Ke(e,n){function r(){var e=r.fns;if(!t(e))return On(e,null,arguments,n,"v-on handler");for(var i=e.slice(),o=0;o<i.length;o++)On(i[o],null,arguments,n,"v-on handler")}return r.fns=e,r}function Je(e,t,n,i,a,s){var u,l,c,d;for(u in e)l=e[u],c=t[u],d=Ge(u),r(l)||(r(c)?(r(l.fns)&&(l=e[u]=Ke(l,s)),o(d.once)&&(l=e[u]=a(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==c&&(c.fns=l,e[u]=c));for(u in t)r(e[u])&&(d=Ge(u),i(d.name,t[u],d.capture))}function Xe(e,t,n){var a;e instanceof _e&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function u(){n.apply(this,arguments),y(a.fns,u)}r(s)?a=Ke([u]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(u)):a=Ke([s,u]),a.merged=!0,e[t]=a}function Qe(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,u=e.props;if(i(s)||i(u))for(var l in o){var c=T(l);Ze(a,u,l,c,!0)||Ze(a,s,l,c,!1)}return a}}function Ze(e,t,n,r,o){if(i(t)){if(w(t,n))return e[n]=t[n],o||delete t[n],!0;if(w(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function et(e){for(var n=0;n<e.length;n++)if(t(e[n]))return Array.prototype.concat.apply([],e);return e}function tt(e){return s(e)?[ye(e)]:t(e)?rt(e):void 0}function nt(e){return i(e)&&i(e.text)&&a(e.isComment)}function rt(e,n){var a,u,l,c,d=[];for(a=0;a<e.length;a++)u=e[a],r(u)||"boolean"===typeof u||(l=d.length-1,c=d[l],t(u)?u.length>0&&(u=rt(u,"".concat(n||"","_").concat(a)),nt(u[0])&&nt(c)&&(d[l]=ye(c.text+u[0].text),u.shift()),d.push.apply(d,u)):s(u)?nt(c)?d[l]=ye(c.text+u):""!==u&&d.push(ye(u)):nt(u)&&nt(c)?d[l]=ye(c.text+u.text):(o(e._isVList)&&i(u.tag)&&r(u.key)&&i(n)&&(u.key="__vlist".concat(n,"_").concat(a,"__")),d.push(u)));return d}var it=1,ot=2;function at(e,n,r,i,a,u){return(t(r)||s(r))&&(a=i,i=r,r=void 0),o(u)&&(a=ot),st(e,n,r,i,a)}function st(e,n,r,o,a){if(i(r)&&i(r.__ob__))return be();if(i(r)&&i(r.is)&&(n=r.is),!n)return be();var s,l;if(t(o)&&u(o[0])&&(r=r||{},r.scopedSlots={default:o[0]},o.length=0),a===ot?o=tt(o):a===it&&(o=et(o)),"string"===typeof n){var c=void 0;l=e.$vnode&&e.$vnode.ns||q.getTagNamespace(n),s=q.isReservedTag(n)?new _e(q.parsePlatformTagName(n),r,o,void 0,void 0,e):r&&r.pre||!i(c=$r(e.$options,"components",n))?new _e(n,r,o,void 0,void 0,e):Cr(c,r,e,o,n)}else s=Cr(n,r,e,o);return t(s)?s:i(s)?(i(l)&&ut(s,l),i(r)&&lt(r),s):be()}function ut(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&ut(u,t,n)}}function lt(e){l(e.style)&&qn(e.style),l(e.class)&&qn(e.class)}function ct(e,n){var r,o,a,s,u=null;if(t(e)||"string"===typeof e)for(u=new Array(e.length),r=0,o=e.length;r<o;r++)u[r]=n(e[r],r);else if("number"===typeof e)for(u=new Array(e),r=0;r<e;r++)u[r]=n(r+1,r);else if(l(e))if(me&&e[Symbol.iterator]){u=[];var c=e[Symbol.iterator](),d=c.next();while(!d.done)u.push(n(d.value,u.length)),d=c.next()}else for(a=Object.keys(e),u=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],u[r]=n(e[s],s,r);return i(u)||(u=[]),u._isVList=!0,u}function dt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||(u(t)?t():t)):i=this.$slots[e]||(u(t)?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ft(e){return $r(this.$options,"filters",e,!0)||R}function ht(e,n){return t(e)?-1===e.indexOf(n):e!==n}function pt(e,t,n,r,i){var o=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?ht(i,r):o?ht(o,e):r?T(r)!==t:void 0===e}function mt(e,n,r,i,o){if(r)if(l(r)){t(r)&&(r=F(r));var a=void 0,s=function(t){if("class"===t||"style"===t||b(t))a=e;else{var s=e.attrs&&e.attrs.type;a=i||q.mustUseProp(n,s,t)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=S(t),l=T(t);if(!(u in a)&&!(l in a)&&(a[t]=r[t],o)){var c=e.on||(e.on={});c["update:".concat(t)]=function(e){r[t]=e}}};for(var u in r)s(u)}else;return e}function gt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),_t(r,"__static__".concat(e),!1)),r}function vt(e,t,n){return _t(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function _t(e,n,r){if(t(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&bt(e[i],"".concat(n,"_").concat(i),r);else bt(e,n,r)}function bt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function yt(e,t){if(t)if(d(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function xt(e,n,r,i){n=n||{$stable:!r};for(var o=0;o<e.length;o++){var a=e[o];t(a)?xt(a,n,r):a&&(a.proxy&&(a.fn.proxy=!0),n[a.key]=a.fn)}return i&&(n.$key=i),n}function wt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function kt(e,t){return"string"===typeof e?t+e:e}function Mt(e){e._o=vt,e._n=g,e._s=m,e._l=ct,e._t=dt,e._q=H,e._i=z,e._m=gt,e._f=ft,e._k=pt,e._b=mt,e._v=ye,e._e=be,e._u=xt,e._g=yt,e._d=wt,e._p=kt}function St(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(Lt)&&delete n[l];return n}function Lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ct(e){return e.isComment&&e.asyncFactory}function Tt(t,n,r,i){var o,a=Object.keys(r).length>0,s=n?!!n.$stable:!a,u=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&i&&i!==e&&u===i.$key&&!a&&!i.$hasNormal)return i;for(var l in o={},n)n[l]&&"$"!==l[0]&&(o[l]=Dt(t,r,l,n[l]))}else o={};for(var c in r)c in o||(o[c]=Ot(r,c));return n&&Object.isExtensible(n)&&(n._normalized=o),J(o,"$stable",s),J(o,"$key",u),J(o,"$hasNormal",a),o}function Dt(e,n,r,i){var o=function(){var n=ge;ve(e);var r=arguments.length?i.apply(null,arguments):i({});r=r&&"object"===typeof r&&!t(r)?[r]:tt(r);var o=r&&r[0];return ve(n),r&&(!o||1===r.length&&o.isComment&&!Ct(o))?void 0:r};return i.proxy&&Object.defineProperty(n,r,{get:o,enumerable:!0,configurable:!0}),o}function Ot(e,t){return function(){return e[t]}}function Et(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=At(e);ve(e),Ce();var i=On(n,null,[e._props||Ve({}),r],e,"setup");if(Te(),ve(),u(i))t.render=i;else if(l(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&qe(o,i,a)}else for(var a in i)K(a)||qe(e,i,a);else 0}}function At(t){return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};J(n,"_v_attr_proxy",!0),Pt(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var n=t._listenersProxy={};Pt(n,t.$listeners,e,t,"$listeners")}return t._listenersProxy},get slots(){return It(t)},emit:E(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return qe(t,e,n)}))}}}function Pt(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,Ft(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function Ft(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function It(e){return e._slotsProxy||Yt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function Yt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function Rt(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=St(n._renderChildren,i),t.$scopedSlots=r?Tt(t.$parent,r.data.scopedSlots,t.$slots):e,t._c=function(e,n,r,i){return at(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return at(t,e,n,r,i,!0)};var o=r&&r.data;He(t,"$attrs",o&&o.attrs||e,null,!0),He(t,"$listeners",n._parentListeners||e,null,!0)}var Nt,Ht=null;function zt(e){Mt(e.prototype),e.prototype.$nextTick=function(e){return Bn(e,this)},e.prototype._render=function(){var e,n=this,r=n.$options,i=r.render,o=r._parentVnode;o&&n._isMounted&&(n.$scopedSlots=Tt(n.$parent,o.data.scopedSlots,n.$slots,n.$scopedSlots),n._slotsProxy&&Yt(n._slotsProxy,n.$scopedSlots)),n.$vnode=o;try{ve(n),Ht=n,e=i.call(n._renderProxy,n.$createElement)}catch(LT){Dn(LT,n,"render"),e=n._vnode}finally{Ht=null,ve()}return t(e)&&1===e.length&&(e=e[0]),e instanceof _e||(e=be()),e.parent=o,e}}function jt(e,t){return(e.__esModule||me&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Bt(e,t,n,r,i){var o=be();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Vt(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Ht;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=j((function(n){e.resolved=jt(n,t),s?a.length=0:d(!0)})),h=j((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),m=e(f,h);return l(m)&&(p(m)?r(e.resolved)&&m.then(f,h):p(m.component)&&(m.component.then(f,h),i(m.error)&&(e.errorComp=jt(m.error,t)),i(m.loading)&&(e.loadingComp=jt(m.loading,t),0===m.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),i(m.timeout)&&(c=setTimeout((function(){c=null,r(e.resolved)&&h(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function $t(e){if(t(e))for(var n=0;n<e.length;n++){var r=e[n];if(i(r)&&(i(r.componentOptions)||Ct(r)))return r}}function Ut(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Kt(e,t)}function Wt(e,t){Nt.$on(e,t)}function qt(e,t){Nt.$off(e,t)}function Gt(e,t){var n=Nt;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Kt(e,t,n){Nt=e,Je(t,n||{},Wt,qt,Gt,e),Nt=void 0}function Jt(e){var n=/^hook:/;e.prototype.$on=function(e,r){var i=this;if(t(e))for(var o=0,a=e.length;o<a;o++)i.$on(e[o],r);else(i._events[e]||(i._events[e]=[])).push(r),n.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,n){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(t(e)){for(var i=0,o=e.length;i<o;i++)r.$off(e[i],n);return r}var a,s=r._events[e];if(!s)return r;if(!n)return r._events[e]=null,r;var u=s.length;while(u--)if(a=s[u],a===n||a.fn===n){s.splice(u,1);break}return r},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;o<a;o++)On(n[o],t,r,t,i)}return t}}var Xt=null;function Qt(e){var t=Xt;return Xt=e,function(){Xt=t}}function Zt(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function en(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);var a=n;while(a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){sn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),sn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function tn(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=be),sn(e,"beforeMount"),r=function(){e._update(e._render(),n)};var i={before:function(){e._isMounted&&!e._isDestroyed&&sn(e,"beforeUpdate")}};new Jn(e,r,I,i,!0),n=!1;var o=e._preWatchers;if(o)for(var a=0;a<o.length;a++)o[a].run();return null==e.$vnode&&(e._isMounted=!0,sn(e,"mounted")),e}function nn(t,n,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==e&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),l=!!(o||t.$options._renderChildren||u),c=t.$vnode;t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o;var d=i.data.attrs||e;t._attrsProxy&&Pt(t._attrsProxy,d,c.data&&c.data.attrs||e,t,"$attrs")&&(l=!0),t.$attrs=d,r=r||e;var f=t.$options._parentListeners;if(t._listenersProxy&&Pt(t._listenersProxy,r,f||e,t,"$listeners"),t.$listeners=t.$options._parentListeners=r,Kt(t,r,f),n&&t.$options.props){Ie(!1);for(var h=t._props,p=t.$options._propKeys||[],m=0;m<p.length;m++){var g=p[m],v=t.$options.props;h[g]=Ur(g,v,n,t)}Ie(!0),t.$options.propsData=n}l&&(t.$slots=St(o,i.context),t.$forceUpdate())}function rn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function on(e,t){if(t){if(e._directInactive=!1,rn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)on(e.$children[n]);sn(e,"activated")}}function an(e,t){if((!t||(e._directInactive=!0,!rn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)an(e.$children[n]);sn(e,"deactivated")}}function sn(e,t,n,r){void 0===r&&(r=!0),Ce();var i=ge;r&&ve(e);var o=e.$options[t],a="".concat(t," hook");if(o)for(var s=0,u=o.length;s<u;s++)On(o[s],e,n||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&ve(i),Te()}var un=[],ln=[],cn={},dn=!1,fn=!1,hn=0;function pn(){hn=un.length=ln.length=0,cn={},dn=fn=!1}var mn=0,gn=Date.now;if(ee&&!ne){var vn=window.performance;vn&&"function"===typeof vn.now&&gn()>document.createEvent("Event").timeStamp&&(gn=function(){return vn.now()})}var _n=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function bn(){var e,t;for(mn=gn(),fn=!0,un.sort(_n),hn=0;hn<un.length;hn++)e=un[hn],e.before&&e.before(),t=e.id,cn[t]=null,e.run();var n=ln.slice(),r=un.slice();pn(),wn(n),yn(r),Me(),fe&&q.devtools&&fe.emit("flush")}function yn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&sn(r,"updated")}}function xn(e){e._inactive=!1,ln.push(e)}function wn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,on(e[t],!0)}function kn(e){var t=e.id;if(null==cn[t]&&(e!==Se.target||!e.noRecurse)){if(cn[t]=!0,fn){var n=un.length-1;while(n>hn&&un[n].id>e.id)n--;un.splice(n+1,0,e)}else un.push(e);dn||(dn=!0,Bn(bn))}}var Mn="watcher";"".concat(Mn," callback"),"".concat(Mn," getter"),"".concat(Mn," cleanup");var Sn;var Ln=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Sn,!e&&Sn&&(this.index=(Sn.scopes||(Sn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=Sn;try{return Sn=this,e()}finally{Sn=t}}else 0},e.prototype.on=function(){Sn=this},e.prototype.off=function(){Sn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},e}();function Cn(e,t){void 0===t&&(t=Sn),t&&t.active&&t.effects.push(e)}function Tn(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Dn(e,t,n){Ce();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(LT){En(LT,r,"errorCaptured hook")}}}En(e,t,n)}finally{Te()}}function On(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(e){return Dn(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(LT){Dn(LT,r,i)}return o}function En(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(LT){LT!==e&&An(LT,null,"config.errorHandler")}An(e,t,n)}function An(e,t,n){if(!ee||"undefined"===typeof console)throw e;console.error(e)}var Pn,Fn=!1,In=[],Yn=!1;function Rn(){Yn=!1;var e=In.slice(0);In.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var Nn=Promise.resolve();Pn=function(){Nn.then(Rn),oe&&setTimeout(I)},Fn=!0}else if(ne||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Pn="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(Rn)}:function(){setTimeout(Rn,0)};else{var Hn=1,zn=new MutationObserver(Rn),jn=document.createTextNode(String(Hn));zn.observe(jn,{characterData:!0}),Pn=function(){Hn=(Hn+1)%2,jn.data=String(Hn)},Fn=!0}function Bn(e,t){var n;if(In.push((function(){if(e)try{e.call(t)}catch(LT){Dn(LT,t,"nextTick")}else n&&n(t)})),Yn||(Yn=!0,Pn()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}function Vn(e){return function(t,n){if(void 0===n&&(n=ge),n)return $n(n,e,t)}}function $n(e,t,n){var r=e.$options;r[t]=Yr(r[t],n)}Vn("beforeMount"),Vn("mounted"),Vn("beforeUpdate"),Vn("updated"),Vn("beforeDestroy"),Vn("destroyed"),Vn("activated"),Vn("deactivated"),Vn("serverPrefetch"),Vn("renderTracked"),Vn("renderTriggered"),Vn("errorCaptured");var Un="2.7.14";var Wn=new pe;function qn(e){return Gn(e,Wn),Wn.clear(),e}function Gn(e,n){var r,i,o=t(e);if(!(!o&&!l(e)||e.__v_skip||Object.isFrozen(e)||e instanceof _e)){if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o){r=e.length;while(r--)Gn(e[r],n)}else if(We(e))Gn(e.value,n);else{i=Object.keys(e),r=i.length;while(r--)Gn(e[i[r]],n)}}}var Kn=0,Jn=function(){function e(e,t,n,r,i){Cn(this,Sn&&!Sn._vm?Sn:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Kn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pe,this.newDepIds=new pe,this.expression="",u(t)?this.getter=t:(this.getter=Q(t),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Ce(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(LT){if(!this.user)throw LT;Dn(LT,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&qn(e),Te(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():kn(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');On(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&y(this.vm._scope.effects,this),this.active){var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),Xn={enumerable:!0,configurable:!0,get:I,set:I};function Qn(e,t,n){Xn.get=function(){return this[t][n]},Xn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Xn)}function Zn(e){var t=e.$options;if(t.props&&er(e,t.props),Et(e),t.methods&&ur(e,t.methods),t.data)tr(e);else{var n=Ne(e._data={});n&&n.vmCount++}t.computed&&ir(e,t.computed),t.watch&&t.watch!==ue&&lr(e,t.watch)}function er(e,t){var n=e.$options.propsData||{},r=e._props=Ve({}),i=e.$options._propKeys=[],o=!e.$parent;o||Ie(!1);var a=function(o){i.push(o);var a=Ur(o,t,n,e);He(r,o,a),o in e||Qn(e,"_props",o)};for(var s in t)a(s);Ie(!0)}function tr(e){var t=e.$options.data;t=e._data=u(t)?nr(t,e):t||{},d(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||K(o)||Qn(e,"_data",o)}var a=Ne(t);a&&a.vmCount++}function nr(e,t){Ce();try{return e.call(t,t)}catch(LT){return Dn(LT,t,"data()"),{}}finally{Te()}}var rr={lazy:!0};function ir(e,t){var n=e._computedWatchers=Object.create(null),r=de();for(var i in t){var o=t[i],a=u(o)?o:o.get;0,r||(n[i]=new Jn(e,a||I,I,rr)),i in e||or(e,i,o)}}function or(e,t,n){var r=!de();u(n)?(Xn.get=r?ar(t):sr(n),Xn.set=I):(Xn.get=n.get?r&&!1!==n.cache?ar(t):sr(n.get):I,Xn.set=n.set||I),Object.defineProperty(e,t,Xn)}function ar(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Se.target&&t.depend(),t.value}}function sr(e){return function(){return e.call(this,this)}}function ur(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?I:E(t[n],e)}function lr(e,n){for(var r in n){var i=n[r];if(t(i))for(var o=0;o<i.length;o++)cr(e,r,i[o]);else cr(e,r,i)}}function cr(e,t,n,r){return d(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function dr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ze,e.prototype.$delete=je,e.prototype.$watch=function(e,t,n){var r=this;if(d(t))return cr(r,e,t,n);n=n||{},n.user=!0;var i=new Jn(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');Ce(),On(t,r,[i.value],r,o),Te()}return function(){i.teardown()}}}function fr(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!l(n))return;for(var r=Tn(e),i=me?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}function hr(e){var t=pr(e.$options.inject,e);t&&(Ie(!1),Object.keys(t).forEach((function(n){He(e,n,t[n])})),Ie(!0))}function pr(e,t){if(e){for(var n=Object.create(null),r=me?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)n[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;n[o]=u(s)?s.call(t):s}else 0}}return n}}var mr=0;function gr(e){e.prototype._init=function(e){var t=this;t._uid=mr++,t._isVue=!0,t.__v_skip=!0,t._scope=new Ln(!0),t._scope._vm=!0,e&&e._isComponent?vr(t,e):t.$options=Vr(_r(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Zt(t),Ut(t),Rt(t),sn(t,"beforeCreate",void 0,!1),hr(t),Zn(t),fr(t),sn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function vr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function _r(e){var t=e.options;if(e.super){var n=_r(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=br(e);i&&P(e.extendOptions,i),t=e.options=Vr(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function br(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function yr(n,r,i,a,s){var u,l=this,c=s.options;w(a,"_uid")?(u=Object.create(a),u._original=a):(u=a,a=a._original);var d=o(c._compiled),f=!d;this.data=n,this.props=r,this.children=i,this.parent=a,this.listeners=n.on||e,this.injections=pr(c.inject,a),this.slots=function(){return l.$slots||Tt(a,n.scopedSlots,l.$slots=St(i,a)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Tt(a,n.scopedSlots,this.slots())}}),d&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Tt(a,n.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,n,r,i){var o=at(u,e,n,r,i,f);return o&&!t(o)&&(o.fnScopeId=c._scopeId,o.fnContext=a),o}:this._c=function(e,t,n,r){return at(u,e,t,n,r,f)}}function xr(n,r,o,a,s){var u=n.options,l={},c=u.props;if(i(c))for(var d in c)l[d]=Ur(d,c,r||e);else i(o.attrs)&&kr(l,o.attrs),i(o.props)&&kr(l,o.props);var f=new yr(o,l,s,a,n),h=u.render.call(null,f._c,f);if(h instanceof _e)return wr(h,o,f.parent,u,f);if(t(h)){for(var p=tt(h)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=wr(p[g],o,f.parent,u,f);return m}}function wr(e,t,n,r,i){var o=xe(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function kr(e,t){for(var n in t)e[S(n)]=t[n]}function Mr(e){return e.name||e.__name||e._componentTag}Mt(yr.prototype);var Sr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Sr.prepatch(n,n)}else{var r=e.componentInstance=Tr(e,Xt);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;nn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,sn(n,"mounted")),e.data.keepAlive&&(t._isMounted?xn(n):on(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?an(t,!0):t.$destroy())}},Lr=Object.keys(Sr);function Cr(e,t,n,a,s){if(!r(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"===typeof e){var c;if(r(e.cid)&&(c=e,e=Vt(c,u),void 0===e))return Bt(c,t,n,a,s);t=t||{},_r(e),i(t.model)&&Er(e.options,t);var d=Qe(t,e,s);if(o(e.options.functional))return xr(e,d,t,n,a);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}Dr(t);var p=Mr(e.options)||s,m=new _e("vue-component-".concat(e.cid).concat(p?"-".concat(p):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:f,tag:s,children:a},c);return m}}}function Tr(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Dr(e){for(var t=e.hook||(e.hook={}),n=0;n<Lr.length;n++){var r=Lr[n],i=t[r],o=Sr[r];i===o||i&&i._merged||(t[r]=i?Or(o,i):o)}}function Or(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Er(e,n){var r=e.model&&e.model.prop||"value",o=e.model&&e.model.event||"input";(n.attrs||(n.attrs={}))[r]=n.model.value;var a=n.on||(n.on={}),s=a[o],u=n.model.callback;i(s)?(t(s)?-1===s.indexOf(u):s!==u)&&(a[o]=[u].concat(s)):a[o]=u}var Ar=I,Pr=q.optionMergeStrategies;function Fr(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,i,o,a=me?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)r=a[s],"__ob__"!==r&&(i=e[r],o=t[r],n&&w(e,r)?i!==o&&d(i)&&d(o)&&Fr(i,o):ze(e,r,o));return e}function Ir(e,t,n){return n?function(){var r=u(t)?t.call(n,n):t,i=u(e)?e.call(n,n):e;return r?Fr(r,i):i}:t?e?function(){return Fr(u(t)?t.call(this,this):t,u(e)?e.call(this,this):e)}:t:e}function Yr(e,n){var r=n?e?e.concat(n):t(n)?n:[n]:e;return r?Rr(r):r}function Rr(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Nr(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}Pr.data=function(e,t,n){return n?Ir(e,t,n):t&&"function"!==typeof t?e:Ir(e,t)},W.forEach((function(e){Pr[e]=Yr})),U.forEach((function(e){Pr[e+"s"]=Nr})),Pr.watch=function(e,n,r,i){if(e===ue&&(e=void 0),n===ue&&(n=void 0),!n)return Object.create(e||null);if(!e)return n;var o={};for(var a in P(o,e),n){var s=o[a],u=n[a];s&&!t(s)&&(s=[s]),o[a]=s?s.concat(u):t(u)?u:[u]}return o},Pr.props=Pr.methods=Pr.inject=Pr.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},Pr.provide=function(e,t){return e?function(){var n=Object.create(null);return Fr(n,u(e)?e.call(this):e),t&&Fr(n,u(t)?t.call(this):t,!1),n}:t};var Hr=function(e,t){return void 0===t?e:t};function zr(e,n){var r=e.props;if(r){var i,o,a,s={};if(t(r)){i=r.length;while(i--)o=r[i],"string"===typeof o&&(a=S(o),s[a]={type:null})}else if(d(r))for(var u in r)o=r[u],a=S(u),s[a]=d(o)?o:{type:o};else 0;e.props=s}}function jr(e,n){var r=e.inject;if(r){var i=e.inject={};if(t(r))for(var o=0;o<r.length;o++)i[r[o]]={from:r[o]};else if(d(r))for(var a in r){var s=r[a];i[a]=d(s)?P({from:a},s):{from:s}}else 0}}function Br(e){var t=e.directives;if(t)for(var n in t){var r=t[n];u(r)&&(t[n]={bind:r,update:r})}}function Vr(e,t,n){if(u(t)&&(t=t.options),zr(t,n),jr(t,n),Br(t),!t._base&&(t.extends&&(e=Vr(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Vr(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)w(e,o)||s(o);function s(r){var i=Pr[r]||Hr;a[r]=i(e[r],t[r],n,r)}return a}function $r(e,t,n,r){if("string"===typeof n){var i=e[t];if(w(i,n))return i[n];var o=S(n);if(w(i,o))return i[o];var a=L(o);if(w(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Ur(e,t,n,r){var i=t[e],o=!w(n,e),a=n[e],s=Jr(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===T(e)){var u=Jr(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Wr(r,i,e);var l=Fe;Ie(!0),Ne(a),Ie(l)}return a}function Wr(e,t,n){if(w(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:u(r)&&"Function"!==Gr(t.type)?r.call(e):r}}var qr=/^\s*function (\w+)/;function Gr(e){var t=e&&e.toString().match(qr);return t?t[1]:""}function Kr(e,t){return Gr(e)===Gr(t)}function Jr(e,n){if(!t(n))return Kr(n,e)?0:-1;for(var r=0,i=n.length;r<i;r++)if(Kr(n[r],e))return r;return-1}function Xr(e){this._init(e)}function Qr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}function Zr(e){e.mixin=function(e){return this.options=Vr(this.options,e),this}}function ei(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=Mr(e)||Mr(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Vr(n.options,e),a["super"]=n,a.options.props&&ti(a),a.options.computed&&ni(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),i[r]=a,a}}function ti(e){var t=e.options.props;for(var n in t)Qn(e.prototype,"_props",n)}function ni(e){var t=e.options.computed;for(var n in t)or(e.prototype,n,t[n])}function ri(e){U.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ii(e){return e&&(Mr(e.Ctor.options)||e.tag)}function oi(e,n){return t(e)?e.indexOf(n)>-1:"string"===typeof e?e.split(",").indexOf(n)>-1:!!f(e)&&e.test(n)}function ai(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&si(n,o,r,i)}}}function si(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}gr(Xr),dr(Xr),Jt(Xr),en(Xr),zt(Xr);var ui=[String,RegExp,Array],li={name:"keep-alive",abstract:!0,props:{include:ui,exclude:ui,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:ii(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&si(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)si(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){ai(e,(function(e){return oi(t,e)}))})),this.$watch("exclude",(function(t){ai(e,(function(e){return!oi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=$t(e),n=t&&t.componentOptions;if(n){var r=ii(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!oi(o,r))||a&&r&&oi(a,r))return t;var s=this,u=s.cache,l=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;u[c]?(t.componentInstance=u[c].componentInstance,y(l,c),l.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},ci={KeepAlive:li};function di(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:Ar,extend:P,mergeOptions:Vr,defineReactive:He},e.set=ze,e.delete=je,e.nextTick=Bn,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,ci),Qr(e),Zr(e),ei(e),ri(e)}di(Xr),Object.defineProperty(Xr.prototype,"$isServer",{get:de}),Object.defineProperty(Xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Xr,"FunctionalRenderContext",{value:yr}),Xr.version=Un;var fi=v("style,class"),hi=v("input,textarea,option,select,progress"),pi=function(e,t,n){return"value"===n&&hi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},mi=v("contenteditable,draggable,spellcheck"),gi=v("events,caret,typing,plaintext-only"),vi=function(e,t){return wi(t)||"false"===t?"false":"contenteditable"===e&&gi(t)?t:"true"},_i=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),bi="http://www.w3.org/1999/xlink",yi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xi=function(e){return yi(e)?e.slice(6,e.length):""},wi=function(e){return null==e||!1===e};function ki(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Mi(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Mi(t,n.data));return Si(t.staticClass,t.class)}function Mi(e,t){return{staticClass:Li(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Si(e,t){return i(e)||i(t)?Li(e,Ci(t)):""}function Li(e,t){return e?t?e+" "+t:e:t||""}function Ci(e){return Array.isArray(e)?Ti(e):l(e)?Di(e):"string"===typeof e?e:""}function Ti(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Ci(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Di(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Oi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ei=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ai=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Pi=function(e){return"pre"===e},Fi=function(e){return Ei(e)||Ai(e)};function Ii(e){return Ai(e)?"svg":"math"===e?"math":void 0}var Yi=Object.create(null);function Ri(e){if(!ee)return!0;if(Fi(e))return!1;if(e=e.toLowerCase(),null!=Yi[e])return Yi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Yi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yi[e]=/HTMLUnknownElement/.test(t.toString())}var Ni=v("text,number,password,search,email,tel,url");function Hi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function zi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ji(e,t){return document.createElementNS(Oi[e],t)}function Bi(e){return document.createTextNode(e)}function Vi(e){return document.createComment(e)}function $i(e,t,n){e.insertBefore(t,n)}function Ui(e,t){e.removeChild(t)}function Wi(e,t){e.appendChild(t)}function qi(e){return e.parentNode}function Gi(e){return e.nextSibling}function Ki(e){return e.tagName}function Ji(e,t){e.textContent=t}function Xi(e,t){e.setAttribute(t,"")}var Qi=Object.freeze({__proto__:null,createElement:zi,createElementNS:ji,createTextNode:Bi,createComment:Vi,insertBefore:$i,removeChild:Ui,appendChild:Wi,parentNode:qi,nextSibling:Gi,tagName:Ki,setTextContent:Ji,setStyleScope:Xi}),Zi={create:function(e,t){eo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(eo(e,!0),eo(t))},destroy:function(e){eo(e,!0)}};function eo(e,n){var r=e.data.ref;if(i(r)){var o=e.context,a=e.componentInstance||e.elm,s=n?null:a,l=n?void 0:a;if(u(r))On(r,o,[s],o,"template ref function");else{var c=e.data.refInFor,d="string"===typeof r||"number"===typeof r,f=We(r),h=o.$refs;if(d||f)if(c){var p=d?h[r]:r.value;n?t(p)&&y(p,a):t(p)?p.includes(a)||p.push(a):d?(h[r]=[a],to(o,r,h[r])):r.value=[a]}else if(d){if(n&&h[r]!==a)return;h[r]=l,to(o,r,s)}else if(f){if(n&&r.value!==a)return;r.value=s}else 0}}}function to(e,t,n){var r=e._setupState;r&&w(r,t)&&(We(r[t])?r[t].value=n:r[t]=n)}var no=new _e("",{},[]),ro=["create","activate","update","remove","destroy"];function io(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&oo(e,t)||o(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function oo(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||Ni(r)&&Ni(o)}function ao(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function so(e){var n,a,u={},l=e.modules,c=e.nodeOps;for(n=0;n<ro.length;++n)for(u[ro[n]]=[],a=0;a<l.length;++a)i(l[a][ro[n]])&&u[ro[n]].push(l[a][ro[n]]);function d(e){return new _e(c.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=c.parentNode(e);i(t)&&c.removeChild(t,e)}function p(e,t,n,r,a,s,u){if(i(e.elm)&&i(s)&&(e=s[u]=xe(e)),e.isRootInsert=!a,!m(e,t,n,r)){var l=e.data,d=e.children,f=e.tag;i(f)?(e.elm=e.ns?c.createElementNS(e.ns,f):c.createElement(f,e),k(e),y(e,d,t),i(l)&&w(e,t),b(n,e.elm,r)):o(e.isComment)?(e.elm=c.createComment(e.text),b(n,e.elm,r)):(e.elm=c.createTextNode(e.text),b(n,e.elm,r))}}function m(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return g(e,t),b(n,e.elm,r),o(s)&&_(e,t,n,r),!0}}function g(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(w(e,t),k(e)):(eo(e),t.push(e))}function _(e,t,n,r){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<u.activate.length;++o)u.activate[o](no,a);t.push(a);break}b(n,e.elm,r)}function b(e,t,n){i(e)&&(i(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function y(e,n,r){if(t(n)){0;for(var i=0;i<n.length;++i)p(n[i],r,e.elm,null,!0,n,i)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function x(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function w(e,t){for(var r=0;r<u.create.length;++r)u.create[r](no,e);n=e.data.hook,i(n)&&(i(n.create)&&n.create(no,e),i(n.insert)&&t.push(e))}function k(e){var t;if(i(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent}i(t=Xt)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function M(e,t,n,r,i,o){for(;r<=i;++r)p(n[r],o,e,t,!1,n,r)}function S(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<u.destroy.length;++t)u.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function L(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(C(r),S(r)):h(r.elm))}}function C(e,t){if(i(t)||i(e.data)){var n,r=u.remove.length+1;for(i(t)?t.listeners+=r:t=f(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&C(n,t),n=0;n<u.remove.length;++n)u.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else h(e.elm)}function T(e,t,n,o,a){var s,u,l,d,f=0,h=0,m=t.length-1,g=t[0],v=t[m],_=n.length-1,b=n[0],y=n[_],x=!a;while(f<=m&&h<=_)r(g)?g=t[++f]:r(v)?v=t[--m]:io(g,b)?(O(g,b,o,n,h),g=t[++f],b=n[++h]):io(v,y)?(O(v,y,o,n,_),v=t[--m],y=n[--_]):io(g,y)?(O(g,y,o,n,_),x&&c.insertBefore(e,g.elm,c.nextSibling(v.elm)),g=t[++f],y=n[--_]):io(v,b)?(O(v,b,o,n,h),x&&c.insertBefore(e,v.elm,g.elm),v=t[--m],b=n[++h]):(r(s)&&(s=ao(t,f,m)),u=i(b.key)?s[b.key]:D(b,t,f,m),r(u)?p(b,o,e,g.elm,!1,n,h):(l=t[u],io(l,b)?(O(l,b,o,n,h),t[u]=void 0,x&&c.insertBefore(e,l.elm,g.elm)):p(b,o,e,g.elm,!1,n,h)),b=n[++h]);f>m?(d=r(n[_+1])?null:n[_+1].elm,M(e,d,n,h,_,o)):h>_&&L(t,f,m)}function D(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&io(e,a))return o}}function O(e,t,n,a,s,l){if(e!==t){i(t.elm)&&i(a)&&(t=a[s]=xe(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,h=t.data;i(h)&&i(f=h.hook)&&i(f=f.prepatch)&&f(e,t);var p=e.children,m=t.children;if(i(h)&&x(t)){for(f=0;f<u.update.length;++f)u.update[f](e,t);i(f=h.hook)&&i(f=f.update)&&f(e,t)}r(t.text)?i(p)&&i(m)?p!==m&&T(d,p,m,n,l):i(m)?(i(e.text)&&c.setTextContent(d,""),M(d,null,m,0,m.length-1,n)):i(p)?L(p,0,p.length-1):i(e.text)&&c.setTextContent(d,""):e.text!==t.text&&c.setTextContent(d,t.text),i(h)&&i(f=h.hook)&&i(f=f.postpatch)&&f(e,t)}}}function E(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var A=v("attrs,class,staticClass,staticStyle,key");function P(e,t,n,r){var a,s=t.tag,u=t.data,l=t.children;if(r=r||u&&u.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(u)&&(i(a=u.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return g(t,n),!0;if(i(s)){if(i(l))if(e.hasChildNodes())if(i(a=u)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var c=!0,d=e.firstChild,f=0;f<l.length;f++){if(!d||!P(d,l[f],n,r)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}else y(t,l,n);if(i(u)){var h=!1;for(var p in u)if(!A(p)){h=!0,w(t,n);break}!h&&u["class"]&&qn(u["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!r(t)){var s=!1,l=[];if(r(e))s=!0,p(t,l);else{var f=i(e.nodeType);if(!f&&io(e,t))O(e,t,l,null,null,a);else{if(f){if(1===e.nodeType&&e.hasAttribute(V)&&(e.removeAttribute(V),n=!0),o(n)&&P(e,t,l))return E(t,l,!0),e;e=d(e)}var h=e.elm,m=c.parentNode(h);if(p(t,l,h._leaveCb?null:m,c.nextSibling(h)),i(t.parent)){var g=t.parent,v=x(t);while(g){for(var _=0;_<u.destroy.length;++_)u.destroy[_](g);if(g.elm=t.elm,v){for(var b=0;b<u.create.length;++b)u.create[b](no,g);var y=g.data.hook.insert;if(y.merged)for(var w=1;w<y.fns.length;w++)y.fns[w]()}else eo(g);g=g.parent}}i(m)?L([e],0,0):i(e.tag)&&S(e)}}return E(t,l,s),t.elm}i(e)&&S(e)}}var uo={create:lo,update:lo,destroy:function(e){lo(e,no)}};function lo(e,t){(e.data.directives||t.data.directives)&&co(e,t)}function co(e,t){var n,r,i,o=e===no,a=t===no,s=ho(e.data.directives,e.context),u=ho(t.data.directives,t.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,mo(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(mo(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)mo(l[n],"inserted",t,e)};o?Xe(t,"insert",d):d()}if(c.length&&Xe(t,"postpatch",(function(){for(var n=0;n<c.length;n++)mo(c[n],"componentUpdated",t,e)})),!o)for(n in s)u[n]||mo(s[n],"unbind",e,e,a)}var fo=Object.create(null);function ho(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++){if(r=e[n],r.modifiers||(r.modifiers=fo),i[po(r)]=r,t._setupState&&t._setupState.__sfc){var o=r.def||$r(t,"_setupState","v-"+r.name);r.def="function"===typeof o?{bind:o,update:o}:o}r.def=r.def||$r(t.$options,"directives",r.name,!0)}return i}function po(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function mo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(LT){Dn(LT,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var go=[Zi,uo];function vo(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var a,s,u,l=t.elm,c=e.data.attrs||{},d=t.data.attrs||{};for(a in(i(d.__ob__)||o(d._v_attr_proxy))&&(d=t.data.attrs=P({},d)),d)s=d[a],u=c[a],u!==s&&_o(l,a,s,t.data.pre);for(a in(ne||ie)&&d.value!==c.value&&_o(l,"value",d.value),c)r(d[a])&&(yi(a)?l.removeAttributeNS(bi,xi(a)):mi(a)||l.removeAttribute(a))}}function _o(e,t,n,r){r||e.tagName.indexOf("-")>-1?bo(e,t,n):_i(t)?wi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):mi(t)?e.setAttribute(t,vi(t,n)):yi(t)?wi(n)?e.removeAttributeNS(bi,xi(t)):e.setAttributeNS(bi,t,n):bo(e,t,n)}function bo(e,t,n){if(wi(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var yo={create:vo,update:vo};function xo(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=ki(t),u=n._transitionClasses;i(u)&&(s=Li(s,Ci(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var wo,ko,Mo,So,Lo,Co,To={create:xo,update:xo},Do=/[\w).+\-_$\]]/;function Oo(e){var t,n,r,i,o,a=!1,s=!1,u=!1,l=!1,c=0,d=0,f=0,h=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(u)96===t&&92!==n&&(u=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||c||d||f){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:c++;break;case 125:c--;break}if(47===t){for(var p=r-1,m=void 0;p>=0;p--)if(m=e.charAt(p)," "!==m)break;m&&Do.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):g();function g(){(o||(o=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&g(),o)for(r=0;r<o.length;r++)i=Eo(i,o[r]);return i}function Eo(e,t){var n=t.indexOf("(");if(n<0)return'_f("'.concat(t,'")(').concat(e,")");var r=t.slice(0,n),i=t.slice(n+1);return'_f("'.concat(r,'")(').concat(e).concat(")"!==i?","+i:i)}function Ao(e,t){console.error("[Vue compiler]: ".concat(e))}function Po(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Fo(e,t,n,r,i){(e.props||(e.props=[])).push($o({name:t,value:n,dynamic:i},r)),e.plain=!1}function Io(e,t,n,r,i){var o=i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);o.push($o({name:t,value:n,dynamic:i},r)),e.plain=!1}function Yo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push($o({name:t,value:n},r))}function Ro(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push($o({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function No(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t}function Ho(t,n,r,i,o,a,s,u){var l;i=i||e,i.right?u?n="(".concat(n,")==='click'?'contextmenu':(").concat(n,")"):"click"===n&&(n="contextmenu",delete i.right):i.middle&&(u?n="(".concat(n,")==='click'?'mouseup':(").concat(n,")"):"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=No("!",n,u)),i.once&&(delete i.once,n=No("~",n,u)),i.passive&&(delete i.passive,n=No("&",n,u)),i.native?(delete i.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});var c=$o({value:r.trim(),dynamic:u},s);i!==e&&(c.modifiers=i);var d=l[n];Array.isArray(d)?o?d.unshift(c):d.push(c):l[n]=d?o?[c,d]:[d,c]:c,t.plain=!1}function zo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function jo(e,t,n){var r=Bo(e,":"+t)||Bo(e,"v-bind:"+t);if(null!=r)return Oo(r);if(!1!==n){var i=Bo(e,t);if(null!=i)return JSON.stringify(i)}}function Bo(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Vo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function $o(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Uo(e,t,n){var r=n||{},i=r.number,o=r.trim,a="$$v",s=a;o&&(s="(typeof ".concat(a," === 'string'")+"? ".concat(a,".trim()")+": ".concat(a,")")),i&&(s="_n(".concat(s,")"));var u=Wo(t,s);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(a,") {").concat(u,"}")}}function Wo(e,t){var n=qo(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function qo(e){if(e=e.trim(),wo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<wo-1)return So=e.lastIndexOf("."),So>-1?{exp:e.slice(0,So),key:'"'+e.slice(So+1)+'"'}:{exp:e,key:null};ko=e,So=Lo=Co=0;while(!Ko())Mo=Go(),Jo(Mo)?Qo(Mo):91===Mo&&Xo(Mo);return{exp:e.slice(0,Lo),key:e.slice(Lo+1,Co)}}function Go(){return ko.charCodeAt(++So)}function Ko(){return So>=wo}function Jo(e){return 34===e||39===e}function Xo(e){var t=1;Lo=So;while(!Ko())if(e=Go(),Jo(e))Qo(e);else if(91===e&&t++,93===e&&t--,0===t){Co=So;break}}function Qo(e){var t=e;while(!Ko())if(e=Go(),e===t)break}var Zo,ea="__r",ta="__c";function na(e,t,n){n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Uo(e,r,i),!1;if("select"===o)oa(e,r,i);else if("input"===o&&"checkbox"===a)ra(e,r,i);else if("input"===o&&"radio"===a)ia(e,r,i);else if("input"===o||"textarea"===o)aa(e,r,i);else{if(!q.isReservedTag(o))return Uo(e,r,i),!1}return!0}function ra(e,t,n){var r=n&&n.number,i=jo(e,"value")||"null",o=jo(e,"true-value")||"true",a=jo(e,"false-value")||"false";Fo(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(i,")>-1")+("true"===o?":(".concat(t,")"):":_q(".concat(t,",").concat(o,")"))),Ho(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Wo(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Wo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Wo(t,"$$c"),"}"),null,!0)}function ia(e,t,n){var r=n&&n.number,i=jo(e,"value")||"null";i=r?"_n(".concat(i,")"):i,Fo(e,"checked","_q(".concat(t,",").concat(i,")")),Ho(e,"change",Wo(t,i),null,!0)}function oa(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),o="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = ".concat(i,";");a="".concat(a," ").concat(Wo(t,o)),Ho(e,"change",a,null,!0)}function aa(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==r,l=o?"change":"range"===r?ea:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n(".concat(c,")"));var d=Wo(t,c);u&&(d="if($event.target.composing)return;".concat(d)),Fo(e,"value","(".concat(t,")")),Ho(e,l,d,null,!0),(s||a)&&Ho(e,"blur","$forceUpdate()")}function sa(e){if(i(e[ea])){var t=ne?"change":"input";e[t]=[].concat(e[ea],e[t]||[]),delete e[ea]}i(e[ta])&&(e.change=[].concat(e[ta],e.change||[]),delete e[ta])}function ua(e,t,n){var r=Zo;return function i(){var o=t.apply(null,arguments);null!==o&&da(e,i,n,r)}}var la=Fn&&!(se&&Number(se[1])<=53);function ca(e,t,n,r){if(la){var i=mn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Zo.addEventListener(e,t,le?{capture:n,passive:r}:n)}function da(e,t,n,r){(r||Zo).removeEventListener(e,t._wrapper||t,n)}function fa(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Zo=t.elm||e.elm,sa(n),Je(n,i,ca,da,ua,t.context),Zo=void 0}}var ha,pa={create:fa,update:fa,destroy:function(e){return fa(e,no)}};function ma(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,a,s=t.elm,u=e.data.domProps||{},l=t.data.domProps||{};for(n in(i(l.__ob__)||o(l._v_attr_proxy))&&(l=t.data.domProps=P({},l)),u)n in l||(s[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===u[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=a;var c=r(a)?"":String(a);ga(s,c)&&(s.value=c)}else if("innerHTML"===n&&Ai(s.tagName)&&r(s.innerHTML)){ha=ha||document.createElement("div"),ha.innerHTML="<svg>".concat(a,"</svg>");var d=ha.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(d.firstChild)s.appendChild(d.firstChild)}else if(a!==u[n])try{s[n]=a}catch(LT){}}}}function ga(e,t){return!e.composing&&("OPTION"===e.tagName||va(e,t)||_a(e,t))}function va(e,t){var n=!0;try{n=document.activeElement!==e}catch(LT){}return n&&e.value!==t}function _a(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ba={create:ma,update:ma},ya=k((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function xa(e){var t=wa(e.style);return e.staticStyle?P(e.staticStyle,t):t}function wa(e){return Array.isArray(e)?F(e):"string"===typeof e?ya(e):e}function ka(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=xa(i.data))&&P(r,n)}(n=xa(e.data))&&P(r,n);var o=e;while(o=o.parent)o.data&&(n=xa(o.data))&&P(r,n);return r}var Ma,Sa=/^--/,La=/\s*!important$/,Ca=function(e,t,n){if(Sa.test(t))e.style.setProperty(t,n);else if(La.test(n))e.style.setProperty(T(t),n.replace(La,""),"important");else{var r=Da(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ta=["Webkit","Moz","ms"],Da=k((function(e){if(Ma=Ma||document.createElement("div").style,e=S(e),"filter"!==e&&e in Ma)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ta.length;n++){var r=Ta[n]+t;if(r in Ma)return r}}));function Oa(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,u=t.elm,l=o.staticStyle,c=o.normalizedStyle||o.style||{},d=l||c,f=wa(t.data.style)||{};t.data.normalizedStyle=i(f.__ob__)?P({},f):f;var h=ka(t,!0);for(s in d)r(h[s])&&Ca(u,s,"");for(s in h)a=h[s],a!==d[s]&&Ca(u,s,null==a?"":a)}}var Ea={create:Oa,update:Oa},Aa=/\s+/;function Pa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Aa).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Fa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Aa).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ia(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&P(t,Ya(e.name||"v")),P(t,e),t}return"string"===typeof e?Ya(e):void 0}}var Ya=k((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),Ra=ee&&!re,Na="transition",Ha="animation",za="transition",ja="transitionend",Ba="animation",Va="animationend";Ra&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(za="WebkitTransition",ja="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ba="WebkitAnimation",Va="webkitAnimationEnd"));var $a=ee?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ua(e){$a((function(){$a(e)}))}function Wa(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Pa(e,t))}function qa(e,t){e._transitionClasses&&y(e._transitionClasses,t),Fa(e,t)}function Ga(e,t,n){var r=Ja(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Na?ja:Va,u=0,l=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++u>=a&&l()};setTimeout((function(){u<a&&l()}),o+1),e.addEventListener(s,c)}var Ka=/\b(transform|all)(,|$)/;function Ja(e,t){var n,r=window.getComputedStyle(e),i=(r[za+"Delay"]||"").split(", "),o=(r[za+"Duration"]||"").split(", "),a=Xa(i,o),s=(r[Ba+"Delay"]||"").split(", "),u=(r[Ba+"Duration"]||"").split(", "),l=Xa(s,u),c=0,d=0;t===Na?a>0&&(n=Na,c=a,d=o.length):t===Ha?l>0&&(n=Ha,c=l,d=u.length):(c=Math.max(a,l),n=c>0?a>l?Na:Ha:null,d=n?n===Na?o.length:u.length:0);var f=n===Na&&Ka.test(r[za+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:f}}function Xa(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Qa(t)+Qa(e[n])})))}function Qa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Za(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Ia(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,c=o.enterClass,d=o.enterToClass,f=o.enterActiveClass,h=o.appearClass,p=o.appearToClass,m=o.appearActiveClass,v=o.beforeEnter,_=o.enter,b=o.afterEnter,y=o.enterCancelled,x=o.beforeAppear,w=o.appear,k=o.afterAppear,M=o.appearCancelled,S=o.duration,L=Xt,C=Xt.$vnode;while(C&&C.parent)L=C.context,C=C.parent;var T=!L._isMounted||!e.isRootInsert;if(!T||w||""===w){var D=T&&h?h:c,O=T&&m?m:f,E=T&&p?p:d,A=T&&x||v,P=T&&u(w)?w:_,F=T&&k||b,I=T&&M||y,Y=g(l(S)?S.enter:S);0;var R=!1!==a&&!re,N=ns(P),H=n._enterCb=j((function(){R&&(qa(n,E),qa(n,O)),H.cancelled?(R&&qa(n,D),I&&I(n)):F&&F(n),n._enterCb=null}));e.data.show||Xe(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,H)})),A&&A(n),R&&(Wa(n,D),Wa(n,O),Ua((function(){qa(n,D),H.cancelled||(Wa(n,E),N||(ts(Y)?setTimeout(H,Y):Ga(n,s,H)))}))),e.data.show&&(t&&t(),P&&P(n,H)),R||N||H()}}}function es(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Ia(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,c=o.leaveToClass,d=o.leaveActiveClass,f=o.beforeLeave,h=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,_=o.duration,b=!1!==a&&!re,y=ns(h),x=g(l(_)?_.leave:_);0;var w=n._leaveCb=j((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(qa(n,c),qa(n,d)),w.cancelled?(b&&qa(n,u),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(k):k()}function k(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),b&&(Wa(n,u),Wa(n,d),Ua((function(){qa(n,u),w.cancelled||(Wa(n,c),y||(ts(x)?setTimeout(w,x):Ga(n,s,w)))}))),h&&h(n,w),b||y||w())}}function ts(e){return"number"===typeof e&&!isNaN(e)}function ns(e){if(r(e))return!1;var t=e.fns;return i(t)?ns(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function rs(e,t){!0!==t.data.show&&Za(t)}var is=ee?{create:rs,activate:rs,remove:function(e,t){!0!==e.data.show?es(e,t):t()}}:{},os=[yo,To,pa,ba,Ea,is],as=os.concat(go),ss=so({nodeOps:Qi,modules:as});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ms(e,"input")}));var us={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Xe(n,"postpatch",(function(){us.componentUpdated(e,t,n)})):ls(e,t,n.context),e._vOptions=[].map.call(e.options,fs)):("textarea"===n.tag||Ni(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",hs),e.addEventListener("compositionend",ps),e.addEventListener("change",ps),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){ls(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,fs);if(i.some((function(e,t){return!H(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ds(e,i)})):t.value!==t.oldValue&&ds(t.value,i);o&&ms(e,"change")}}}};function ls(e,t,n){cs(e,t,n),(ne||ie)&&setTimeout((function(){cs(e,t,n)}),0)}function cs(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=e.options.length;s<u;s++)if(a=e.options[s],i)o=z(r,fs(a))>-1,a.selected!==o&&(a.selected=o);else if(H(fs(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ds(e,t){return t.every((function(t){return!H(t,e)}))}function fs(e){return"_value"in e?e._value:e.value}function hs(e){e.target.composing=!0}function ps(e){e.target.composing&&(e.target.composing=!1,ms(e.target,"input"))}function ms(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function gs(e){return!e.componentInstance||e.data&&e.data.transition?e:gs(e.componentInstance._vnode)}var vs={bind:function(e,t,n){var r=t.value;n=gs(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Za(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=gs(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Za(n,(function(){e.style.display=e.__vOriginalDisplay})):es(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},_s={model:us,show:vs},bs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ys(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ys($t(t.children)):e}function xs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[S(r)]=i[r];return t}function ws(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ks(e){while(e=e.parent)if(e.data.transition)return!0}function Ms(e,t){return t.key===e.key&&t.tag===e.tag}var Ss=function(e){return e.tag||Ct(e)},Ls=function(e){return"show"===e.name},Cs={name:"transition",props:bs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ss),n.length)){0;var r=this.mode;0;var i=n[0];if(ks(this.$vnode))return i;var o=ys(i);if(!o)return i;if(this._leaving)return ws(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=xs(this),l=this._vnode,c=ys(l);if(o.data.directives&&o.data.directives.some(Ls)&&(o.data.show=!0),c&&c.data&&!Ms(o,c)&&!Ct(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=P({},u);if("out-in"===r)return this._leaving=!0,Xe(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ws(e,i);if("in-out"===r){if(Ct(o))return l;var f,h=function(){f()};Xe(u,"afterEnter",h),Xe(u,"enterCancelled",h),Xe(d,"delayLeave",(function(e){f=e}))}}return i}}},Ts=P({tag:String,moveClass:String},bs);delete Ts.mode;var Ds={props:Ts,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=xs(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){var l=[],c=[];for(s=0;s<r.length;s++){u=r[s];u.data.transition=a,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?l.push(u):c.push(u)}this.kept=e(t,null,l),this.removed=c}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Os),e.forEach(Es),e.forEach(As),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Wa(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ja,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ja,e),n._moveCb=null,qa(n,t))})}})))},methods:{hasMove:function(e,t){if(!Ra)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Fa(n,e)})),Pa(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ja(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Os(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Es(e){e.data.newPos=e.elm.getBoundingClientRect()}function As(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}var Ps={Transition:Cs,TransitionGroup:Ds};Xr.config.mustUseProp=pi,Xr.config.isReservedTag=Fi,Xr.config.isReservedAttr=fi,Xr.config.getTagNamespace=Ii,Xr.config.isUnknownElement=Ri,P(Xr.options.directives,_s),P(Xr.options.components,Ps),Xr.prototype.__patch__=ee?ss:I,Xr.prototype.$mount=function(e,t){return e=e&&ee?Hi(e):void 0,tn(this,e,t)},ee&&setTimeout((function(){q.devtools&&fe&&fe.emit("init",Xr)}),0);var Fs=/\{\{((?:.|\r?\n)+?)\}\}/g,Is=/[-.*+?^${}()|[\]\/\\]/g,Ys=k((function(e){var t=e[0].replace(Is,"\\$&"),n=e[1].replace(Is,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function Rs(e,t){var n=t?Ys(t):Fs;if(n.test(e)){var r,i,o,a=[],s=[],u=n.lastIndex=0;while(r=n.exec(e)){i=r.index,i>u&&(s.push(o=e.slice(u,i)),a.push(JSON.stringify(o)));var l=Oo(r[1].trim());a.push("_s(".concat(l,")")),s.push({"@binding":l}),u=i+r[0].length}return u<e.length&&(s.push(o=e.slice(u)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function Ns(e,t){t.warn;var n=Bo(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=jo(e,"class",!1);r&&(e.classBinding=r)}function Hs(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}var zs={staticKeys:["staticClass"],transformNode:Ns,genData:Hs};function js(e,t){t.warn;var n=Bo(e,"style");n&&(e.staticStyle=JSON.stringify(ya(n)));var r=jo(e,"style",!1);r&&(e.styleBinding=r)}function Bs(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}var Vs,$s={staticKeys:["staticStyle"],transformNode:js,genData:Bs},Us={decode:function(e){return Vs=Vs||document.createElement("div"),Vs.innerHTML=e,Vs.textContent}},Ws=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),qs=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Gs=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ks=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Js=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Xs="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(G.source,"]*"),Qs="((?:".concat(Xs,"\\:)?").concat(Xs,")"),Zs=new RegExp("^<".concat(Qs)),eu=/^\s*(\/?)>/,tu=new RegExp("^<\\/".concat(Qs,"[^>]*>")),nu=/^<!DOCTYPE [^>]+>/i,ru=/^<!\--/,iu=/^<!\[/,ou=v("script,style,textarea",!0),au={},su={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},uu=/&(?:lt|gt|quot|amp|#39);/g,lu=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,cu=v("pre,textarea",!0),du=function(e,t){return e&&cu(e)&&"\n"===t[0]};function fu(e,t){var n=t?lu:uu;return e.replace(n,(function(e){return su[e]}))}function hu(e,t){var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||Y,s=t.canBeLeftOpenTag||Y,u=0,l=function(){if(n=e,r&&ou(r)){var i=0,o=r.toLowerCase(),a=au[o]||(au[o]=new RegExp("([\\s\\S]*?)(</"+o+"[^>]*>)","i"));y=e.replace(a,(function(e,n,r){return i=r.length,ou(o)||"noscript"===o||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),du(o,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-y.length,e=y,p(o,u-i,u)}else{var s=e.indexOf("<");if(0===s){if(ru.test(e)){var l=e.indexOf("--\x3e");if(l>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,l),u,u+l+3),d(l+3),"continue"}if(iu.test(e)){var c=e.indexOf("]>");if(c>=0)return d(c+2),"continue"}var m=e.match(nu);if(m)return d(m[0].length),"continue";var g=e.match(tu);if(g){var v=u;return d(g[0].length),p(g[1],v,u),"continue"}var _=f();if(_)return h(_),du(_.tagName,e)&&d(1),"continue"}var b=void 0,y=void 0,x=void 0;if(s>=0){y=e.slice(s);while(!tu.test(y)&&!Zs.test(y)&&!ru.test(y)&&!iu.test(y)){if(x=y.indexOf("<",1),x<0)break;s+=x,y=e.slice(s)}b=e.substring(0,s)}s<0&&(b=e),b&&d(b.length),t.chars&&b&&t.chars(b,u-b.length,u)}if(e===n)return t.chars&&t.chars(e),"break"};while(e){var c=l();if("break"===c)break}function d(t){u+=t,e=e.substring(t)}function f(){var t=e.match(Zs);if(t){var n={tagName:t[1],attrs:[],start:u};d(t[0].length);var r=void 0,i=void 0;while(!(r=e.match(eu))&&(i=e.match(Js)||e.match(Ks)))i.start=u,d(i[0].length),i.end=u,n.attrs.push(i);if(r)return n.unarySlash=r[1],d(r[0].length),n.end=u,n}}function h(e){var n=e.tagName,u=e.unarySlash;o&&("p"===r&&Gs(n)&&p(r),s(n)&&r===n&&p(n));for(var l=a(n)||!!u,c=e.attrs.length,d=new Array(c),f=0;f<c;f++){var h=e.attrs[f],m=h[3]||h[4]||h[5]||"",g="a"===n&&"href"===h[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[f]={name:h[1],value:fu(m,g)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,l,e.start,e.end)}function p(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e){for(s=e.toLowerCase(),a=i.length-1;a>=0;a--)if(i[a].lowerCasedTag===s)break}else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}p()}var pu,mu,gu,vu,_u,bu,yu,xu,wu=/^@|^v-on:/,ku=/^v-|^@|^:|^#/,Mu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Su=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Lu=/^\(|\)$/g,Cu=/^\[.*\]$/,Tu=/:(.*)$/,Du=/^:|^\.|^v-bind:/,Ou=/\.[^.\]]+(?=[^\]]*$)/g,Eu=/^v-slot(:|$)|^#/,Au=/[\r\n]/,Pu=/[ \f\t\r\n]+/g,Fu=k(Us.decode),Iu="_empty_";function Yu(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:rl(t),rawAttrsMap:{},parent:n,children:[]}}function Ru(e,t){pu=t.warn||Ao,bu=t.isPreTag||Y,yu=t.mustUseProp||Y,xu=t.getTagNamespace||Y;var n=t.isReservedTag||Y;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),gu=Po(t.modules,"transformNode"),vu=Po(t.modules,"preTransformNode"),_u=Po(t.modules,"postTransformNode"),mu=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,u=!1,l=!1;function c(e){if(d(e),u||e.processed||(e=zu(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&Gu(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)Wu(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(u=!1),bu(e.tag)&&(l=!1);for(var a=0;a<_u.length;a++)_u[a](e,t)}function d(e){if(!l){var t=void 0;while((t=e.children[e.children.length-1])&&3===t.type&&" "===t.text)e.children.pop()}}return hu(e,{warn:pu,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,d){var f=i&&i.ns||xu(e);ne&&"svg"===f&&(n=ul(n));var h=Yu(e,n,i);f&&(h.ns=f),ol(h)&&!de()&&(h.forbidden=!0);for(var p=0;p<vu.length;p++)h=vu[p](h,t)||h;u||(Nu(h),h.pre&&(u=!0)),bu(h.tag)&&(l=!0),u?Hu(h):h.processed||(Vu(h),Uu(h),Ku(h)),r||(r=h),a?c(h):(i=h,o.push(h))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],c(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r=i.children;if(e=l||e.trim()?il(i)?e:Fu(e):r.length?s?"condense"===s&&Au.test(e)?"":" ":a?" ":"":"",e){l||"condense"!==s||(e=e.replace(Pu," "));var o=void 0,c=void 0;!u&&" "!==e&&(o=Rs(e,mu))?c={type:2,expression:o.expression,tokens:o.tokens,text:e}:" "===e&&r.length&&" "===r[r.length-1].text||(c={type:3,text:e}),c&&r.push(c)}}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function Nu(e){null!=Bo(e,"v-pre")&&(e.pre=!0)}function Hu(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function zu(e,t){ju(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Bu(e),Ju(e),Qu(e),Zu(e);for(var n=0;n<gu.length;n++)e=gu[n](e,t)||e;return el(e),e}function ju(e){var t=jo(e,"key");t&&(e.key=t)}function Bu(e){var t=jo(e,"ref");t&&(e.ref=t,e.refInFor=tl(e))}function Vu(e){var t;if(t=Bo(e,"v-for")){var n=$u(t);n&&P(e,n)}}function $u(e){var t=e.match(Mu);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Lu,""),i=r.match(Su);return i?(n.alias=r.replace(Su,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function Uu(e){var t=Bo(e,"v-if");if(t)e.if=t,Gu(e,{exp:t,block:e});else{null!=Bo(e,"v-else")&&(e.else=!0);var n=Bo(e,"v-else-if");n&&(e.elseif=n)}}function Wu(e,t){var n=qu(t.children);n&&n.if&&Gu(n,{exp:e.elseif,block:e})}function qu(e){var t=e.length;while(t--){if(1===e[t].type)return e[t];e.pop()}}function Gu(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Ku(e){var t=Bo(e,"v-once");null!=t&&(e.once=!0)}function Ju(e){var t;"template"===e.tag?(t=Bo(e,"scope"),e.slotScope=t||Bo(e,"slot-scope")):(t=Bo(e,"slot-scope"))&&(e.slotScope=t);var n=jo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Io(e,"slot",n,zo(e,"slot"))),"template"===e.tag){var r=Vo(e,Eu);if(r){0;var i=Xu(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||Iu}}else{r=Vo(e,Eu);if(r){0;var s=e.scopedSlots||(e.scopedSlots={}),u=Xu(r),l=u.name,c=(a=u.dynamic,s[l]=Yu("template",[],e));c.slotTarget=l,c.slotTargetDynamic=a,c.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=c,!0})),c.slotScope=r.value||Iu,e.children=[],e.plain=!1}}}function Xu(e){var t=e.name.replace(Eu,"");return t||"#"!==e.name[0]&&(t="default"),Cu.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}}function Qu(e){"slot"===e.tag&&(e.slotName=jo(e,"name"))}function Zu(e){var t;(t=jo(e,"is"))&&(e.component=t),null!=Bo(e,"inline-template")&&(e.inlineTemplate=!0)}function el(e){var t,n,r,i,o,a,s,u,l=e.attrsList;for(t=0,n=l.length;t<n;t++){if(r=i=l[t].name,o=l[t].value,ku.test(r))if(e.hasBindings=!0,a=nl(r.replace(ku,"")),a&&(r=r.replace(Ou,"")),Du.test(r))r=r.replace(Du,""),o=Oo(o),u=Cu.test(r),u&&(r=r.slice(1,-1)),a&&(a.prop&&!u&&(r=S(r),"innerHtml"===r&&(r="innerHTML")),a.camel&&!u&&(r=S(r)),a.sync&&(s=Wo(o,"$event"),u?Ho(e,'"update:"+('.concat(r,")"),s,null,!1,pu,l[t],!0):(Ho(e,"update:".concat(S(r)),s,null,!1,pu,l[t]),T(r)!==S(r)&&Ho(e,"update:".concat(T(r)),s,null,!1,pu,l[t])))),a&&a.prop||!e.component&&yu(e.tag,e.attrsMap.type,r)?Fo(e,r,o,l[t],u):Io(e,r,o,l[t],u);else if(wu.test(r))r=r.replace(wu,""),u=Cu.test(r),u&&(r=r.slice(1,-1)),Ho(e,r,o,a,!1,pu,l[t],u);else{r=r.replace(ku,"");var c=r.match(Tu),d=c&&c[1];u=!1,d&&(r=r.slice(0,-(d.length+1)),Cu.test(d)&&(d=d.slice(1,-1),u=!0)),Ro(e,r,i,o,d,u,a,l[t])}else Io(e,r,JSON.stringify(o),l[t]),!e.component&&"muted"===r&&yu(e.tag,e.attrsMap.type,r)&&Fo(e,r,"true",l[t])}}function tl(e){var t=e;while(t){if(void 0!==t.for)return!0;t=t.parent}return!1}function nl(e){var t=e.match(Ou);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function rl(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function il(e){return"script"===e.tag||"style"===e.tag}function ol(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var al=/^xmlns:NS\d+/,sl=/^NS\d+:/;function ul(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];al.test(r.name)||(r.name=r.name.replace(sl,""),t.push(r))}return t}function ll(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=jo(e,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=Bo(e,"v-if",!0),o=i?"&&(".concat(i,")"):"",a=null!=Bo(e,"v-else",!0),s=Bo(e,"v-else-if",!0),u=cl(e);Vu(u),Yo(u,"type","checkbox"),zu(u,t),u.processed=!0,u.if="(".concat(r,")==='checkbox'")+o,Gu(u,{exp:u.if,block:u});var l=cl(e);Bo(l,"v-for",!0),Yo(l,"type","radio"),zu(l,t),Gu(u,{exp:"(".concat(r,")==='radio'")+o,block:l});var c=cl(e);return Bo(c,"v-for",!0),Yo(c,":type",r),zu(c,t),Gu(u,{exp:i,block:c}),a?u.else=!0:s&&(u.elseif=s),u}}}function cl(e){return Yu(e.tag,e.attrsList.slice(),e.parent)}var dl={preTransformNode:ll},fl=[zs,$s,dl];function hl(e,t){t.value&&Fo(e,"textContent","_s(".concat(t.value,")"),t)}function pl(e,t){t.value&&Fo(e,"innerHTML","_s(".concat(t.value,")"),t)}var ml,gl,vl={model:na,text:hl,html:pl},_l={expectHTML:!0,modules:fl,directives:vl,isPreTag:Pi,isUnaryTag:Ws,mustUseProp:pi,canBeLeftOpenTag:qs,isReservedTag:Fi,getTagNamespace:Ii,staticKeys:N(fl)},bl=k(xl);function yl(e,t){e&&(ml=bl(t.staticKeys||""),gl=t.isReservedTag||Y,wl(e),kl(e,!1))}function xl(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function wl(e){if(e.static=Ml(e),1===e.type){if(!gl(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];wl(r),r.static||(e.static=!1)}if(e.ifConditions)for(t=1,n=e.ifConditions.length;t<n;t++){var i=e.ifConditions[t].block;wl(i),i.static||(e.static=!1)}}}function kl(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)kl(e.children[n],t||!!e.for);if(e.ifConditions)for(n=1,r=e.ifConditions.length;n<r;n++)kl(e.ifConditions[n].block,t)}}function Ml(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||_(e.tag)||!gl(e.tag)||Sl(e)||!Object.keys(e).every(ml))))}function Sl(e){while(e.parent){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}var Ll=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Cl=/\([^)]*?\);*$/,Tl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Dl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ol={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},El=function(e){return"if(".concat(e,")return null;")},Al={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:El("$event.target !== $event.currentTarget"),ctrl:El("!$event.ctrlKey"),shift:El("!$event.shiftKey"),alt:El("!$event.altKey"),meta:El("!$event.metaKey"),left:El("'button' in $event && $event.button !== 0"),middle:El("'button' in $event && $event.button !== 1"),right:El("'button' in $event && $event.button !== 2")};function Pl(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Fl(e[o]);e[o]&&e[o].dynamic?i+="".concat(o,",").concat(a,","):r+='"'.concat(o,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function Fl(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Fl(e)})).join(","),"]");var t=Tl.test(e.value),n=Ll.test(e.value),r=Tl.test(e.value.replace(Cl,""));if(e.modifiers){var i="",o="",a=[],s=function(t){if(Al[t])o+=Al[t],Dl[t]&&a.push(t);else if("exact"===t){var n=e.modifiers;o+=El(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(t)};for(var u in e.modifiers)s(u);a.length&&(i+=Il(a)),o&&(i+=o);var l=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(i).concat(l,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Il(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Yl).join("&&"),")return null;")}function Yl(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Dl[e],r=Ol[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}function Rl(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}}function Nl(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}}var Hl={on:Rl,bind:Nl,cloak:I},zl=function(){function e(e){this.options=e,this.warn=e.warn||Ao,this.transforms=Po(e.modules,"transformCode"),this.dataGenFns=Po(e.modules,"genData"),this.directives=P(P({},Hl),e.directives);var t=e.isReservedTag||Y;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}return e}();function jl(e,t){var n=new zl(t),r=e?"script"===e.tag?"null":Bl(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Bl(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return $l(e,t);if(e.once&&!e.onceProcessed)return Ul(e,t);if(e.for&&!e.forProcessed)return Gl(e,t);if(e.if&&!e.ifProcessed)return Wl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return uc(e,t);var n=void 0;if(e.component)n=lc(e.component,e,t);else{var r=void 0,i=t.maybeComponent(e);(!e.plain||e.pre&&i)&&(r=Kl(e,t));var o=void 0,a=t.options.bindings;i&&a&&!1!==a.__isScriptSetup&&(o=Vl(a,e.tag)),o||(o="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:nc(e,t,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var u=0;u<t.transforms.length;u++)n=t.transforms[u](e,n);return n}return nc(e,t)||"void 0"}function Vl(e,t){var n=S(t),r=L(n),i=function(i){return e[t]===i?t:e[n]===i?n:e[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var a=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");return a||void 0}function $l(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Bl(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function Ul(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Wl(e,t);if(e.staticInFor){var n="",r=e.parent;while(r){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(Bl(e,t),",").concat(t.onceId++,",").concat(n,")"):Bl(e,t)}return $l(e,t)}function Wl(e,t,n,r){return e.ifProcessed=!0,ql(e.ifConditions.slice(),t,n,r)}function ql(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"(".concat(i.exp,")?").concat(o(i.block),":").concat(ql(e,t,n,r)):"".concat(o(i.block));function o(e){return n?n(e,t):e.once?Ul(e,t):Bl(e,t)}}function Gl(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return e.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(o).concat(a).concat(s,"){")+"return ".concat((n||Bl)(e,t))+"})"}function Kl(e,t){var n="{",r=Jl(e,t);r&&(n+=r+","),e.key&&(n+="key:".concat(e.key,",")),e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'.concat(e.tag,'",'));for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:".concat(cc(e.attrs),",")),e.props&&(n+="domProps:".concat(cc(e.props),",")),e.events&&(n+="".concat(Pl(e.events,!1),",")),e.nativeEvents&&(n+="".concat(Pl(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(n+="".concat(Ql(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var o=Xl(e,t);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(cc(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Jl(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",u=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(u=!0,s+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}return u?s.slice(0,-1)+"]":void 0}}function Xl(e,t){var n=e.children[0];if(n&&1===n.type){var r=jl(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}function Ql(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||ec(n)})),i=!!e.if;if(!r){var o=e.parent;while(o){if(o.slotScope&&o.slotScope!==Iu||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}}var a=Object.keys(t).map((function(e){return tc(t[e],n)})).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(Zl(a)):"",")")}function Zl(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return t>>>0}function ec(e){return 1===e.type&&("slot"===e.tag||e.children.some(ec))}function tc(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Wl(e,t,tc,"null");if(e.for&&!e.forProcessed)return Gl(e,t,tc);var r=e.slotScope===Iu?"":String(e.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(nc(e,t)||"undefined",":undefined"):nc(e,t)||"undefined":Bl(e,t),"}"),o=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function nc(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||Bl)(a,t)).concat(s)}var u=n?rc(o,t.maybeComponent):0,l=i||oc;return"[".concat(o.map((function(e){return l(e,t)})).join(","),"]").concat(u?",".concat(u):"")}}function rc(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(ic(i)||i.ifConditions&&i.ifConditions.some((function(e){return ic(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function ic(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function oc(e,t){return 1===e.type?Bl(e,t):3===e.type&&e.isComment?sc(e):ac(e)}function ac(e){return"_v(".concat(2===e.type?e.expression:dc(JSON.stringify(e.text)),")")}function sc(e){return"_e(".concat(JSON.stringify(e.text),")")}function uc(e,t){var n=e.slotName||'"default"',r=nc(e,t),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=e.attrs||e.dynamicAttrs?cc((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=",".concat(o)),a&&(i+="".concat(o?"":",null",",").concat(a)),i+")"}function lc(e,t,n){var r=t.inlineTemplate?null:nc(t,n,!0);return"_c(".concat(e,",").concat(Kl(t,n)).concat(r?",".concat(r):"",")")}function cc(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=dc(i.value);i.dynamic?n+="".concat(i.name,",").concat(o,","):t+='"'.concat(i.name,'":').concat(o,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}function dc(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function fc(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),I}}function hc(e){var t=Object.create(null);return function(n,r,i){r=P({},r);r.warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},u=[];return s.render=fc(a.render,u),s.staticRenderFns=a.staticRenderFns.map((function(e){return fc(e,u)})),t[o]=s}}function pc(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var u in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=P(Object.create(t.directives||null),r.directives)),r)"modules"!==u&&"directives"!==u&&(i[u]=r[u]);i.warn=s;var l=e(n.trim(),i);return l.errors=o,l.tips=a,l}return{compile:n,compileToFunctions:hc(n)}}}var mc,gc=pc((function(e,t){var n=Ru(e.trim(),t);!1!==t.optimize&&yl(n,t);var r=jl(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),vc=gc(_l),_c=vc.compileToFunctions;function bc(e){return mc=mc||document.createElement("div"),mc.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',mc.innerHTML.indexOf("&#10;")>0}var yc=!!ee&&bc(!1),xc=!!ee&&bc(!0),wc=k((function(e){var t=Hi(e);return t&&t.innerHTML})),kc=Xr.prototype.$mount;function Mc(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}Xr.prototype.$mount=function(e,t){if(e=e&&Hi(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"===typeof r)"#"===r.charAt(0)&&(r=wc(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Mc(e));if(r){0;var i=_c(r,{outputSourceRange:!1,shouldDecodeNewlines:yc,shouldDecodeNewlinesForHref:xc,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return kc.call(this,e,t)},Xr.compile=_c;var Sc=n(381),Lc=n.n(Sc),Cc={methods:{__:function(e,t){return"undefined"===typeof pkp.localeKeys[e]?"":"undefined"===typeof t?pkp.localeKeys[e]:this.replaceLocaleParams(pkp.localeKeys[e],t)},getBrowserSafeDate(e){return Lc().utc(e).toDate()},localize:function(e,t){if(!e)return"";if(void 0!==t)return e.hasOwnProperty(t)?e[t]:"";if(e.hasOwnProperty($.pkp.app.currentLocale)&&e[$.pkp.app.currentLocale])return e[$.pkp.app.currentLocale];if(e.hasOwnProperty($.pkp.app.primaryLocale)&&e[$.pkp.app.primaryLocale])return e[$.pkp.app.primaryLocale];for(var n in e)if(e[n])return e[n];return""},localizeDate(e,t){if(!e)return"";e=this.getBrowserSafeDate(e);let n=void 0!==t?t.replace("_","-"):$.pkp.app.currentLocale.replace("_","-");return e.toLocaleDateString(n,{weekday:"long",year:"numeric",month:"long",day:"numeric"})},replaceLocaleParams(e,t){for(var n in t){let r=t[n];r===Object(r)&&(r=this.localize(r));const i=new RegExp("{\\$"+n+"}","g");e=e.replace(i,r)}return e},setFocusIn(e,t){const n=["button","[href]","input","select","textarea","details",'[tabindex]:not([tabindex="-1"])'];let r=[...e.querySelectorAll(n.join(","))].filter((e=>!e.hasAttribute("disabled"))).filter((e=>!e.hasAttribute("aria-hidden")));r.length&&(t?r[r.length-1].focus():r[0].focus())},setFocusToRef(e){this.$refs[e]&&(this.$refs[e].$el?this.$refs[e].$el.focus():"undefined"!==typeof this.$refs[e].focus&&this.$refs[e].focus())}}},Tc=n(7611),Dc=n.n(Tc);function Oc(e){return Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oc(e)}function Ec(e,t){if("object"!==Oc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Ac(e){var t=Ec(e,"string");return"symbol"===Oc(t)?t:String(t)}function Pc(e,t,n){return t=Ac(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Yc(e,t,n){return t&&Ic(e.prototype,t),n&&Ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var Rc="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,Nc=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Rc&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Hc(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}function zc(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Nc))}}var jc=Rc&&window.Promise,Bc=jc?Hc:zc;function Vc(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function $c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function Uc(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Wc(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=$c(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Wc(Uc(e))}function qc(e){return e&&e.referenceNode?e.referenceNode:e}var Gc=Rc&&!(!window.MSInputMethodContext||!document.documentMode),Kc=Rc&&/MSIE 10/.test(navigator.userAgent);function Jc(e){return 11===e?Gc:10===e?Kc:Gc||Kc}function Xc(e){if(!e)return document.documentElement;var t=Jc(10)?document.body:null,n=e.offsetParent||null;while(n===t&&e.nextElementSibling)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===$c(n,"position")?Xc(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Qc(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Xc(e.firstElementChild)===e)}function Zc(e){return null!==e.parentNode?Zc(e.parentNode):e}function ed(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return Qc(a)?a:Xc(a);var s=Zc(e);return s.host?ed(s.host,t):ed(e,Zc(t).host)}function td(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function nd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=td(t,"top"),i=td(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function rd(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function id(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Jc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function od(e){var t=e.body,n=e.documentElement,r=Jc(10)&&getComputedStyle(n);return{height:id("Height",t,n,r),width:id("Width",t,n,r)}}var ad=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},sd=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ud=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function cd(e){return ld({},e,{right:e.left+e.width,bottom:e.top+e.height})}function dd(e){var t={};try{if(Jc(10)){t=e.getBoundingClientRect();var n=td(e,"top"),r=td(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(LT){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?od(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,u=e.offsetWidth-a,l=e.offsetHeight-s;if(u||l){var c=$c(e);u-=rd(c,"x"),l-=rd(c,"y"),i.width-=u,i.height-=l}return cd(i)}function fd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Jc(10),i="HTML"===t.nodeName,o=dd(e),a=dd(t),s=Wc(e),u=$c(t),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=cd({top:o.top-a.top-l,left:o.left-a.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(u.marginTop),h=parseFloat(u.marginLeft);d.top-=l-f,d.bottom-=l-f,d.left-=c-h,d.right-=c-h,d.marginTop=f,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=nd(d,t)),d}function hd(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=fd(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:td(n),s=t?0:td(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return cd(u)}function pd(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===$c(e,"position"))return!0;var n=Uc(e);return!!n&&pd(n)}function md(e){if(!e||!e.parentElement||Jc())return document.documentElement;var t=e.parentElement;while(t&&"none"===$c(t,"transform"))t=t.parentElement;return t||document.documentElement}function gd(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?md(e):ed(e,qc(t));if("viewport"===r)o=hd(a,i);else{var s=void 0;"scrollParent"===r?(s=Wc(Uc(t)),"BODY"===s.nodeName&&(s=e.ownerDocument.documentElement)):s="window"===r?e.ownerDocument.documentElement:r;var u=fd(s,a,i);if("HTML"!==s.nodeName||pd(a))o=u;else{var l=od(e.ownerDocument),c=l.height,d=l.width;o.top+=u.top-u.marginTop,o.bottom=c+u.top,o.left+=u.left-u.marginLeft,o.right=d+u.left}}n=n||0;var f="number"===typeof n;return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function vd(e){var t=e.width,n=e.height;return t*n}function _d(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=gd(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return ld({key:e},s[e],{area:vd(s[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function bd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?md(t):ed(t,qc(n));return fd(n,i,r)}function yd(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function xd(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function wd(e,t,n){n=n.split("-")[0];var r=yd(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[xd(s)],i}function kd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Md(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=kd(e,(function(e){return e[t]===n}));return e.indexOf(r)}function Sd(e,t,n){var r=void 0===n?e:e.slice(0,Md(e,"name",n));return r.forEach((function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&Vc(n)&&(t.offsets.popper=cd(t.offsets.popper),t.offsets.reference=cd(t.offsets.reference),t=n(t,e))})),t}function Ld(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=bd(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=_d(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=wd(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Sd(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Cd(e,t){return e.some((function(e){var n=e.name,r=e.enabled;return r&&n===t}))}function Td(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function Dd(){return this.state.isDestroyed=!0,Cd(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Td("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Od(e){var t=e.ownerDocument;return t?t.defaultView:window}function Ed(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Ed(Wc(o.parentNode),t,n,r),r.push(o)}function Ad(e,t,n,r){n.updateBound=r,Od(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Wc(e);return Ed(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Pd(){this.state.eventsEnabled||(this.state=Ad(this.reference,this.options,this.state,this.scheduleUpdate))}function Fd(e,t){return Od(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Id(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Fd(this.reference,this.state))}function Yd(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Rd(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Yd(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function Nd(e,t){Object.keys(t).forEach((function(n){var r=t[n];!1!==r?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}function Hd(e){return Rd(e.instance.popper,e.styles),Nd(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Rd(e.arrowElement,e.arrowStyles),e}function zd(e,t,n,r,i){var o=bd(i,t,e,n.positionFixed),a=_d(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Rd(t,{position:n.positionFixed?"fixed":"absolute"}),n}function jd(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=u%2===l%2,h=u%2===1&&l%2===1,p=t?c||d||f?o:a:s,m=t?o:s;return{left:p(h&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}var Bd=Rc&&/Firefox/i.test(navigator.userAgent);function Vd(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=kd(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=Xc(e.instance.popper),u=dd(s),l={position:i.position},c=jd(e,window.devicePixelRatio<2||!Bd),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",h=Td("transform"),p=void 0,m=void 0;if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,p="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+p+"px, "+m+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===f?-1:1;l[d]=m*g,l[f]=p*v,l.willChange=d+", "+f}var _={"x-placement":e.placement};return e.attributes=ld({},_,e.attributes),e.styles=ld({},l,e.styles),e.arrowStyles=ld({},e.offsets.arrow,e.arrowStyles),e}function $d(e,t,n){var r=kd(e,(function(e){var n=e.name;return n===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function Ud(e,t){var n;if(!$d(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",c=u?"Top":"Left",d=c.toLowerCase(),f=u?"left":"top",h=u?"bottom":"right",p=yd(r)[l];s[h]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(e.offsets.popper[d]+=s[d]+p-a[h]),e.offsets.popper=cd(e.offsets.popper);var m=s[d]+s[l]/2-p/2,g=$c(e.instance.popper),v=parseFloat(g["margin"+c]),_=parseFloat(g["border"+c+"Width"]),b=m-e.offsets.popper[d]-v-_;return b=Math.max(Math.min(a[l]-p,b),0),e.arrowElement=r,e.offsets.arrow=(n={},ud(n,d,Math.round(b)),ud(n,f,""),n),e}function Wd(e){return"end"===e?"start":"start"===e?"end":e}var qd=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Gd=qd.slice(3);function Kd(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Gd.indexOf(e),r=Gd.slice(n+1).concat(Gd.slice(0,n));return t?r.reverse():r}var Jd={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Xd(e,t){if(Cd(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=gd(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=xd(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Jd.FLIP:a=[r,i];break;case Jd.CLOCKWISE:a=Kd(r);break;case Jd.COUNTERCLOCKWISE:a=Kd(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=xd(r);var l=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(c.left)||"right"===r&&d(l.left)<d(c.right)||"top"===r&&d(l.bottom)>d(c.top)||"bottom"===r&&d(l.top)<d(c.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),g=d(l.bottom)>d(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,_=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(_&&"start"===o&&h||_&&"end"===o&&p||!_&&"start"===o&&m||!_&&"end"===o&&g),y=!!t.flipVariationsByContent&&(_&&"start"===o&&p||_&&"end"===o&&h||!_&&"start"===o&&g||!_&&"end"===o&&m),x=b||y;(f||v||x)&&(e.flipped=!0,(f||v)&&(r=a[u+1]),x&&(o=Wd(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=ld({},e.offsets.popper,wd(e.instance.popper,e.offsets.reference,e.placement)),e=Sd(e.instance.modifiers,e,"flip"))})),e}function Qd(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}function Zd(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var u=cd(s);return u[t]/100*o}if("vh"===a||"vw"===a){var l=void 0;return l="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}return o}function ef(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(kd(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return Zd(e,i,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){Yd(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}function tf(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=Yd(+n)?[+n,0]:ef(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e}function nf(e,t){var n=t.boundariesElement||Xc(e.instance.popper);e.instance.reference===n&&(n=Xc(n));var r=Td("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=gd(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),ud({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),ud({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=ld({},c,d[t](e))})),e.offsets.popper=c,e}function rf(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:ud({},u,o[u]),end:ud({},u,o[u]+o[l]-a[l])};e.offsets.popper=ld({},a,c[r])}return e}function of(e){if(!$d(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=kd(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function af(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=xd(t),e.offsets.popper=cd(i),e}var sf={shift:{order:100,enabled:!0,fn:rf},offset:{order:200,enabled:!0,fn:tf,offset:0},preventOverflow:{order:300,enabled:!0,fn:nf,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Qd},arrow:{order:500,enabled:!0,fn:Ud,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Xd,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:af},hide:{order:800,enabled:!0,fn:of},computeStyle:{order:850,enabled:!0,fn:Vd,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Hd,onLoad:zd,gpuAcceleration:void 0}},uf={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:sf},lf=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ad(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Bc(this.update.bind(this)),this.options=ld({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ld({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=ld({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return ld({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Vc(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return sd(e,[{key:"update",value:function(){return Ld.call(this)}},{key:"destroy",value:function(){return Dd.call(this)}},{key:"enableEventListeners",value:function(){return Pd.call(this)}},{key:"disableEventListeners",value:function(){return Id.call(this)}}]),e}();lf.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,lf.placements=qd,lf.Defaults=uf;var cf,df=lf,ff=n(8446),hf=n.n(ff);function pf(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}function mf(){mf.init||(mf.init=!0,cf=-1!==pf())}var gf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;mf(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",cf&&this.$el.appendChild(t),t.data="about:blank",cf||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!cf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function vf(e,t,n,r,i,o,a,s,u,l){"boolean"!==typeof a&&(u=s,s=a,a=!1);var c,d="function"===typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(d.functional){var f=d.render;d.render=function(e,t){return c.call(t),f(e,t)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return n}var _f=gf,bf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},yf=[];bf._withStripped=!0;var xf=void 0,wf="data-v-8859cc6c",kf=void 0,Mf=!1,Sf=vf({render:bf,staticRenderFns:yf},xf,_f,wf,Mf,kf,!1,void 0,void 0,void 0);function Lf(e){e.component("resize-observer",Sf),e.component("ResizeObserver",Sf)}var Cf={version:"1.0.1",install:Lf},Tf=null;"undefined"!==typeof window?Tf=window.Vue:"undefined"!==typeof n.g&&(Tf=n.g.Vue),Tf&&Tf.use(Cf);var Df=n(3857),Of=n.n(Df),Ef=function(){};function Af(e){return"string"===typeof e&&(e=e.split(" ")),e}function Pf(e,t){var n,r=Af(t);n=e.className instanceof Ef?Af(e.className.baseVal):Af(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function Ff(e,t){var n,r=Af(t);n=e.className instanceof Ef?Af(e.className.baseVal):Af(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!==typeof window&&(Ef=window.SVGAnimatedString);var If=!1;if("undefined"!==typeof window){If=!1;try{var Yf=Object.defineProperty({},"passive",{get:function(){If=!0}});window.addEventListener("test",null,Yf)}catch(LT){}}function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hf={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},zf=[],jf=function(){function e(t,n){var r=this;Fc(this,e),Pc(this,"_events",[]),Pc(this,"_setTooltipNodeEvent",(function(e,t,n,i){var o=e.relatedreference||e.toElement||e.relatedTarget,a=function n(o){var a=o.relatedreference||o.toElement||o.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(a)||r._scheduleHide(t,i.delay,i,o)};return!!r._tooltipNode.contains(o)&&(r._tooltipNode.addEventListener(e.type,a),!0)})),n=Nf(Nf({},Hf),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}return Yc(e,[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||Zf.options.defaultClass;hf()(this._classes,n)||(this.setClasses(n),t=!0),e=qf(e);var r=!1,i=!1;for(var o in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(i=!0),e)this.options[o]=e[o];if(this._tooltipNode)if(i){var a=this._isOpen;this.dispose(),this._init(),a&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"===typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var i=r.childNodes[0];return i.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),i.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(i.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),i.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),i}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,i){var o=t.html,a=n._tooltipNode;if(a){var s=a.querySelector(n.options.innerSelector);if(1===e.nodeType){if(o){while(s.firstChild)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"===typeof e){var u=e();return void(u&&"function"===typeof u.then?(n.asyncContent=!0,t.loadingClass&&Pf(a,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),u.then((function(e){return t.loadingClass&&Ff(a,t.loadingClass),n._applyContent(e,t)})).then(r).catch(i)):n._applyContent(u,t).then(r).catch(i))}o?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(t&&"string"===typeof t.container){var n=document.querySelector(t.container);if(!n)return}clearTimeout(this._disposeTimer),t=Object.assign({},t),delete t.offset;var r=!0;this._tooltipNode&&(Pf(this._tooltipNode,this._classes),r=!1);var i=this._ensureShown(e,t);return r&&this._tooltipNode&&Pf(this._tooltipNode,this._classes),Pf(e,["v-tooltip-open"]),i}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,zf.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var i=this._create(e,t.template);this._tooltipNode=i,e.setAttribute("aria-describedby",i.id);var o=this._findContainer(t.container,e);this._append(i,o);var a=Nf(Nf({},t.popperOptions),{},{placement:t.placement});return a.modifiers=Nf(Nf({},a.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(a.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new df(e,i,a),this._setContent(r,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=zf.indexOf(this);-1!==e&&zf.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=Zf.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),Ff(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"===typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,i=[],o=[];t.forEach((function(e){switch(e){case"hover":i.push("mouseenter"),o.push("mouseleave"),r.options.hideOnTargetClick&&o.push("click");break;case"focus":i.push("focus"),o.push("blur"),r.options.hideOnTargetClick&&o.push("click");break;case"click":i.push("click"),o.push("click");break}})),i.forEach((function(t){var i=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:i}),e.addEventListener(t,i)})),o.forEach((function(t){var i=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:i}),e.addEventListener(t,i)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,i=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),i)}},{key:"_scheduleHide",value:function(e,t,n,r){var i=this,o=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==i._isOpen&&i._tooltipNode.ownerDocument.body.contains(i._tooltipNode)){if("mouseleave"===r.type){var o=i._setTooltipNodeEvent(r,e,t,n);if(o)return}i._hide(e,n)}}),o)}}]),e}();function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}"undefined"!==typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<zf.length;t++)zf[t]._onDocumentTouch(e)}),!If||{passive:!0,capture:!0});var $f={enabled:!0},Uf=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Wf={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function qf(e){var t={placement:"undefined"!==typeof e.placement?e.placement:Zf.options.defaultPlacement,delay:"undefined"!==typeof e.delay?e.delay:Zf.options.defaultDelay,html:"undefined"!==typeof e.html?e.html:Zf.options.defaultHtml,template:"undefined"!==typeof e.template?e.template:Zf.options.defaultTemplate,arrowSelector:"undefined"!==typeof e.arrowSelector?e.arrowSelector:Zf.options.defaultArrowSelector,innerSelector:"undefined"!==typeof e.innerSelector?e.innerSelector:Zf.options.defaultInnerSelector,trigger:"undefined"!==typeof e.trigger?e.trigger:Zf.options.defaultTrigger,offset:"undefined"!==typeof e.offset?e.offset:Zf.options.defaultOffset,container:"undefined"!==typeof e.container?e.container:Zf.options.defaultContainer,boundariesElement:"undefined"!==typeof e.boundariesElement?e.boundariesElement:Zf.options.defaultBoundariesElement,autoHide:"undefined"!==typeof e.autoHide?e.autoHide:Zf.options.autoHide,hideOnTargetClick:"undefined"!==typeof e.hideOnTargetClick?e.hideOnTargetClick:Zf.options.defaultHideOnTargetClick,loadingClass:"undefined"!==typeof e.loadingClass?e.loadingClass:Zf.options.defaultLoadingClass,loadingContent:"undefined"!==typeof e.loadingContent?e.loadingContent:Zf.options.defaultLoadingContent,popperOptions:Vf({},"undefined"!==typeof e.popperOptions?e.popperOptions:Zf.options.defaultPopperOptions)};if(t.offset){var n=Oc(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Gf(e,t){for(var n=e.placement,r=0;r<Uf.length;r++){var i=Uf[r];t[i]&&(n=i)}return n}function Kf(e){var t=Oc(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function Jf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kf(t),i="undefined"!==typeof t.classes?t.classes:Zf.options.defaultClass,o=Vf({title:r},qf(Vf(Vf({},"object"===Oc(t)?t:{}),{},{placement:Gf(t,n)}))),a=e._tooltip=new jf(e,o);a.setClasses(i),a._vueEl=e;var s="undefined"!==typeof t.targetClasses?t.targetClasses:Zf.options.defaultTargetClass;return e._tooltipTargetClasses=s,Pf(e,s),a}function Xf(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(Ff(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function Qf(e,t){var n=t.value;t.oldValue;var r,i=t.modifiers,o=Kf(n);o&&$f.enabled?(e._tooltip?(r=e._tooltip,r.setContent(o),r.setOptions(Vf(Vf({},n),{},{placement:Gf(n,i)}))):r=Jf(e,n,i),"undefined"!==typeof n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?r.show():r.hide())):Xf(e)}var Zf={options:Wf,bind:Qf,update:Qf,unbind:function(e){Xf(e)}};function eh(e){e.addEventListener("click",nh),e.addEventListener("touchstart",rh,!!If&&{passive:!0})}function th(e){e.removeEventListener("click",nh),e.removeEventListener("touchstart",rh),e.removeEventListener("touchend",ih),e.removeEventListener("touchcancel",oh)}function nh(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function rh(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",ih),t.addEventListener("touchcancel",oh)}}function ih(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function oh(e){var t=e.currentTarget;t.$_vclosepopover_touch=!1}var ah={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,("undefined"===typeof n||n)&&eh(e)},update:function(e,t){var n=t.value,r=t.oldValue,i=t.modifiers;e.$_closePopoverModifiers=i,n!==r&&("undefined"===typeof n||n?eh(e):th(e))},unbind:function(e){th(e)}};function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sh(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lh(e){var t=Zf.options.popover[e];return"undefined"===typeof t?Zf.options[e]:t}var ch=!1;"undefined"!==typeof window&&"undefined"!==typeof navigator&&(ch=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var dh=[],fh=function(){};"undefined"!==typeof window&&(fh=window.Element);var hh={name:"VPopover",components:{ResizeObserver:Sf},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return lh("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return lh("defaultDelay")}},offset:{type:[String,Number],default:function(){return lh("defaultOffset")}},trigger:{type:String,default:function(){return lh("defaultTrigger")}},container:{type:[String,Object,fh,Boolean],default:function(){return lh("defaultContainer")}},boundariesElement:{type:[String,fh],default:function(){return lh("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return lh("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return lh("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return Zf.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return Zf.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return Zf.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return Zf.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return Zf.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return Zf.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return Zf.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return Pc({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event;t.skipDelay;var r=t.force,i=void 0!==r&&r;!i&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var i=uh(uh({},this.popperOptions),{},{placement:this.placement});if(i.modifiers=uh(uh({},i.modifiers),{},{arrow:uh(uh({},i.modifiers&&i.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var o=this.$_getOffset();i.modifiers.offset=uh(uh({},i.modifiers&&i.modifiers.offset),{},{offset:o})}this.boundariesElement&&(i.modifiers.preventOverflow=uh(uh({},i.modifiers&&i.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new df(t,n,i),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var a=this.openGroup;if(a)for(var s,u=0;u<dh.length;u++)s=dh[u],s.openGroup!==a&&(s.hide(),s.$emit("close-group"));dh.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=dh.indexOf(this);-1!==t&&dh.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=Zf.options.popover.disposeTimeout||Zf.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"===typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=Oc(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[],i="string"===typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[];i.forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click");break}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type){var n=e.$_setTooltipNodeEvent(t);if(n)return}e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,i=e.relatedreference||e.toElement||e.relatedTarget,o=function i(o){var a=o.relatedreference||o.toElement||o.relatedTarget;r.removeEventListener(e.type,i),n.contains(a)||t.hide({event:o})};return!!r.contains(i)&&(r.addEventListener(e.type,o),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function ph(e){gh(e)}function mh(e){gh(e,!0)}function gh(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=dh[n];if(r.$refs.popover){var i=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&i||r.autoHide&&!i)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<dh.length;r++)n(r)}function vh(e,t,n,r,i,o,a,s,u,l){"boolean"!==typeof a&&(u=s,s=a,a=!1);const c="function"===typeof n?n.options:n;let d;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),r&&(c._scopeId=r),o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=d):t&&(d=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(c.functional){const e=c.render;c.render=function(t,n){return d.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!==typeof document&&"undefined"!==typeof window&&(ch?document.addEventListener("touchend",mh,!If||{passive:!0,capture:!0}):window.addEventListener("click",ph,!0));var _h=hh,bh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.isOpen?e.popoverId:void 0,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover",null,{isOpen:e.isOpen})],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])},yh=[];bh._withStripped=!0;var xh=void 0,wh=void 0,kh=void 0,Mh=!1,Sh=vh({render:bh,staticRenderFns:yh},xh,_h,wh,Mh,kh,!1,void 0,void 0,void 0);function Lh(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Ch=".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}";function Th(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Th.installed){Th.installed=!0;var n={};Of()(n,Wf,t),Dh.options=n,Zf.options=n,e.directive("tooltip",Zf),e.directive("close-popover",ah),e.component("VPopover",Sh)}}Lh(Ch);var Dh={install:Th,get enabled(){return $f.enabled},set enabled(e){$f.enabled=e}},Oh=null;"undefined"!==typeof window?Oh=window.Vue:"undefined"!==typeof n.g&&(Oh=n.g.Vue),Oh&&Oh.use(Dh);var Eh=Dh,Ah=n(3081),Ph=n.n(Ah),Fh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"modal__panel modal__panel--dialog"},[t("span",{attrs:{tabindex:"0"},on:{focus:function(t){return e.setFocusIn(e.$refs.keyboardTrap,!0)}}}),t("div",{ref:"keyboardTrap",staticClass:"modal__keyboardTrap",attrs:{tabindex:"0"}},[t("div",{staticClass:"modal__header"},[e.title?t("h2",{staticClass:"modal__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("button",{staticClass:"modal__closeButton",on:{click:function(t){return e.$modal.hide(e.name)}}},[t("span",{attrs:{"aria-hidden":!0}},[e._v("×")]),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.closeLabel||e.__("common.close"))+" ")])])]),t("div",{staticClass:"modal__content"},[t("div",{domProps:{innerHTML:e._s(e.message)}})]),t("div",{staticClass:"modal__footer"},[e.isLoading?t("spinner"):e._e(),e._l(e.actions,(function(n){return t("pkp-button",{key:n.label,attrs:{element:n.element||"button",href:n.href||null,isPrimary:n.isPrimary||null,isWarnable:n.isWarnable||null,isDisabled:e.isLoading},on:{click:function(t){n.callback&&e.fireCallback(n.callback)}}},[e._v(" "+e._s(n.label)+" ")])}))],2)]),t("span",{attrs:{tabindex:"0"},on:{focus:function(t){return e.setFocusIn(e.$refs.keyboardTrap)}}})])},Ih=[],Yh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"modal"},[t("modal",e._b({attrs:{name:e.name},on:{opened:function(t){return e.setFocusToRef("keyboardTrap")},closed:e=>this.$emit("closed",e)}},"modal",e.MODAL_PROPS,!1),[t("div",{staticClass:"modal__panel"},[t("span",{attrs:{tabindex:"0"},on:{focus:function(t){return e.setFocusIn(e.$refs.keyboardTrap,!0)}}}),t("div",{ref:"keyboardTrap",staticClass:"modal__keyboardTrap",attrs:{tabindex:"0"}},[t("div",{staticClass:"modal__header"},[e.title?t("h2",{staticClass:"modal__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("button",{staticClass:"modal__closeButton",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.$modal.hide(e.name)}}},[t("span",{attrs:{"aria-hidden":!0}},[e._v("×")]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.closeLabel))])])]),t("div",{staticClass:"modal__content"},[e._t("default")],2),e.$slots.footer?t("div",{staticClass:"modal__footer"},[e._t("footer")],2):e._e()]),t("span",{attrs:{tabindex:"0"},on:{focus:function(t){return e.setFocusIn(e.$refs.keyboardTrap)}}})])])],1)},Rh=[],Nh={props:{closeLabel:{type:String,required:!0},name:{type:String,reqired:!0},title:{type:String,default(){return""}}},data(){return{MODAL_PROPS:{height:"auto",scrollable:!0}}}},Hh=Nh;function zh(e,t,n,r,i,o,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:l}}var jh=zh(Hh,Yh,Rh,!1,null,null,null),Bh=jh.exports,Vh={extends:Bh,props:{actions:{type:Array,required:!0},close:{type:Function,default(){return()=>{}}},closeLabel:{type:String},message:{type:String,required:!0},title:{type:String,default(){return""}}},data(){return{isLoading:!1}},methods:{fireCallback(e){this.isLoading=!0,"function"===typeof e&&e()}},mounted(){this.setFocusToRef("keyboardTrap")},destroyed(){"function"===typeof this.close&&this.close()}},$h=Vh,Uh=zh($h,Fh,Ih,!1,null,null,null),Wh=Uh.exports,qh={methods:{openDialog(e,t,n){const r=document.activeElement;t=t||{},n=n||{},this.$modal.show(Wh,{...e,close:()=>{r&&r.focus(),e.close&&e.close()}},{height:"auto",scrollable:!1,classes:"v--modal v--modal-dialog",...t,name:e.name},n)}}},Gh={methods:{getMomentLocale(e){const t={"sr_RS@latin":"sr","sr_RS@cyrillic":"sr-cyrl","uz_UZ@latin":"uz-latn"};return t[e]??e}}},Kh=function(){var e=this,t=e._self._c;return e.isButton?t("button",{staticClass:"pkpBadge pkpBadge--button",class:e.classes,on:{click:e.click}},[e._t("default"),e.label?t("span",{staticClass:"-screenReader"},[e._v(e._s(e.label))]):e._e()],2):t("span",{staticClass:"pkpBadge",class:e.classes},[e._t("default"),e.label?t("span",{staticClass:"-screenReader"},[e._v(e._s(e.label))]):e._e()],2)},Jh=[],Xh=(n(7658),{name:"Badge",props:["label","isPrimary","isSuccess","isWarnable","isButton","hasDot","stage"],computed:{classes(){let e=[];return this.isPrimary&&e.push("pkpBadge--isPrimary"),this.isSuccess&&e.push("pkpBadge--isSuccess"),this.isWarnable&&e.push("pkpBadge--isWarnable"),(this.hasDot||this.stage)&&e.push("pkpBadge--dot"),this.stage&&e.push("pkpBadge--"+this.stage),e}},methods:{click(){this.$emit("click")}}}),Qh=Xh,Zh=zh(Qh,Kh,Jh,!1,null,null,null),ep=Zh.exports,tp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpDropdown"},[t("pkp-button",{ref:"button",attrs:{isActive:e.isActive,isLink:e.isLink,isPrimary:e.isPrimary,isWarnable:e.isWarnable,"aria-describedby":e.ariaDescribedBy,"aria-controls":e.id,"aria-expanded":e.isOpen},on:{click:e.toggle,blur:e.closeOnBlur}},[e._t("button",(function(){return[e.icon?t("icon",{attrs:{icon:e.icon,inline:!0}}):e._e(),e._v(" "+e._s(e.label)+" ")]}))],2),e.isOpen?t("div",{staticClass:"pkpDropdown__content",attrs:{id:e.id},on:{click:e.preserveFocus}},[e._t("default")],2):e._e(),e.isOpen?t("span",{staticClass:"pkpDropdown__caret"}):e._e()],1)},np=[],rp={props:{ariaDescribedBy:{type:String,default:""},icon:{type:String,default:""},label:{type:String,default:""},isActive:{type:Boolean,default:!1},isLink:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1},isWarnable:{type:Boolean,default:!1}},data(){return{isOpen:!1}},computed:{id(){return this._uid}},methods:{preserveFocus(e){document.activeElement===document.body&&this.$refs.button.$el.focus()},toggle(){this.isOpen=!this.isOpen},closeOnBlur(){setTimeout((()=>{if(this.$el.contains(document.activeElement))var e=setInterval((()=>{this.$el.contains(document.activeElement)||(this.isOpen=!1,window.clearInterval(e))}),1e3);else this.isOpen=!1}),100)}}},ip=rp,op=zh(ip,tp,np,!1,null,null,null),ap=op.exports,sp=function(){var e=this,t=e._self._c;return"orcid"===e.icon?t("svg",{staticClass:"pkpIcon--orcid",class:e.classes,attrs:{viewBox:"0 0 256 256","aria-hidden":"true"}},[t("path",{staticClass:"pkpIcon--orcid__bg",attrs:{d:"M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z"}}),t("g",[t("path",{staticClass:"pkpIcon--orcid__fill",attrs:{d:"M86.3,186.2H70.9V79.1h15.4v48.4V186.2z"}}),t("path",{staticClass:"pkpIcon--orcid__fill",attrs:{d:"M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5\n\t\t\tc34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z"}}),t("path",{staticClass:"pkpIcon--orcid__fill",attrs:{d:"M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1\n\t\t\tC84.2,46.7,88.7,51.3,88.7,56.8z"}})])]):t("span",{staticClass:"fa",class:e.classes,attrs:{"aria-hidden":"true"}})},up=[],lp={name:"Icon",props:{icon:String,inline:Boolean},computed:{classes(){let e=[];return"orcid"!==this.icon&&e.push("fa-"+this.icon),this.inline&&e.push("pkpIcon--inline"),e}}},cp=lp,dp=zh(cp,sp,up,!1,null,null,null),fp=dp.exports,hp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpNotification",class:e.classes},[e._t("default"),e.canDismiss?t("button",{staticClass:"pkpNotification__closeButton",on:{click:function(t){return e.$emit("dismiss")}}},[t("span",{attrs:{"aria-hidden":!0}},[e._v("×")]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.close")))])]):e._e()],2)},pp=[],mp={props:{canDismiss:{type:Boolean,default(){return!1}},type:{type:String,default(){return""}}},computed:{classes(){let e=[];return this.type&&e.push("pkpNotification--"+this.type),this.canDismiss&&e.push("pkpNotification--canDismiss"),e}}},gp=mp,vp=zh(gp,hp,pp,!1,null,null,null),_p=vp.exports,bp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"panel",class:e.stack?"panel--stack":"panel--wide"},[e._t("default")],2)},yp=[],xp={name:"Panel",props:{stack:{type:Boolean,default(){return!1}}}},wp=xp,kp=zh(wp,bp,yp,!1,null,null,null),Mp=kp.exports,Sp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"panelSection"},[e.$slots.header?t("div",{staticClass:"panelSection__header"},[e._t("header")],2):e._e(),t("div",{staticClass:"panelSection__content"},[e._t("default")],2)])},Lp=[],Cp={name:"PanelSection"},Tp=Cp,Dp=zh(Tp,Sp,Lp,!1,null,null,null),Op=Dp.exports,Ep=function(){var e=this,t=e._self._c;return t(e.element,{tag:"component",staticClass:"pkpButton",class:e.classes,attrs:{href:"a"===e.element&&e.href,disabled:e.isDisabled},on:{click:e.click,focus:function(t){return e.$emit("focus")},blur:function(t){return e.$emit("blur")}}},[e._t("default")],2)},Ap=[],Pp={name:"pkpButton",props:{element:{type:String,default:"button"},href:String,isPrimary:Boolean,isWarnable:Boolean,isActive:Boolean,isLink:Boolean,isDisabled:Boolean},computed:{classes(){let e=[];return this.isPrimary&&e.push("pkpButton--isPrimary"),this.isWarnable&&e.push("pkpButton--isWarnable"),this.isActive&&e.push("pkpButton--isActive"),this.isLink&&e.push("pkpButton--isLink"),e}},methods:{click(e){"button"===this.element&&e.preventDefault(),this.$emit("click")}}},Fp=Pp,Ip=zh(Fp,Ep,Ap,!1,null,null,null),Yp=Ip.exports,Rp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpHeader",class:{"-isOneLine":e.isOneLine,"-pkpClearfix":!e.isOneLine}},[t("span",{staticClass:"pkpHeader__title"},[e._t("default")],2),e.hasActions?t("div",{staticClass:"pkpHeader__actions"},[e._t("actions")],2):e._e()])},Np=[],Hp={props:{isOneLine:{type:Boolean,default:!0}},computed:{hasActions(){return this.$slots.actions}}},zp=Hp,jp=zh(zp,Rp,Np,!1,null,null,null),Bp=jp.exports,Vp=function(){var e=this,t=e._self._c;return t("span",{staticClass:"pkpSpinner",attrs:{"aria-hidden":"true"}})},$p=[],Up={},Wp=zh(Up,Vp,$p,!1,null,null,null),qp=Wp.exports,Gp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpStep",attrs:{hidden:!e.isActive}},[e._t("default")],2)},Kp=[],Jp={props:{id:{type:String,required:!0},label:{type:String,default(){return""}}},data(){return{isActive:!1}}},Xp=Jp,Qp=zh(Xp,Gp,Kp,!1,null,null,null),Zp=Qp.exports,em=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpSteps",class:{"pkpSteps--collapsed":e.collapsed}},[t("div",{ref:"buttons",staticClass:"pkpSteps__buttonWrapper",class:{"-screenReader":1===e.steps.length}},[t("span",{staticClass:"pkpSteps__line",attrs:{"aria-hidden":"true"}}),t("span",{ref:"line",staticClass:"pkpSteps__line pkpSteps__line__started",attrs:{"aria-hidden":"true"}}),t("ol",{staticClass:"pkpSteps__buttons",attrs:{"aria-label":e.label}},e._l(e.steps,(function(n,r){return t("li",{key:n.id,staticClass:"pkpSteps__step",class:{"-screenReader":e.collapsed&&!e.stepsVisible&&e.current!==n.id}},[e.startedSteps.includes(n.id)?[t("button",{ref:"button"+n.id,refInFor:!0,staticClass:"pkpSteps__step__label",class:e.current===n.id?"pkpSteps__step__label--current":e.completedSteps.includes(n.id)?"pkpSteps__step__label--completed":"",on:{click:function(t){return e.setCurrent(n.id)}}},[t("span",{staticClass:"pkpSteps__step__number"},[e.current!==n.id&&e.completedSteps.includes(n.id)?[t("icon",{attrs:{icon:"check"}})]:[e._v(" "+e._s(r+1)+" ")]],2),e._v(" "+e._s(n.label)+" ")])]:[t("span",{ref:"button"+n.id,refInFor:!0,staticClass:"pkpSteps__step__label"},[t("span",{staticClass:"pkpSteps__step__number"},[e._v(e._s(r+1))]),e._v(" "+e._s(n.label)+" ")])]],2)})),0),e.collapsed?t("div",{staticClass:"pkpSteps__controls",attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"pkpSteps__progress"},[e._v(" "+e._s(e.progress)+" ")]),t("pkp-button",{on:{click:()=>e.stepsVisible=!e.stepsVisible}},[t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.showStepsLabel)+" ")]),t("icon",{attrs:{icon:e.stepsVisible?"chevron-up":"chevron-down"}})],1)],1):e._e()]),e._t("default")],2)},tm=[],nm=n(296),rm=n.n(nm),im=n(7709),om=n.n(im),am={props:{current:{type:String,required:!0},startedSteps:{type:Array,required:!0},label:{type:String,required:!0},progressLabel:{type:String,required:!0},scrollTo:{type:HTMLElement,default(){return null}},showStepsLabel:{type:String,required:!0}},data(){return{collapsed:!1,steps:[],stepsVisible:!1}},computed:{completedSteps(){return this.startedSteps.slice(0,-1)},progress(){return this.progressLabel.replace("{$current}",1+this.steps.findIndex((e=>e.id===this.current))).replace("{$total}",this.steps.length)}},methods:{maybeToggleCollapsedView(){const e=this.$refs.buttons.offsetWidth,t=this.$refs.buttons.querySelectorAll("li"),n=Array.prototype.slice.call(t).reduce(((e,t)=>e+t.offsetWidth),0);this.collapsed=n>e},setChildStepsIsActive(e){this.steps.forEach((t=>t.isActive=t.id===e))},setCurrent(e){this.$emit("step:open",e)},setStartedLine(){if(this.startedSteps.length<2)return void(this.$refs.line.style.right="auto");const e=this.steps.reduce(((e,t)=>this.startedSteps.includes(t.id)?t:e),this.startedSteps[0]),t=this.$refs.buttons.offsetWidth-this.$refs["button"+e.id][0].offsetLeft;this.$refs.line.style.right=t+"px"}},watch:{collapsed(e,t){e!==t&&e&&(this.stepsVisible=!1)},current(e,t){this.setChildStepsIsActive(e),this.$nextTick((()=>{this.setStartedLine(),this.setFocusIn(this.$el.querySelector(".pkpStep:not([hidden])")),this.scrollTo&&this.$scrollTo(this.scrollTo,500,{offset:-50})}))}},mounted(){this.steps=this.$children.filter((e=>"step"===e.$options._componentTag)),this.setChildStepsIsActive(this.current),this.maybeToggleCollapsedView(),om()(this.$el,rm()(this.maybeToggleCollapsedView,100)),this.$nextTick((()=>this.setStartedLine()))}},sm=am,um=zh(sm,em,tm,!1,null,null,null),lm=um.exports,cm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpTab",class:e.classes,attrs:{role:"tabpanel",id:e.id,"aria-labelledby":e.id+"-button",hidden:!e.isActive}},[e._t("default")],2)},dm=[],fm={props:{icon:{type:String,default(){return""}},id:{type:String,required:!0},label:{type:String,default(){return""}},badge:{type:[String,Number],default(){return""}}},data(){return{isActive:!1}},computed:{classes(){let e=[];return this.isActive&&e.push("pkpTab--isActive"),this.isDisabled&&e.push("pkpTab--isDisabled"),e}}},hm=fm,pm=zh(hm,cm,dm,!1,null,null,null),mm=pm.exports,gm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpTabs",class:{"pkpTabs--side":e.isSideTabs}},[t("div",{staticClass:"pkpTabs__buttons",attrs:{role:"tablist","aria-label":e.label}},e._l(e.tabs,(function(n){return t("button",{key:n.id,ref:"button"+n.id,refInFor:!0,staticClass:"pkpTabs__button",attrs:{"aria-selected":e.currentTab===n.id,"aria-controls":n.id,id:n.id+"-button",role:"tab",tabindex:e.currentTab===n.id?"":-1},on:{click:function(t){return e.setCurrentTab(n.id)},keydown:[function(t){return t.type.indexOf("key")||35===t.keyCode?(t.preventDefault(),e.setLastTab.apply(null,arguments)):null},function(t){return t.type.indexOf("key")||36===t.keyCode?(t.preventDefault(),e.setFirstTab.apply(null,arguments)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.setPreviousTab.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.setNextTab.apply(null,arguments))}]}},[n.icon?[t("icon",{attrs:{icon:n.icon}}),t("span",{staticClass:"-screenReader"},[e._v(e._s(n.label))])]:[e._v(" "+e._s(n.label)+" ")],n.badge?[t("badge",[e._v(e._s(n.badge))])]:e._e()],2)})),0),e._t("default")],2)},vm=[],_m={props:{defaultTab:{type:String,default(){return""}},isSideTabs:{type:Boolean,default(){return!1}},label:{type:String,default(){return""}},trackHistory:{type:Boolean,default(){return!1}}},data(){return{currentTab:"",tabs:[]}},methods:{setCurrentTab(e){this.currentTab=e,this.$nextTick((()=>{$(this.$refs["button"+e]).focus(),this.updateUrl()}))},setFirstTab(){this.setCurrentTab(this.tabs[0].id)},setLastTab(){this.setCurrentTab(this.tabs[this.tabs.length-1].id)},setNextTab(){const e=this.tabs.findIndex((e=>e.id===this.currentTab)),t=this.tabs[e+1]||this.tabs[0];this.setCurrentTab(t.id)},setPreviousTab(){const e=this.tabs.findIndex((e=>e.id===this.currentTab)),t=this.tabs[e-1]||this.tabs[this.tabs.length-1];this.setCurrentTab(t.id)},updateUrl:rm()((function(){if(this.trackHistory){const e="Tab"===this.$parent.$options.name?"#"+this.$parent.id+"/"+this.currentTab:"#"+this.currentTab;if(e!==window.location.hash){const t=this.tabs.find((e=>e.id===this.currentTab));window.history.pushState({},t.label,e)}}}),100)},watch:{currentTab(e,t){this.tabs.forEach((t=>t.isActive=t.id===e))}},mounted(){this.tabs=this.$children.filter((e=>"tab"===e.$options._componentTag)),this.currentTab=this.defaultTab||this.tabs[0].id,pkp.eventBus.$on("open-tab",(e=>{this.tabs.forEach((t=>{t.id===e&&this.setCurrentTab(e)}))}))},destroyed(){pkp.eventBus.$off("open-tab")}},bm=_m,ym=zh(bm,gm,vm,!1,null,null,null),xm=ym.exports,wm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"actionPanel"},[t("div",{staticClass:"actionPanel__text"},[e._t("default")],2),t("div",{staticClass:"actionPanel__actions"},[e._t("actions")],2)])},km=[],Mm={},Sm=zh(Mm,wm,km,!1,null,null,null),Lm=Sm.exports,Cm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"buttonRow"},[e.hasEndSlot?t("div",{staticClass:"buttonRow__end"},[e._t("end")],2):e._e(),e._t("default")],2)},Tm=[],Dm={computed:{hasEndSlot(){return this.$slots.end}}},Om=Dm,Em=zh(Om,Cm,Tm,!1,null,null,null),Am=Em.exports;function Pm(e,t){if(t){var n=this.$data._chart,r=e.datasets.map((function(e){return e.label})),i=t.datasets.map((function(e){return e.label})),o=JSON.stringify(i),a=JSON.stringify(r);a===o&&t.datasets.length===e.datasets.length?(e.datasets.forEach((function(e,r){var i=Object.keys(t.datasets[r]),o=Object.keys(e),a=i.filter((function(e){return"_meta"!==e&&-1===o.indexOf(e)}));for(var s in a.forEach((function(e){delete n.data.datasets[r][e]})),e)e.hasOwnProperty(s)&&(n.data.datasets[r][s]=e[s])})),e.hasOwnProperty("labels")&&(n.data.labels=e.labels,this.$emit("labels:update")),e.hasOwnProperty("xLabels")&&(n.data.xLabels=e.xLabels,this.$emit("xlabels:update")),e.hasOwnProperty("yLabels")&&(n.data.yLabels=e.yLabels,this.$emit("ylabels:update")),n.update(),this.$emit("chart:update")):(n&&(n.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render"))}else this.$data._chart&&(this.$data._chart.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render")}var Fm={data:function(){return{chartData:null}},watch:{chartData:Pm}},Im={props:{chartData:{type:Object,required:!0,default:function(){}}},watch:{chartData:Pm}},Ym={reactiveData:Fm,reactiveProp:Im},Rm=n(7757),Nm=n.n(Rm);function Hm(e,t){return{render:function(e){return e("div",{style:this.styles,class:this.cssClasses},[e("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:function(){return[]}}},data:function(){return{_chart:null,_plugins:this.plugins}},methods:{addPlugin:function(e){this.$data._plugins.push(e)},generateLegend:function(){if(this.$data._chart)return this.$data._chart.generateLegend()},renderChart:function(e,n){if(this.$data._chart&&this.$data._chart.destroy(),!this.$refs.canvas)throw new Error("Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");this.$data._chart=new(Nm())(this.$refs.canvas.getContext("2d"),{type:t,data:e,options:n,plugins:this.$data._plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}}Hm("bar-chart","bar"),Hm("horizontalbar-chart","horizontalBar");var zm,jm,Bm,Vm,$m,Um,Wm=Hm("doughnut-chart","doughnut"),qm=Hm("line-chart","line"),Gm=(Hm("pie-chart","pie"),Hm("polar-chart","polarArea"),Hm("radar-chart","radar"),Hm("bubble-chart","bubble"),Hm("scatter-chart","scatter"),{extends:Wm,mixins:[Ym.reactiveProp],props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:function(){return{}}}},computed:{options:function(){return{responsive:!0,maintainAspectRatio:!1,cutoutPercentage:80,layout:{padding:{top:32,bottom:32,left:32,right:32}},legend:{display:!1},elements:{arc:{borderWidth:0}},...this.chartOptions}}},mounted:function(){this.renderChart(this.chartData,this.options)}}),Km=Gm,Jm=zh(Km,zm,jm,!1,null,null,null),Xm=Jm.exports,Qm={extends:qm,mixins:[Ym.reactiveProp],props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default(){return{}}}},computed:{options(){return{responsive:!0,maintainAspectRatio:!1,layout:{padding:{top:32,bottom:8,left:32,right:64}},legend:{display:!1},elements:{point:{borderWidth:0,backgroundColor:"#D00A6C"},line:{tension:.2,borderWidth:2,borderColor:"#D00A6C",backgroundColor:"transparent"}},scales:{xAxes:[{gridLines:{color:"transparent",zeroLineColor:"transparent"},ticks:{fontColor:"rgba(255,255,255,0.85)",fontFamily:'"Noto Sans", "Noto Kufi Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif',fontStyle:700,padding:8,maxTicksLimit:5,maxRotation:0,minRotation:0}}],yAxes:[{gridLines:{color:"#006798",borderDash:[1,10],zeroLineColor:"#006798",drawBorder:!1},ticks:{fontColor:"rgba(255,255,255,0.85)"}}]},...this.chartOptions}}},mounted(){this.renderChart(this.chartData,this.options)}},Zm=Qm,eg=zh(Zm,Bm,Vm,!1,null,null,null),tg=eg.exports,ng=function(){var e=this,t=e._self._c;return t("panel",{staticClass:"composer"},[t("panel-section",[t("template",{slot:"header"},[e._t("description"),e.emailTemplates.length||e.emailTemplatesApiUrl?t("div",{staticClass:"composer__templates"},[t("div",{staticClass:"composer__templates__heading"},[e._v(" "+e._s(e.loadTemplateLabel)+" ")]),e.emailTemplatesApiUrl?t("search",{staticClass:"composer__templates__search",attrs:{searchLabel:e.findTemplateLabel,searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e=>this.searchPhrase=e}}):e._e(),t("ul",{staticClass:"composer__templates__list",attrs:{"aria-live":"true","aria-label":e.searchResultsLabel}},[e.searchPhrase?[e._l(e.limitedSearchResults,(function(n){return t("li",{key:n.key},[t("button",{staticClass:"composer__template",on:{click:function(t){return e.loadTemplate(n.key)}}},[t("div",{staticClass:"composer__template__name -linkButton"},[e._v(" "+e._s(e.localize(n.name))+" ")]),e.localize(n.body)?t("div",{staticClass:"composer__template__body"},[e._v(" "+e._s(e.getBodySnippet(e.localize(n.body)))+" ")]):e._e()])])})),e.searchResults.length>e.showSearchResultCount?t("li",[t("button",{staticClass:"-linkButton composer__templates__moreSearchResults",on:{click:function(t){e.showSearchResultCount=e.searchResults.length}}},[t("icon",{attrs:{icon:"plus-circle",inline:!0}}),e._v(" "+e._s(e.moreSearchResultsLabel.replace("{$number}",e.searchResults.length-e.showSearchResultCount))+" ")],1)]):e._e()]:e._l(e.emailTemplates,(function(n){return t("li",{key:n.key},[t("button",{staticClass:"composer__template",on:{click:function(t){return e.loadTemplate(n.key)}}},[t("div",{staticClass:"composer__template__name -linkButton"},[e._v(" "+e._s(e.localize(n.name))+" ")]),e.localize(n.body)?t("div",{staticClass:"composer__template__body"},[e._v(" "+e._s(e.getBodySnippet(e.localize(n.body)))+" ")]):e._e()])])}))],2),e.isSearching?t("div",{staticClass:"composer__templates__searching",attrs:{role:"alert"}},[t("spinner"),e._v(" "+e._s(e.searchingLabel)+" ")],1):e._e(),e.otherLocales.length?t("div",{staticClass:"composer__locales"},[e._v(" "+e._s(e.switchToLabel)+" "),e._l(e.otherLocales,(function(n,r){return[e.locale!==n.locale?t("button",{key:n.locale,staticClass:"-linkButton",on:{click:function(t){return e.openSwitchLocale(n.locale)}}},[e._v(" "+e._s(n.name)+" ")]):e._e(),r<e.otherLocales.length-1?[e._v(" "+e._s(e.__("common.commaListSeparator"))+" ")]:e._e()]}))],2):e._e()],1):e._e()],2),t("div",{staticClass:"composer__message"},[t("div",{staticClass:"composer__recipients__wrapper"},[t("field-autosuggest-preset",{staticClass:"composer__recipients",attrs:{name:"to",label:e.recipientsLabel,isLabelInline:!0,deselectLabel:e.deselectLabel,"all-errors":e.errors,groupId:"composer",formId:e.id,selectedLabel:e.recipientsLabel,options:e.localizedRecipientOptions,selected:e.recipientsSelected,value:e.recipients,"is-disabled":!e.canChangeRecipients},on:{change:e.changeRecipients}}),e.ccIsEnabled?e._e():t("button",{ref:"ccButtons",staticClass:"composer__ccToggle -linkButton",on:{click:e.enableCC}},[e._v(" "+e._s(e.addCCLabel)+" ")])],1),e.ccIsEnabled?t("div",{staticClass:"composer__text",class:{"composer__text--focus":"cc"===e.isFocused},on:{click:function(t){return e.setFocusToRef("cc")}}},[t("label",{attrs:{for:e.id+"-cc"}},[e._v(e._s(e.ccLabel))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.ccBinded,expression:"ccBinded"}],attrs:{type:"text",name:"cc",id:e.id+"-cc","aria-described-by":e.errors.cc?e.id+"-cc-error":"","aria-invalid":!!e.errors.cc},domProps:{value:e.ccBinded},on:{focus:()=>this.isFocused="cc",blur:()=>this.isFocused="",input:function(t){t.target.composing||(e.ccBinded=t.target.value)}}})]):e._e(),e.errors.cc?t("field-error",{attrs:{id:e.id+"-cc-error",messages:e.errors.cc}}):e._e(),e.ccIsEnabled?t("div",{staticClass:"composer__text",class:{"composer__text--focus":"bcc"===e.isFocused},on:{click:function(t){return e.setFocusToRef("bcc")}}},[t("label",{attrs:{for:e.id+"-bcc"}},[e._v(e._s(e.bccLabel))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.bccBinded,expression:"bccBinded"}],attrs:{type:"text",name:"bcc",id:e.id+"-bcc","aria-described-by":e.errors.bcc?e.id+"-bcc-error":"","aria-invalid":!!e.errors.bcc},domProps:{value:e.bccBinded},on:{focus:()=>this.isFocused="bcc",blur:()=>this.isFocused="",input:function(t){t.target.composing||(e.bccBinded=t.target.value)}}})]):e._e(),e.errors.bcc?t("field-error",{attrs:{id:e.id+"-bcc-error",messages:e.errors.bcc}}):e._e(),t("div",{staticClass:"composer__text",class:{"composer__text--focus":"subject"===e.isFocused},on:{click:function(t){return e.setFocusToRef("subject")}}},[t("label",{attrs:{for:e.id+"-subject"}},[e._v(e._s(e.subjectLabel))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.subjectBinded,expression:"subjectBinded"}],attrs:{type:"text",name:"subject",id:e.id+"-subject","aria-described-by":e.errors.subject?e.id+"-subject-error":"","aria-invalid":!!e.errors.subject},domProps:{value:e.subjectBinded},on:{focus:()=>this.isFocused="subject",blur:()=>this.isFocused="",input:function(t){t.target.composing||(e.subjectBinded=t.target.value)}}})]),e.errors.subject?t("field-error",{attrs:{id:e.id+"-subject-error",messages:e.errors.subject}}):e._e(),t("field-prepared-content",{staticClass:"composer__body",attrs:{name:"body",label:e.bodyLabel,groupId:"message",primaryLocale:"en","all-errors":e.errors,init:e.bodyInit,formId:e.id,plugins:"link",size:"large",toolbar:"bold italic superscript subscript | link",value:e.body,preparedContent:e.compiledVariables,insertLabel:e.insertLabel,insertModalLabel:e.insertModalLabel,preparedContentLabel:e.insertContentLabel,searchLabel:e.insertSearchLabel},on:{change:(e,t,n)=>this.emitChange({body:n})}},[e.attachments.length?t("div",{ref:"attachedFiles",staticClass:"composer__attachments",attrs:{slot:"footer"},slot:"footer"},[t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.attachedFilesLabel)+" ")]),e._l(e.attachments,(function(n,r){return t("badge",{key:r,staticClass:"composer__attachment"},[t("icon",{staticClass:"composer__attachment__documentType",attrs:{icon:e.getDocumentTypeIcon(n),inline:!0}}),e._v(" "+e._s(n.name)+" "),t("button",{staticClass:"composer__attachment__remove",on:{click:function(t){return e.removeAttachment(r)}}},[t("icon",{attrs:{icon:"times"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.removeItemLabel.replace("{$item}",n.name))+" ")])],1)],1)}))],2):e._e()]),t("modal",{attrs:{closeLabel:e.__("common.close"),name:e.fileAttacherModalId,title:e.attachFilesLabel},on:{closed:e.resetFocusAfterAttachment}},[t("file-attacher",{attrs:{attachers:e.attachers},on:{"attached:files":e.addAttachments}})],1),e.errors.attachments?t("field-error",{attrs:{id:e.id+"-attachments-error",messages:e.errors.attachments}}):e._e(),e.isLoadingTemplate?t("div",{staticClass:"composer__loadingTemplateMask",attrs:{role:"alert"}},[t("spinner"),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.loading")))])],1):e._e()],1)],2)],1)},rg=[],ig=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpAutosuggest",class:{"pkpAutosuggest--disabled":e.isDisabled,"pkpAutosuggest--inline":e.isLabelInline,"pkpAutosuggest--rtl":e.isRTL}},[t("div",{ref:"heading",staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control pkpAutosuggest__control"},[t("div",{ref:"values",staticClass:"pkpAutosuggest__inputWrapper pkpFormField__input",class:{"pkpAutosuggest__inputWrapper--multilingual":e.isMultilingual&&e.locales.length>1,"pkpAutosuggest__inputWrapper--focus":e.isFocused},attrs:{id:e.describedBySelectedId},on:{click:e.setFocusToInput}},[t("span",{staticClass:"-screenReader"},[e._v(e._s(e.selectedLabel))]),e.currentValue.length?e._l(e.currentSelected,(function(n){return t("pkp-badge",{key:n.value,staticClass:"pkpAutosuggest__selection"},[e._v(" "+e._s(n.label)+" "),e.isDisabled?e._e():t("button",{staticClass:"pkpAutosuggest__deselect",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deselect(n)}}},[t("icon",{attrs:{icon:"times"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.deselectLabel.replace("{$item}",n.label))+" ")])],1)])})):t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.none"))+" ")]),e.isDisabled?e._e():t("vue-autosuggest",e._b({ref:"autosuggest",staticClass:"pkpAutosuggest__autosuggester",on:{selected:e.selectSuggestion,focus:()=>e.isFocused=!0,blur:()=>e.isFocused=!1},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}},"vue-autosuggest",e.autosuggestOptions,!1))],2),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e(),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},og=[],ag=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFieldError",attrs:{"aria-live":"polite"}},e._l(e.messages,(function(n){return t("div",{key:n,staticClass:"pkpFieldError__message"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),t("span",{domProps:{innerHTML:e._s(n)}})],1)})),0)},sg=[],ug={name:"FieldError",props:{messages:Array}},lg=ug,cg=zh(lg,ag,sg,!1,null,null,null),dg=cg.exports,fg=function(){var e=this,t=e._self._c;return t("label",{staticClass:"pkpFormFieldLabel",attrs:{for:e.controlId}},[e.localeLabel?[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.localeLabel))]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.multilingualLabel))])]:[e._v(" "+e._s(e.label)+" ")],e.isRequired?t("span",{staticClass:"pkpFormFieldLabel__required"},[t("span",{staticClass:"aria-hidden"},[e._v("*")]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.requiredLabel))])]):e._e()],2)},hg=[],pg={name:"FormFieldLabel",props:{controlId:String,label:String,localeLabel:String,multilingualLabel:String,isRequired:{type:Boolean,default:!1},requiredLabel:String}},mg=pg,gg=zh(mg,fg,hg,!1,null,null,null),vg=gg.exports,_g=function(){var e=this,t=e._self._c;return t("button",{staticClass:"helpButton requestHelpPanel",attrs:{"data-topic":e.topic,"data-section":e.section},on:{click:function(e){e.preventDefault()}}},[t("icon",{attrs:{icon:"info-circle"}}),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.label))])],1)},bg=[],yg={name:"HelpButton",props:{topic:{type:String,required:!0},section:String,label:{type:String,required:!0}}},xg=yg,wg=zh(xg,_g,bg,!1,null,null,null),kg=wg.exports,Mg=function(){var e=this,t=e._self._c;return t("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.tooltip,expression:"tooltip"}],staticClass:"tooltipButton",on:{click:function(e){e.preventDefault()}}},[t("icon",{attrs:{icon:"question-circle"}}),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.label))])],1)},Sg=[],Lg={name:"Tooltip",props:{tooltip:{type:String,required:!0},label:{type:String,required:!0}}},Cg=Lg,Tg=zh(Cg,Mg,Sg,!1,null,null,null),Dg=Tg.exports,Og=function(){var e=this,t=e._self._c;return t("span",{staticClass:"multilingualProgress",class:e.classes},[t("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.tooltip,expression:"tooltip"}],attrs:{type:"button","aria-hidden":"true"},on:{click:function(e){e.preventDefault()}}},[t("icon",{attrs:{icon:"globe"}})],1),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.tooltip))])])},Eg=[],Ag={name:"MultilingualProgress",props:{count:{type:Number,required:!0},total:{type:Number,required:!0}},computed:{classes(){let e=[];return this.count===this.total?e.push("multilingualProgress--isComplete"):this.count?e.push("multilingualProgress--isIncomplete"):e.push("multilingualProgress--isEmpty"),e},tooltip(){return this.__("form.multilingualProgress",{count:this.count,total:this.total})}}},Pg=Ag,Fg=zh(Pg,Og,Eg,!1,null,null,null),Ig=Fg.exports,Yg={name:"FieldBase",components:{FieldError:dg,FormFieldLabel:vg,HelpButton:kg,Tooltip:Dg,MultilingualProgress:Ig},props:{name:String,component:String,label:String,description:String,tooltip:String,helpTopic:String,helpSection:String,groupId:String,formId:String,isMultilingual:Boolean,isRequired:Boolean,showWhen:[String,Array],primaryLocale:String,localeKey:String,locales:Array,value:{required:!0},allErrors:{type:Object,default(){return{}}}},computed:{currentValue:{get(){return this.isMultilingual?this.value[this.localeKey]:this.value},set:function(e){this.$emit("change",this.name,"value",e,this.localeKey)}},errors(){if(!Object.keys(this.allErrors).includes(this.name))return[];let e=this.allErrors[this.name];return this.isMultilingual&&Object.keys(e).includes(this.localeKey)?e[this.localeKey]:this.isMultilingual?[]:e},localizedName(){return this.isMultilingual?this.name+"-"+this.localeKey:this.name},controlId(){return this.compileId("control")},describedByTooltipId(){return this.compileId("tooltip")},describedByHelpId(){return this.compileId("help")},describedByDescriptionId(){return this.compileId("description")},describedByErrorId(){return this.compileId("error")},multilingualProgressId(){return this.compileId("multilingualProgress")},describedByIds(){let e=[];return this.description&&e.push(this.describedByDescriptionId),this.tooltip&&e.push(this.describedByTooltipId),this.helpTopic&&e.push(this.describedByHelpId),this.error&&e.push(this.describedByErrorId),this.isMultilingual&&e.push(this.multilingualProgressId),!!e.length&&e.join(" ")},multilingualFieldsCompleted(){return this.isMultilingual?Object.values(this.value).filter((e=>Array.isArray(e)?e.length:e)).length:0},isPrimaryLocale(){return!this.isMultilingual||this.localeKey===this.primaryLocale},localeLabel(){return!this.isMultilingual||this.isPrimaryLocale?"":this.locales.find((e=>e.key===this.localeKey)).label},multilingualLabel(){return this.__("form.multilingualLabel",{label:this.label,localeName:this.localeLabel})}},methods:{compileId:function(e){let t=[this.formId,this.name,e];return this.isMultilingual&&t.push(this.localeKey.replace("@","_")),t.join("-")}}},Rg=Yg,Ng=zh(Rg,$m,Um,!1,null,null,null),Hg=Ng.exports,zg={name:"default-section",props:{section:{type:Object,required:!0},currentIndex:{type:[Number,String],required:!1,default:1/0},renderSuggestion:{type:Function,required:!1},normalizeItemFunction:{type:Function,required:!0},componentAttrPrefix:{type:String,required:!0},componentAttrIdAutosuggest:{type:String,required:!0}},data:function(){return{_currentIndex:this.currentIndex}},computed:{list:function(){var e=this.section,t=e.limit,n=e.data;return n.length<t&&(t=n.length),n.slice(0,t)}},methods:{getItemIndex:function(e){return this.section.start_index+e},getItemByIndex:function(e){return this.section.data[e]},onMouseEnter:function(e){var t=parseInt(e.currentTarget.getAttribute("data-suggestion-index"));this._currentIndex=t,this.$emit("updateCurrentIndex",t)},onMouseLeave:function(){this.$emit("updateCurrentIndex",null)}},render:function(e){var t=this,n=this.componentAttrPrefix,r={beforeSection:this.$scopedSlots["before-section-"+this.section.name],afterSectionDefault:this.$scopedSlots["after-section"],afterSectionNamed:this.$scopedSlots["after-section-"+this.section.name]},i=n+"__results-before "+n+"__results-before--"+this.section.name,o=r.beforeSection&&r.beforeSection({section:this.section,className:i})||[];return e("ul",{attrs:{role:"listbox","aria-labelledby":this.section.label&&this.componentAttrIdAutosuggest+"-"+this.section.label},class:this.section.ulClass},[o[0]&&o[0]||this.section.label&&e("li",{class:i,id:this.componentAttrIdAutosuggest+"-"+this.section.label},this.section.label)||"",this.list.map((function(r,i){var o,a=t.normalizeItemFunction(t.section.name,t.section.type,t.section.label,t.section.liClass,r),s=t.getItemIndex(i),u=t._currentIndex===s||parseInt(t.currentIndex)===s;return e("li",{attrs:Object.assign({},{role:"option","data-suggestion-index":s,"data-section-name":a.name,id:n+"__results-item--"+s},a.liAttributes),key:s,class:Object.assign((o={},o[n+"__results-item--highlighted"]=u,o[n+"__results-item"]=!0,o),a.liClass),on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave}},[t.renderSuggestion?t.renderSuggestion(a):t.$scopedSlots.default&&t.$scopedSlots.default({_key:i,suggestion:a})])})),r.afterSectionDefault&&r.afterSectionDefault({section:this.section,className:n+"__results-after "+n+"__results-after--"+this.section.name}),r.afterSectionNamed&&r.afterSectionNamed({section:this.section,className:n+"__results_after "+n+"__results-after--"+this.section.name})])}};function jg(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Bg(e,t){jg(e,t)||(e.className+=" "+t)}function Vg(e,t){e.classList&&e.classList.remove(t)}var $g=-1,Ug={name:"default",type:"default-section"},Wg={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:e.componentAttrIdAutosuggest}},[e._t("before-input"),n("div",{attrs:{role:"combobox","aria-expanded":e.isOpen?"true":"false","aria-haspopup":"listbox","aria-owns":e.componentAttrIdAutosuggest+"-"+e.componentAttrPrefix+"__results"}},[n("input",e._g(e._b({class:[e.isOpen?e.componentAttrPrefix+"__input--open":"",e.internal_inputProps.class],attrs:{type:e.internal_inputProps.type,autocomplete:e.internal_inputProps.autocomplete,"aria-autocomplete":"list","aria-activedescendant":e.isOpen&&null!==e.currentIndex?e.componentAttrPrefix+"__results-item--"+e.currentIndex:"","aria-controls":e.componentAttrIdAutosuggest+"-"+e.componentAttrPrefix+"__results"},domProps:{value:e.internalValue},on:{input:e.inputHandler,keydown:e.handleKeyStroke}},"input",e.internal_inputProps,!1),e.listeners))]),e._t("after-input"),e._v(" "),n("div",{class:e._componentAttrClassAutosuggestResultsContainer,attrs:{id:e.componentAttrIdAutosuggest+"-"+e.componentAttrPrefix+"__results"}},[e.isOpen?n("div",{class:e._componentAttrClassAutosuggestResults,attrs:{"aria-labelledby":e.componentAttrIdAutosuggest}},[e._t("before-suggestions"),e._v(" "),e._l(e.computedSections,(function(t,r){return n(t.type,{key:e.getSectionRef(""+t.name+r),ref:e.getSectionRef(""+t.name+r),refInFor:!0,tag:"component",attrs:{"current-index":e.currentIndex,"normalize-item-function":e.normalizeItem,"render-suggestion":e.renderSuggestion,section:t,"component-attr-prefix":e.componentAttrPrefix,"component-attr-id-autosuggest":e.componentAttrIdAutosuggest},on:{updateCurrentIndex:e.updateCurrentIndex},scopedSlots:e._u([{key:"before-section-"+(t.name||t.label),fn:function(n){var r=n.section,i=n.className;return[e._t("before-section-"+(t.name||t.label),null,{section:r,className:i})]}},{key:"default",fn:function(t){var n=t.suggestion,r=t._key;return[e._t("default",[e._v(" "+e._s(n.item)+" ")],{suggestion:n,index:r})]}},{key:"after-section-"+(t.name||t.label),fn:function(n){var r=n.section;return[e._t("after-section-"+(t.name||t.label),null,{section:r})]}},{key:"after-section",fn:function(t){var n=t.section;return[e._t("after-section",null,{section:n})]}}])})})),e._v(" "),e._t("after-suggestions")],2):e._e(),e._v(" "),e._t("after-suggestions-container")],2)],2)},staticRenderFns:[],name:"Autosuggest",components:{DefaultSection:zg},props:{value:{type:String,default:null},inputProps:{type:Object,required:!0},limit:{type:Number,required:!1,default:1/0},suggestions:{type:Array,required:!0},renderSuggestion:{type:Function,required:!1,default:null},getSuggestionValue:{type:Function,required:!1,default:function(e){var t=e.item;return"object"==typeof t&&t.hasOwnProperty("name")?t.name:t}},shouldRenderSuggestions:{type:Function,required:!1,default:function(e,t){return e>0&&!t}},sectionConfigs:{type:Object,required:!1,default:function(){return{default:{onSelected:null}}}},onSelected:{type:Function,required:!1,default:null},componentAttrIdAutosuggest:{type:String,required:!1,default:"autosuggest"},componentAttrClassAutosuggestResultsContainer:{type:String,required:!1,default:null},componentAttrClassAutosuggestResults:{type:String,required:!1,default:null},componentAttrPrefix:{type:String,required:!1,default:"autosuggest"}},data:function(){return{internalValue:null,searchInputOriginal:null,currentIndex:null,currentItem:null,loading:!1,didSelectFromOptions:!1,defaultInputProps:{type:"text",autocomplete:"off"},clientXMouseDownInitial:null}},computed:{internal_inputProps:function(){return Object.assign({},this.defaultInputProps,this.inputProps)},listeners:function(){var e=this;return Object.assign({},this.$listeners,{input:function(e){},click:function(){e.loading=!1,e.$listeners.click&&e.$listeners.click(e.currentItem),e.$nextTick((function(){e.ensureItemVisible(e.currentItem,e.currentIndex)}))},selected:function(){e.currentItem&&e.sectionConfigs[e.currentItem.name]&&e.sectionConfigs[e.currentItem.name].onSelected?e.sectionConfigs[e.currentItem.name].onSelected(e.currentItem,e.searchInputOriginal):e.sectionConfigs.default.onSelected?e.sectionConfigs.default.onSelected(null,e.searchInputOriginal):e.$listeners.selected&&e.$emit("selected",e.currentItem,e.currentIndex),e.setChangeItem(null)}})},isOpen:function(){return this.shouldRenderSuggestions(this.totalResults,this.loading)},computedSections:function(){var e=this,t=0;return this.suggestions.map((function(n){if(n.data){var r,i,o,a,s=n.name?n.name:Ug.name,u=null;e.sectionConfigs[s]&&(r=e.sectionConfigs[s].limit,o=e.sectionConfigs[s].type,i=e.sectionConfigs[s].label,a=e.sectionConfigs[s].ulClass,u=e.sectionConfigs[s].liClass),o=o||Ug.type,r=(r=r||e.limit)||1/0,r=n.data.length<r?n.data.length:r;var l={name:s,label:i=i||n.label,type:o,limit:r,data:n.data,start_index:t,end_index:t+r-1,ulClass:a,liClass:u};return t+=r,l}}))},totalResults:function(){return this.computedSections.reduce((function(e,t){if(!t)return e;var n=t.limit,r=t.data;return e+(r.length>=n?n:r.length)}),0)},_componentAttrClassAutosuggestResultsContainer:function(){return this.componentAttrClassAutosuggestResultsContainer||this.componentAttrPrefix+"__results-container"},_componentAttrClassAutosuggestResults:function(){return this.componentAttrClassAutosuggestResults||this.componentAttrPrefix+"__results"}},watch:{value:{handler:function(e){this.internalValue=e},immediate:!0},isOpen:{handler:function(e,t){e!==t&&this.$emit(e?"opened":"closed")},immediate:!0}},created:function(){this.loading=!0},mounted:function(){document.addEventListener("mouseup",this.onDocumentMouseUp),document.addEventListener("mousedown",this.onDocumentMouseDown)},beforeDestroy:function(){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousedown",this.onDocumentMouseDown)},methods:{inputHandler:function(e){var t=e.target.value;this.$emit("input",t),this.internalValue=t,this.didSelectFromOptions||(this.searchInputOriginal=t,this.currentIndex=null)},getSectionRef:function(e){return"computed_section_"+e},getItemByIndex:function(e){var t=!1;if(null===e)return t;for(var n=0;n<this.computedSections.length;n++)if(e>=this.computedSections[n].start_index&&e<=this.computedSections[n].end_index){var r=e-this.computedSections[n].start_index,i=this.computedSections[n].name,o=this.$refs[this.getSectionRef(""+i+n)][0];if(o){t=this.normalizeItem(this.computedSections[n].name,this.computedSections[n].type,o.section.label,o.section.liClass,o.getItemByIndex(r));break}}return t},handleKeyStroke:function(e){var t=this,n=e.keyCode;if(!([16,9,17,18,91,93].indexOf(n)>-1)){var r=!this.isOpen;if(this.loading=!1,this.didSelectFromOptions=!1,this.isOpen)switch(n){case 40:case 38:if(e.preventDefault(),38===n&&null===this.currentIndex)break;var i=40===n?1:-1,o=Math.max((parseInt(this.currentIndex)||0)+(r?0:i),$g);this.setCurrentIndex(o,this.totalResults),this.didSelectFromOptions=!0,this.totalResults>0&&this.currentIndex>=0?(this.setChangeItem(this.getItemByIndex(this.currentIndex)),this.didSelectFromOptions=!0):this.currentIndex===$g&&(this.setChangeItem(null),this.internalValue=this.searchInputOriginal,e.preventDefault()),this.$nextTick((function(){t.ensureItemVisible(t.currentItem,t.currentIndex)}));break;case 13:e.preventDefault(),this.totalResults>0&&this.currentIndex>=0&&(this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.didSelectFromOptions=!0),this.loading=!0,this.listeners.selected(this.didSelectFromOptions);break;case 27:this.loading=!0,this.currentIndex=null,this.internalValue=this.searchInputOriginal,this.$emit("input",this.searchInputOriginal),e.preventDefault()}}},setChangeItem:function(e,t){if(void 0===t&&(t=!1),null!==this.currentIndex&&e){if(e){this.currentItem=e,this.$emit("item-changed",e,this.currentIndex);var n=this.getSuggestionValue(e);this.internalValue=n,t&&(this.searchInputOriginal=n),this.ensureItemVisible(e,this.currentIndex)}}else this.currentItem=null,this.$emit("item-changed",null,null)},normalizeItem:function(e,t,n,r,i){return{name:e,type:t,label:n,liClass:i.liClass||r,item:i}},ensureItemVisible:function(e,t,n){var r=this.$el.querySelector(n||"."+this._componentAttrClassAutosuggestResults);if(r){var i=r.querySelector("#"+this.componentAttrPrefix+"__results-item--"+t);if(i){var o=r.clientHeight,a=r.scrollTop,s=i.clientHeight,u=i.offsetTop;s+u>=a+o?r.scrollTop=s+u-o:u<a&&a>0&&(r.scrollTop=u)}}},updateCurrentIndex:function(e){this.setCurrentIndex(e,-1,!0)},clickedOnScrollbar:function(e,t){var n=this.$el.querySelector("."+this._componentAttrClassAutosuggestResults),r=n&&n.clientWidth<=t+17&&t+17<=n.clientWidth+34;return"DIV"===e.target.tagName&&n&&r||!1},onDocumentMouseDown:function(e){var t=e.target.getBoundingClientRect?e.target.getBoundingClientRect():0;this.clientXMouseDownInitial=e.clientX-t.left},onDocumentMouseUp:function(e){if(!this.$el.contains(e.target))return this.loading=!0,void(this.currentIndex=null);"INPUT"===e.target.tagName||this.clickedOnScrollbar(e,this.clientXMouseDownInitial)||(this.loading=!0,this.didSelectFromOptions=!0,this.setChangeItem(this.getItemByIndex(this.currentIndex),!0),this.listeners.selected(!0))},setCurrentIndex:function(e,t,n){void 0===t&&(t=-1),void 0===n&&(n=!1);var r=e;n||(null===this.currentIndex||e>=t)&&(r=0),this.currentIndex=r;var i=this.$el.querySelector("#"+this.componentAttrPrefix+"__results-item--"+this.currentIndex),o=this.componentAttrPrefix+"__results-item--highlighted";this.$el.querySelector("."+o)&&Vg(this.$el.querySelector("."+o),o),i&&Bg(i,o)}}},qg={install:function(e){e.component("vue-autosuggest-default-section",zg),e.component("vue-autosuggest",Wg)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(qg);var Gg,Kg,Jg,Xg,Qg,Zg,ev,tv,nv,rv,iv,ov,av,sv,uv={mixins:[qh],methods:{ajaxErrorCallback(e){if("status"in e&&0==e.status)return;let t;t="responseJSON"in e&&"errorMessage"in e.responseJSON?e.responseJSON.errorMessage:this.__("common.unknownError"),this.openDialog({name:"ajaxError",title:this.__("common.error"),message:t,actions:[{label:this.__("common.ok"),callback:()=>this.$modal.hide("ajaxError")}]})}}},lv={name:"FieldBaseAutosuggest",extends:Hg,mixins:[uv],components:{PkpBadge:ep,VueAutosuggest:Wg},props:{apiUrl:{type:String,default(){return""}},deselectLabel:{type:String,required:!0},isDisabled:{type:Boolean,default(){return!1}},isLabelInline:{type:Boolean,default(){return!1}},getParams:{type:Object,default(){return{}}},selected:{type:[Array,Object],default(){return this.isMultilingual?{}:[]}},selectedLabel:{type:String,required:!0}},data(){return{inputValue:"",isFocused:!1,suggestions:[]}},computed:{autosuggestId(){return this.compileId("autosuggest")},autosuggestOptions(){return{id:this.autosuggestId,inputProps:this.inputProps,key:this.autosuggestId,suggestions:[{data:this.suggestions}],getSuggestionValue:e=>e.item.label,renderSuggestion:e=>e.item.label}},currentSelected(){return this.isMultilingual?this.selected[this.localeKey]:this.selected},describedBySelectedId(){return this.compileId("selected")},describedByIds(){return this.describedBySelectedId+" "+Hg.computed.describedByIds.apply(this)},inputProps(){let e={"aria-describedby":this.describedByIds,class:"pkpAutosuggest__input",id:this.controlId,name:this.name};return this.isDisabled&&(e.disabled="disabled"),e},isRTL(){return $.pkp.app.rtlLocales.includes(this.localeKey)}},methods:{deselect(e){let t=[...this.currentSelected];t.splice(t.findIndex((t=>t.value===e.value)),1),this.setSelected(t)},setFocusToInput(){this.isDisabled||this.$refs.autosuggest.$el.querySelector("#"+this.controlId).focus()},getSuggestions:rm()((function(){if(this.inputValue){var e=this;$.ajax({url:this.apiUrl,type:"GET",data:{...this.getParams,searchPhrase:this.inputValue},error(t){e.ajaxErrorCallback(t)},success(t){e.setSuggestions(t.items)}})}else this.suggestions=[]}),250),select(e){if(!e){if(!this.inputValue||!this.suggestions.length)return;e=this.suggestions[0]}this.setSelected([...this.currentSelected,e]),this.inputValue="",this.$nextTick((()=>{this.$nextTick((()=>{this.$nextTick((()=>this.$el.querySelector("#"+this.controlId).focus()))}))}))},selectSuggestion(e){this.select(e?e.item:null)},setSelected(e){this.$emit("change",this.name,"selected",e,this.localeKey),this.$emit("change",this.name,"value",e.map((e=>e.value)),this.localeKey)},setSuggestions(e){throw new Error("The setSuggestions method must be implemented in any component that extends FieldBaseAutosuggest.")},updateInlineLabelPadding(){this.isLabelInline&&(this.$refs.values.style.paddingInlineStart=this.$refs.heading.offsetWidth+"px")},updateInputWidth(){if(!this.isDisabled)if(this.currentValue.length){const e=window.getComputedStyle(this.$refs.values),t=parseFloat(e.getPropertyValue("padding-left")),n=parseFloat(e.getPropertyValue("padding-right")),r=parseFloat(e.getPropertyValue("width"))-t-n,i=this.$refs.values.querySelectorAll(".pkpAutosuggest__selection"),o=i[i.length-1],a=this.isRTL?r-(o.offsetLeft-n):o.offsetLeft-t+o.offsetWidth,s=r-a;this.$refs.autosuggest.$el.style.width=s<172?"100%":s-32+"px"}else this.$refs.autosuggest.$el.style.width="100%"}},watch:{currentValue(e,t){this.$nextTick((()=>this.updateInputWidth()))},inputValue(e,t){e!==t&&this.getSuggestions()}},mounted(){if(this.updateInlineLabelPadding(),this.updateInputWidth(),om()(this.$refs.values,rm()((()=>{this.updateInlineLabelPadding(),this.updateInputWidth()}),100)),this.isMultilingual&&this.isLabelInline)throw new Error("An inline label can not be used with a multilingual autosuggest field. This error encountered in the field "+this.name)},beforeDestroy(){om().unbind(this.$refs.values)}},cv=lv,dv=zh(cv,ig,og,!1,null,null,null),fv=dv.exports,hv={name:"FieldAutosuggestPreset",extends:fv,props:{options:{type:Array,required:!0}},methods:{getSuggestions(){if(!this.inputValue||!this.options.length)return void(this.suggestions=[]);const e=new RegExp(this.inputValue.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"gi");this.suggestions=this.options.filter((t=>{if(this.currentValue.includes(t.value))return!1;let n="string"===typeof t.value?t.value.match(e):t.value==this.inputValue;return n||t.label.match(e)}))}},watch:{value(e,t){if(!e||e===t)return;if(JSON.stringify(e)===JSON.stringify(t))return;const n=this.isMultilingual?e[this.localeKey]:e;this.setSelected(this.options.filter((e=>n.includes(e.value))))}}},pv=hv,mv=zh(pv,Gg,Kg,!1,null,null,null),gv=mv.exports,vv=function(){var e=this,t=e._self._c;return t("field-rich-textarea",e._b({ref:"textarea",attrs:{init:e.compiledInit,value:e.renderedValue},on:{change:e.fieldChanged}},"field-rich-textarea",e.textareaProps,!1),[t("template",{slot:"footer"},[e._t("footer"),t("modal",{attrs:{closeLabel:e.__("common.close"),name:e.preparedContentId,title:e.insertModalLabel},on:{close:e.closeInsertModal}},[t("insert-content",{ref:"insertContent",attrs:{insertLabel:e.insertLabel,items:e.preparedContent,itemsLabel:e.preparedContentLabel,searchLabel:e.searchLabel},on:{insert:e.insert}})],1)],2)],2)},_v=[],bv=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--richTextarea",class:{"-isFocused":e.isFocused,"pkpFormField--richTextarea--rtl":e.isRTL}},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control pkpFormField--richTextarea__control",class:"pkpFormField--richTextArea__control--"+this.size},[t("editor",{ref:"editor",staticClass:"pkpFormField__input pkpFormField--richTextarea__input",attrs:{id:e.controlId,toolbar:e.toolbar,plugins:e.plugins,init:e.compiledInit},on:{onFocus:e.focus,onBlur:e.blur},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}}),e.isMultilingual&&e.locales.length>1||e.wordLimit?t("div",{staticClass:"pkpFormField--richTextarea__controlFooter"},[e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e(),e.wordLimit?t("div",{staticClass:"pkpFormField--richTextarea__wordLimit"},[e.wordCount>e.wordLimit?t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}):e._e(),e._v(" "+e._s(e.replaceLocaleParams(e.wordCountLabel,{count:e.wordCount,limit:e.wordLimit}))+" ")],1):e._e()],1):e._e(),e._t("footer")],2),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)},yv=[],xv=(n(7575),n(6890),n(8860),n(8190),n(2170),n(2682),n(6552),n(5031),n(2875),["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"]),wv=function(e){return-1!==xv.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},kv=function(e,t,n){Object.keys(t).filter(wv).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},Mv=function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.on(r||"change input undo redo",(function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))}))},Sv=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:i)),t.$watch("value",(function(e,r){n&&"string"===typeof e&&e!==r&&e!==n.getContent({format:t.$props.outputFormat})&&n.setContent(e)})),t.$listeners.input&&Mv(t,n),kv(e,t.$listeners,n),t.initialized=!0},Lv=0,Cv=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return Lv++,e+"_"+n+Lv+String(t)},Tv=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},Dv=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},Ov=function(e,t){return Dv(e).concat(Dv(t))},Ev=function(e){return null===e||void 0===e},Av=function(){return{listeners:[],scriptId:Cv("tiny-script"),scriptLoaded:!1}},Pv=function(){var e=Av(),t=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),t.head&&t.head.appendChild(i)},n=function(n,r,i){e.scriptLoaded?i():(e.listeners.push(i),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=Av()};return{load:n,reinitialize:r}},Fv=Pv(),Iv=function(){return"undefined"!==typeof window?window:n.g},Yv=function(){var e=Iv();return e&&e.tinymce?e.tinymce:null},Rv={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},Nv=function(){return Nv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Nv.apply(this,arguments)},Hv=function(e,t,n){return e(n||"div",{attrs:{id:t}})},zv=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},jv=function(e){return function(){var t=Nv(Nv({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:Ov(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return Sv(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});Tv(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Yv().init(t)}},Bv={props:Rv,created:function(){this.elementId=this.$props.id||Cv("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Yv())jv(this)();else if(this.element&&this.element.ownerDocument){var e=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=Ev(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;Fv.load(this.element.ownerDocument,n,jv(this))}},beforeDestroy:function(){null!==Yv()&&Yv().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Yv())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&jv(this)()},render:function(e){return this.inlineEditor?Hv(e,this.elementId,this.$props.tagName):zv(e,this.elementId)}},Vv=Bv,$v={name:"FieldRichTextarea",extends:Hg,components:{Editor:Vv},props:{init:{type:Object,default(){return{}}},plugins:{type:String,required:!0},size:{type:String,default(){return"default"},validator(e){return["default","large"].includes(e)}},toolbar:{type:String,required:!0},uploadUrl:{type:String,default(){return""}},wordCountLabel:{type:String,default(){return""}},wordLimit:{type:Number,default(){return 0}}},data(){return{isFocused:!1,wordCount:0}},computed:{currentValue:{get(){return this.isMultilingual?this.value[this.localeKey]:this.value},set:function(e){this.$emit("change",this.name,"value",e,this.localeKey),rm()(this.setWordCount,250)()}},toolbarId(){return this.compileId("toolbar")},compiledInit(){var e=this,t=function(e){const n=/\{\$(\w*)\}/.exec(e);return n?e=n[0]:(this.settings.urlconverter_callback=!1,e=this.convertURL(e),this.settings.urlconverter_callback=t),e};return{skin_url:this.$root.tinyMCE.skinUrl,content_css:$.pkp.app.tinyMceContentCSS,paste_data_images:!0,relative_urls:!1,remove_script_host:!1,convert_urls:!0,urlconverter_callback:t,directionality:this.isRTL?"rtl":"ltr",menubar:!1,statusbar:!1,entity_encoding:"raw",browser_spellcheck:!0,images_upload_handler(t,n,r){const i=new FormData;i.append("file",t.blob(),t.filename()),$.ajax({method:"POST",url:e.uploadUrl,data:i,processData:!1,contentType:!1,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},success(e){n(e.url)},error(e){r(e.responseJSON.errorMessage)}})},init_instance_callback:e=>{e.fire("focus"),e.fire("blur")},...this.init}},isRTL(){return $.pkp.app.rtlLocales.includes(this.localeKey)}},methods:{blur(){this.isFocused=!1},focus(){this.isFocused=!0},setWordCount(){if(!this.wordLimit||!this.currentValue||!this.$refs.editor)return void(this.wordCount=0);const e=this.$refs.editor.editor.getContent({format:"text"}).match(/\S+/g);this.wordCount=null===e?0:e.length}},watch:{value(e,t){e!==t&&(this.isMultilingual&&(e=e[this.localeKey]),rm()(this.setWordCount,250)(),this.$emit("change",this.name,"value",e,this.localeKey))}},mounted(){rm()(this.setWordCount,1e3)()}},Uv=$v,Wv=zh(Uv,bv,yv,!1,null,null,null),qv=Wv.exports,Gv=function(){var e=this,t=e._self._c;return t("div",{staticClass:"insertContent"},[t("search",{attrs:{searchLabel:e.searchLabel,searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e=>this.searchPhrase=e}}),t("ol",{staticClass:"insertContent__items",attrs:{"aria-label":e.itemsLabel}},e._l(e.current,(function(n){return t("li",{key:n.key,staticClass:"insertContent__item",attrs:{id:"insert-content-"+n.key}},[t("div",{staticClass:"insertContent__item__header"},[t("div",{staticClass:"insertContent__item__value"},[e._v(" "+e._s(n.value)+" ")]),t("pkp-button",{staticClass:"insertContent__item__button",attrs:{"aria-describedby":"insert-content-"+n.key},on:{click:function(t){return e.$emit("insert",n.value)}}},[e._v(" "+e._s(e.insertLabel)+" ")])],1),t("div",{staticClass:"insertContent__item__description"},[e._v(" "+e._s(n.description)+" ")])])})),0)],1)},Kv=[],Jv=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpSearch"},[t("label",[t("span",{staticClass:"-screenReader"},[e._v(e._s(e.currentSearchLabel))]),t("input",{staticClass:"pkpSearch__input",attrs:{type:"search",id:e.inputId,placeholder:e.currentSearchLabel},domProps:{value:e.searchPhrase},on:{keyup:e.searchPhraseKeyUp}}),t("span",{staticClass:"pkpSearch__icons"},[t("icon",{staticClass:"pkpSearch__icons--search",attrs:{icon:"search"}})],1)]),e.searchPhrase?t("button",{staticClass:"pkpSearch__clear",attrs:{"aria-controls":e.inputId},on:{click:function(t){return t.preventDefault(),e.clearSearchPhrase.apply(null,arguments)}}},[t("icon",{attrs:{icon:"times"}}),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.clearSearch")))])],1):e._e()])},Xv=[],Qv={props:{searchLabel:{type:String,default(){return""}},searchPhrase:{type:String,default(){return""}}},computed:{inputId(){return this._uid},currentSearchLabel(){return this.searchLabel?this.searchLabel:this.__("common.search")}},methods:{searchPhraseKeyUp:rm()((function(e){this.$emit("search-phrase-changed",e.target.value)}),250),clearSearchPhrase(){this.$emit("search-phrase-changed",""),this.$nextTick((function(){this.$el.querySelector('input[type="search"]').focus()}))}}},Zv=Qv,e_=zh(Zv,Jv,Xv,!1,null,null,null),t_=e_.exports,n_={name:"InsertContent",components:{Search:t_},props:{insertLabel:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsLabel:{type:String,required:!0},searchLabel:{type:String,default(){return""}}},data(){return{searchPhrase:""}},computed:{current(){if(!this.searchPhrase)return this.items;const e=new RegExp(this.searchPhrase,"i");return this.items.filter((t=>e.test(t.key)||e.test(t.value)||e.test(t.description)))}}},r_=n_,i_=zh(r_,Gv,Kv,!1,null,null,null),o_=i_.exports,a_={methods:{renderPreparedContent(e,t){return t.reduce(((e,t)=>{const n=new RegExp(`{$${t.key}}`.replace(/[${]/g,"\\$&"),"g");return e.replace(n,t.value)}),e)}}},s_={name:"FieldPreparedContent",extends:qv,mixins:[a_],components:{FieldRichTextarea:qv,InsertContent:o_,Modal:Bh},props:{insertLabel:{type:String,required:!0},insertModalLabel:{type:String,required:!0},preparedContent:{type:Array,default(){return[]}},preparedContentLabel:{type:String,required:!0},searchLabel:{type:String,default(){return""}}},data(){return{resetFocusTo:null}},computed:{textareaProps(){let e={},t=qv;while(t)Object.keys(t.props).forEach((t=>{"undefined"!==typeof this[t]&&(e[t]=this[t])})),t=t.extends?t.extends:null;return e},preparedContentId(){return this.compileId("preparedContent")},compiledInit(){let e=this;const t=function(t){e.init.setup&&e.init.setup.call(this,t),e.preparedContent.length&&(t.ui.registry.addButton("pkpInsert",{icon:"plus",text:e.__("common.insertContent"),onAction(){e.$modal.show(e.preparedContentId)}}),t.settings.toolbar+=" | pkpInsert")};return{...this.init,setup:t}},renderedValue(){const e=e=>this.renderPreparedContent(e,this.preparedContent);let t={};return this.isMultilingual?Object.keys(this.value).forEach((n=>{t[n]=e(this.value[n])})):t=e(this.value),t}},methods:{closeInsertModal(){this.resetFocus()},fieldChanged(e,t,n,r){this.$emit("change",e,t,n,r)},insert(e){this.$refs.textarea.$refs.editor.editor.insertContent(e),this.$modal.hide(this.preparedContentId)},resetFocus(){this.resetFocusTo&&this.resetFocusTo.focus()}}},u_=s_,l_=zh(u_,vv,_v,!1,null,null,null),c_=l_.exports,d_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileAttacher"},[e._l(e.attachers,(function(n,r){return t("action-panel",{key:r,attrs:{id:"attacher"+r}},[t("h2",[e._v(e._s(n.label))]),t("p",{domProps:{innerHTML:e._s(n.description)}}),t("template",{slot:"actions"},[t("pkp-button",{attrs:{"aria-describedby":"attacher"+r},on:{click:function(t){return e.setAttacher(n)}}},[e._v(" "+e._s(n.button)+" ")])],1)],2)})),t("modal",{attrs:{closeLabel:e.__("common.close"),name:"attacher",title:e.currentAttacher?e.currentAttacher.label:""},on:{closed:e.resetFocus}},[e.currentAttacher?t(e.currentAttacher.component,e._b({tag:"component",on:{"selected:files":e.attachFiles,cancel:e.cancel}},"component",e.currentAttacher,!1)):e._e()],1)],2)},f_=[],h_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileAttacherFileStage",attrs:{"aria-live":"polite"}},[t("list-panel",{attrs:{items:e.files,isLoading:e.isLoading},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("select-submission-file-list-item",{attrs:{documentType:n.documentType,downloadLabel:e.downloadLabel,genreName:e.localize(n.genreName),genreIsPrimary:!n.genreIsDependent&&!n.genreIsSupplementary,fileId:n.id,name:e.localize(n.name),url:n.url}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(e.selected)?e._i(e.selected,n.id)>-1:e.selected},on:{change:function(t){var r=e.selected,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.id,s=e._i(r,a);i.checked?s<0&&(e.selected=r.concat([a])):s>-1&&(e.selected=r.slice(0,s).concat(r.slice(s+1)))}else e.selected=o}}})])]}}])},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.currentFileStage.label))]),t("template",{slot:"actions"},[e.fileStages.length>1?t("dropdown",{attrs:{label:"Other Files"}},[t("ul",e._l(e.fileStages,(function(n){return t("li",{key:n.label},[t("button",{staticClass:"pkpDropdown__action",on:{click:function(t){e.currentFileStage=n}}},[e._v(" "+e._s(n.label)+" ")])])})),0)]):e._e()],1)],2),e.isLoading?t("div",{attrs:{slot:"itemsEmpty"},slot:"itemsEmpty"},[t("spinner"),e._v(" "+e._s(e.__("common.loading"))+" ")],1):e._e()],1),t("button-row",{staticClass:"fileAttacher__footer"},[t("template",{slot:"end"},[t("pkp-button",{attrs:{"is-link":!0},on:{click:function(t){return e.$emit("cancel")}}},[t("icon",{attrs:{icon:"long-arrow-left",inline:!0}}),e._v(" "+e._s(e.backLabel)+" ")],1)],1),t("pkp-button",{attrs:{isDisabled:!e.selected.length},on:{click:function(t){return e.$emit("selected:files",e.selectedFiles)}}},[e._v(" "+e._s(e.attachSelectedLabel)+" ")])],2)],1)},p_=[],m_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"listPanel"},[t("div",{staticClass:"listPanel__header"},[e._t("header",(function(){return[t("pkp-header",[t(e.headingLevel,{tag:"component"},[e._v(e._s(e.title))])],1)]}))],2),t("div",{staticClass:"listPanel__body"},[t("transition",{attrs:{name:"listPanel__sidebar"}},[e.$slots.sidebar&&e.isSidebarVisible?t("div",{ref:"sidebar",staticClass:"listPanel__sidebar"},[e._t("sidebar")],2):e._e()]),t("div",{staticClass:"listPanel__items"},[e.items.length?t("ul",{staticClass:"listPanel__itemsList"},e._l(e.items,(function(n){return t("li",{key:n.id,staticClass:"listPanel__item"},[e._t("item",(function(){return[t("div",{staticClass:"listPanel__itemSummary"},[t("div",{staticClass:"listPanel__itemIdentity"},[t("div",{staticClass:"listPanel__itemTitle"},[e._t("item-title",(function(){return[e._v(e._s(n.title))]}),{item:n})],2),e.$scopedSlots["item-subtitle"]||n.subtitle?t("div",{staticClass:"listPanel__itemSubtitle"},[e._t("item-subtitle",(function(){return[e._v(" "+e._s(n.subtitle)+" ")]}),{item:n})],2):e._e()]),e.$scopedSlots["item-actions"]?t("div",{staticClass:"listPanel__itemActions"},[e._t("item-actions",null,{item:n})],2):e._e()])]}),{item:n}),e.expanded.includes(n.id)?t("div",{staticClass:"listPanel__itemExpanded"},[e._t("item-expanded",null,{item:n})],2):e._e()],2)})),0):t("div",{staticClass:"listPanel__empty"},[e._t("itemsEmpty",(function(){return[e._v(e._s(e.currentEmptyLabel))]}))],2)])],1),e.$slots.footer?t("div",{staticClass:"listPanel__footer"},[e._t("footer")],2):e._e()])},g_=[],v_={name:"ListPanel",components:{Notification:_p,PkpHeader:Bp},props:{description:{type:String,default(){return""}},emptyLabel:{type:String,default(){return""}},expanded:{type:Array,default(){return[]}},headingLevel:{type:String,default(){return"h2"}},isSidebarVisible:{type:Boolean,default(){return!1}},items:{type:Array,required:!0},title:{type:String,default(){return""}}},computed:{currentEmptyLabel(){return this.emptyLabel?this.emptyLabel:this.__("common.noItemsFound")}},watch:{isSidebarVisible:function(e,t){e&&this.$nextTick((()=>{e&&Object.keys(this.$refs).includes("sidebar")&&this.setFocusIn(this.$refs.sidebar)}))}}},__=v_,b_=zh(__,m_,g_,!1,null,null,null),y_=b_.exports,x_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"selectSubmissionFileListItem"},[t("label",{staticClass:"selectSubmissionFileListItem__label"},[t("div",{staticClass:"selectSubmissionFileListItem__selector"},[e._t("default")],2),t("file",{staticClass:"selectSubmissionFileListItem__file",attrs:{documentType:e.documentType,fileId:e.fileId,id:e.describedById,name:e.name}})],1),e.uploadedDetails||e.genreName||e.url?t("div",{staticClass:"listPanel__itemActions"},[e.uploadedDetails?t("span",[e._v(" "+e._s(e.uploadedDetails)+" ")]):e._e(),e.genreName?t("badge",{attrs:{"is-primary":e.genreIsPrimary}},[e._v(" "+e._s(e.genreName)+" ")]):e._e(),e.url?t("pkp-button",{staticClass:"selectSubmissionFileListItem__download",attrs:{element:"a",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-describedby":e.describedById}},[t("icon",{attrs:{icon:"download"}}),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.downloadLabel))])],1):e._e()],1):e._e()])},w_=[],k_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"file"},[t("icon",{staticClass:"file__documentType",attrs:{icon:e.documentTypeIcon,inline:!0}}),e.fileId?t("span",{staticClass:"file__id"},[e._v(" "+e._s(e.fileId)+" ")]):e._e(),e._v(" "+e._s(e.name)+" ")],1)},M_=[],S_={props:{documentType:{type:String,default(){return""}},fileId:{type:Number,default(){return 0}},name:{type:String,required:!0}},computed:{documentTypeIcon(){return pkp.documentTypeIcons&&pkp.documentTypeIcons[this.documentType]?pkp.documentTypeIcons[this.documentType]:"file-o"}}},L_=S_,C_=zh(L_,k_,M_,!1,null,null,null),T_=C_.exports,D_={components:{File:T_},props:{createdAt:{type:String,default(){return""}},documentType:{type:String,default(){return""}},downloadLabel:{type:String,required:!0},genreName:{type:String,default(){return""}},genreIsPrimary:{type:Boolean,default(){return!1}},fileId:{type:Number,default(){return 0}},name:{type:String,required:!0},uploadedBy:{type:String,default(){return""}},url:{type:String,default(){return""}}},data(){return{describedById:""}},computed:{uploadedDetails(){return this.uploadedBy?this.createdAt?this.__("common.uploadedByAndWhen",{name:this.uploadedBy,date:this.createdAt.substring(0,10)}):this.__("common.uploaded"):""}},created(){this.describedById=$.pkp.classes.Helper.uuid()}},O_=D_,E_=zh(O_,x_,w_,!1,null,null,null),A_=E_.exports,P_={name:"FileAttacherFileStage",mixins:[uv],components:{ButtonRow:Am,Dropdown:ap,ListPanel:y_,PkpHeader:Bp,SelectSubmissionFileListItem:A_},props:{attachSelectedLabel:{type:String,required:!0},backLabel:{type:String,required:!0},component:{type:String,required:!0},downloadLabel:{type:String,required:!0},fileStages:{type:Array,required:!0},submissionFilesApiUrl:{type:String,required:!0}},data(){return{currentFileStage:{},isLoading:!1,files:[],selected:[]}},computed:{selectedFiles(){return this.files.filter((e=>this.selected.includes(e.id)))}},methods:{getFiles(){this.isLoading=!0,this.files=[],$.ajax({url:this.submissionFilesApiUrl,type:"GET",context:this,data:this.currentFileStage.queryParams,success(e){this.files=e.items},error:this.ajaxErrorCallback,complete(e){this.isLoading=!1}})}},watch:{currentFileStage(e,t){this.getFiles()}},created(){this.currentFileStage=this.fileStages[0]}},F_=P_,I_=zh(F_,h_,p_,!1,null,null,null),Y_=I_.exports,R_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileAttacherLibrary",attrs:{"aria-live":"polite"}},[e.files.length?t("div",e._l(e.files,(function(n,r){return t("select-submission-file-list-item",{key:r,attrs:{documentType:n.documentType,downloadLabel:e.downloadLabel,genreName:n.typeName,fileId:n.id,name:e.localize(n.name),url:n.url}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(e.selected)?e._i(e.selected,n.id)>-1:e.selected},on:{change:function(t){var r=e.selected,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.id,s=e._i(r,a);i.checked?s<0&&(e.selected=r.concat([a])):s>-1&&(e.selected=r.slice(0,s).concat(r.slice(s+1)))}else e.selected=o}}})])})),1):t("div",{staticClass:"fileAttacherLibrary__message"},[e.isLoading?t("div",[t("spinner"),e._v(" "+e._s(e.__("common.loading"))+" ")],1):t("div",[e._v(" "+e._s(e.__("common.noItemsFound"))+" ")])]),t("button-row",{staticClass:"fileAttacher__footer"},[t("template",{slot:"end"},[t("pkp-button",{attrs:{"is-link":!0},on:{click:function(t){return e.$emit("cancel")}}},[t("icon",{attrs:{icon:"long-arrow-left",inline:!0}}),e._v(" "+e._s(e.backLabel)+" ")],1)],1),t("pkp-button",{attrs:{isDisabled:!e.selected.length},on:{click:function(t){return e.$emit("selected:files",e.selectedFiles)}}},[e._v(" "+e._s(e.attachSelectedLabel)+" ")])],2)],1)},N_=[],H_={name:"FileAttacherLibrary",mixins:[uv],components:{ButtonRow:Am,SelectSubmissionFileListItem:A_},props:{attachSelectedLabel:{type:String,required:!0},backLabel:{type:String,required:!0},component:{type:String,required:!0},downloadLabel:{type:String,required:!0},includeSubmissionId:{type:Number,default(){return-1}},libraryApiUrl:{type:String,required:!0}},data(){return{isLoading:!1,files:[],selected:[]}},computed:{selectedFiles(){return this.files.filter((e=>this.selected.includes(e.id)))}},methods:{getFiles(){this.isLoading=!0,this.files=[],$.ajax({url:this.libraryApiUrl,type:"GET",context:this,data:this.includeSubmissionId?{includeSubmissionId:this.includeSubmissionId}:{},success(e){this.files=e.items},error:this.ajaxErrorCallback,complete(e){this.isLoading=!1}})}},created(){this.getFiles()}},z_=H_,j_=zh(z_,R_,N_,!1,null,null,null),B_=j_.exports,V_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileAttacherReviewFiles"},[e.files.length?e._l(e.files,(function(n,r){return t("select-submission-file-list-item",{key:r,attrs:{documentType:n.documentType,downloadLabel:e.downloadLabel,genreName:n.typeName,fileId:n.id,name:n.reviewerName+" — "+e.localize(n.name),url:n.url}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{type:"checkbox"},domProps:{value:n.id,checked:Array.isArray(e.selected)?e._i(e.selected,n.id)>-1:e.selected},on:{change:function(t){var r=e.selected,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.id,s=e._i(r,a);i.checked?s<0&&(e.selected=r.concat([a])):s>-1&&(e.selected=r.slice(0,s).concat(r.slice(s+1)))}else e.selected=o}}})])})):t("div",{staticClass:"fileAttacherReviewFiles__noFiles"},[e._v(" "+e._s(e.__("common.noItemsFound"))+" ")]),t("button-row",{staticClass:"fileAttacher__footer"},[t("template",{slot:"end"},[t("pkp-button",{attrs:{"is-link":!0},on:{click:function(t){return e.$emit("cancel")}}},[t("icon",{attrs:{icon:"long-arrow-left",inline:!0}}),e._v(" "+e._s(e.backLabel)+" ")],1)],1),t("pkp-button",{attrs:{isDisabled:!e.selected.length},on:{click:function(t){return e.$emit("selected:files",e.selectedFiles)}}},[e._v(" "+e._s(e.attachSelectedLabel)+" ")])],2)],2)},$_=[],U_={name:"FileAttacherReviewFiles",components:{ButtonRow:Am,SelectSubmissionFileListItem:A_},props:{attachSelectedLabel:{type:String,required:!0},backLabel:{type:String,required:!0},component:{type:String,required:!0},downloadLabel:{type:String,required:!0},files:{type:Array,required:!0}},data(){return{selected:[]}},computed:{selectedFiles(){return this.files.filter((e=>this.selected.includes(e.id)))}}},W_=U_,q_=zh(W_,V_,$_,!1,null,null,null),G_=q_.exports,K_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileAttacherUpload"},[t("div",{staticClass:"fileAttacherUpload__wrapper"},[e.files.length?t("div",{staticClass:"fileAttacherUpload__files"},[e._l(e.files,(function(n,r){return["progress"in n?[t("file-upload-progress",{key:r,attrs:{cancelUploadLabel:"Cancel Upload",errors:n.errors,name:n.name,progress:n.progress},on:{cancel:function(t){return e.removeFile(r)}}})]:t("div",{key:r,staticClass:"fileAttacherUploader__uploadedFile"},[t("file",{attrs:{id:"FileAttacherUpload__UploadedFile__"+r,name:n.form?n.form.name:n.name,documentType:n.documentType||"default"}}),t("pkp-button",{staticClass:"fileAttacherUploader__uploadedFile__remove",attrs:{"aria-describedby":"FileAttacherUpload__UploadedFile__"+r,isWarnable:!0},on:{click:function(t){return e.removeFile(r)}}},[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.__("common.remove")))]),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.removeItemLabel.replace("{$item}",n.form?n.form.name:n.name))+" ")])])],1)]}))],2):t("div",{staticClass:"fileAttacherUpload__prompt"},[t("p",[e._v(" "+e._s(e.dragAndDropMessage)+" "),t("button",{staticClass:"-linkButton",on:{click:e.selectFile}},[e._v(" "+e._s(e.dragAndDropOrUploadMessage)+" ")])])]),t("file-uploader",{ref:"uploader",attrs:{apiUrl:e.temporaryFilesApiUrl,files:e.files,id:"previewFileUploader",options:e.dropzoneOptions,uploadProgressLabel:"Uploading {$percent}% complete"},on:{"updated:files":e.updateFiles}})],1),t("button-row",{staticClass:"fileAttacher__footer"},[t("template",{slot:"end"},[t("pkp-button",{attrs:{"is-link":!0},on:{click:function(t){return e.$emit("cancel")}}},[t("icon",{attrs:{icon:"long-arrow-left",inline:!0}}),e._v(" "+e._s(e.backLabel)+" ")],1)],1),t("pkp-button",{on:{click:e.selectFile}},[e._v(" "+e._s(e.addFilesLabel)+" ")]),t("pkp-button",{attrs:{isPrimary:!0,isDisabled:!e.files.length||e.isUploading},on:{click:function(t){return e.$emit("selected:files",e.files)}}},[e._v(" "+e._s(e.attachFilesLabel)+" ")])],2)],1)},J_=[],X_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileUploader",class:{"-isDragging":e.isDragging},attrs:{id:e.id}},[t("vue-dropzone",{ref:"dropzone",attrs:{id:e.dropzoneId,options:e.dropzoneOptions},on:{"vdropzone-error":e.dropzoneError,"vdropzone-files-added":e.dropzoneFilesAdded,"vdropzone-removed-file":e.dropzoneRemovedFile,"vdropzone-success":e.dropzoneSuccess,"vdropzone-upload-progress":e.dropzoneUploadProgress,"vdropzone-total-upload-progress":e.dropzoneTotalUploadProgress,"vdropzone-drop":e.drop}}),e.status?t("span",{staticClass:"-screenReader",attrs:{role:"status"}},[e._v(" "+e._s(e.status)+" ")]):e._e()],1)},Q_=[],Z_=n(6086),eb=n.n(Z_),tb={components:{VueDropzone:eb()},props:{apiUrl:{type:String,required:!0},filenameLocale:{type:String,default(){return""}},files:{type:Array,required:!0},id:{type:String,required:!0},options:{type:Object,default(){return{}}},queryParams:{type:Object,default(){return{}}},uploadProgressLabel:{type:String,required:!0}},data(){return{dragEventCounter:0,isDragging:!1,status:""}},computed:{dropzoneId(){return this.id+"dropzone"},dropzoneOptions(){return{method:"POST",url:this.apiUrl,thumbnailWidth:240,hiddenInputContainer:"#"+this.id,addRemoveLinks:!0,previewTemplate:"<p></p>",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},params:(e,t)=>{const n=this.filenameLocale?"name["+this.filenameLocale+"]":"name";return{...this.queryParams,[n]:e[0].name}},...this.options}}},methods:{cancelUpload(e){const t=this.$refs.dropzone.dropzone.files.find((t=>t.upload.uuid===e));t&&this.$refs.dropzone.removeFile(t)},dragenter(e){this.dragEventCounter=this.dragEventCounter+1,this.isDragging=e.dataTransfer.types.includes("Files")},dragleave(e){this.dragEventCounter=this.dragEventCounter-1,this.isDragging=this.dragEventCounter>0},drop(e){e.preventDefault(),"drop"===e.type&&(this.isDragging=!1,this.dragEventCounter=0)},dropzoneError(e,t){let n=[];"string"===typeof t?n=[t]:"undefined"!==typeof t.errorMessage?n=[t.errorMessage]:"object"===typeof t&&null!==t&&(n=Object.keys(t).map((e=>t[e])).flat()),this.$nextTick((()=>{this.$nextTick((()=>{this.$nextTick((()=>{const t=this.files.map((t=>(t.id===e.upload.uuid&&(t.errors=n),t)));this.$emit("updated:files",t)}))}))}))},dropzoneFilesAdded(e){this.$nextTick((()=>{const t=Array.from(e).map((e=>({id:e.upload.uuid,name:e.upload.filename,progress:e.upload.progress,errors:[]})));this.$emit("updated:files",this.files.concat(t))}))},dropzoneRemovedFile(e){const t=this.files.filter((t=>!t.id||t.id!==e.upload.uuid));this.$emit("updated:files",t)},dropzoneSuccess(e,t){const n=this.files.map((n=>n.id===e.upload.uuid?t:n));this.$emit("updated:files",n)},dropzoneTotalUploadProgress(e){this.status=this.uploadProgressLabel.replace("{$percent}",e.toFixed(0))},dropzoneUploadProgress(e,t){const n=this.files.map((n=>(n.id===e.upload.uuid&&(n.progress=t),n)));this.$emit("set",this.id,n)},openFileBrowser(){this.$refs.dropzone.dropzone.hiddenFileInput.click()}},mounted(){document.addEventListener("dragenter",this.dragenter,!0),document.addEventListener("dragleave",this.dragleave,!0),document.addEventListener("dragover",this.drop,!0),document.addEventListener("drop",this.drop)},destroyed(){document.removeEventListener("dragenter",this.dragenter,!0),document.removeEventListener("dragleave",this.dragleave,!0),document.removeEventListener("dragover",this.drop,!0),document.removeEventListener("drop",this.drop)}},nb=tb,rb=zh(nb,X_,Q_,!1,null,null,null),ib=rb.exports,ob=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fileUploadProgress"},[t("div",{staticClass:"fileUploadProgress__row"},[t("div",{staticClass:"fileUploadProgress__name",attrs:{id:e.uuid}},[e._v(" "+e._s(e.name)+" ")]),t("div",{staticClass:"fileUploadProgress__actions"},[t("pkp-button",{attrs:{"is-warnable":!0,"aria-describedby":e.uuid},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" "+e._s(e.cancelUploadLabel)+" ")])],1)]),e.errors.length?t("field-error",{attrs:{messages:e.errors}}):t("progress-bar",{attrs:{value:e.progress}})],1)},ab=[],sb=function(){var e=this,t=e._self._c;return t("div",{staticClass:"progressBar"},[t("div",{staticClass:"progressBar__progress",style:{width:e.progress+"%"},attrs:{"aria-valuenow":e.value,"aria-valuemin":e.min,"aria-valuemax":e.max,role:"progressbar"}})])},ub=[],lb={props:{max:{type:Number,default(){return 100}},min:{type:Number,default(){return 0}},value:{type:Number,required:!0}},computed:{progress(){return(this.value/this.max*100).toFixed(0)}}},cb=lb,db=zh(cb,sb,ub,!1,null,null,null),fb=db.exports,hb={components:{FieldError:dg,ProgressBar:fb},props:{cancelUploadLabel:{type:String,required:!0},errors:{type:Array,required:!0},name:{type:String,required:!0},progress:{type:Number,required:!0}},data(){return{uuid:""}},created(){this.uuid=$.pkp.classes.Helper.uuid()}},pb=hb,mb=zh(pb,ob,ab,!1,null,null,null),gb=mb.exports,vb={name:"FileAttacherUpload",components:{ButtonRow:Am,File:T_,FileUploader:ib,FileUploadProgress:gb},props:{addFilesLabel:{type:String,required:!0},attachFilesLabel:{type:String,required:!0},backLabel:{type:String,required:!0},component:{type:String,required:!0},dragAndDropMessage:{type:String,required:!0},dragAndDropOrUploadMessage:{type:String,required:!0},dropzoneOptions:{type:Object,required:!0},removeItemLabel:{type:String,required:!0},temporaryFilesApiUrl:{type:String,required:!0}},data(){return{files:[]}},computed:{isUploading(){return this.files.filter((e=>"progress"in e===!0)).length>1}},methods:{removeFile(e){this.files=this.files.filter(((t,n)=>n!==e))},selectFile(){this.$refs.uploader.openFileBrowser()},updateFiles(e){this.files=[...e]}}},_b=vb,bb=zh(_b,K_,J_,!1,null,null,null),yb=bb.exports,xb={name:"FileAttacher",components:{ActionPanel:Lm,FileAttacherFileStage:Y_,FileAttacherLibrary:B_,FileAttacherReviewFiles:G_,FileAttacherUpload:yb,Modal:Bh},props:{attachers:{type:Array,required:!0}},data(){return{currentAttacher:null,resetFocusTo:null}},methods:{attachFiles(e){this.$emit("attached:files",this.currentAttacher.component,e),this.$modal.hide("attacher")},cancel(){this.$modal.hide("attacher"),this.$nextTick((()=>this.currentAttacher=null))},resetFocus(){this.resetFocusTo&&this.resetFocusTo.focus()},setAttacher(e){this.currentAttacher=e,this.resetFocusTo=document.activeElement,this.$modal.show("attacher")}}},wb=xb,kb=zh(wb,d_,f_,!1,null,null,null),Mb=kb.exports,Sb={name:"Composer",mixins:[uv,qh,a_],components:{FieldAutosuggestPreset:gv,FieldError:dg,FieldPreparedContent:c_,FileAttacher:Mb,Modal:Bh,Search:t_},props:{addCCLabel:{type:String,required:!0},attachers:{type:Array,default(){return[]}},attachments:{type:Array,default(){return[]}},attachFilesLabel:{type:String,required:!0},attachedFilesLabel:{type:String,required:!0},bcc:{type:String,default(){return""}},bccLabel:{type:String,required:!0},body:{type:String,default(){return""}},bodyLabel:{type:String,required:!0},canChangeRecipients:{type:Boolean,default(){return!0}},cc:{type:String,default(){return""}},ccLabel:{type:String,required:!0},confirmSwitchLocaleLabel:{type:String,required:!0},deselectLabel:{type:String,required:!0},emailTemplates:{type:Array,default(){return[]}},emailTemplatesApiUrl:{type:String,default(){return""}},errors:{type:Object,default(){return{}}},findTemplateLabel:{type:String,required:!0},id:{type:String,default(){return"composer"}},initialTemplateKey:{type:String,default(){return""}},insertLabel:{type:String,required:!0},insertModalLabel:{type:String,required:!0},insertContentLabel:{type:String,required:!0},insertSearchLabel:{type:String,default(){return""}},loadTemplateLabel:{type:String,required:!0},locale:{type:String,required:!0},locales:{type:Array,default(){return[]}},moreSearchResultsLabel:{type:String,required:!0},recipients:{type:Array,default(){return[]}},recipientsLabel:{type:String,required:!0},recipientOptions:{type:Array,required:!0},removeItemLabel:{type:String,required:!0},searchingLabel:{type:String,required:!0},searchResultsLabel:{type:String,required:!0},separateEmails:{type:Boolean,default(){return!1}},subject:{type:String,default(){return""}},subjectLabel:{type:String,required:!0},switchToLabel:{type:String,required:!0},switchToNamedLanguageLabel:{type:String,required:!0},variables:{type:Object,default(){return{}}}},data(){return{ccIsEnabled:!1,isFocused:"",isLoadingTemplate:!1,isSearching:!1,latestSearchRequest:"",searchPhrase:"",searchResults:[],showSearchResultCount:10}},computed:{bccBinded:{get(){return this.bcc},set(e){this.emitChange({bcc:e})}},bodyInit(){if(!this.attachers.length)return{};let e=this;return{setup:function(t){t.ui.registry.addButton("pkpAttachFiles",{icon:"upload",text:e.__("common.attachFiles"),onAction(){e.$modal.show(e.fileAttacherModalId)}}),t.settings.toolbar+=" | pkpAttachFiles"}}},ccBinded:{get(){return this.cc},set(e){this.emitChange({cc:e})}},compiledVariables(){const e=[...this.localizedVariables],t=e.find((e=>"recipientName"===e.key));return t?(this.separateEmails?t.value="{$recipientName}":this.canChangeRecipients&&(t.value=this.recipientVariable),e):e},fileAttacherModalId(){return this.id+"fileAttacher"},limitedSearchResults(){return this.searchResults.slice(0,this.showSearchResultCount)},localizedRecipientOptions(){const e=this.locale??$.pkp.app.currentLocale;return this.recipientOptions.map((t=>({value:t.value,label:t.label[e]})))},localizedVariables(){return this.variables[this.locale]?this.variables[this.locale]:[]},otherLocales(){return this.locales.filter((e=>e.locale!==this.locale))},recipientVariable(){let e=this.recipientsSelected.map((e=>e.label)).join(this.__("common.commaListSeparator"));return e||"{$recipientName}"},subjectBinded:{get(){return this.subject},set(e){this.emitChange({subject:e})}},recipientsSelected(){return this.localizedRecipientOptions.filter((e=>this.recipients.includes(e.value)))}},methods:{addAttachments(e,t){const n=[...this.attachments,...t.map((t=>{switch(e){case"FileAttacherUpload":return{name:t.name,temporaryFileId:t.id,documentType:t.documentType};case"FileAttacherFileStage":case"FileAttacherReviewFiles":{const e=this.localize(t.name,this.locale).trim();return{name:""===e?this.localize(t.name):e,submissionFileId:t.id,documentType:t.documentType}}case"FileAttacherLibrary":return{name:t.filename,libraryFileId:t.id,documentType:t.documentType}}}))];this.emitChange({attachments:n}),this.$modal.hide(this.fileAttacherModalId)},changeRecipients(e,t,n){"value"===t&&this.emitChange({recipients:n})},getDocumentTypeIcon(e){return pkp.documentTypeIcons&&e.documentType&&pkp.documentTypeIcons[e.documentType]?pkp.documentTypeIcons[e.documentType]:"file-o"},emitChange(e){this.$emit("set",this.id,e)},enableCC(){this.ccIsEnabled=!0,this.$nextTick((()=>{this.updateToPadding()}))},getBodySnippet(e){const t=70;let n=document.createElement("span");n.innerHTML=e;const r=n.textContent.trim();return r.length<t-3?r:r.substring(0,t).trim()+"..."},loadTemplate(e){this.isLoadingTemplate=!0;const t=this.emailTemplates.find((t=>t.key===e));if(t)return void setTimeout((()=>{this.setBody(t.body[this.locale]),this.setSubject(t.subject[this.locale]),this.isLoadingTemplate=!1}),1e3);this.latestLoadRequest=$.pkp.classes.Helper.uuid();const n=this;$.ajax({url:this.emailTemplatesApiUrl+"/"+e,type:"GET",_uuid:this.latestLoadRequest,error(e){n.latestLoadRequest===this._uuid&&n.ajaxErrorCallback(e)},success(e){n.latestLoadRequest===this._uuid&&(n.setBody(e.body[n.locale]),n.setSubject(e.subject[n.locale]))},complete(){n.latestLoadRequest===this._uuid&&(n.isLoadingTemplate=!1)}})},openSwitchLocale(e){const t=this.locales.find((t=>t.locale===e)).name;this.openDialog({name:"confirmLocaleSwitch",title:this.switchToNamedLanguageLabel.replace("{$name}",t),message:this.confirmSwitchLocaleLabel.replace("{$localeName}",t),actions:[{label:this.switchToNamedLanguageLabel.replace("{$name}",t),isPrimary:!0,callback:()=>{this.switchLocale(e),this.$modal.hide("confirmLocaleSwitch")}},{label:this.__("common.cancel"),isWarnable:!0,callback:()=>this.$modal.hide("confirmLocaleSwitch")}]})},removeAttachment(e){this.emitChange({attachments:this.attachments.filter(((t,n)=>n!==e))})},resetFocusAfterAttachment(){this.$nextTick((()=>{this.$refs.attachedFiles?this.$refs.attachedFiles.focus():this.setFocusIn(this.$el.querySelector(".composer__body"))}))},search(){if(!this.emailTemplatesApiUrl)return;if(!this.searchPhrase)return void(this.searchResults=[]);this.isSearching=!0;const e=$.pkp.classes.Helper.uuid();this.latestSearchRequest=e,this.showSearchResultCount=10,$.ajax({url:this.emailTemplatesApiUrl,type:"GET",context:this,data:{searchPhrase:this.searchPhrase},_uuid:this.latestSearchRequest,error:function(t){this.latestSearchRequest===e&&this.ajaxErrorCallback(t)},success:function(t){this.latestSearchRequest===e&&(this.searchResults=t.items)},complete(){this.latestSearchRequest===e&&(this.isSearching=!1)}})},setBody(e){this.emitChange({body:e})},setSubject(e){this.emitChange({subject:this.renderPreparedContent(e,this.compiledVariables)})},switchLocale(e){this.emitChange({locale:e}),this.$nextTick((()=>this.loadTemplate(this.initialTemplateKey)))},updateToPadding(){const e=this.$el.querySelector(".pkpAutosuggest__inputWrapper"),t=this.$refs.ccButtons?this.$refs.ccButtons.offsetWidth+"px":"";$.pkp.app.rtlLocales.includes(this.locale)?e.style.paddingLeft=t:e.style.paddingRight=t;const n=e.querySelectorAll(".resize-sensor");[...n].forEach((e=>{e.style.width="1px",setTimeout((()=>e.style.width="auto"),1e3)}))}},created(){this.initialTemplateKey&&this.loadTemplate(this.initialTemplateKey)},mounted(){this.updateToPadding()},watch:{searchPhrase(){this.$nextTick((()=>this.search()))}}},Lb=Sb,Cb=zh(Lb,ng,rg,!1,null,null,null),Tb=Cb.exports,Db=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpDateRange"},[t("span",{staticClass:"-screenReader"},[e._v(e._s(e.dateRangeLabel))]),t("span",{staticClass:"pkpDateRange__current",domProps:{innerHTML:e._s(e.currentRange)}}),t("button",{ref:"toggleButton",staticClass:"pkpDateRange__button",on:{click:e.toggle,blur:e.closeOnBlur}},[t("icon",{attrs:{icon:"calendar"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.changeDateRangeLabel)+" ")])],1),e.options&&this.isOpen?t("div",{staticClass:"pkpDateRange__options"},[t("div",{staticClass:"pkpDateRange__optionGroup"},e._l(e.options,(function(n){return t("div",{key:n.value},[t("button",{ref:n.value,refInFor:!0,staticClass:"pkpDateRange__option",on:{click:function(t){return e.selectOption(n.dateStart,n.dateEnd)}}},[e._v(" "+e._s(n.label)+" ")])])})),0),t("form",{staticClass:"pkpDateRange__optionGroup pkpDateRange__form",on:{submit:e.applyCustomRange}},[t("fieldset",{staticClass:"pkpDateRange__inputGroup"},[t("legend",[e._v(e._s(e.customRangeLabel))]),t("div",{staticClass:"-screenReader",attrs:{id:e.uniqueId+"-describedBy"}},[e._v(" "+e._s(e.dateFormatInstructionsLabel)+" ")]),t("label",[t("span",{staticClass:"-screenReader"},[e._v(e._s(e.fromDateLabel))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.localDateStart,expression:"localDateStart"}],ref:"dateStart",staticClass:"pkpDateRange__input pkpDateRange__input--start",attrs:{placeholder:"YYYY-MM-DD","aria-describedby":e.uniqueId+"-describedBy","aria-invalid":!!e.errorMessage},domProps:{value:e.localDateStart},on:{focus:e.focus,input:function(t){t.target.composing||(e.localDateStart=t.target.value)}}})]),t("span",{staticClass:"pkpDateRange__separator"},[e._v("—")]),t("label",[t("span",{staticClass:"-screenReader"},[e._v(e._s(e.toDateLabel))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.localDateEnd,expression:"localDateEnd"}],ref:"dateEnd",staticClass:"pkpDateRange__input pkpDateRange__input--end",attrs:{placeholder:"YYYY-MM-DD","aria-describedby":e.uniqueId+"-describedBy","aria-invalid":!!e.errorMessage},domProps:{value:e.localDateEnd},on:{focus:e.focus,input:function(t){t.target.composing||(e.localDateEnd=t.target.value)}}})])]),t("pkp-button",{on:{click:e.applyCustomRange}},[e._v(e._s(e.applyLabel))]),e.errorMessage?t("div",{staticClass:"pkpDateRange__error"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),t("span",{domProps:{innerHTML:e._s(e.errorMessage)}})],1):e._e()],1)]):e._e()])},Ob=[],Eb={props:{uniqueId:{type:String,required:!0},dateStart:{type:String,default:""},dateStartMin:{type:String,default:""},dateEnd:{type:String,default:""},dateEndMax:{type:String,default:""},dateRangeLabel:{type:String,required:!0},dateFormatInstructionsLabel:{type:String,required:!0},changeDateRangeLabel:{type:String,required:!0},sinceDateLabel:{type:String,required:!0},untilDateLabel:{type:String,required:!0},allDatesLabel:{type:String,required:!0},customRangeLabel:{type:String,required:!0},fromDateLabel:{type:String,required:!0},toDateLabel:{type:String,required:!0},applyLabel:{type:String,required:!0},invalidDateLabel:{type:String,required:!0},dateDoesNotExistLabel:{type:String,required:!0},invalidDateRangeLabel:{type:String,required:!0},invalidStartDateMinLabel:{type:String,required:!0},invalidEndDateMaxLabel:{type:String,required:!0},options:Array},data(){return{isOpen:!1,localDateStart:"",localDateEnd:"",errorMessage:""}},computed:{currentRange(){return this.dateStart&&!this.dateEnd?this.replaceLocaleParams(this.sinceDateLabel,{date:this.dateStart}):!this.dateStart&&this.dateEnd?this.replaceLocaleParams(this.untilDateLabel,{date:this.dateEnd}):this.dateStart||this.dateEnd?this.dateStart+" — "+this.dateEnd:this.allDatesLabel}},methods:{toggle(){this.isOpen=!this.isOpen},focus(){this.isOpen=!0},set(e,t){this.$emit("set-range",e,t)},selectOption(e,t){this.set(e,t),this.$refs.toggleButton.focus(),this.isOpen=!1},applyCustomRange(){if(this.errorMessage="",this.localDateStart.length){if(!this.validateFormat(this.localDateStart))return void(this.errorMessage=this.invalidDateLabel);if(!this.validateDateExists(this.localDateStart))return void(this.errorMessage=this.dateDoesNotExistLabel)}if(this.localDateEnd.length){if(!this.validateFormat(this.localDateEnd))return void(this.errorMessage=this.invalidDateLabel);if(!this.validateDateExists(this.localDateEnd))return void(this.errorMessage=this.dateDoesNotExistLabel)}this.validateRange(this.localDateStart,this.localDateEnd)?this.validateDateStartMin(this.localDateStart)?this.validateDateEndMax(this.localDateEnd)?(this.set(this.localDateStart,this.localDateEnd),this.$refs.toggleButton.focus(),this.isOpen=!1):this.errorMessage=this.replaceLocaleParams(this.invalidEndDateMaxLabel,{date:this.dateEndMax}):this.errorMessage=this.replaceLocaleParams(this.invalidStartDateMinLabel,{date:this.dateStartMin}):this.errorMessage=this.invalidDateRangeLabel},closeOnBlur(){setTimeout((()=>{if(this.$el.contains(document.activeElement))var e=setInterval((()=>{this.$el.contains(document.activeElement)||(this.isOpen=!1,window.clearInterval(e))}),1e3);else this.isOpen=!1}),10)},validateFormat(e){return null!==e.match(/^[\d]{4}-[\d]{2}-[\d]{2}$/)},validateDateExists(e){const t=this.getBrowserSafeDate(e);return!isNaN(t.getTime())},validateRange(e,t){if(!e.length||!t.length)return!0;const n=parseInt(e.replace(/-/g,"")),r=parseInt(t.replace(/-/g,""));return!(n>r)},validateDateStartMin(e){return!this.dateStartMin||parseInt(e.replace(/-/g,""))>=parseInt(this.dateStartMin.replace(/-/g,""))},validateDateEndMax(e){return!this.dateEndMax||parseInt(e.replace(/-/g,""))<=parseInt(this.dateEndMax.replace(/-/g,""))}},mounted(){this.localDateStart=this.dateStart,this.localDateEnd=this.dateEnd},watch:{currentRange(e,t){e!==t&&this.$emit("updated:current-range",e)}}},Ab=Eb,Pb=zh(Ab,Db,Ob,!1,null,null,null),Fb=Pb.exports,Ib=function(){var e=this,t=e._self._c;return t("div",{class:e.classes},[t("button",{staticClass:"pkpFilter__label",class:{"-isActive":e.isFilterActive},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.toggle(e.param,e.value)}}},[e._v(" "+e._s(e.title)+" ")]),e.isFilterActive?t("button",{staticClass:"pkpFilter__remove",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.remove(e.param,e.value)}}},[t("icon",{attrs:{icon:"times-circle-o"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.filterRemove",{filterTitle:e.title}))+" ")])],1):e._e()])},Yb=[],Rb={props:{isFilterActive:{type:Boolean,default(){return!1}},param:{type:String,required:!0},title:{type:String,required:!0},value:{type:[String,Number,Boolean,Array,Object],required:!0}},computed:{classes(){let e=["pkpFilter"];return this.isFilterActive||e.push("pkpFilter--disabled"),e}},methods:{toggle(){this.isFilterActive?this.remove():this.$emit("add-filter",this.param,this.value)},remove(){this.$emit("remove-filter",this.param,this.value)}}},Nb=Rb,Hb=zh(Nb,Ib,Yb,!1,null,null,null),zb=Hb.exports,jb=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFilter--autosuggest",class:e.classes},[t(e.component,e._b({tag:"component",on:{change:e.changeSelection}},"component",e.autosuggest,!1))],1)},Bb=[],Vb={name:"FieldSelectUsers",extends:fv,methods:{setSuggestions(e){const t=e.filter((e=>!this.selected.find((t=>t.id===e.id)))).map((e=>({value:e.id,label:e.fullName})));this.suggestions=t}}},$b=Vb,Ub=zh($b,Jg,Xg,!1,null,null,null),Wb=Ub.exports,qb={name:"FieldSelectIssues",extends:fv,methods:{setSuggestions(e){const t=e.filter((e=>!this.selected.find((t=>t.value===e.id)))).map((e=>({value:e.id,label:e.identification})));this.suggestions=t}}},Gb=qb,Kb=zh(Gb,Qg,Zg,!1,null,null,null),Jb=Kb.exports,Xb={extends:zb,components:{FieldAutosuggestPreset:gv,FieldSelectUsers:Wb,FieldSelectIssues:Jb},props:{component:{type:String,required:!0},autosuggestProps:{type:Object,required:!0}},data(){return{currentValue:this.value,currentSelected:this.autosuggestProps.selected}},computed:{autosuggest(){return{...this.autosuggestProps,value:this.currentValue,selected:this.currentSelected}}},methods:{changeSelection(e,t,n,r){"value"===t?this.currentValue=n:"selected"===t&&(this.currentSelected=n)}},watch:{currentValue(e,t){e.length?this.$emit("add-filter",this.param,e):this.$emit("remove-filter",this.param)}}},Qb=Xb,Zb=zh(Qb,jb,Bb,!1,null,null,null),ey=Zb.exports,ty=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFilter pkpFilter--slider",class:e.classes},[e.isFilterActive?t("button",{staticClass:"pkpFilter__remove",on:{click:e.remove}},[t("icon",{attrs:{icon:"times-circle-o"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.filterRemove",{filterTitle:e.title}))+" ")])],1):t("button",{staticClass:"pkpFilter__add",on:{click:e.enable}},[t("icon",{attrs:{icon:"plus-square-o"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.filterAdd",{filterTitle:e.title}))+" ")])],1),t("div",{staticClass:"pkpFilter__inputTitle",attrs:{"aria-hidden":"true"},on:{click:e.toggle}},[e._v(" "+e._s(e.title)+" ")]),t("div",{staticClass:"pkpFilter__input pkpFilter__input--slider"},[t("label",{staticClass:"-screenReader",attrs:{for:"slider"}},[e._v(e._s(e.title))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.currentValue,expression:"currentValue",modifiers:{number:!0}}],attrs:{type:"range",max:e.max,min:e.min,disabled:!e.isFilterActive,id:"slider"},domProps:{value:e.currentValue},on:{__r:function(t){e.currentValue=e._n(t.target.value)},blur:function(t){return e.$forceUpdate()}}}),e.isFilterActive?t("output",{ref:"output",staticClass:"pkpFilter__value",style:e.valueStyles,attrs:{for:"slider"}},[t("span",{staticClass:"pkpFilter__valueCaret",attrs:{"aria-hidden":"true"}}),e.useStars?t("span",{staticClass:"pkpFilter__value--stars",attrs:{"aria-hidden":"true"}},e._l(5,(function(n){return t("icon",{key:n,attrs:{icon:n<=e.currentValue?"star":"star-o"}})})),1):[e._v(" "+e._s(e.currentValueLabel)+" ")]],2):e._e()])])},ny=[],ry={extends:zb,components:{Icon:fp},props:{max:{type:Number,required:!0},min:{type:Number,required:!0},useStars:{type:Boolean,default(){return!1}},valueLabel:{type:String,default(){return"{$value}"}}},data(){return{currentValue:this.value}},computed:{currentValueLabel(){return this.valueLabel.replace("{$value}",this.currentValue)},valueStyles(){if(this.isFilterActive){const e=Number(100*(this.currentValue-this.min)/(this.max-this.min)),t=8+e/100*-17;return{left:`calc(${e}% + ${t}px)`}}return{}}},methods:{enable(){this.$emit("add-filter",this.param,this.currentValue)},updateCurrentValue:rm()((function(e){this.$emit("update-filter",this.param,e)}),250),remove(){this.$emit("remove-filter",this.param)}},watch:{currentValue:function(e,t){this.updateCurrentValue(e)}}},iy=ry,oy=zh(iy,ty,ny,!1,null,null,null),ay=oy.exports,sy=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFilter--slider pkpFilter--sliderMultirange",class:e.classes},[e.isFilterActive?t("button",{staticClass:"pkpFilter__remove",on:{click:e.remove}},[t("icon",{attrs:{icon:"times-circle-o"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("filterRemove",{filterTitle:e.title}))+" ")])],1):t("button",{staticClass:"pkpFilter__add",on:{click:e.enable}},[t("icon",{attrs:{icon:"plus-square-o"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("filterAdd",{filterTitle:e.title}))+" ")])],1),t("div",{staticClass:"pkpFilter__inputTitle",attrs:{tabindex:!e.isFilterActive&&-1,"aria-hidden":"true"},on:{click:e.toggle}},[e._v(" "+e._s(e.title)+" ")]),t("fieldset",{staticClass:"pkpFilter__input pkpFilter__input--slider pkpFilter__input--sliderMultirange"},[t("legend",{staticClass:"-screenReader"},[e._v(e._s(e.title))]),t("div",{staticClass:"pkpFilter__multirangeInput"},[t("label",{staticClass:"-screenReader",attrs:{for:"sliderMore"}},[e._v(" "+e._s(e.moreThanLabel)+" ")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.currentValue[0],expression:"currentValue[0]",modifiers:{number:!0}}],attrs:{type:"range",max:e.moreThanMax,min:e.min,disabled:!e.isFilterActive,id:"sliderMore"},domProps:{value:e.currentValue[0]},on:{__r:function(t){e.$set(e.currentValue,0,e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),t("div",{staticClass:"pkpFilter__multirangeInput"},[t("label",{staticClass:"-screenReader",attrs:{for:"sliderLess"}},[e._v(" "+e._s(e.lessThanLabel)+" ")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.currentValue[1],expression:"currentValue[1]",modifiers:{number:!0}}],attrs:{type:"range",max:e.max,min:e.lessThanMin,disabled:!e.isFilterActive,id:"sliderLess"},domProps:{value:e.currentValue[1]},on:{__r:function(t){e.$set(e.currentValue,1,e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})])]),t("div",{staticClass:"pkpFilter__value pkpFilter__value--multirange",attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"pkpFilter__valueCaret",attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.currentValueLabel)+" ")])])},uy=[],ly={extends:ay,props:{lessThanLabel:{type:String,required:!0},moreThanLabel:{type:String,required:!0},valueLabel:{type:String,required:!0}},computed:{lessThanMin(){return Math.max(this.min,this.currentValue[0])},moreThanMax(){return Math.min(this.max,this.currentValue[1])},currentValueLabel(){return this.valueLabel.replace("{$min}",this.currentValue[0]).replace("{$max}",this.currentValue[1])}}},cy=ly,dy=zh(cy,sy,uy,!1,null,null,null),fy=dy.exports,hy=function(){var e=this,t=e._self._c;return t("ul",{staticClass:"list"},[e._t("default")],2)},py=[],my={name:"List"},gy=my,vy=zh(gy,hy,py,!1,null,null,null),_y=vy.exports,by=function(){var e=this,t=e._self._c;return t("li",{staticClass:"listItem",class:e.classes},[e.hasValueSlot?t("span",{staticClass:"listItem__value"},[e._t("value")],2):e._e(),t("span",{staticClass:"listItem__label"},[e._t("default")],2)])},yy=[],xy={name:"ListItem",computed:{classes(){let e=[];return this.hasValueSlot&&e.push("listItem--hasLabel"),e},hasValueSlot(){return this.$slots.value}}},wy=xy,ky=zh(wy,by,yy,!1,null,null,null),My=ky.exports,Sy=function(){var e=this,t=e._self._c;return t("div",{staticClass:"orderer"},[e.isDraggable?t("span",{staticClass:"orderer__dragDrop",attrs:{"aria-hidden":"true"}},[t("icon",{attrs:{icon:"sort"}})],1):e._e(),t("button",{staticClass:"orderer__up",on:{click:function(t){return t.preventDefault(),e.up.apply(null,arguments)}}},[t("icon",{attrs:{icon:"angle-up"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.orderUp",{itemTitle:e.itemTitle}))+" ")])],1),t("button",{staticClass:"orderer__down",on:{click:function(t){return t.preventDefault(),e.down.apply(null,arguments)}}},[t("icon",{attrs:{icon:"angle-down"}}),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.orderDown",{itemTitle:e.itemTitle}))+" ")])],1)])},Ly=[],Cy={name:"Orderer",props:{itemId:[String,Number],itemTitle:String,isDraggable:{type:Boolean,default:!0}},methods:{up(){this.$emit("up",this.itemId),this.$nextTick((()=>{this.setFocus("up")}))},down(){this.$emit("down",this.itemId),this.$nextTick((()=>{this.setFocus("down")}))},setFocus:function(e){const t="up"===e?".orderer__up":".orderer__down";this.$el.querySelector(t).focus()}}},Ty=Cy,Dy=zh(Ty,Sy,Ly,!1,null,null,null),Oy=Dy.exports,Ey=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"pkpPagination",attrs:{role:"navigation","aria-label":e.__("common.pagination.label")}},[t("ul",[t("li",[t("pkp-button",{attrs:{disabled:1===e.currentPage,"aria-label":e.__("common.pagination.goToPage",{page:e.__("common.pagination.previous")})},on:{click:function(t){return e.setPage("previous")}}},[e._v(" "+e._s(e.__("common.pagination.previous"))+" ")])],1),e._l(e.items,(function(n,r){return t("li",{key:r},[n.isSeparator?t("span",{staticClass:"pkpPagination__separator",attrs:{"aria-hidden":!0}},[e._v(" ··· ")]):e.isLoading&&n.isCurrent?t("spinner",{staticClass:"pkpPagination__loading"}):t("pkp-button",{attrs:{disabled:n.isDisabled,"aria-label":n.ariaLabel,"aria-current":n.isCurrent,"is-link":!n.isCurrent&&!["previous","next"].includes(n.value),"is-active":n.isCurrent},on:{click:function(t){return e.setPage(n.value)}}},[e._v(" "+e._s(n.label)+" ")])],1)})),t("li",[t("pkp-button",{attrs:{disabled:e.currentPage===e.lastPage},on:{click:function(t){return e.setPage("next")}}},[e._v(" "+e._s(e.__("common.pagination.next"))+" ")])],1)],2)])},Ay=[],Py={props:{currentPage:{type:Number,required:!0},isLoading:{type:Boolean,default:!1},lastPage:{type:Number,required:!0},showAdjacentPages:{type:Number,default:1}},computed:{items(){let e=[],t=Math.min(this.currentPage+this.showAdjacentPages,this.lastPage),n=Math.max(this.currentPage-this.showAdjacentPages,1);if(t-n<this.showAdjacentPages){const e=this.showAdjacentPages-(t-n);1===n?t=Math.min(t+e,this.lastPage):t===this.lastPage&&(n=Math.max(n-e,1))}n>1&&e.push({value:1,label:1,ariaLabel:this.getNumberAriaLabel(1)}),n>2&&e.push({isSeparator:!0});for(let r=n;r<=t;r++)e.push({value:r,isCurrent:this.currentPage===r,label:r,ariaLabel:this.getNumberAriaLabel(r)});return t<this.lastPage-1&&e.push({isSeparator:!0}),t<this.lastPage&&e.push({value:this.lastPage,label:this.lastPage,ariaLabel:this.getNumberAriaLabel(this.lastPage)}),e}},methods:{getNumberAriaLabel:function(e){const t=this.__("common.pageNumber",{pageNumber:e});return this.__("common.pagination.goToPage",{page:t})},setPage:function(e){"previous"===e?e=this.currentPage-1:"next"===e&&(e=this.currentPage+1),e>=1&&e<=this.lastPage&&this.$emit("set-page",e)}}},Fy=Py,Iy=zh(Fy,Ey,Ay,!1,null,null,null),Yy=Iy.exports,Ry=function(){var e=this,t=e._self._c;return t("table",{staticClass:"pkpTable",attrs:{role:"grid","aria-labelledBy":!!e.labelledBy&&e.labelledBy,"aria-describedBy":!!e.describedBy&&e.describedBy}},[e.label||e.description?t("caption",[e.label?t("div",{staticClass:"pkpTable__label"},[e._t("label",(function(){return[e._v(e._s(e.label))]}))],2):e._e(),e.description?t("div",{staticClass:"pkpTable__description",domProps:{innerHTML:e._s(e.description)}}):e._e()]):e._e(),t("thead",[t("tr",e._l(e.columns,(function(n){return t("th",{key:n.name,class:{"-isActive":e.orderBy===n.orderBy},attrs:{scope:"col","aria-sort":!!n.orderBy}},[n.orderBy?t("button",{on:{click:function(t){return e.setOrderBy(n)}}},[e._v(" "+e._s(n.label)+" "),t("icon",{staticClass:"pkpTable__sortIcon",attrs:{icon:e.getIconDirection(n)?"caret-down":"caret-up"}})],1):[e._v(" "+e._s(n.label)+" ")],e._t("thead-"+n.name,null,{column:n})],2)})),0)]),t("tbody",{on:{keydown:[function(t){return(t.type.indexOf("key")||35===t.keyCode)&&t.ctrlKey?t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusEnd.apply(null,arguments)):null},function(t){return(t.type.indexOf("key")||36===t.keyCode)&&t.ctrlKey?t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusStart.apply(null,arguments)):null},function(t){return t.type.indexOf("key")||35===t.keyCode?t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusLastCell.apply(null,arguments)):null},function(t){return t.type.indexOf("key")||36===t.keyCode?t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusFirstCell.apply(null,arguments)):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusPreviousCell.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusPreviousRow.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusNextCell.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.focusNextRow.apply(null,arguments))}]}},e._l(e.rows,(function(n,r){return t("tr",{key:"row"+r,staticClass:"pkpTable__row"},[e._t("default",(function(){return e._l(e.columns,(function(e,i){return t("table-cell",{key:e.name,attrs:{column:e,row:n,tabindex:r||i?-1:0}})}))}),{row:n,rowIndex:r})],2)})),0)])},Ny=[],Hy=function(){var e=this,t=e._self._c;return t(e.tag,{tag:"component",class:e.classes,attrs:{scope:"th"===e.tag&&"row",tabindex:e.tabindex}},[e.hasSlot?[e._t("default",null,{column:e.column,row:e.row})]:[t("span",{domProps:{innerHTML:e._s(e.value)}})]],2)},zy=[],jy={props:{column:Object,row:Object,tabindex:[Number,Boolean]},computed:{tag(){return this.column.isRowHeader?"th":"td"},classes(){let e=["pkpTable__cell"];return this.column.truncate&&(e.push("-truncate"),e.push("-truncate-"+this.column.truncate)),e},hasSlot(){return this.$slots.default},value(){return"function"===typeof this.column.value?this.column.value(this.row):"undefined"!==typeof this.row[this.column.value]?this.row[this.column.value]:""}}},By=jy,Vy=zh(By,Hy,zy,!1,null,null,null),$y=Vy.exports,Uy={components:{TableCell:$y},props:{columns:{type:Array,default(){return[]}},describedBy:{type:String,default(){return""}},description:{type:String,default(){return""}},label:{type:String,default(){return""}},labelledBy:{type:String,default(){return""}},orderBy:{type:String,default(){return""}},orderDirection:{type:Boolean,default(){return!1}},rows:{type:Array,default(){return[]}}},methods:{setOrderBy(e){this.orderBy===e.orderBy?this.$emit("order-by",e.orderBy,!this.orderDirection):this.$emit("order-by",e.orderBy,e.initialOrderDirection)},getIconDirection(e){return this.orderBy===e.orderBy?this.orderDirection:null!==e.initialOrderDirection&&e.initialOrderDirection},focusNextCell(e){$(e.target).closest("td, th").next().focus()},focusPreviousCell(e){$(e.target).closest("td, th").prev().focus()},focusNextRow(e){const t=$(e.target),n=t.closest("td, th"),r=n.closest("tr"),i=r.children().index(n),o=r.next().children();o[i]&&o[i].focus()},focusPreviousRow(e){const t=$(e.target),n=t.closest("td, th"),r=n.closest("tr"),i=r.children().index(n),o=r.prev().children();o[i]&&o[i].focus()},focusFirstCell(e){$(e.target).parents("tr").children("td, th").first().focus()},focusLastCell(e){$(e.target).parents("tr").children("td, th").last().focus()},focusStart(e){$(e.target).parents("tbody").children("tr").first().children("td, th").first().focus()},focusEnd(e){$(e.target).parents("tbody").children("tr").last().children("td, th").last().focus()}}},Wy=Uy,qy=zh(Wy,Ry,Ny,!1,null,null,null),Gy=qy.exports,Ky=function(){var e=this,t=e._self._c;return t("form",{staticClass:"pkpForm -pkpClearfix",attrs:{method:e.method,action:e.action}},[e._l(e.hiddenFields,(function(e,n){return t("input",{key:n,attrs:{type:"hidden",name:n},domProps:{value:e}})})),e.availableLocales.length>1?t("form-locales",{attrs:{primaryLocaleKey:e.primaryLocale,locales:e.availableLocales,visible:e.visibleLocales},on:{updateLocales:e.setVisibleLocales}}):e._e(),e.pages.length>1?t("div",{staticClass:"pkpForm__pageNav"},[t("ol",{staticClass:"pkpForm__pageNavList"},e._l(e.pages,(function(n){return t("li",{key:n.id,staticClass:"pkpForm__pageNavListItem"},[t("button",{staticClass:"pkpForm__pageNavPage",class:{"pkpForm__pageNavPage--current":n.id===e.currentPage},on:{click:function(t){return t.preventDefault(),e.setCurrentPage(n.id)}}},[e._v(" "+e._s(n.label)+" ")]),e.pageIdsWithErrors.includes(n.id)?t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}):e._e()],1)})),0)]):e._e(),t("div",{staticClass:"pkpFormPages",class:e.classes},e._l(e.pages,(function(n,r){return t("form-page",e._b({key:n.id,attrs:{groups:e.groups,fields:e.fields,errors:e.errors,formId:e.id,canSubmit:e.canSubmit,isCurrentPage:e.currentPage===n.id,isLastPage:r===e.pages.length-1,lastSaveTimestamp:e.lastSaveTimestamp,primaryLocale:e.primaryLocale,visibleLocales:e.visibleLocales,availableLocales:e.availableLocales,isSaving:e.isSaving},on:{change:e.fieldChanged,pageSubmitted:e.nextPage,previousPage:function(t){return e.setCurrentPage(!1)},showField:e.showField,showLocale:e.showLocale,"set-errors":e.setErrors}},"form-page",n,!1))})),1)],2)},Jy=[],Xy=function(){var e=this,t=e._self._c;return e.locales.length?t("div",{staticClass:"pkpFormLocales"},[e._l(e.additionalLocales,(function(n){return t("button",{key:n.key,staticClass:"pkpFormLocales__locale",class:{"pkpFormLocales__locale--isActive":e.visible.includes(n.key)},attrs:{type:"button",label:n.label},on:{click:function(t){return t.preventDefault(),e.toggleLocale(n.key)}}},[e._v(" "+e._s(n.label)+" ")])})),t("span",{staticClass:"pkpFormLocales__locale pkpFormLocales__locale--isPrimary"},[e._v(" "+e._s(this.primaryLocale.label)+" ")])],2):e._e()},Qy=[],Zy={name:"FormLocales",props:{locales:{type:Array,required:!0},visible:{type:Array,required:!0},primaryLocaleKey:{type:String,required:!0}},computed:{primaryLocale(){return this.locales.find((e=>e.key===this.primaryLocaleKey))},additionalLocales(){return this.locales.filter((e=>e.key!==this.primaryLocaleKey))}},methods:{toggleLocale:function(e){let t=[this.primaryLocaleKey];this.visible.includes(e)||t.push(e),this.updateLocales(t)},updateLocales:function(e){this.$emit("updateLocales",e)}}},ex=Zy,tx=zh(ex,Xy,Qy,!1,null,null,null),nx=tx.exports,rx=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormPage",class:{"pkpFormPage--current":e.isCurrentPage}},[e._l(e.groupsInPage,(function(n){return t("form-group",e._b({key:n.id,attrs:{fields:e.fields,errors:e.errors,primaryLocale:e.primaryLocale,visibleLocales:e.visibleLocales,availableLocales:e.availableLocales,formId:e.formId},on:{change:e.fieldChanged,"set-errors":e.setErrors}},"form-group",n,!1))})),e.hasFooter?t("button-row",{ref:"footer",staticClass:"pkpFormPage__footer",attrs:{"aria-live":"polite"}},[Object.keys(e.errors).length?t("form-errors",{attrs:{errors:e.errors,fields:e.fields},on:{showField:e.showField,showLocale:e.showLocale}}):e._e(),t("span",{attrs:{role:"status","aria-live":"polite","aria-atomic":"true"}},[t("transition",{attrs:{name:"pkpFormPage__status"}},[e.isSaving?t("span",{staticClass:"pkpFormPage__status"},[t("spinner"),e._v(" "+e._s(e.__("common.saving"))+" ")],1):e.hasRecentSave?t("span",{staticClass:"pkpFormPage__status"},[t("icon",{attrs:{icon:"check",inline:!0}}),e._v(" "+e._s(e.__("form.saved"))+" ")],1):e._e()])],1),e.previousButton?t("pkp-button",e._b({on:{click:e.previousPage}},"pkp-button",e.previousButton,!1),[e._v(" "+e._s(e.previousButton.label)+" ")]):e._e(),e.submitButton?t("pkp-button",e._b({attrs:{disabled:e.isSaving||!e.canSubmit||e.isLastPage&&!!Object.keys(e.errors).length},on:{click:e.submit}},"pkp-button",e.submitButton,!1),[e._v(" "+e._s(e.submitButton.label)+" ")]):e._e()],1):e._e()],2)},ix=[],ox=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormErrors"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),e._v(" "+e._s(e.message)+" "),t("ul",{staticClass:"-screenReader"},e._l(e.errorList,(function(n,r){return t("li",{key:r},[t("button",{on:{click:function(t){return t.preventDefault(),e.showError(n.fieldName)}}},[e._v(" "+e._s(e.__("form.errorA11y",{fieldLabel:n.label,errorMessage:n.message}))+" ")])])})),0),t("button",{staticClass:"pkpFormErrors__goTo",on:{click:function(t){return t.preventDefault(),e.showNextError.apply(null,arguments)}}},[e._v(" "+e._s(e.__("form.errorGoTo"))+" ")])],1)},ax=[],sx={name:"FormErrors",props:{errors:Object,fields:Array},computed:{message(){return 1===Object.keys(this.errors).length?this.__("form.errorOne"):this.__("form.errorMany",{count:Object.keys(this.errors).length})},errorList(){return Object.keys(this.errors).map((e=>{const t=this.fields.find((t=>t.name===e)),n=t?t.label:e;let r;return r=null!==this.errors[e]&&"object"===typeof this.errors[e]?this.errors[e][Object.keys(this.errors[e])[0]]:this.errors[e],{fieldName:e,label:n,message:r}}))}},methods:{showNextError(){this.showError(Object.keys(this.errors)[0])},showError:function(e){const t=this.errors[e];t&&"object"===typeof t&&t.constructor===Object&&this.$emit("showLocale",Object.keys(t)[0]),this.$emit("showField",e)}}},ux=sx,lx=zh(ux,ox,ax,!1,null,null,null),cx=lx.exports,dx=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormGroup -pkpClearfix"},[e.label?t("div",{staticClass:"pkpFormGroup__heading"},[t("legend",{staticClass:"pkpFormGroup__legend"},[e._v(e._s(e.label))]),e.description?t("div",{staticClass:"pkpFormGroup__description",domProps:{innerHTML:e._s(e.description)}}):e._e()]):e._e(),t("div",{staticClass:"pkpFormGroup__fields"},[e._l(e.fieldsInGroup,(function(n){return[n.isMultilingual?[t("div",{key:n.name,staticClass:"pkpFormGroup__localeGroup -pkpClearfix"},e._l(e.availableLocales,(function(r){return t("div",{key:r.key,staticClass:"pkpFormGroup__locale",class:{"pkpFormGroup__locale--isVisible":e.visibleLocales.includes(r.key)}},[t(n.component,e._b({tag:"component",attrs:{allErrors:e.errors,localeKey:r.key,formId:e.formId,primaryLocale:e.primaryLocale,locales:e.availableLocales},on:{change:e.fieldChanged,"set-errors":e.setFieldErrors}},"component",n,!1))],1)})),0)]:[t(n.component,e._b({key:n.name,tag:"component",attrs:{allErrors:e.errors,formId:e.formId},on:{change:e.fieldChanged,"set-errors":e.setFieldErrors}},"component",n,!1))]]}))],2)])},fx=[],hx=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormField pkpFormField--options pkpFormField--archivingPn",class:e.classes},[t("legend",{staticClass:"pkpFormField--options__legend"},[e.localeLabel?[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.localeLabel))]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.multilingualLabel))])]:[e._v(" "+e._s(e.label)+" ")],e.isRequired?t("span",{staticClass:"pkpFormFieldLabel__required"},[e._v(" * "),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.required")))])]):e._e(),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],2),e.description?t("div",{staticClass:"pkpFormField__description pkpFormField--options__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),e.terms&&e.value?t("div",{staticClass:"pkpFormField__description pkpFormField--options__description pkpFormField--archivingPn__terms",domProps:{innerHTML:e._s(e.terms)}}):e._e(),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],attrs:{type:"hidden"},domProps:{value:e.selectedValue},on:{input:function(t){t.target.composing||(e.selectedValue=t.target.value)}}}),t("div",{staticClass:"pkpFormField__control"},e._l(e.localizedOptions,(function(n){return t("label",{key:n.value,staticClass:"pkpFormField--options__option"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"pkpFormField--options__input",attrs:{type:"checkbox",name:e.name,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:e.isSaving||n.disabled},domProps:{value:n.value,checked:Array.isArray(e.selectedValue)?e._i(e.selectedValue,n.value)>-1:e.selectedValue},on:{change:function(t){var r=e.selectedValue,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.value,s=e._i(r,a);i.checked?s<0&&(e.selectedValue=r.concat([a])):s>-1&&(e.selectedValue=r.slice(0,s).concat(r.slice(s+1)))}else e.selectedValue=o}}}),e._v(" "+e._s(n.label)+" "),e.isSaving?t("span",{staticClass:"pkpSpinner",attrs:{"aria-hidden":"true"}}):e._e()])})),0)],1)},px=[],mx=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormField pkpFormField--options",class:e.classes},[t("legend",{staticClass:"pkpFormField--options__legend"},[e.localeLabel?[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.localeLabel))]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.multilingualLabel))])]:[e._v(" "+e._s(e.label)+" ")],e.isRequired?t("span",{staticClass:"pkpFormFieldLabel__required"},[e._v(" * "),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.required")))])]):e._e(),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],2),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description pkpFormField--options__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[t("draggable",{attrs:{disabled:!e.isOrderable},on:{end:e.updateValueOrder},model:{value:e.localizedOptions,callback:function(t){e.localizedOptions=t},expression:"localizedOptions"}},e._l(e.localizedOptions,(function(n){return t("label",{key:n.value,staticClass:"pkpFormField--options__option"},["checkbox"===e.type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"pkpFormField--options__input",attrs:{type:"checkbox",name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:n.value,checked:Array.isArray(e.selectedValue)?e._i(e.selectedValue,n.value)>-1:e.selectedValue},on:{change:function(t){var r=e.selectedValue,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.value,s=e._i(r,a);i.checked?s<0&&(e.selectedValue=r.concat([a])):s>-1&&(e.selectedValue=r.slice(0,s).concat(r.slice(s+1)))}else e.selectedValue=o}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"pkpFormField--options__input",attrs:{type:"radio",name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:n.value,checked:e._q(e.selectedValue,n.value)},on:{change:function(t){e.selectedValue=n.value}}}),t("span",{staticClass:"pkpFormField--options__optionLabel",domProps:{innerHTML:e._s(n.label)}}),e.isOrderable?t("orderer",{attrs:{itemId:n.value,itemTitle:n.label},on:{up:e.optionOrderUp,down:e.optionOrderDown}}):e._e()],1)})),0),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)},gx=[],vx=n(9980),_x=n.n(vx),bx={name:"FieldOptions",extends:Hg,components:{draggable:_x(),Orderer:Oy},props:{type:{validator:function(e){return["checkbox","radio"].includes(e)},default:"checkbox"},isOrderable:{type:Boolean,default:!1},options:{type:[Array,Object],required:!0},value:{type:[Array,Number,String,Boolean],required:!0}},data(){return{localizedOptions:this.isMultilingual?this.options[this.localeKey]:this.options,selectedValue:this.isMultilingual?this.value[this.localeKey]:this.value}},computed:{classes(){let e=[];return this.isOrderable&&e.push("pkpFormField--optionsOrderable"),e}},methods:{optionOrderUp:function(e){const t=this.localizedOptions.findIndex((t=>t.value===e));t&&(this.localizedOptions.splice(t-1,0,this.localizedOptions.splice(t,1)[0]),this.updateValueOrder())},optionOrderDown:function(e){const t=this.localizedOptions.findIndex((t=>t.value===e));t<0||t>=this.localizedOptions.length-1||(this.localizedOptions.splice(t+1,0,this.localizedOptions.splice(t,1)[0]),this.updateValueOrder())},updateValueOrder(){this.selectedValue=this.localizedOptions.filter((e=>this.selectedValue.includes(e.value))).map((e=>e.value))}},watch:{value(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.selectedValue=this.isMultilingual?this.value[this.localeKey]:this.value)},selectedValue:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.isOrderable&&(e=this.localizedOptions.filter((t=>e.includes(t.value))).map((e=>e.value))),this.$emit("change",this.name,"value",e,this.localeKey))},options:function(e){this.localizedOptions=this.isMultilingual?e[this.localeKey]:e}}},yx=bx,xx=zh(yx,mx,gx,!1,null,null,null),wx=xx.exports,kx={name:"FieldArchivingPn",extends:wx,props:{value:{type:Boolean,required:!0},terms:{type:String,required:!0},disablePluginSuccess:{type:String,required:!0},enablePluginSuccess:{type:String,required:!0},enablePluginUrl:{type:String,required:!0},disablePluginUrl:{type:String,required:!0},settingsUrl:{type:String,required:!0}},data(){return{isSaving:!1}},methods:{addSettingsListener(){this.$nextTick((()=>{$(".pkpFormField--archivingPn__terms button",this.$el).click((e=>{e.stopPropagation(),e.preventDefault();var t={title:"Test title",url:this.settingsUrl,closeCallback:this.resetFocus};return $('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabindex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",t),!1}))}))},removeSettingsListener(){$(".pkpFormField--archivingPn__terms button",this.$el).off()},resetFocus(){$(".pkpFormField--archivingPn__terms button",this.$el).focus()},success:function(e){e.status?pkp.eventBus.$emit("notify",this.value?this.enablePluginSuccess:this.disablePluginSuccess,"success"):pkp.eventBus.$emit("notify",this.__("common.unknownError"),"warning")},error(){pkp.eventBus.$emit("notify",this.enablePluginError,"warning")},complete(){this.isSaving=!1}},watch:{value:function(e,t){e!==t&&(e?this.addSettingsListener():this.removeSettingsListener(),this.isSaving=!0,$.ajax({method:"POST",url:e?this.enablePluginUrl:this.disablePluginUrl,data:{csrfToken:pkp.currentUser.csrfToken,disableNotification:!1},success:this.success,error:this.error,complete:this.complete}))}},mounted(){this.value&&this.addSettingsListener()},beforeDestroy(){this.value||$(".pkpFormField--archivingPn__terms button",this.$el).off()}},Mx=kx,Sx=zh(Mx,hx,px,!1,null,null,null),Lx=Sx.exports,Cx=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormField pkpFormField--color"},[t("legend",{staticClass:"pkpFormField__heading--legend"},[e.localeLabel?[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.localeLabel))]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.multilingualLabel))])]:[e._v(" "+e._s(e.label)+" ")],e.isRequired?t("span",{staticClass:"pkpFormFieldLabel__required"},[e._v(" * "),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.required")))])]):e._e(),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],2),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[t("color-picker",{attrs:{value:e.currentValue,disableAlpha:!0},on:{input:e.setValue}}),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},Tx=[],Dx=n(4023),Ox={name:"FieldColor",extends:Hg,components:{"color-picker":Dx.Chrome},methods:{setValue:function(e){e.hex!==this.currentValue&&(this.currentValue=e.hex)}}},Ex=Ox,Ax=zh(Ex,Cx,Tx,!1,null,null,null),Px=Ax.exports,Fx=(n(541),{name:"FieldControlledVocab",extends:fv,data(){return{allSuggestions:[],suggestionsLoaded:!1}},methods:{getSuggestions(){this.inputValue?(this.suggestionsLoaded||this.loadSuggestions(this.setSuggestions),this.setSuggestions()):this.suggestions=[]},loadSuggestions(e){$.ajax({url:this.apiUrl,type:"GET",context:this,data:this.isMultilingual?{locale:this.localeKey}:{},error(e){this.ajaxErrorCallback(e)},success(t){this.allSuggestions=t.map((e=>({value:e,label:e}))),this.suggestionsLoaded=!0,e&&e.apply(this)}})},selectSuggestion(e){e?this.select(e.item):this.inputValue&&this.select({value:this.inputValue,label:this.inputValue})},setSuggestions:rm()((function(){const e=new RegExp(this.inputValue.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"gi");this.suggestions=this.allSuggestions.filter((t=>!this.inputValue||this.inputValue!==t.value&&t.value.match(e))),this.inputValue&&!this.suggestions.includes(this.inputValue)&&this.suggestions.unshift({value:this.inputValue,label:this.inputValue})}),250)},watch:{value(e,t){e&&e!==t&&JSON.stringify(e)!==JSON.stringify(t)&&this.loadSuggestions((()=>{const t=this.isMultilingual?e[this.localeKey]:e;Array.isArray(t)?this.setSelected(this.allSuggestions.filter((e=>t.includes(e.value)))):this.setSelected([])}))}}}),Ix=Fx,Yx=zh(Ix,ev,tv,!1,null,null,null),Rx=Yx.exports,Nx=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--pubid"},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,isRequired:e.isRequired,requiredLabel:e.__("common.required")}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"pkpFormField__input pkpFormField--text__input pkpFormField--pubid__input",attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:!!e.pattern,required:e.isRequired},domProps:{value:e.currentValue},on:{input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.pattern&&e.canGenerateId&&!e.currentValue?t("pkp-button",{staticClass:"pkpFormField--pubid__button",on:{click:e.assignId}},[e._v(" "+e._s(e.assignIdLabel)+" ")]):e.pattern&&e.currentValue?t("pkp-button",{staticClass:"pkpFormField--pubid__button",attrs:{isWarnable:!0},on:{click:()=>e.currentValue=""}},[e._v(" "+e._s(e.clearIdLabel)+" ")]):e._e(),!e.pattern||e.canGenerateId||e.currentValue?e._e():t("div",{staticClass:"pkpFormField--pubid__warning",attrs:{id:e.describedByDescriptionId}},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),e._v(" "+e._s(e.missingPartsLabel)+" ")],1),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},Hx=[],zx={name:"FieldPubId",extends:Hg,props:{assignIdLabel:{type:String,required:!0},clearIdLabel:{type:String,required:!0},contextInitials:{type:String,default(){return""}},isPForPress:{type:Boolean,default(){return!1}},issueNumber:{type:[String,Number],default(){return""}},issueVolume:{type:[String,Number],default(){return""}},missingPartsLabel:{type:String,required:!0},pages:{type:String,default(){return""}},pattern:{type:String,required:!0},prefix:{type:String,required:!0},publisherId:{type:String,default(){return""}},separator:{type:String,default(){return""}},submissionId:{type:Number,default(){return 0}},publicationId:{type:Number,default(){return 0}},year:{type:[String,Number],default(){return""}}},computed:{canGenerateId(){return(this.issueNumber||!this.pattern.includes("%i"))&&(this.issueVolume||!this.pattern.includes("%v"))&&(!this.isPForPress&&(this.contextInitials||!this.pattern.includes("%j"))&&(this.pages||!this.pattern.includes("%p"))||this.isPForPress&&(this.contextInitials||!this.pattern.includes("%j")))&&(this.publisherId||!this.pattern.includes("%x"))&&(this.submissionId||!this.pattern.includes("%a"))&&(this.submissionId||!this.pattern.includes("%m"))&&(this.publicationId||!this.pattern.includes("%b"))&&(this.year||!this.pattern.includes("%Y"))}},methods:{assignId(){this.currentValue=this.generateId()},generateId(){let e=this.prefix+this.separator+this.pattern.replace("%i",this.issueNumber).replace("%v",this.issueVolume).replace("%x",this.publisherId).replace("%Y",this.year);return e=this.isPForPress?e.replace("%p",this.contextInitials).replace("%m",this.submissionId):e.replace("%j",this.contextInitials).replace("%a",this.submissionId).replace("%b",this.publicationId).replace("%p",this.pages),e}}},jx=zx,Bx=zh(jx,Nx,Hx,!1,null,null,null),Vx=Bx.exports,$x=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--html"},[t("div",{staticClass:"pkpFormField__heading"},[t("span",{staticClass:"pkpFormFieldLabel"},[e._v(" "+e._s(e.label)+" ")]),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),t("div",{staticClass:"pkpFormField__control pkpFormField__control--html",domProps:{innerHTML:e._s(e.description)}})])},Ux=[],Wx={name:"FieldHtml",extends:Hg},qx=Wx,Gx=zh(qx,$x,Ux,!1,null,null,null),Kx=Gx.exports,Jx=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormField pkpFormField--options pkpFormField--metadata"},[t("legend",{staticClass:"pkpFormField--options__legend"},[e._v(" "+e._s(e.label)+" "),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.description?t("div",{staticClass:"pkpFormField__description pkpFormField--options__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[e._l(e.options,(function(n){return t("label",{key:n.value,staticClass:"pkpFormField--options__option"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isEnabled,expression:"isEnabled"}],staticClass:"pkpFormField--options__input",attrs:{type:"checkbox","aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:n.value,checked:Array.isArray(e.isEnabled)?e._i(e.isEnabled,n.value)>-1:e.isEnabled},on:{change:function(t){var r=e.isEnabled,i=t.target,o=!!i.checked;if(Array.isArray(r)){var a=n.value,s=e._i(r,a);i.checked?s<0&&(e.isEnabled=r.concat([a])):s>-1&&(e.isEnabled=r.slice(0,s).concat(r.slice(s+1)))}else e.isEnabled=o}}}),t("span",{staticClass:"pkpFormField--options__optionLabel",domProps:{innerHTML:e._s(n.label)}})])})),e.isEnabled?t("div",{staticClass:"pkpFormField--metadata__submissionOptions"},e._l(e.submissionOptions,(function(n){return t("label",{key:"submission"+n.value,staticClass:"pkpFormField--options__option"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"pkpFormField--options__input pkpFormField--metadata__submissionInput",attrs:{type:"radio","aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:n.value,checked:e._q(e.selectedValue,n.value)},on:{change:function(t){e.selectedValue=n.value}}}),t("span",{staticClass:"pkpFormField--options__optionLabel",domProps:{innerHTML:e._s(n.label)}})])})),0):e._e()],2)],1)},Xx=[],Qx={name:"FieldMetadataSetting",extends:wx,props:{disabledValue:{type:Number,required:!0},enabledOnlyValue:{type:String,required:!0},value:{type:[Number,String],required:!0},submissionOptions:{type:Array,required:!0}},data(){return{isEnabled:this.disabledValue!==this.value}},watch:{isEnabled:function(e,t){e!==t&&(this.selectedValue=e?this.enabledOnlyValue:this.disabledValue)}}},Zx=Qx,ew=zh(Zx,Jx,Xx,!1,null,null,null),tw=ew.exports,nw=function(){var e=this,t=e._self._c;return t("fieldset",{staticClass:"pkpFormField pkpFormField--options",class:e.classes},[t("legend",{staticClass:"pkpFormField--options__legend"},[e.localeLabel?[t("span",{staticClass:"aria-hidden"},[e._v(e._s(e.localeLabel))]),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.multilingualLabel))])]:[e._v(" "+e._s(e.label)+" ")],e.isRequired?t("span",{staticClass:"pkpFormFieldLabel__required"},[e._v(" * "),t("span",{staticClass:"-screenReader"},[e._v(e._s(e.__("common.required")))])]):e._e(),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],2),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description pkpFormField--options__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],attrs:{type:"hidden"},domProps:{value:e.selectedValue},on:{input:function(t){t.target.composing||(e.selectedValue=t.target.value)}}}),t("div",{staticClass:"pkpFormField__control"},[e._l(e.localizedOptions,(function(n){return t("label",{key:n.value,staticClass:"pkpFormField--options__option"},[n.isInput?[t("input",{ref:"inputRadio",refInFor:!0,staticClass:"pkpFormField--options__input",attrs:{type:"radio",name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},on:{change:e.selectInput}}),n.label?t("span",[e._v(e._s(n.label))]):e._e(),t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"inputText",refInFor:!0,staticClass:"pkpFormField__input pkpFormField--options__input--text",attrs:{type:"text","aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:e.inputValue},on:{focus:e.selectInput,input:function(t){t.target.composing||(e.inputValue=t.target.value)}}})]:[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"pkpFormField--options__input",attrs:{type:"radio",name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:n.disabled},domProps:{value:n.value,checked:e._q(e.selectedValue,n.value)},on:{change:function(t){e.selectedValue=n.value}}}),e._v(" "+e._s(n.label)+" ")]],2)})),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],2)],1)},rw=[],iw={name:"FieldRadioInput",extends:wx,props:{value:{type:String,required:!0}},data(){return{inputValue:""}},computed:{isInputSelected(){return!this.localizedOptions.filter((e=>!e.isInput)).map((e=>e.value)).includes(this.selectedValue)}},methods:{selectInput(){this.selectedValue=this.inputValue,this.$refs.inputRadio[0].checked=!0,this.$refs.inputText[0].focus()},setInputToSelected(){this.selectedValue=this.inputValue}},watch:{inputValue:function(e,t){e!==t&&this.isInputSelected&&(this.selectedValue=this.inputValue)}},mounted(){this.isInputSelected&&(this.inputValue=this.isMultilingual?this.value[this.localeKey]:this.value,this.$refs.inputRadio[0].checked=!0)}},ow=iw,aw=zh(ow,nw,rw,!1,null,null,null),sw=aw.exports,uw={name:"FieldRichText",extends:qv,props:{i18nFormattingLabel:{type:String,required:!0},size:{type:String,default(){return"oneline"},validator(e){return["oneline"].includes(e)}}},computed:{compiledInit(){let e=qv.computed.compiledInit.apply(this);return delete e.url_converter_callback,{...e,forced_root_block:"",toolbar_groups:{formatgroup:{icon:"text-color",tooltip:this.i18nFormattingLabel,items:"bold italic underline superscript subscript"}},content_css:$.pkp.app.tinyMceOneLineContentCSS,formats:{bold:[{inline:"b",remove:"all",exact:!0}],italic:[{inline:"i",remove:"all",exact:!0}],underline:[{inline:"u",remove:"all",exact:!0}],subscript:[{inline:"sub",remove:"all",exact:!0}],superscript:[{inline:"sup",remove:"all",exact:!0}]},extended_valid_elements:"b,i",invalid_elements:"em strong",paste_preprocess:(e,t)=>{t.content=$("<div>"+t.content+"</div>").text()},setup:e=>{e.on("keyDown",(e=>{if(13===parseInt(e.keyCode))return e.preventDefault(),void e.stopPropagation()}))}}}},methods:{blur(){qv.methods.blur.apply(this),this.closeToolbar()},closeToolbar(){const e=this.$el.querySelector(".tox-tbtn[aria-owns]");if(e){const t=document.getElementById(e.getAttribute("aria-owns"));if(t){const t=document.activeElement;e.click(),t&&t.focus()}}}}},lw=uw,cw=zh(lw,nv,rv,!1,null,null,null),dw=cw.exports,fw=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--select"},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control",class:{"pkpFormField__control--hasMultilingualIndicator":e.isMultilingual&&e.locales.length>1}},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"pkpFormField__input pkpFormField--select__input",attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,required:e.isRequired},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.currentValue=t.target.multiple?n:n[0]}}},e._l(e.localizedOptions,(function(n){return t("option",e._b({key:n.value},"option",n,!1),[e._v(" "+e._s(n.label)+" ")])})),0),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e(),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},hw=[],pw={name:"FieldSelect",extends:Hg,props:{options:Array},computed:{localizedOptions(){return this.isMultilingual?this.options[this.localeKey]:this.options}}},mw=pw,gw=zh(mw,fw,hw,!1,null,null,null),vw=gw.exports,_w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--select pkpFormField--selectIssue"},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,isRequired:e.isRequired,requiredLabel:e.__("common.required")}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[t("span",{staticClass:"pkpFormField__description"},[t("span",{domProps:{innerHTML:e._s(e.notice)}}),e.button?t("pkp-button",e._b({staticClass:"pkpFormField--selectIssue__button",on:{click:function(t){return e.emitGlobal(e.button.event)}}},"pkp-button",e.button,!1),[e._v(" "+e._s(e.button.label)+" ")]):e._e()],1),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},bw=[],yw={name:"FieldSelectIssue",extends:vw,props:{assignedNoticeBase:{type:String,required:!0},assignLabel:{type:String,required:!0},changeIssueLabel:{type:String,required:!0},publicationStatus:{type:Number,required:!0},publishedNoticeBase:{type:String,required:!0},scheduledNoticeBase:{type:String,required:!0},unscheduledNotice:{type:String,required:!0},unscheduleLabel:{type:String,required:!0}},computed:{button(){let e=null;return this.publicationStatus===pkp.const.STATUS_SCHEDULED?e={event:"unpublish:publication",isWarnable:!0,label:this.unscheduleLabel}:this.publicationStatus!==pkp.const.STATUS_PUBLISHED&&(e={event:"schedule:publication",label:this.value?this.changeIssueLabel:this.assignLabel}),e},notice(){let e="";if(this.publicationStatus===pkp.const.STATUS_PUBLISHED)e=this.publishedNoticeBase;else if(this.publicationStatus===pkp.const.STATUS_SCHEDULED)e=this.scheduledNoticeBase;else{if(!this.value)return this.unscheduledNotice;e=this.assignedNoticeBase}return e.replace("__issueId__",this.value).replace("{$issueName}",this.selectedIssueName)},selectedIssueName(){if(!this.value)return"";const e=this.options.find((e=>e.value===this.value));return e?e.label:""}},methods:{emitGlobal(e){pkp.eventBus.$emit(e)}}},xw=yw,ww=zh(xw,_w,bw,!1,null,null,null),kw=ww.exports,Mw={name:"FieldSelectSubmissions",extends:fv,methods:{setSuggestions(e){const t=e.filter((e=>!this.selected.find((t=>t.id===e.id)))).map((e=>{const t=e.publications.find((t=>t.id===e.currentPublicationId));return t?{value:e.id,label:this.localize(t.fullTitle)}:{value:0,label:""}}));this.suggestions=t}}},Sw=Mw,Lw=zh(Sw,iv,ov,!1,null,null,null),Cw=Lw.exports,Tw={name:"FieldShowEnsuringLink",extends:wx,mixins:[qh],props:{message:String,modalTitle:String},computed:{classes(){return["pkpFormField--showEnsuringLink"]}},mounted(){$(".pkpFormField--options__option button",this.$el).click((()=>(this.openDialog({name:"ensureAnonymousReview",confirmLabel:this.__("common.ok"),message:this.message,title:this.modalTitle,callback:()=>{this.$modal.hide("ensureAnonymousReview")}},{height:"auto",scrollable:!0}),!1)))},beforeDestroy(){$(".pkpFormField--options__option button",this.$el).off()}},Dw=Tw,Ow=zh(Dw,av,sv,!1,null,null,null),Ew=Ow.exports,Aw=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--text",class:e.classes},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control",class:e.controlClasses},[t("div",{staticClass:"pkpFormField__control_top"},["checkbox"===e.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"pkpFormField__input pkpFormField--text__input",style:e.inputStyles,attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:e.isDisabled,required:e.isRequired,type:"checkbox"},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{change:function(t){var n=e.currentValue,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.currentValue=n.concat([o])):a>-1&&(e.currentValue=n.slice(0,a).concat(n.slice(a+1)))}else e.currentValue=i}}}):"radio"===e.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"pkpFormField__input pkpFormField--text__input",style:e.inputStyles,attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:e.isDisabled,required:e.isRequired,type:"radio"},domProps:{checked:e._q(e.currentValue,null)},on:{change:function(t){e.currentValue=null}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"pkpFormField__input pkpFormField--text__input",style:e.inputStyles,attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,disabled:e.isDisabled,required:e.isRequired,type:e.inputType},domProps:{value:e.currentValue},on:{input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.prefix?t("span",{ref:"prefix",staticClass:"pkpFormField__inputPrefix",style:e.prefixStyles,domProps:{innerHTML:e._s(e.prefix)},on:{click:e.setFocus}}):e._e(),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e(),e.optIntoEdit&&e.isDisabled?t("pkp-button",{staticClass:"pkpFormField--text__optIntoEdit",on:{click:function(t){e.isDisabled=!1}}},[e._v(" "+e._s(e.optIntoEditLabel)+" ")]):e._e()],1),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)])},Pw=[],Fw={name:"FieldText",extends:Hg,props:{inputType:String,optIntoEdit:Boolean,optIntoEditLabel:String,size:{default:"normal",validator:function(e){return-1!==["small","normal","large"].indexOf(e)}},prefix:String},data(){return{inputStyles:{},isDisabled:!1,prefixStyles:{}}},computed:{classes(){let e=["pkpFormField--size"+this.size];return $.pkp.app.rtlLocales.includes(this.localeKey)&&e.push("pkpFormField--text--rtl"),e},controlClasses(){let e=[];return this.isMultilingual&&this.locales.length>1&&e.push("pkpFormField__control--hasMultilingualIndicator"),this.prefix&&e.push("pkpFormField__control--hasPrefix"),e}},methods:{setFocus(){this.$refs.input.focus()}},mounted(){this.$nextTick((()=>{setTimeout((()=>{this.prefix&&(this.inputStyles={direction:"ltr","padding-inline-start":this.$refs.prefix.clientWidth+this.$refs.prefix.offsetLeft+"px"},this.$nextTick((()=>{const e=this.$refs.prefix.clientWidth+this.$refs.prefix.offsetLeft;e>this.$refs.input.clientWidth-20&&(this.prefixStyles={width:this.$refs.input.clientWidth-this.$refs.prefix.offsetLeft-80+"px",display:"block","white-space":"nowrap","overflow-x":"hidden","text-overflow":"ellipsis"},this.$nextTick((()=>{this.inputStyles={direction:"ltr","padding-inline-start":this.$refs.prefix.clientWidth+this.$refs.prefix.offsetLeft+"px"}})))})))}),700)})),this.optIntoEdit&&(this.isDisabled=!0)}},Iw=Fw,Yw=zh(Iw,Aw,Pw,!1,null,null,null),Rw=Yw.exports,Nw=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--textarea",class:e.classes},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.controlId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.isPrimaryLocale&&e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.isPrimaryLocale&&e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.isPrimaryLocale&&e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{staticClass:"pkpFormField__control"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"pkpFormField__input pkpFormField--textarea__input",attrs:{id:e.controlId,name:e.localizedName,"aria-describedby":e.describedByIds,"aria-invalid":e.errors&&e.errors.length,required:e.isRequired},domProps:{value:e.currentValue},on:{input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e()],1)},Hw=[],zw={name:"FieldTextarea",extends:Hg,props:{size:{type:String,default:"normal",validator:function(e){return-1!==["small","normal","large"].indexOf(e)}}},computed:{classes(){return["pkpFormField--"+this.size]}}},jw=zw,Bw=zh(jw,Nw,Hw,!1,null,null,null),Vw=Bw.exports,$w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--upload"},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.dropzoneHiddenFileId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{ref:"control",staticClass:"pkpFormField__control pkpFormField--upload__control",attrs:{id:e.controlId,"aria-live":"polite"}},[e.currentValue?t("div",{staticClass:"pkpFormField--upload__preview"},[t("span",{staticClass:"pkpFormField--upload__fileName"},[e._v(" "+e._s(e.fileName)+" ")]),t("div",{staticClass:"pkpFormField--upload__previewActions"},[t("pkp-button",{attrs:{isWarnable:!0},on:{click:e.clear}},[e._v(" "+e._s(e.__("common.remove"))+" ")]),e.initialValue&&!e.isInitialValue?t("pkp-button",{on:{click:e.revert}},[e._v(" "+e._s(e.restoreLabel)+" ")]):e._e(),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1)]):e._e(),e.currentValue&&e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("div",{class:{"-screenReader":e.currentValue}},[t("vue-dropzone",{ref:"dropzone",attrs:{id:e.dropzoneId,options:e.dropzoneOptions},on:{"vdropzone-file-added":e.onAddFile,"vdropzone-success":e.success,"vdropzone-error":e.error,"vdropzone-removed-file":e.onRemoveFile}}),!e.currentValue&&e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("div",{staticClass:"pkpFormField--upload__uploadActions"},[t("pkp-button",{staticClass:"pkpFormField--upload__addFile",attrs:{disabled:!!e.uploadFile,id:e.dropzoneClickableId}},[e._v(" "+e._s(e.uploadFileLabel)+" ")]),e.currentValue||!e.initialValue||e.isInitialValue?e._e():t("pkp-button",{staticClass:"pkpFormField--upload__restore",on:{click:e.revert}},[e._v(" "+e._s(e.restoreLabel)+" ")]),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1)],1)],1)])},Uw=[],Ww={name:"FieldUpload",extends:Hg,components:{VueDropzone:eb()},props:{options:Object,restoreLabel:String,uploadFileLabel:String},data(){return{initialValue:null,uploadFile:null}},computed:{isInitialValue(){return!!this.currentValue&&!!this.initialValue&&!!this.currentValue.dateUploaded&&!!this.initialValue.dateUploaded&&this.currentValue.dateUploaded===this.initialValue.dateUploaded},fileName(){return this.uploadFile?this.uploadFile.upload.filename:this.currentValue.uploadName},controlId(){return this.compileId("control")},dropzoneClickableId(){return this.compileId("clickable")},dropzoneId(){return this.compileId("dropzone")},dropzoneHiddenFileId(){return this.compileId("hiddenFileId")},dropzoneOptions(){return{method:"POST",thumbnailWidth:240,maxFiles:1,hiddenInputContainer:"#"+this.controlId,clickable:["#"+this.controlId+" .dropzone","#"+this.dropzoneClickableId],addRemoveLinks:!0,previewTemplate:'<div class="dz-preview">\n\t\t\t\t\t<img class="dz-image" data-dz-thumbnail />\n\t\t\t\t\t<div class="dz-details">\n\t\t\t\t\t\t<div class="dz-filename"><span data-dz-name></span></div>\n\t\t\t\t\t\t<div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>',headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},...this.options}}},methods:{clear(){this.$emit("change",this.name,"value",null,this.localeKey),this.uploadFile=null,this.$refs.dropzone.dropzone.removeAllFiles(),this.setFocusToControl(),this.setErrors([])},revert(){this.$emit("change",this.name,"value",this.initialValue,this.localeKey),this.uploadFile=null,this.setFocusToControl(),this.setErrors([])},success:function(e,t){this.$emit("change",this.name,"value",{temporaryFileId:t.id},this.localeKey),this.setFocusToControl()},onAddFile:function(e){this.uploadFile={...e},this.setErrors([])},onRemoveFile(){this.uploadFile=null,this.setErrors([])},error:function(e,t){let n=this.errors.slice();"string"===typeof t?n.push(t):"object"===typeof t&&n.push(t.errorMessage),this.setErrors(n)},setErrors:function(e){this.$emit("set-errors",this.name,e,this.localeKey)},setFocusToControl(){this.$nextTick((()=>{let e=this.$refs.control.querySelectorAll("input,button");e.length?e[0].focus():this.$el.focus()}))}},mounted(){this.$refs.dropzone.dropzone.hiddenFileInput.id=this.dropzoneHiddenFileId,this.$refs.dropzone.dropzone.hiddenFileInput.setAttribute("aria-describedby",this.describedByIds),this.initialValue=this.currentValue?this.currentValue:null}},qw=Ww,Gw=zh(qw,$w,Uw,!1,null,null,null),Kw=Gw.exports,Jw=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pkpFormField pkpFormField--upload pkpFormField--uploadImage"},[t("div",{staticClass:"pkpFormField__heading"},[t("form-field-label",{attrs:{controlId:e.dropzoneHiddenFileId,label:e.label,localeLabel:e.localeLabel,isRequired:e.isRequired,requiredLabel:e.__("common.required"),multilingualLabel:e.multilingualLabel}}),e.tooltip?t("tooltip",{attrs:{"aria-hidden":"true",tooltip:e.tooltip,label:""}}):e._e(),e.tooltip?t("span",{staticClass:"-screenReader",attrs:{id:e.describedByTooltipId},domProps:{innerHTML:e._s(e.tooltip)}}):e._e(),e.helpTopic?t("help-button",{attrs:{id:e.describedByHelpId,topic:e.helpTopic,section:e.helpSection,label:e.__("help.help")}}):e._e()],1),e.isPrimaryLocale&&e.description?t("div",{staticClass:"pkpFormField__description",attrs:{id:e.describedByDescriptionId},domProps:{innerHTML:e._s(e.description)}}):e._e(),t("div",{ref:"control",staticClass:"pkpFormField__control pkpFormField--upload__control",attrs:{id:e.controlId,"aria-live":"polite"}},[e.currentValue?t("div",{staticClass:"pkpFormField--upload__preview"},[this.thumbnail?t("img",{staticClass:"pkpFormField--uploadImage__thumbnail",attrs:{alt:e.thumbnailDescription,src:e.thumbnail}}):e._e(),t("div",{staticClass:"pkpFormField--upload__details"},[t("label",{staticClass:"pkpFormFieldLabel",attrs:{for:e.altTextId}},[e._v(" "+e._s(e.altTextLabel)+" ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.altTextValue,expression:"altTextValue"}],staticClass:"pkpFormField__input pkpFormField--uploadImage__altTextInput",attrs:{type:"text",id:e.altTextId,"aria-describedby":e.altTextDescriptionId},domProps:{value:e.altTextValue},on:{input:function(t){t.target.composing||(e.altTextValue=t.target.value)}}}),t("div",{staticClass:"pkpFormField--uploadImage__altTextDescription",attrs:{id:e.altTextDescriptionId},domProps:{innerHTML:e._s(e.altTextDescription)}})]),t("div",{staticClass:"pkpFormField--upload__previewActions"},[t("pkp-button",{attrs:{isWarnable:!0},on:{click:e.clear}},[e._v(" "+e._s(e.__("common.remove"))+" ")]),e.initialValue&&!e.isInitialValue?t("pkp-button",{on:{click:e.revert}},[e._v(" "+e._s(e.restoreLabel)+" ")]):e._e(),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1)]):e._e(),e.currentValue&&e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("div",{class:{"-screenReader":e.currentValue}},[t("vue-dropzone",{ref:"dropzone",attrs:{id:e.dropzoneId,options:e.dropzoneOptions},on:{"vdropzone-file-added":e.onAddFile,"vdropzone-thumbnail":e.onThumbnail,"vdropzone-success":e.success,"vdropzone-error":e.error,"vdropzone-removed-file":e.onRemoveFile}}),e.errors&&e.errors.length?t("field-error",{attrs:{id:e.describedByErrorId,messages:e.errors}}):e._e(),t("div",{staticClass:"pkpFormField--upload__uploadActions"},[t("pkp-button",{staticClass:"pkpFormField--upload__addFile",attrs:{disabled:!!e.uploadFile,id:e.dropzoneClickableId}},[e._v(" "+e._s(e.uploadFileLabel)+" ")]),e.initialValue&&!e.isInitialValue?t("pkp-button",{staticClass:"pkpFormField--upload__restore",on:{click:e.revert}},[e._v(" "+e._s(e.restoreLabel)+" ")]):e._e(),e.isMultilingual&&e.locales.length>1?t("multilingual-progress",{attrs:{id:e.multilingualProgressId,count:e.multilingualFieldsCompleted,total:e.locales.length}}):e._e()],1)],1)],1)])},Xw=[],Qw={name:"FieldUploadImage",extends:Kw,props:{altTextDescription:String,altTextLabel:String,baseUrl:String,thumbnailDescription:String},data(){return{altTextValue:"",initialValue:null}},computed:{thumbnail(){return this.uploadFile?this.uploadFile.dataURL:this.currentValue&&this.currentValue.uploadName?this.baseUrl+"/"+this.currentValue.uploadName:""},altTextId(){return this.compileId("altText")},altTextDescriptionId(){return this.compileId("altTextDescription")}},methods:{success:function(e,t){this.isUploading=!1,this.$emit("change",this.name,"value",{temporaryFileId:t.id,altText:""},this.localeKey),this.setFocusToControl()},onThumbnail:function(e){this.uploadFile={...e},this.setFocusToControl()}},watch:{currentValue:function(e,t){e!==t&&(this.altTextValue=e&&e.altText?e.altText:"")},altTextValue:function(e,t){e!==t&&(e||this.currentValue)&&this.$emit("change",this.name,"value",{...this.currentValue,altText:e},this.localeKey)}},mounted(){this.$refs.dropzone.dropzone.hiddenFileInput.id=this.dropzoneHiddenFileId,this.$refs.dropzone.dropzone.hiddenFileInput.setAttribute("aria-describedby",this.describedByIds),this.altTextValue=this.currentValue?this.currentValue.altText:""}},Zw=Qw,ek=zh(Zw,Jw,Xw,!1,null,null,null),tk=ek.exports,nk={name:"FormGroup",components:{FieldArchivingPn:Lx,FieldAutosuggestPreset:gv,FieldBaseAutosuggest:fv,FieldColor:Px,FieldControlledVocab:Rx,FieldPubId:Vx,FieldHtml:Kx,FieldMetadataSetting:tw,FieldOptions:wx,FieldPreparedContent:c_,FieldRadioInput:sw,FieldRichTextarea:qv,FieldRichText:dw,FieldSelect:vw,FieldSelectIssue:kw,FieldSelectSubmissions:Cw,FieldShowEnsuringLink:Ew,FieldText:Rw,FieldTextarea:Vw,FieldUpload:Kw,FieldUploadImage:tk},props:{id:String,label:String,description:String,pageId:String,fields:Array,errors:Object,formId:String,primaryLocale:String,visibleLocales:Array,availableLocales:Array,showWhen:[String,Array]},computed:{fieldsInGroup(){return this.fields.filter((e=>e.groupId===this.id&&this.shouldShowField(e)))},hasErrors(){for(var e in this.fieldsInGroup)if(e in this.errors)return!0;return!1}},methods:{fieldChanged:function(e,t,n,r){this.$emit("change",e,t,n,r)},shouldShowField:function(e){if("undefined"===typeof e.showWhen)return!0;const t="string"===typeof e.showWhen?e.showWhen:e.showWhen[0],n=this.fields.find((e=>e.name===t));return!!n&&("string"===typeof e.showWhen?!!n.value:n.value===e.showWhen[1])},setFieldErrors:function(e,t,n=""){let r={...this.errors};t&&t.length?n?(r[e]=r[e]||{},r[e][n]=t):r[e]=t:n&&r[e]&&r[e][n]?delete r[e][n]:r[e]&&delete r[e],this.$emit("set-errors",r)}}},rk=nk,ik=zh(rk,dx,fx,!1,null,null,null),ok=ik.exports,ak={name:"FormPage",components:{ButtonRow:Am,FormErrors:cx,FormGroup:ok},data(){return{hasRecentSave:!1,recentSaveInterval:null}},props:{id:String,groups:Array,fields:Array,errors:Object,formId:String,isCurrentPage:Boolean,isLastPage:Boolean,lastSaveTimestamp:Number,primaryLocale:String,visibleLocales:Array,availableLocales:Array,submitButton:Object,previousButton:Object,canSubmit:{type:Boolean,default(){return!0}},isSaving:Boolean},computed:{groupsInPage(){return this.groups.filter((e=>e.pageId===this.id&&this.shouldShowGroup(e)))},hasFooter(){return this.previousButton||this.submitButton||Object.keys(this.errors).length}},methods:{fieldChanged:function(e,t,n,r){this.$emit("change",e,t,n,r)},submit(){this.$emit("pageSubmitted",this.id)},previousPage(){this.$emit("previousPage",this.id)},showField:function(e){this.$emit("showField",e)},showLocale:function(e){this.$emit("showLocale",e)},shouldShowGroup:function(e){if("undefined"===typeof e.showWhen)return!0;const t="string"===typeof e.showWhen?e.showWhen:e.showWhen[0],n=this.fields.find((e=>e.name===t));return!!n&&("string"===typeof e.showWhen?!!n.value:n.value===e.showWhen[1])},setErrors:function(e){this.$emit("set-errors",e)}},mounted(){this.recentSaveInterval=setInterval((()=>{const e=this.lastSaveTimestamp+5e3;this.hasRecentSave&&e<Date.now()?this.hasRecentSave=!1:!this.hasRecentSave&&e>Date.now()&&(this.hasRecentSave=!0)}),250)},destroyed(){clearInterval(this.recentSaveInterval)}},sk=ak,uk=zh(sk,rx,ix,!1,null,null,null),lk=uk.exports,ck={name:"PkpForm",components:{FormLocales:nx,FormPage:lk},props:{id:String,method:{type:String,default(){return""}},action:{type:String,default(){return""}},canSubmit:{type:Boolean,default(){return!0}},errors:{type:Object,default(){return{}}},fields:Array,groups:Array,hiddenFields:Object,pages:Array,primaryLocale:String,visibleLocales:Array,supportedFormLocales:Array},data(){return{currentPage:"",isSaving:!1,lastSaveTimestamp:-1}},computed:{classes(){let e=[];return this.visibleLocales.length>1&&e.push("pkpForm--hasManyVisibleLocales"),e},availableLocales(){return this.hasMultilingualFields?this.supportedFormLocales:[]},hasMultilingualFields(){return!!this.fields.find((e=>e.isMultilingual))},groupIdsWithErrors(){let e=[];return Object.keys(this.errors).forEach((t=>{const n=this.fields.find((e=>e.name===t));n&&!e.includes(n.groupId)&&e.push(n.groupId)})),e},pageIdsWithErrors(){let e=[];return this.groupIdsWithErrors.forEach((t=>{const n=this.groups.find((e=>e.id===t));n&&!e.includes(n.pageId)&&e.push(n.pageId)})),e},submitValues(){let e={};return this.fields.forEach((t=>{if("field-html"!==t.component)if(t.isMultilingual){let n={};Object.keys(t.value).forEach((e=>{this.supportedFormLocales.filter((t=>t.key===e)).length&&(Array.isArray(t.value[e])&&!t.value[e].length?n[e]="":n[e]=t.value[e])})),Object.keys(n).length&&(e[t.name]=n)}else Array.isArray(t.value)&&!t.value.length?e[t.name]="":e[t.name]=t.value})),{...e,...this.hiddenFields}}},methods:{nextPage:function(e){const t=this.pages.findIndex((t=>t.id===e));1!==this.pages.length&&t!==this.pages.length-1?this.setCurrentPage(!0):this.submit()},submit(){if(!this.canSubmit)return!1;this.isSaving=!0;let e=this.validate();if(Object.keys(e).length)return this.$emit("set",this.id,{errors:{...this.errors,...e}}),void(this.isSaving=!1);"emit"===this.action?this.$emit("success",this.submitValues):$.ajax({context:this,method:"DELETE"===this.method||"PUT"===this.method?"POST":this.method,url:this.action,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":this.method},data:this.submitValues,success:this.success,error:this.error,complete:this.complete})},validate(){return this.validateRequired()},validateRequired(){let e={};return this.fields.forEach((t=>{if(!t.isRequired)return;let n=!1,r=t.isMultilingual?t.value[this.primaryLocale]:t.value;switch(typeof r){case"undefined":n=!0;break;case"boolean":n=!r;break;case"string":case"array":r.length||(n=!0);break;case"object":r||(n=!0);break}n&&(t.isMultilingual?(e[t.name]={},e[t.name][this.primaryLocale]=[this.__("validator.required")]):e[t.name]=[this.__("validator.required")])})),e},success:function(e){if(this.$emit("success",e),this.lastSaveTimestamp=Date.now(),pkp.eventBus.$emit("form-success",this.id,e),this.action){const t=this.fields.map((t=>("undefined"!==typeof e[t.name]&&(t.value=e[t.name]),t)));this.$emit("set",this.id,{fields:t})}},error:function(e){e.status&&400===e.status?(pkp.eventBus.$emit("notify",this.__("form.errors",{count:Object.keys(e.responseJSON).length}),"warning"),this.$emit("set",this.id,{errors:e.responseJSON})):e.status&&[403,404].includes(e.status)&&e.responseJSON&&e.responseJSON.errorMessage?pkp.eventBus.$emit("notify",e.responseJSON.errorMessage,"warning"):pkp.eventBus.$emit("notify",this.__("common.unknownError","warning"))},complete(){this.isSaving=!1},fieldChanged:function(e,t,n,r){const i=this.fields.map((i=>(i.name===e&&(r?i[t][r]=n:i[t]=n),i)));this.$emit("set",this.id,{fields:i}),this.removeError(e,r)},setCurrentPage:function(e){const t=this.pages.findIndex((e=>e.id===this.currentPage));if(!0===e){if(this.pages.length<=t)return;e=this.pages[t+1].id}else if(!1===e){if(!t)return;e=this.pages[t-1].id}this.currentPage=e,this.$scrollTo(this.$el,500,{offset:-50})},setVisibleLocales:function(e){this.$emit("set",this.id,{visibleLocales:e})},showLocale:function(e){this.visibleLocales.includes(e)||this.setVisibleLocales([this.primaryLocale,e])},showField:function(e){let t=this.fields.find((t=>t.name===e));if(!t)return;let n=this.groups.find((e=>e.id===t.groupId));n&&(this.currentPage=n.pageId,this.$nextTick((()=>{let e=document.querySelector('[id*="'+this.id+"-"+t.name+'"]');e?this.$scrollTo(e,500,{offset:-50}):this.setCurrentPage(n.pageId)})))},removeError:function(e,t){if(!this.errors[e])return;let n={...this.errors};t&&"string"!==typeof n[e]?(n[e][t]&&delete n[e][t],Object.keys(n[e]).length||delete n[e]):delete n[e],this.$emit("set",this.id,{errors:n})},setErrors:function(e){this.$emit("set",this.id,{errors:e})}},mounted(){this.currentPage||(this.currentPage=this.pages[0].id)}},dk=ck,fk=zh(dk,Ky,Jy,!1,null,null,null),hk=fk.exports,pk={_instances:{},init:function(e,t,n){if(void 0!==pkp.controllers[t]){var r={};"function"===typeof pkp.controllers[t].data&&(r=pkp.controllers[t].data());var i=$.extend(!0,{},pkp.controllers[t],{el:"#"+e,data:$.extend(!0,{},r,n,{id:e})});pkp.registry._instances[e]=new pkp.Vue(i),pkp.eventBus.$emit("root:mounted",e,pkp.registry._instances[e]);var o=$(pkp.registry._instances[e].$el).parents();o.each((function(t){if($.pkp.classes.Handler.hasHandler($(o[t])))return $.pkp.classes.Handler.getHandler($(o[t])).handlerChildren_.push(pkp.registry._instances[e]),!1}))}}};Xr.use(Dc(),{dynamic:!0,injectModalsContainer:!0}),Xr.use(Eh,{defaultTrigger:"click"}),Xr.use(Ph()),Xr.mixin(Cc),Xr.component("Badge",ep),Xr.component("PkpBadge",ep),Xr.component("Dropdown",ap),Xr.component("PkpDropdown",ap),Xr.component("Icon",fp),Xr.component("PkpIcon",fp),Xr.component("Notification",_p),Xr.component("PkpNotification",_p),Xr.component("Panel",Mp),Xr.component("PkpPanel",Mp),Xr.component("PanelSection",Op),Xr.component("PkpPanelSection",Op),Xr.component("PkpButton",Yp),Xr.component("PkpHeader",Bp),Xr.component("Spinner",qp),Xr.component("PkpSpinner",qp),Xr.component("Step",Zp),Xr.component("PkpStep",Zp),Xr.component("Steps",lm),Xr.component("PkpSteps",lm),Xr.component("Tab",mm),Xr.component("PkpTab",mm),Xr.component("Tabs",xm),Xr.component("PkpTabs",xm),Xr.component("PkpActionPanel",Lm),Xr.component("PkpButtonRow",Am),Xr.component("PkpDoughnutChart",Xm),Xr.component("PkpLineChart",tg),Xr.component("PkpComposer",Tb),Xr.component("PkpDateRange",Fb),Xr.component("PkpFile",T_),Xr.component("PkpFileAttacher",Mb),Xr.component("PkpFileUploader",ib),Xr.component("PkpFileUploadProgress",gb),Xr.component("PkpFilter",zb),Xr.component("PkpFilterAutosuggest",ey),Xr.component("PkpFilterSlider",ay),Xr.component("PkpFilterSliderMultirange",fy),Xr.component("PkpList",_y),Xr.component("PkpListItem",My),Xr.component("PkpModal",Bh),Xr.component("PkpMultilingualProgress",Ig),Xr.component("PkpOrderer",Oy),Xr.component("PkpPagination",Yy),Xr.component("PkpProgressBar",fb),Xr.component("PkpSearch",t_),Xr.component("PkpTable",Gy),Xr.component("PkpTableCell",$y),Xr.component("PkpTooltip",Dg),Xr.component("PkpForm",hk),Xr.component("PkpFieldArchivingPn",Lx),Xr.component("PkpFieldAutosuggestPreset",gv),Xr.component("PkpFieldBase",Hg),Xr.component("PkpFieldBaseAutosuggest",fv),Xr.component("PkpFieldColor",Px),Xr.component("PkpFieldControlledVocab",Rx),Xr.component("PkpFieldHtml",Kx),Xr.component("PkpFieldMetadataSetting",tw),Xr.component("PkpFieldOptions",wx),Xr.component("PkpFieldPreparedContent",c_),Xr.component("PkpFieldPubId",Vx),Xr.component("PkpFieldRadioInput",sw),Xr.component("PkpFieldRichText",dw),Xr.component("PkpFieldRichTextarea",qv),Xr.component("PkpFieldSelect",vw),Xr.component("PkpFieldSelectIssue",kw),Xr.component("PkpFieldSelectIssues",Jb),Xr.component("PkpFieldSelectSubmissions",Cw),Xr.component("PkpFieldSelectUsers",Wb),Xr.component("PkpFieldShowEnsuringLink",Ew),Xr.component("PkpFieldText",Rw),Xr.component("PkpFieldTextarea",Vw),Xr.component("PkpFieldUpload",Kw),Xr.component("PkpFieldUploadImage",tk),Xr.component("PkpListPanel",y_);var mk,gk,vk,_k,bk,yk,xk,wk,kk,Mk,Sk,Lk,Ck,Tk,Dk,Ok,Ek,Ak,Pk,Fk,Ik={Vue:Xr,registry:pk,eventBus:new Xr,const:{},localeKeys:{},currentUser:null,vueMixins:{dialog:qh,localizeMoment:Gh}},Yk=function(){var e=this,t=e._self._c;return t("div",[e._t("default",(function(){return[t("list-panel",{staticClass:"listPanel--selectReviewer",attrs:{isSidebarVisible:e.isSidebarVisible,items:e.currentReviewers},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[t("select-reviewer-list-item",{key:n.id,attrs:{activeReviewsCountLabel:e.activeReviewsCountLabel,activeReviewsLabel:e.activeReviewsLabel,assignedToLastRound:e.lastRoundReviewerIds.includes(n.id),assignedToLastRoundLabel:e.assignedToLastRoundLabel,averageCompletionLabel:e.averageCompletionLabel,biographyLabel:e.biographyLabel,cancelledReviewsLabel:e.cancelledReviewsLabel,completedReviewsLabel:e.completedReviewsLabel,currentlyAssigned:e.currentlyAssigned.includes(n.id),currentlyAssignedLabel:e.currentlyAssignedLabel,daySinceLastAssignmentLabel:e.daySinceLastAssignmentLabel,daysSinceLastAssignmentLabel:e.daysSinceLastAssignmentLabel,daysSinceLastAssignmentDescriptionLabel:e.daysSinceLastAssignmentDescriptionLabel,declinedReviewsLabel:e.declinedReviewsLabel,gossipLabel:e.gossipLabel,item:n,neverAssignedLabel:e.neverAssignedLabel,reassignLabel:e.reassignLabel,reassignWithNameLabel:e.reassignWithNameLabel,reviewerRatingLabel:e.reviewerRatingLabel,reviewInterestsLabel:e.reviewInterestsLabel,selectReviewerLabel:e.selectReviewerLabel,selectorName:e.selectorName,warnOnAssignment:e.warnOnAssignment.includes(n.id),warnOnAssignmentLabel:e.warnOnAssignmentLabel,warnOnAssignmentUnlockLabel:e.warnOnAssignmentUnlockLabel}})]}}])},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(" "+e._s(e.title)+" ")]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[t("search",{attrs:{searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e.setSearchPhrase}}),t("pkp-button",{attrs:{isActive:e.isSidebarVisible},on:{click:function(t){e.isSidebarVisible=!e.isSidebarVisible}}},[t("icon",{attrs:{icon:"filter",inline:!0}}),e._v(" "+e._s(e.__("common.filter"))+" ")],1)],1)],2),t("template",{slot:"sidebar"},[t("pkp-header",{attrs:{isOneLine:!1}},[t("h2",[t("icon",{attrs:{icon:"filter",inline:!0}}),e._v(" "+e._s(e.__("common.filter"))+" ")],1)]),e._l(e.filters,(function(n){return t(n.filterType||"filter-slider",e._b({key:n.param,tag:"component",attrs:{isFilterActive:e.isFilterActive(n.param,n.value)},on:{"add-filter":e.addFilter,"update-filter":e.addFilter,"remove-filter":e.removeFilter}},"component",n,!1))}))],2),e.isLoading?t("template",{slot:"itemsEmpty"},[e.isLoading?[t("spinner"),e._v(" "+e._s(e.__("common.loading"))+" ")]:[e._v(" "+e._s(e.emptyLabel)+" ")]],2):e._e(),t("template",{slot:"footer"},[e.lastPage>1?t("pagination",{attrs:{currentPage:e.currentPage,isLoading:e.isLoading,lastPage:e.lastPage},on:{"set-page":e.setPage}}):e._e()],1)],2)]}))],2)},Rk=[],Nk=function(){var e=this,t=e._self._c;return t("div",{staticClass:"listPanel__item--reviewer",class:e.currentlyAssigned?"-isAssigned":""},[t("div",{staticClass:"listPanel__itemSummary"},[t("div",{staticClass:"listPanel__itemIdentity"},[t("div",{staticClass:"listPanel__itemTitle"},[e.item.reviewsActive&&e.canSelect?t("badge",{staticClass:"listPanel__item--reviewer__active"},[e._v(" "+e._s(e.activeReviewsCountLabel.replace("{$count}",e.item.reviewsActive))+" ")]):e._e(),e._v(" "+e._s(e.item.fullName)+" "),null!==e.item.reviewerRating&&e.canSelect?t("span",{staticClass:"listPanel__item--reviewer__rating"},[e._l(e.stars,(function(e,n){return t("icon",{key:n,class:e?"listPanel__item--reviewer__star--on":"listPanel__item--reviewer__star--off",attrs:{icon:"star"}})})),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.reviewerRatingLabel.replace("{$rating}",e.item.reviewerRating))+" ")])],2):e._e()],1),t("div",{staticClass:"listPanel__itemSubtitle"},[e.item.affiliation||e.item.orcid?t("div",{staticClass:"listPanel__item--reviewer__affiliation"},[e._v(" "+e._s(e.localize(e.item.affiliation))+" "),e.item.orcid?t("a",{staticClass:"listPanel__item--reviewer__orcid",attrs:{href:e.item.orcid,target:"_blank"}},[t("icon",{attrs:{icon:"orcid",inline:!0}}),e._v(" "+e._s(e.item.orcid)+" ")],1):e._e()]):e._e()]),e.currentlyAssigned?t("div",{staticClass:"listPanel__item--reviewer__notice"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),e._v(" "+e._s(e.currentlyAssignedLabel)+" ")],1):e.assignedToLastRound?t("div",{staticClass:"listPanel__item--reviewer__notice"},[t("icon",{attrs:{icon:"thumb-tack",inline:!0}}),e._v(" "+e._s(e.assignedToLastRoundLabel)+" ")],1):e.warnOnAssignment&&!e.isWarningBypassed?t("div",{staticClass:"listPanel__item--reviewer__notice"},[t("icon",{attrs:{icon:"lock",inline:!0}}),e._v(" "+e._s(e.warnOnAssignmentLabel)+" "),t("button",{staticClass:"listPanel__item--reviewer__noticeAction",on:{click:function(t){return t.preventDefault(),e.unlockAssignment.apply(null,arguments)}}},[e._v(" "+e._s(e.warnOnAssignmentUnlockLabel)+" ")])],1):e.canSelect?t("div",{staticClass:"listPanel__item--reviewer__brief",attrs:{"aria-hidden":"true"}},[t("span",{staticClass:"listPanel__item--reviewer__complete"},[t("icon",{attrs:{icon:"check-circle-o",inline:!0}}),e._v(" "+e._s(e.item.reviewsCompleted)+" ")],1),t("span",{staticClass:"listPanel__item--reviewer__last"},[t("icon",{attrs:{icon:"history",inline:!0}}),e._v(" "+e._s(e.daysSinceLastAssignmentLabelCompiled)+" ")],1),e.item.interests.length?t("span",{staticClass:"listPanel__item--reviewer__interests"},[t("icon",{attrs:{icon:"book",inline:!0}}),e._v(" "+e._s(e.interestsString)+" ")],1):e._e()]):e._e()]),t("div",{staticClass:"listPanel__itemActions"},[e.canSelect?t("pkp-button",{on:{click:e.select}},[e.assignedToLastRound?[t("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.reassignLabel))]),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.reassignWithName)+" ")])]:[t("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.selectReviewerLabel))]),t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.selectWithName",{name:e.item.fullName}))+" ")])]],2):e._e(),t("expander",{attrs:{isExpanded:e.isExpanded,itemName:e.item.fullName},on:{toggle:function(t){e.isExpanded=!e.isExpanded}}})],1)]),e.isExpanded?t("div",{staticClass:"listPanel__itemExpanded listPanel__itemExpanded--reviewer"},[t("list",[t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"clock-o",inline:!0}}),e._v(" "+e._s(e.item.reviewsActive)+" ")],1),e._v(" "+e._s(e.activeReviewsLabel)+" ")],2),t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"check-circle-o",inline:!0}}),e._v(" "+e._s(e.item.reviewsCompleted)+" ")],1),e._v(" "+e._s(e.completedReviewsLabel)+" ")],2),t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"times-circle-o",inline:!0}}),e._v(" "+e._s(e.item.reviewsDeclined)+" ")],1),e._v(" "+e._s(e.declinedReviewsLabel)+" ")],2),t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"ban",inline:!0}}),e._v(" "+e._s(e.item.reviewsCancelled)+" ")],1),e._v(" "+e._s(e.cancelledReviewsLabel)+" ")],2),t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"history",inline:!0}}),e._v(" "+e._s(e.daysSinceLastAssignment)+" ")],1),e._v(" "+e._s(e.daysSinceLastAssignmentDescriptionLabel)+" ")],2),t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"calendar",inline:!0}}),e._v(" "+e._s(e.item.averageReviewCompletionDays)+" ")],1),e._v(" "+e._s(e.averageCompletionLabel)+" ")],2),e.item.interests.length?t("list-item",[t("div",{staticClass:"listPanel__item--reviewer__detailHeading"},[t("icon",{attrs:{icon:"book",inline:!0}}),e._v(" "+e._s(e.reviewInterestsLabel)+" ")],1),e._v(" "+e._s(e.interestsString)+" ")]):e._e(),e.item.gossip?t("list-item",[t("div",{staticClass:"listPanel__item--reviewer__detailHeading"},[e._v(" "+e._s(e.gossipLabel)+" ")]),t("div",{domProps:{innerHTML:e._s(e.item.gossip)}})]):e._e(),e.localize(e.item.biography)?t("list-item",[t("div",{staticClass:"listPanel__item--reviewer__detailHeading"},[e._v(" "+e._s(e.biographyLabel)+" ")]),t("div",{domProps:{innerHTML:e._s(e.localize(e.item.biography))}})]):e._e()],1)],1):e._e()])},Hk=[],zk=function(){var e=this,t=e._self._c;return t("button",{staticClass:"expander",on:{click:function(t){return e.$emit("toggle")}}},[e.isExpanded?t("icon",{attrs:{icon:"angle-up"}}):t("icon",{attrs:{icon:"angle-down"}}),e.isExpanded?t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("list.viewLess",{name:e.itemName}))+" ")]):t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("list.viewMore",{name:e.itemName}))+" ")])],1)},jk=[],Bk={props:{isExpanded:{type:Boolean,default(){return!1}},itemName:{type:String,required:!0}}},Vk=Bk,$k=zh(Vk,zk,jk,!1,null,null,null),Uk=$k.exports,Wk={components:{Expander:Uk,List:_y,ListItem:My},props:{activeReviewsCountLabel:{type:String,required:!0},activeReviewsLabel:{type:String,required:!0},assignedToLastRound:{type:Boolean,required:!0},assignedToLastRoundLabel:{type:String,required:!0},averageCompletionLabel:{type:String,required:!0},biographyLabel:{type:String,required:!0},cancelledReviewsLabel:{type:String,required:!0},completedReviewsLabel:{type:String,required:!0},currentlyAssigned:{type:Boolean,required:!0},currentlyAssignedLabel:{type:String,required:!0},daySinceLastAssignmentLabel:{type:String,required:!0},daysSinceLastAssignmentLabel:{type:String,required:!0},daysSinceLastAssignmentDescriptionLabel:{type:String,required:!0},declinedReviewsLabel:{type:String,required:!0},gossipLabel:{type:String,required:!0},item:{type:Object,required:!0},neverAssignedLabel:{type:String,required:!0},reassignLabel:{type:String,required:!0},reassignWithNameLabel:{type:String,required:!0},reviewerRatingLabel:{type:String,required:!0},reviewInterestsLabel:{type:String,required:!0},selectReviewerLabel:{type:String,required:!0},warnOnAssignment:{type:Boolean,required:!0},warnOnAssignmentLabel:{type:String,required:!0},warnOnAssignmentUnlockLabel:{type:String,required:!0}},data(){return{isExpanded:!1,isWarningBypassed:!1}},computed:{canSelect(){return!this.currentlyAssigned&&(!this.warnOnAssignment||this.isWarningBypassed)},daysSinceLastAssignment(){if(!this.item.dateLastReviewAssignment)return 0;const e=e=>e.replace(/-/g,"/");return Math.floor((Date.parse(e(this.item.dateLastReviewAssignment))-Date.now())/864e5*-1)},daysSinceLastAssignmentLabelCompiled(){return this.daysSinceLastAssignment?this.daysSinceLastAssignment>1?this.daysSinceLastAssignmentLabel.replace("{$days}",this.daysSinceLastAssignment):this.daySinceLastAssignmentLabel:this.neverAssignedLabel},interestsString(){return this.item.interests&&this.item.interests.length?this.item.interests.map((e=>e.interest)).join(this.__("common.commaListSeparator")):""},reassignWithName(){return this.reassignWithNameLabel.replace("{$name}",this.item.fullName)},stars(){let e=[];if(this.item.reviewerRating)for(let t=0;t<5;t++)e.push(t<this.item.reviewerRating);return e}},methods:{select(){this.$emit("select",this.item),pkp.eventBus.$emit("selected:reviewer",this.item)},unlockAssignment(){this.isWarningBypassed=!0}}},qk=Wk,Gk=zh(qk,Nk,Hk,!1,null,null,null),Kk=Gk.exports,Jk={mixins:[uv],props:{apiUrl:{type:String,required:!0},count:{type:Number,default(){return 30}},getParams:{type:Object,default(){return{}}},lazyLoad:{type:Boolean,default(){return!1}}},data(){return{activeFilters:{},isLoading:!1,itemsMax:0,latestGetRequest:"",offset:0,searchPhrase:""}},computed:{currentPage(){return Math.floor(this.offset/this.count)+1},lastPage(){return Math.ceil(this.itemsMax/this.count)}},methods:{get(){if(!this.apiUrl)return;this.isLoading=!0;const e=$.pkp.classes.Helper.uuid();this.latestGetRequest=e,$.ajax({url:this.apiUrl,type:"GET",context:this,data:{...this.getParams,...this.activeFilters,searchPhrase:this.searchPhrase,count:this.count,offset:this.offset},error:function(t){this.latestGetRequest===e&&this.ajaxErrorCallback(t)},success:function(t){this.latestGetRequest===e&&this.setItems(t.items,t.itemsMax)},complete(){this.latestGetRequest===e&&(this.isLoading=!1)}})},setItems(e,t){throw new Error("Missing function to set items after get request. This mixin requires that the component implements a `setItems` method which handles the items received from the get request.")},setPage(e){this.offset=e*this.count-this.count},setSearchPhrase(e){this.searchPhrase=e}},watch:{activeFilters(e,t){this.offset?this.offset=0:this.$nextTick((()=>this.get()))},offset(e,t){e!==t&&this.$nextTick((()=>this.get()))},searchPhrase(e,t){e!==t&&(this.offset?this.offset=0:this.$nextTick((()=>this.get())))}},mounted(){if(this.lazyLoad)if("complete"===document.readyState)this.get();else{var e=this;$((function(){e.get()}))}}},Xk={components:{FilterSlider:ay,FilterSliderMultirange:fy,ListPanel:y_,Pagination:Yy,PkpHeader:Bp,Search:t_,SelectReviewerListItem:Kk},mixins:[Jk],props:{activeReviewsCountLabel:{type:String,required:!0},activeReviewsLabel:{type:String,required:!0},assignedToLastRoundLabel:{type:String,required:!0},averageCompletionLabel:{type:String,required:!0},biographyLabel:{type:String,required:!0},cancelledReviewsLabel:{type:String,required:!0},completedReviewsLabel:{type:String,required:!0},currentlyAssigned:{type:Array,default(){return[]}},currentlyAssignedLabel:{type:String,required:!0},daySinceLastAssignmentLabel:{type:String,required:!0},daysSinceLastAssignmentLabel:{type:String,required:!0},daysSinceLastAssignmentDescriptionLabel:{type:String,required:!0},declinedReviewsLabel:{type:String,required:!0},emptyLabel:{type:String,required:!0},filters:{type:Array,default(){return[]}},gossipLabel:{type:String,required:!0},id:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsMax:{type:Number,default(){return 0}},lastRoundReviewers:{type:Array,default(){return[]}},neverAssignedLabel:{type:String,required:!0},reassignLabel:{type:String,required:!0},reassignWithNameLabel:{type:String,required:!0},reviewerRatingLabel:{type:String,required:!0},reviewInterestsLabel:{type:String,required:!0},selectorName:{type:String,required:!0},selectReviewerLabel:{type:String,required:!0},title:{type:String,required:!0},warnOnAssignment:{type:Array,default(){return[]}},warnOnAssignmentLabel:{type:String,required:!0},warnOnAssignmentUnlockLabel:{type:String,required:!0}},data(){return{isLoading:!1,isSidebarVisible:!1}},computed:{currentReviewers(){return Object.keys(this.activeFilters).length?this.items:[...this.lastRoundReviewers,...this.items.filter((e=>!this.lastRoundReviewerIds.includes(e.id)))]},lastRoundReviewerIds(){return this.lastRoundReviewers.map((e=>e.id))}},methods:{addFilter(e,t){let n={...this.activeFilters};n[e]=t,this.activeFilters=n},isFilterActive(e,t){return this.activeFilters.hasOwnProperty(e)},removeFilter(e,t){if(this.activeFilters.hasOwnProperty(e)){let t={...this.activeFilters};delete t[e],this.activeFilters=t}},setItems(e,t){this.$emit("set",this.id,{items:e,itemsMax:t})}},watch:{activeFilters(e,t){this.offset=0,e&&Object.keys(e).length&&(this.isSidebarVisible=!0)}}},Qk=Xk,Zk=zh(Qk,Yk,Rk,!1,null,null,null),eM=Zk.exports,tM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"submissionsListPanel"},[t("list-panel",{staticClass:"listPanel--submissions",attrs:{isSidebarVisible:e.isSidebarVisible,items:e.items},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[e._t("item",(function(){return[t("submissions-list-item",{key:n.id,attrs:{item:n,apiUrl:e.apiUrl,infoUrl:e.infoUrl,assignParticipantUrl:e.assignParticipantUrl},on:{addFilter:e.addFilter}})]}),{item:n})]}}],null,!0)},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.title))]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[t("search",{attrs:{searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e.setSearchPhrase}}),t("pkp-button",{attrs:{isActive:e.isSidebarVisible},on:{click:function(t){e.isSidebarVisible=!e.isSidebarVisible}}},[t("icon",{attrs:{icon:"filter",inline:!0}}),e._v(" "+e._s(e.__("common.filter"))+" ")],1),e.addUrl&&e.currentUserCanAddSubmission?t("pkp-button",{attrs:{element:"a",href:e.addUrl}},[e._v(" "+e._s(e.__("submission.submit.newSubmissionSingle"))+" ")]):e._e()],1)],2),t("template",{slot:"sidebar"},[t("pkp-header",{attrs:{isOneLine:!1}},[t("h3",[t("icon",{attrs:{icon:"filter",inline:!0}}),e._v(" "+e._s(e.__("common.filter"))+" ")],1)]),e._l(e.filters,(function(n,r){return t("div",{key:r,staticClass:"listPanel__block"},[n.heading?t("pkp-header",[t("h4",[e._v(e._s(n.heading))])]):e._e(),e._l(n.filters,(function(n){return t(n.filterType||"pkp-filter",e._b({key:n.param+n.value,tag:"component",attrs:{isFilterActive:e.isFilterActive(n.param,n.value)},on:{"add-filter":e.addFilter,"remove-filter":e.removeFilter,"update-filter":e.addFilter}},"component",n,!1))}))],2)}))],2),t("template",{slot:"itemsEmpty"},[e.isLoading?[t("spinner"),e._v(" "+e._s(e.__("common.loading"))+" ")]:[e._v(" "+e._s(e.__("submission.list.empty"))+" ")]],2),e.lastPage>1?t("pagination",{attrs:{slot:"footer",currentPage:e.currentPage,isLoading:e.isLoading,lastPage:e.lastPage},on:{"set-page":e.setPage},slot:"footer"}):e._e()],2)],1)},nM=[],rM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"listPanel__item--submission"},[t("div",{staticClass:"listPanel__itemSummary"},[t("div",{staticClass:"listPanel__itemIdentity listPanel__itemIdentity--submission"},[t("div",{staticClass:"listPanel__item--submission__id"},[e._v(" "+e._s(e.item.id)+" ")]),t("div",{staticClass:"listPanel__itemTitle"},[e.currentUserIsReviewer?t("span",[e._v(" "+e._s(e.__("submission.list.reviewAssignment"))+" ")]):e.currentPublication.authorsStringShort?t("span",[e._v(" "+e._s(e.currentPublication.authorsStringShort)+" ")]):e._e()]),t("div",{staticClass:"listPanel__itemSubtitle",domProps:{innerHTML:e._s(e.localizeSubmission(e.currentPublication.fullTitle,e.currentPublication.locale))}}),e.currentUserIsReviewer?t("div",{staticClass:"listPanel__item--submission__reviewDetails"},[e.currentUserLatestReviewAssignment.responsePending?t("span",{staticClass:"listPanel__item--submission__dueDate"},[e._v(" "+e._s(e.__("submission.list.responseDue",{date:e.currentUserLatestReviewAssignment.responseDue}))+" ")]):e._e(),e.currentUserLatestReviewAssignment.reviewPending?t("span",{staticClass:"listPanel__item--submission__dueDate"},[e._v(" "+e._s(e.__("submission.list.reviewDue",{date:e.currentUserLatestReviewAssignment.due}))+" ")]):e._e()]):e._e(),e.reviewerWorkflowLink?t("div",{staticClass:"listPanel__item--submission__notice"},[t("span",{domProps:{innerHTML:e._s(e.reviewerWorkflowLink)}})]):e.notice?t("div",{staticClass:"listPanel__item--submission__notice"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),e._v(" "+e._s(e.notice)+" "),e.shouldAssignEditor?t("button",{staticClass:"-linkButton",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.openAssignParticipant.apply(null,arguments)}}},[e._v(" "+e._s(e.__("submission.list.assignEditor"))+" ")]):e._e()],1):e._e()]),t("div",{staticClass:"listPanel__itemActions"},[e.currentUserIsReviewer?[e.currentUserLatestReviewAssignment.reviewCancelled?t("div",{staticClass:"listPanel__item--submission__reviewCancelled"},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),e._v(" "+e._s(e.__("submission.list.reviewCancelled"))+" ")],1):e._e(),e.currentUserLatestReviewAssignment.reviewComplete?t("div",{staticClass:"listPanel__item--submission__reviewComplete"},[t("icon",{attrs:{icon:"check",inline:!0}}),e._v(" "+e._s(e.__("submission.list.reviewComplete"))+" ")],1):e._e()]:t("div",{staticClass:"listPanel__item--submission__itemSummaryDetails"},[t("div",{staticClass:"listPanel__item--submission__itemSummaryDetailsRow"},[t("div",{staticClass:"listPanel__item--submission__flags",attrs:{"aria-hidden":"true"}},[e.isReviewStage?t("span",[t("icon",{attrs:{icon:"user-o",inline:!0}}),e._v(" "+e._s(e.completedReviewsCount)+"/"+e._s(e.currentReviewAssignments.length)+" ")],1):e._e(),e.activeStage.files.count?t("span",[t("icon",{attrs:{icon:"file-text-o",inline:!0}}),e._v(" "+e._s(e.activeStage.files.count)+" ")],1):e._e(),e.openQueryCount?t("span",[t("icon",{attrs:{icon:"comment-o",inline:!0}}),e._v(" "+e._s(e.openQueryCount)+" ")],1):e._e()]),t("badge",{staticClass:"listPanel__item--submission__stage",attrs:{isButton:!e.isArchived,label:e.currentStageDescription,stage:e.isArchived?"":e.currentStage,isPrimary:e.isScheduled,isSuccess:e.isPublished,isWarnable:e.isDeclined},on:{click:function(t){return e.filterByStage(e.activeStage.id)}}},[e._v(" "+e._s(e.currentStageLabel)+" ")])],1)]),t("pkp-button",{attrs:{element:"a",href:e.item.urlWorkflow}},[t("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.__("common.view")))]),e.currentUserIsReviewer?t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.viewWithName",{name:e.localizeSubmission(e.currentPublication.fullTitle,e.currentPublication.locale)}))+" ")]):t("span",{staticClass:"-screenReader"},[e._v(" "+e._s(e.__("common.viewWithName",{name:e.currentPublication.authorsStringShort}))+" ")])]),e.currentUserIsReviewer?e._e():t("expander",{attrs:{isExpanded:e.isExpanded,itemName:e.currentPublication.authorsStringShort},on:{toggle:function(t){e.isExpanded=!e.isExpanded}}})],2)]),e.isExpanded?t("div",{staticClass:"listPanel__itemExpanded listPanel__itemExpanded--submission"},[t("list",[e.isReviewStage?t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"user-o",inline:!0}}),e._v(" "+e._s(e.completedReviewsCount)+"/"+e._s(e.currentReviewAssignments.length)+" ")],1),e._v(" "+e._s(e.__("submission.list.reviewsCompleted"))+" ")],2):e._e(),e.isSubmissionStage?e._e():t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"file-text-o",inline:!0}}),e._v(" "+e._s(e.activeStage.files.count)+" ")],1),e._v(" "+e._s(e.activeStageFilesLabel)+" ")],2),e.item.submissionProgress?e._e():t("list-item",[t("template",{slot:"value"},[t("icon",{attrs:{icon:"comment-o",inline:!0}}),e._v(" "+e._s(e.openQueryCount)+" ")],1),e._v(" "+e._s(e.__("submission.list.discussions"))+" ")],2),e.dualWorkflowLinks?t("list-item",[t("span",{domProps:{innerHTML:e._s(e.dualWorkflowLinks)}})]):e._e(),t("list-item",[t("span",[e._v(" "+e._s(e.__("common.lastActivity",{date:e.localizeDate(e.item.dateLastActivity)}))+" ")])])],1),t("div",{staticClass:"listPanel__itemExpandedActions"},[e.currentUserCanViewInfoCenter?t("pkp-button",{on:{click:e.openInfoCenter}},[e._v(" "+e._s(e.__("submission.list.infoCenter"))+" ")]):e._e(),e.currentUserCanDelete?t("pkp-button",{attrs:{isWarnable:!0},on:{click:e.deleteSubmissionPrompt}},[e._v(" "+e._s(e.__("common.delete"))+" ")]):e._e()],1)],1):e._e()])},iM=[],oM={methods:{localizeSubmission:function(e,t){if("undefined"===typeof e)return"";if(e.hasOwnProperty($.pkp.app.currentLocale)&&e[$.pkp.app.currentLocale])return e[$.pkp.app.currentLocale];if(e.hasOwnProperty(t)&&e[t])return e[t];if(e.hasOwnProperty($.pkp.app.primaryLocale)&&e[$.pkp.app.primaryLocale])return e[$.pkp.app.primaryLocale];for(var n in e)if(e[n])return e[n];return""}}},aM={name:"SubmissionsListItem",mixins:[uv,Jk,oM,qh],components:{Expander:Uk,List:_y,ListItem:My},props:{apiUrl:{type:String,required:!0},assignParticipantUrl:{type:String,required:!0},infoUrl:{type:String,required:!0},item:{type:Object,required:!0}},data(){return{isExpanded:!1,mask:null,noticeActions:[],noticeActionLabels:[]}},computed:{currentPublication(){return this.item.publications.find((e=>e.id===this.item.currentPublicationId))},currentUserCanDelete(){return!(this.userAssignedRole(pkp.const.ROLE_ID_AUTHOR)||!this.userAssignedRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SITE_ADMIN])||this.item.status!==pkp.const.STATUS_DECLINED)||!(!this.userAssignedRole(pkp.const.ROLE_ID_AUTHOR)||!this.item.submissionProgress)},currentUserCanViewInfoCenter(){return this.userAssignedRole([pkp.const.ROLE_ID_SITE_ADMIN,pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR])},currentUserIsReviewer(){for(var e of this.item.reviewAssignments)if(e.isCurrentUserAssigned)return!0;return!1},activeStage(){return this.item.stages.find((e=>!0===e.isActiveStage))},notice(){var e="";if(this.item.submissionProgress)return e;if(this.shouldAssignEditor&&(e=this.activeStage.status),this.userAssignedRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR])&&this.isReviewStage){switch(this.activeStage.statusId){case pkp.const.REVIEW_ROUND_STATUS_PENDING_REVIEWERS:case pkp.const.REVIEW_ROUND_STATUS_REVIEWS_READY:case pkp.const.REVIEW_ROUND_STATUS_REVIEWS_COMPLETED:case pkp.const.REVIEW_ROUND_STATUS_REVIEWS_OVERDUE:case pkp.const.REVIEW_ROUND_STATUS_REVISIONS_SUBMITTED:case pkp.const.REVIEW_ROUND_STATUS_RESUBMIT_FOR_REVIEW_SUBMITTED:e=this.activeStage.status;break}if(!this.activeStage.currentUserCanRecommendOnly)switch(this.activeStage.statusId){case pkp.const.REVIEW_ROUND_STATUS_RECOMMENDATIONS_READY:case pkp.const.REVIEW_ROUND_STATUS_RECOMMENDATIONS_COMPLETED:e=this.activeStage.status;break}}if(this.userAssignedRole(pkp.const.ROLE_ID_AUTHOR)&&this.isReviewStage)switch(this.activeStage.statusId){case pkp.const.REVIEW_ROUND_STATUS_REVISIONS_REQUESTED:case pkp.const.REVIEW_ROUND_STATUS_RESUBMIT_FOR_REVIEW:e=this.activeStage.status;break}if(this.currentUserIsReviewer)switch(this.currentUserLatestReviewAssignment.statusId){case pkp.const.REVIEW_ASSIGNMENT_STATUS_AWAITING_RESPONSE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_RESPONSE_OVERDUE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_REVIEW_OVERDUE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_REQUEST_RESEND:e=this.currentUserLatestReviewAssignment.status;break}return e},shouldAssignEditor(){return this.userAssignedRole(pkp.const.ROLE_ID_MANAGER)&&this.activeStage.id===pkp.const.WORKFLOW_STAGE_ID_SUBMISSION&&this.activeStage.statusId===pkp.const.STAGE_STATUS_SUBMISSION_UNASSIGNED},currentStage(){switch(this.activeStage.id){case pkp.const.WORKFLOW_STAGE_ID_SUBMISSION:return"submission";case pkp.const.WORKFLOW_STAGE_ID_INTERNAL_REVIEW:case pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW:return"review";case pkp.const.WORKFLOW_STAGE_ID_EDITING:return"copyediting";case pkp.const.WORKFLOW_STAGE_ID_PRODUCTION:return"production"}return""},currentStageLabel(){return this.isArchived?this.item.statusLabel:this.item.submissionProgress?this.__("submissions.incomplete"):this.activeStage.label},currentStageDescription(){return this.__("submission.list.currentStage",{stage:this.currentStageLabel})},isArchived(){return this.item.status===pkp.const.STATUS_SCHEDULED||this.item.status===pkp.const.STATUS_PUBLISHED||this.item.status===pkp.const.STATUS_DECLINED},isDeclined(){return this.item.status===pkp.const.STATUS_DECLINED},isScheduled(){return this.item.status===pkp.const.STATUS_SCHEDULED},isPublished(){return this.item.status===pkp.const.STATUS_PUBLISHED},openQueryCount(){return this.activeStage.openQueryCount},activeStageFilesLabel(){switch(this.activeStage.id){case pkp.const.WORKFLOW_STAGE_ID_INTERNAL_REVIEW:case pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW:return this.__("submission.list.revisionsSubmitted");case pkp.const.WORKFLOW_STAGE_ID_EDITING:return this.__("submission.list.copyeditsSubmitted");case pkp.const.WORKFLOW_STAGE_ID_PRODUCTION:return this.__("submission.list.galleysCreated")}return""},isSubmissionStage(){return this.activeStage.id===pkp.const.WORKFLOW_STAGE_ID_SUBMISSION},isReviewStage(){return this.activeStage.id===pkp.const.WORKFLOW_STAGE_ID_INTERNAL_REVIEW||this.activeStage.id===pkp.const.WORKFLOW_STAGE_ID_EXTERNAL_REVIEW},currentRoleAssignments(){let e=[];return this.item.stages.forEach((t=>{t.currentUserAssignedRoles.forEach((t=>{-1===e.indexOf(t)&&e.push(t)}))})),e},dualWorkflowLinks(){return this.userAssignedRole(pkp.const.ROLE_ID_AUTHOR)&&this.userAssignedRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR,pkp.const.ROLE_ID_ASSISTANT])?this.__("submission.list.dualWorkflowLinks",{urlAuthorWorkflow:this.item.urlAuthorWorkflow,urlEditorialWorkflow:this.item.urlEditorialWorkflow}):""},reviewerWorkflowLink(){return this.currentUserIsReviewer&&this.userAssignedRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR,pkp.const.ROLE_ID_ASSISTANT])?this.__("submission.list.reviewerWorkflowLink",{urlEditorialWorkflow:this.item.urlEditorialWorkflow}):""},currentReviewAssignments(){if(!this.item.reviewRounds.length||!this.item.reviewAssignments.length)return[];var e=this.item.reviewRounds[this.item.reviewRounds.length-1].id;return this.item.reviewAssignments.filter((t=>t.roundId===e))},currentUserLatestReviewAssignment(){if(!this.currentUserIsReviewer)return!1;var e=this.item.reviewAssignments.filter((e=>!0===e.isCurrentUserAssigned));if(!e.length)return!1;var t=e.reduce(((e,t)=>e.round>t.round?e:t));switch(t.statusId){case pkp.const.REVIEW_ASSIGNMENT_STATUS_AWAITING_RESPONSE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_RESPONSE_OVERDUE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_REQUEST_RESEND:t.responsePending=!0,t.reviewPending=!0;break;case pkp.const.REVIEW_ASSIGNMENT_STATUS_ACCEPTED:case pkp.const.REVIEW_ASSIGNMENT_STATUS_REVIEW_OVERDUE:t.reviewPending=!0;break;case pkp.const.REVIEW_ASSIGNMENT_STATUS_RECEIVED:case pkp.const.REVIEW_ASSIGNMENT_STATUS_COMPLETE:case pkp.const.REVIEW_ASSIGNMENT_STATUS_THANKED:t.reviewComplete=!0;break}return t},completedReviewsCount(){return this.isReviewStage?this.currentReviewAssignments.filter((e=>e.statusId>=pkp.const.REVIEW_ASSIGNMENT_STATUS_RECEIVED)).length:0}},methods:{userAssignedRole:function(e){if(Array.isArray(e)||(e=[e]),this.currentRoleAssignments.length)return e.some((e=>this.currentRoleAssignments.includes(e)));var t=e.filter((e=>e===pkp.const.ROLE_ID_SITE_ADMIN||e===pkp.const.ROLE_ID_MANAGER));return!!t.length&&this.userHasRole(t)},filterByStage:function(e){this.$emit("addFilter","stageIds",e)},openInfoCenter(){var e={title:this.localizeSubmission(this.currentPublication.fullTitle,this.currentPublication.locale),url:this.infoUrl.replace("__id__",this.item.id),closeCallback:this.resetFocusInfoCenter};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabindex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",e)},resetFocusInfoCenter(){this.$el.querySelector(".listPanel__item__openInfoCenter").focus()},openAssignParticipant(){var e={title:this.__("submission.list.assignEditor"),url:this.assignParticipantUrl.replace("__id__",this.item.id).replace("__stageId__",this.activeStage.id),closeCallback:this.resetFocusAssignParticipant};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",e)},resetFocusAssignParticipant(){this.$el.querySelector(".listPanel__item--submission__notice button").focus()},deleteSubmissionPrompt(){this.openDialog({name:"deleteSubmission",title:this.__("common.delete"),message:this.__("editor.submissionArchive.confirmDelete"),actions:[{label:this.__("common.yes"),isPrimary:!0,callback:this.deleteSubmission},{label:this.__("common.no"),isWarnable:!0,callback:()=>this.$modal.hide("deleteSubmission")}]})},deleteSubmission(){var e=this;$.ajax({url:this.apiUrl+"/"+this.item.id,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success(){pkp.eventBus.$emit("deleted:submission",{id:e.item.id})},complete(){e.$modal.hide("deleteSubmission")}})},userHasRole(e){Array.isArray(e)||(e=[e]);var t=!1;return e.forEach((e=>{pkp.currentUser.roles.indexOf(e)>-1&&(t=!0)})),t}}},sM=aM,uM=zh(sM,rM,iM,!1,null,null,null),lM=uM.exports,cM={mixins:[Jk],components:{ListPanel:y_,Pagination:Yy,PkpFilter:zb,PkpFilterSlider:ay,PkpFilterAutosuggest:ey,PkpHeader:Bp,Search:t_,SubmissionsListItem:lM},props:{addUrl:{type:String,required:!0},allowSubmissions:{type:Boolean,default(){return!0}},assignParticipantUrl:{type:String,default(){return""}},filters:{type:Array,default(){return[]}},id:{type:String,required:!0},infoUrl:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsMax:{type:Number,defaut(){return 0}},title:{type:String,required:!0}},data(){return{isSidebarVisible:!1}},computed:{currentUserCanFilter(){return this.userHasRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR,pkp.const.ROLE_ID_ASSISTANT])},currentUserCanAddSubmission(){return this.allowSubmissions&&this.userHasRole([pkp.const.ROLE_ID_MANAGER,pkp.const.ROLE_ID_SUB_EDITOR,pkp.const.ROLE_ID_ASSISTANT,pkp.const.ROLE_ID_AUTHOR,pkp.const.ROLE_ID_REVIEWER])}},methods:{addFilter(e,t){if("isIncomplete"===e)this.activeFilters={isIncomplete:t},this.get();else{let n={...this.activeFilters};n.hasOwnProperty("isIncomplete")&&delete n.isIncomplete,["isOverdue","daysInactive","assignedTo","issueIds","sectionIds","categoryIds","assignedTo"].includes(e)?n[e]=t:(n[e]||(n[e]=[]),n[e].push(t)),this.activeFilters=n}},isFilterActive(e,t){return!!Object.keys(this.activeFilters).includes(e)&&(Array.isArray(this.activeFilters[e])?this.activeFilters[e].includes(t):!!["isOverdue","daysInactive"].includes(e)||this.activeFilters[e]===t)},removeFilter(e,t){let n={...this.activeFilters};["isIncomplete","isOverdue","daysInactive","issueIds","sectionIds","categoryIds","assignedTo"].includes(e)?delete n[e]:n[e]=n[e].filter((e=>e!==t)),this.activeFilters=n},setItems(e,t){this.$emit("set",this.id,{items:e,itemsMax:t})},userHasRole(e){Array.isArray(e)||(e=[e]);var t=!1;return e.forEach((e=>{pkp.currentUser.roles.indexOf(e)>-1&&(t=!0)})),t}},mounted(){pkp.eventBus.$on("updated:submission",(()=>this.get())),pkp.eventBus.$on("deleted:submission",(e=>{e.id&&this.items.find((t=>t.id===e.id))&&this.setItems(this.items.filter((t=>e.id!==t.id)),this.itemsMax-1)}))},destroyed(){pkp.eventBus.$off("updated:submission"),pkp.eventBus.$off("deleted:submission")}},dM=cM,fM=zh(dM,tM,nM,!1,null,null,null),hM=fM.exports,pM={name:"Container",components:{ListPanel:y_,PkpForm:hk,SelectReviewerListPanel:eM,SubmissionsListPanel:hM},data(){return{components:{}}},methods:{get(e){return this.components[e]?this.components[e]:{}},set:function(e,t){let n={...this.get(e)};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.components[e]=n}},mounted(){pkp.eventBus.$on("set-form-languages",(e=>{let t;Array.isArray(e)?t=[...e]:(t={...e},t.isGlobalEvent&&delete t.isGlobalEvent,t.handler&&delete t.handler,t=Object.values(t)),Object.keys(this.components).forEach((e=>{"undefined"!==typeof this.components[e].supportedFormLocales&&(this.components[e].supportedFormLocales=t)}))}))},destroyed(){pkp.eventBus.$off("set-form-languages")}},mM=pM,gM=zh(mM,mk,gk,!1,null,null,null),vM=gM.exports,_M={extends:vM,name:"Page",data(){return{breadcrumbs:[],isLoading:!1,menu:[],notifications:[],notificationInterval:null,tasksUrl:"",unreadTasksCount:0}},computed:{backToDashboardLink(){return this.useBackToDashboard?this.menu[Object.keys(this.menu)[0]]:null},backToDashboardLabel(){return this.backToDashboardLink?this.__("navigation.backTo",{page:this.backToDashboardLink.name}):null},useBackToDashboard(){return!!this.menu&&1===Object.keys(this.menu).length&&!this.menu[Object.keys(this.menu)[0]].isCurrent}},methods:{dismissNotification(e){this.notifications=this.notifications.filter((t=>t.key!==e))},openUrlHash(){let e=window.location.hash.slice(1).split("/");while(e.length)pkp.eventBus.$emit("open-tab",e.shift())},openTasks(){var e={url:this.tasksUrl,closeCallback:this.$refs.tasksButton.focus()};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabindex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",e)}},mounted(){window.location.hash&&this.openUrlHash(),window.onhashchange=this.openUrlHash;let e=0;pkp.eventBus.$on("notify",((t,n)=>{this.notifications.push({key:e,message:t,type:n??"notice",expire:Date.now()+5e3}),e++})),this.notificationInterval=setInterval((()=>{this.notifications.length&&(this.$refs.notifications.matches(":hover")||(this.notifications=this.notifications.filter((e=>e.expire>Date.now()))))}),250),pkp.eventBus.$on("clear-all-notify",(()=>this.notifications=[])),pkp.eventBus.$on("update:unread-tasks-count",(e=>this.unreadTasksCount=e.count))},destroyed(){pkp.eventBus.$off("notify"),pkp.eventBus.$off("clear-all-notify"),clearInterval(this.notificationInterval),pkp.eventBus.$off("update:unread-tasks-count")}},bM=_M,yM=zh(bM,vk,_k,!1,null,null,null),xM=yM.exports,wM={name:"NotifyUsersForm",extends:hk,mixins:[qh],props:{confirmLabel:{type:String,required:!0},userGroupCounts:{type:Object,required:!0},sendLabel:{type:String,required:!0}},methods:{nextPage:function(e){let t=0;this.submitValues.userGroupIds&&(t=this.submitValues.userGroupIds.reduce(((e,t)=>e+this.userGroupCounts[t]),0)),this.openDialog({name:"confirmNotify",title:this.sendLabel,message:this.confirmLabel.replace("{$total}",t),actions:[{label:this.sendLabel,isPrimary:!0,callback:()=>{this.submit(),this.$modal.hide("confirmNotify")}},{label:this.__("common.cancel"),isWarnable:!0,callback:()=>this.$modal.hide("confirmNotify")}]})}}},kM=wM,MM=zh(kM,bk,yk,!1,null,null,null),SM=MM.exports,LM={name:"AccessPage",extends:xM,components:{NotifyUsersForm:SM},data(){return{totalBulkJobs:0}},methods:{reload(){window.location.reload()}},mounted(){pkp.eventBus.$on("form-success",((e,t)=>{e===pkp.const.FORM_NOTIFY_USERS&&(this.totalBulkJobs=t.totalBulkJobs)}))},destroyed(){pkp.eventBus.$off("form-success")}},CM=LM,TM=zh(CM,xk,wk,!1,null,null,null),DM=TM.exports,OM={name:"AddContextForm",extends:hk,props:{editContextUrl:{type:String,required:!0}},methods:{success:function(e){pkp.eventBus.$emit("form-success",this.id,e),e.id&&(window.location.href=this.editContextUrl.replace("__id__",e.id))}},watch:{submitValues(e,t){if(e.supportedLocales.includes(e.primaryLocale)){let e={...this.errors};delete e.primaryLocale,this.$emit("set",this.id,{errors:e})}}}},EM=OM,AM=zh(EM,kk,Mk,!1,null,null,null),PM=AM.exports,FM={name:"AddContextContainer",extends:vM,components:{AddContextForm:PM}},IM=FM,YM=zh(IM,Sk,Lk,!1,null,null,null),RM=YM.exports,NM={name:"ThemeForm",extends:hk,props:{themeFields:Object},methods:{fieldChanged:function(e,t,n,r){if("themePluginPath"===e)this.changeTheme(n);else{let i=this.fields.map((i=>(i.name===e&&(r?i[t][r]=n:i[t]=n),i)));this.$emit("set",this.id,{fields:i})}this.removeError(e,r)},changeTheme:function(e){this.$emit("set",this.id,{fields:this.fields.slice(0,1)}),this.$nextTick((()=>{const t=this.themeFields[e]||[];this.$emit("set",this.id,{fields:[{...this.fields[0],value:e},...t]})}))}}},HM=NM,zM=zh(HM,Ck,Tk,!1,null,null,null),jM=zM.exports,BM={extends:xM,name:"AdminPage",components:{ActionPanel:Lm,ThemeForm:jM}},VM=BM,$M=zh(VM,Dk,Ok,!1,null,null,null),UM=$M.exports,WM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"doiListPanel"},[e._t("default",(function(){return[t("list-panel",{attrs:{items:e.mappedItems,isSidebarVisible:!0},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[e._t("item",(function(){return[t("doi-list-item",{key:n.id,attrs:{item:n,"api-url":e.apiUrl,"doi-api-url":e.doiApiUrl,"doi-prefix":e.doiPrefix,"is-selected":e.selected.includes(n.id),"is-expanded":e.expanded.includes(n.id),"enabled-doi-types":e.enabledDoiTypes,"version-dois":e.versionDois,"registration-agency-info":e.registrationAgencyInfo,"registration-agency-names":e.registrationAgencyNames},on:{"select-item":e.selectItem,"expand-item":e.expandItem,"deposit-triggered":e.openBulkDeposit,"update-successful-doi-edits":e.updateSuccessfulDoiEdits}})]}),{item:n})]}}],null,!0)},[t("template",{slot:"header"},[t("pkp-header",[t("h2",[e._v(e._s(e.title))]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[t("search",{attrs:{searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e.setSearchPhrase}}),t("dropdown",{staticClass:"doiListPanel__bulkActions",attrs:{label:e.__("manager.dois.actions.bulkActions")}},[t("div",{staticClass:"pkpDropdown__section"},[t("ul",[t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.toggleSelectAll}},[e._v(" "+e._s(e.isAllSelected?e.__("common.selectNone"):e.__("common.selectAll"))+" ")])]),t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.toggleExpandAll}},[e._v(" "+e._s(e.isAllExpanded?e.__("list.collapseAll"):e.__("list.expandAll"))+" ")])])])]),t("div",{staticClass:"pkpDropdown__section"},[t("div",{staticClass:"app__userNav__loggedInAs"},[e._v(" "+e._s(e.__("manager.dois.actions.description",{count:e.selected.length}))+" ")]),t("ul",[e.isRegistrationPluginConfigured?t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkExport}},[e._v(" "+e._s(e.__("manager.dois.actions.export.label"))+" ")])]):e._e(),t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkMarkRegistered}},[e._v(" "+e._s(e.__("manager.dois.actions.markRegistered.label"))+" ")])]),t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkMarkUnregistered}},[e._v(" "+e._s(e.__("manager.dois.actions.markUnregistered.label"))+" ")])]),t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkMarkStale}},[e._v(" "+e._s(e.__("manager.dois.actions.markStale.label"))+" ")])]),e.canAssignDois?t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkAssign}},[e._v(" "+e._s(e.__("manager.dois.actions.assign.label"))+" ")])]):e._e(),e.isRegistrationPluginConfigured?t("li",[t("button",{staticClass:"pkpDropdown__action",on:{click:e.openBulkDeposit}},[e._v(" "+e._s(e.__("manager.dois.actions.deposit.label"))+" ")])]):e._e()])])]),e.isRegistrationPluginConfigured?t("pkp-button",{attrs:{"is-primary":!0},on:{click:e.openBulkDepositAll}},[e._v(" "+e._s(e.__("manager.dois.actions.deposit.all"))+" ")]):e._e()],1)],2)],1),t("template",{slot:"sidebar"},[t("pkp-header",{attrs:{isOneLine:!1}},[t("h3",[t("icon",{attrs:{icon:"filter",inline:!0}}),e._v(" "+e._s(e.__("common.filter"))+" ")],1),t("template",{slot:"actions"},[t("button",{staticClass:"doiListPanel__statusInfoButton",on:{click:function(t){return e.$modal.show("statusInfoModal")}}},[t("icon",{attrs:{icon:"question-circle"}})],1)])],2),e._l(e.filters,(function(n,r){return t("div",{key:r,staticClass:"listPanel__block"},[n.heading?t("pkp-header",[t("h4",[e._v(e._s(n.heading))])]):e._e(),e._l(n.filters,(function(n){return t(n.filterType||"pkp-filter",e._b({key:n.param+n.value,tag:"component",attrs:{isFilterActive:e.isFilterActive(n.param,n.value)},on:{"add-filter":e.addFilter,"remove-filter":e.removeFilter,"update-filter":e.addFilter}},"component",n,!1))}))],2)}))],2),t("template",{slot:"itemsEmpty"},[e.isLoading?[t("spinner"),e._v(" "+e._s(e.__("common.loading"))+" ")]:[e._v(" "+e._s(e.__("common.noItemsFound"))+" ")]],2),e.lastPage>1?t("pagination",{attrs:{slot:"footer",currentPage:e.currentPage,isLoading:e.isLoading,lastPage:e.lastPage},on:{"set-page":e.setPage},slot:"footer"}):e._e()],2)]})),t("modal",{attrs:{"close-label":e.__("common.close"),name:"statusInfoModal",title:e.__("manager.dois.help.statuses.title")},on:{closed:function(t){e.setFocusIn(e.$el.querySelector(".doiListPanel__statusInfoButton"))}}},[t("table",{staticClass:"pkpTable"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.__("common.status")))]),t("th",[e._v(e._s(e.__("common.description")))])])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.needsDoi")))]),t("td",[e._v(e._s(e.__("manager.dois.status.needsDoi.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.filters.doiAssigned")))]),t("td",[e._v(e._s(e.__("manager.dois.filters.doiAssigned.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.unregistered")))]),t("td",[e._v(e._s(e.__("manager.dois.status.unregistered.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.submitted")))]),t("td",[e._v(e._s(e.__("manager.dois.status.submitted.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.registered")))]),t("td",[e._v(e._s(e.__("manager.dois.status.registered.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.error.filterTitle")))]),t("td",[e._v(e._s(e.__("manager.dois.status.error.description")))])]),t("tr",{staticClass:"pkpTable__row"},[t("th",[e._v(e._s(e.__("manager.dois.status.stale")))]),t("td",[e._v(e._s(e.__("manager.dois.status.stale.description")))])])])]),t("modal",{attrs:{"close-label":e.__("common.close"),name:"failedDoiActionModal",title:e.__("manager.dois.update.failedCreation")},on:{closed:function(t){e.setFocusIn(e.$el.querySelector(".doiListPanel__bulkActions")),e.failedDoiActions=[]}}},[t("p",[e._v(e._s(this.__("manager.dois.update.partialFailure")))]),t("ul",e._l(this.failedDoiActions,(function(n){return t("li",{key:n.index},[e._v(" "+e._s(n)+" ")])})),0)])],2)},qM=[],GM=function(){var e=this,t=e._self._c;return t("div",{staticClass:"listPanel__item--doi",attrs:{id:`list-item-${e.item.type}-${e.item.id}`}},[t("div",{staticClass:"listPanel__itemSummary"},[t("label",{staticClass:"doiListItem__selectWrapper"},[t("div",{staticClass:"doiListItem__selector"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.isSelected,expression:"isSelected"}],attrs:{type:"checkbox",name:`${e.item.type}[]`},domProps:{value:e.item.id,checked:Array.isArray(e.isSelected)?e._i(e.isSelected,e.item.id)>-1:e.isSelected},on:{click:e.toggleSelected,change:function(t){var n=e.isSelected,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.item.id,a=e._i(n,o);r.checked?a<0&&(e.isSelected=n.concat([o])):a>-1&&(e.isSelected=n.slice(0,a).concat(n.slice(a+1)))}else e.isSelected=i}}})])]),t("div",{staticClass:"listPanel__itemIdentity"},[t("div",{staticClass:"listPanel__itemTitle doiListItem__itemTitle"},[t("span",{staticClass:"listPanel__itemSubtitle"},[t("a",{attrs:{href:e.item.urlPublished,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.item.title)+" ")])])])]),t("div",{staticClass:"listPanel__itemActions"},[e._v(" "+e._s(e.item.id)+" "),t("div",{staticClass:"doiListItem__itemMetadata"},[t("badge",{staticClass:"doiListItem__itemMetadata--badge",attrs:{"is-warnable":e.item.isPublished&&(!e.isDeposited&&e.isRegistrationPluginConfigured||e.isDeposited&&e.isRegistrationPluginConfigured&&e.isStale||e.hasErrors),"is-primary":e.item.isPublished&&e.isDeposited}},[e._v(" "+e._s(e.item.isPublished?e.depositStatusString:e.publicationStatusLabel)+" ")])],1),t("expander",{attrs:{isExpanded:e.isExpanded,itemName:e.item.id.toString()},on:{toggle:e.toggleExpanded}})],1)]),e.isExpanded?t("div",{staticClass:"listPanel__itemExpanded listPanel__itemExpanded--doi"},[t("pkp-table",{attrs:{columns:e.doiListColumns,rows:e.currentVersionDoiObjects},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("table-cell",{attrs:{column:e.doiListColumns[0],row:n}},[t("label",{attrs:{for:n.uid}},[e._v(e._s(n.displayType))])]),t("table-cell",{attrs:{column:e.doiListColumns[1],row:n}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.mutableDois.find((e=>e.uid===n.uid)).identifier,expression:"\n\t\t\t\t\t\t\tmutableDois.find((doi) => doi.uid === row.uid).identifier\n\t\t\t\t\t\t"}],staticClass:"pkpFormField__input pkpFormField--text__input",attrs:{id:n.uid,type:"text",readonly:!(e.isEditingDois&&!e.isSaving)},domProps:{value:e.mutableDois.find((e=>e.uid===n.uid)).identifier},on:{input:function(t){t.target.composing||e.$set(e.mutableDois.find((e=>e.uid===n.uid)),"identifier",t.target.value)}}})])]}}],null,!1,1224528147)}),t("div",{staticClass:"listPanel__itemExpandedActions doiListPanel__itemExpandedActions"},[e.item.versions.length>1&&!e.isEditingDois&&!e.isSaving&&e.versionDois?t("div",{staticClass:"doiListPanel__itemExpandedActions--actionsBar"},[e._v(" "+e._s(e.__("doi.manager.versions.countStatement",{count:e.item.versions.length}))+" "),t("button",{ref:e.versionModalName,class:"-linkButton",on:{click:function(t){return e.$modal.show(e.versionModalName)}}},[e._v(" "+e._s(e.__("doi.manager.versions.view"))+" ")])]):e._e(),e.isSaving?t("spinner"):e._e(),t("pkp-button",{attrs:{"is-disabled":e.isDeposited||e.isSaving},on:{click:function(t){e.isEditingDois?e.saveDois():e.editDois()}}},[e._v(" "+e._s(e.isEditingDois?e.__("common.save"):e.__("common.edit"))+" ")])],1),e.isRegistrationPluginConfigured?t("div",{staticClass:"doiListItem__depositorDetails"},[t("div",{staticClass:"doiListItem__depositorName"},[e._v(" "+e._s(e.registrationAgencyInfo["displayName"])+" ")]),e.item.isPublished?t("span",{staticClass:"doiListItem__depositorDescription"},[e._v(" "+e._s(e.isDeposited?null===e.itemRegistrationAgency?e.__("manager.dois.registration.manuallyMarkedRegistered"):e.__("manager.dois.registration.submittedDescription",{registrationAgency:e.itemRegistrationAgencyName}):e.__("manager.dois.registration.notSubmittedDescription",{registrationAgency:e.registrationAgencyInfo["displayName"]}))+" ")]):t("span",{staticClass:"doiListItem__depositorDescription"},[e._v(" "+e._s(e.__("manager.dois.registration.notPublishedDescription"))+" ")]),t("div",{staticClass:"doiListItem__depositorActions"},[e.isDeposited&&e.hasRegisteredMessage?t("pkp-button",{ref:"recordedMessageModalButton",attrs:{"is-disabled":e.isEditingDois},on:{click:function(t){return e.$modal.show("registeredMessageModal")}}},[e._v(" "+e._s(e.__("manager.dois.registration.viewRecord"))+" ")]):!e.isDeposited&&e.item.isPublished?t("pkp-button",{attrs:{"is-disabled":e.isEditingDois},on:{click:e.handleDepositorActions}},[e._v(" "+e._s(e.__("manager.dois.registration.depositDois"))+" ")]):e._e(),e.hasErrors&&e.hasErrorMessage?t("pkp-button",{ref:"errorMessageModalButton",attrs:{"is-disabled":e.isEditingDois},on:{click:function(t){return e.$modal.show(`errorMessageModal-${e.item.id}`)}}},[e._v(" "+e._s(e.__("manager.dois.registration.viewError"))+" ")]):e._e()],1)]):e._e()],1):e._e(),t("modal",{attrs:{"close-label":e.__("common.close"),name:`errorMessageModal-${e.item.id}`,title:e.__("manager.dois.registration.viewError.title")},on:{closed:function(t){return e.setFocusToRef("errorMessageModalButton")}}},[t("p",[e._v(e._s(e.registrationAgencyInfo["errorMessagePreamble"]))]),t("div",{staticClass:"depositErrorMessage"},[t("pre",[e._v(e._s(e.currentVersionDoiObjects[0]["errorMessage"]))])])]),t("modal",{attrs:{"close-label":e.__("common.close"),name:"registeredMessageModal",title:e.__("manager.dois.registration.viewError.title")},on:{closed:function(t){return e.setFocusToRef("registeredMessageModalButton")}}},[t("p",[e._v(e._s(e.registrationAgencyInfo["registeredMessagePreamble"]))]),t("p",[e._v(e._s(e.currentVersionDoiObjects[0]["registeredMessage"]))])]),t("modal",{attrs:{"close-label":e.__("common.close"),name:e.versionModalName,title:e.__("doi.manager.versions.modalTitle")},on:{closed:function(t){return e.setFocusToRef(e.versionModalName)}}},[e._l(e.item.versions,(function(n){return t("div",{key:n.id,staticClass:"doiListItem__versionContainer"},[t("a",{attrs:{href:n.urlPublished,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.getVersionHeader(n))+" ")]),t("pkp-table",{attrs:{columns:e.doiListColumns,rows:e.item.doiObjects.filter((e=>e.versionNumber===n.versionNumber))},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("table-cell",{attrs:{column:e.doiListColumns[0],row:n}},[t("label",{attrs:{for:n.uid}},[e._v(e._s(n.displayType))])]),t("table-cell",{attrs:{column:e.doiListColumns[1],row:n}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.mutableDois.find((e=>e.uid===n.uid)).identifier,expression:"\n\t\t\t\t\t\t\t\tmutableDois.find((doi) => doi.uid === row.uid).identifier\n\t\t\t\t\t\t\t"}],staticClass:"pkpFormField__input pkpFormField--text__input",attrs:{id:n.uid,type:"text",readonly:!(e.isEditingDois&&!e.isSaving)},domProps:{value:e.mutableDois.find((e=>e.uid===n.uid)).identifier},on:{input:function(t){t.target.composing||e.$set(e.mutableDois.find((e=>e.uid===n.uid)),"identifier",t.target.value)}}})])]}}],null,!0)})],1)})),t("div",{staticClass:"doiListItem__versionContainer--actionsBar"},[e.isSaving?t("spinner"):e._e(),t("pkp-button",{attrs:{"is-disabled":e.isDeposited||e.isSaving},on:{click:function(t){e.isEditingDois?e.saveDois():e.editDois()}}},[e._v(" "+e._s(e.isEditingDois?e.__("common.save"):e.__("common.edit"))+" ")])],1)],2)],1)},KM=[],JM={name:"DoiListItem",components:{Expander:Uk,Modal:Bh,PkpTable:Gy,TableCell:$y},props:{apiUrl:{type:String,required:!0},doiApiUrl:{type:String,required:!0},doiPrefix:{type:String,default(){return""}},item:{type:Object,required:!0},isExpanded:{type:Boolean},isSelected:{type:Boolean},enabledDoiTypes:{type:Array,default(){return[]}},versionDois:{type:Boolean,required:!0},registrationAgencyInfo:{type:Object,required:!0},registrationAgencyNames:{type:Object,default(){return{}}}},data(){return{doiListColumns:[{name:"type",label:this.__("common.type"),value(e){return e.displayType}},{name:"doi",label:this.__("manager.dois.title"),value:"value"}],isEditingDois:!1,isEditingDoisEnabled:!1,isSaving:!1,mutableDois:[],itemsToUpdate:{}}},computed:{currentVersionDoiObjects(){return this.item.doiObjects.filter((e=>e.isCurrentVersion))},depositStatusString(){switch(this.itemDepositStatus){case pkp.const.DOI_STATUS_UNREGISTERED:return this.needsDoi?this.__("manager.dois.status.needsDoi"):this.__("manager.dois.status.unregistered");case pkp.const.DOI_STATUS_SUBMITTED:return this.__("manager.dois.status.submitted");case pkp.const.DOI_STATUS_REGISTERED:return this.__("manager.dois.status.registered");case pkp.const.DOI_STATUS_ERROR:return this.__("manager.dois.status.error");case pkp.const.DOI_STATUS_STALE:return this.__("manager.dois.status.stale");default:return""}},isDeposited(){const e=[pkp.const.DOI_STATUS_SUBMITTED,pkp.const.DOI_STATUS_REGISTERED];return e.includes(this.itemDepositStatus)},isRegistrationPluginConfigured(){return this.registrationAgencyInfo["isConfigured"]},isStale(){return this.itemDepositStatus===pkp.const.DOI_STATUS_STALE},itemDepositStatus(){return 0!==this.currentVersionDoiObjects.length?this.currentVersionDoiObjects[0]["depositStatus"]:pkp.const.DOI_STATUS_UNREGISTERED},itemRegistrationAgency:function(){return 0!==this.item.doiObjects.length?this.item.doiObjects[0]["registrationAgency"]:null},itemRegistrationAgencyName:function(){const e=this.itemRegistrationAgency;return this.registrationAgencyNames.hasOwnProperty(e)?this.registrationAgencyNames[e]:`[${e}]`},hasErrors(){return this.itemDepositStatus===pkp.const.DOI_STATUS_ERROR},hasErrorMessage(){const e=this.currentVersionDoiObjects[0]["errorMessage"];return null!==e&&void 0!==e&&""!==e},hasRegisteredMessage(){const e=this.currentVersionDoiObjects[0]["registeredMessage"];return null!==e&&void 0!==e&&""!==e},needsDoi(){const e=this.item.doiObjects.some((e=>null!==e.doiId));return!e},publicationStatusLabel(){return this.item.isPublished?this.__("publication.status.published"):this.__("publication.status.unpublished")},versionModalName(){return this.item.type+"-versionsModal-"+this.item.id}},methods:{updateMutableDois(e){let t=[];e.forEach((e=>{t.push({uid:e.uid,doiId:e.doiId,identifier:e.identifier,pubObjectType:e.type,pubObjectId:e.id})})),this.mutableDois=t},editDois(){this.isEditingDois=!0},saveDois(){this.mutableDois.forEach((e=>{const t=this.item.doiObjects.find((t=>t.uid===e.uid));if(t.identifier!==e.identifier){let t={...this.itemsToUpdate};t[e.uid]={isFinished:!1,isSuccess:!1,...e},this.itemsToUpdate=t}})),this.isSaving=!0,0!==Object.keys(this.itemsToUpdate).length?Object.keys(this.itemsToUpdate).forEach((e=>{this.postUpdatedDoi(this.itemsToUpdate[e])})):(this.isSaving=!1,this.isEditingDois=!1)},postUpdatedDoi(e){null===e.doiId?$.when(this.addNewDoi(e)).then((()=>{this.addDoiToPubObject(e)})).catch((t=>{this.postUpdatedDoiComplete(t,e.uid)})):""===e.identifier?this.deleteDoi(e):this.editDoi(e)},addNewDoi(e){return $.ajax({url:`${this.doiApiUrl}`,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,contentType:"application/x-www-form-urlencoded"},data:{contextId:this.item.contextId,doi:`${e.identifier}`},success(t){e.doiId=t.id},error:t=>this.postUpdatedDoiError(t,e.uid)})},addDoiToPubObject(e){return $.ajax({url:this.item.doiObjects.find((t=>t.uid===e.uid)).updateWithNewDoiEndpoint,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT",contentType:"application/x-www-form-urlencoded"},data:{doiId:e.doiId},success:t=>this.postUpdatedDoiSuccess(t,e.uid),error:t=>this.postUpdatedDoiError(t,e.uid),complete:t=>this.postUpdatedDoiComplete(t,e.uid)})},editDoi(e){let t={doi:e.identifier};return this.versionDois&&(t.pubObjectType=e.pubObjectType,t.pubObjectId=e.pubObjectId),$.ajax({url:`${this.doiApiUrl}/${e.doiId}`,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT",contentType:"application/x-www-form-urlencoded"},data:t,success:t=>this.postUpdatedDoiSuccess(t,e.uid),error:t=>this.postUpdatedDoiError(t,e.uid),complete:t=>this.postUpdatedDoiComplete(t,e.uid)})},deleteDoi(e){let t={};return this.versionDois&&(t.pubObjectType=e.pubObjectType,t.pubObjectId=e.pubObjectId),$.ajax({url:`${this.doiApiUrl}/${e.doiId}`,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},data:t,success:t=>this.postUpdatedDoiSuccess(t,e.uid),error:t=>this.postUpdatedDoiError(t,e.uid),complete:t=>this.postUpdatedDoiComplete(t,e.uid)})},postUpdatedDoiSuccess(e,t){let n={...this.itemsToUpdate};n[t].isSuccess=!0,this.itemsToUpdate=n},postUpdatedDoiError(e,t){let n={...this.itemsToUpdate};n[t].isSuccess=!1,this.itemsToUpdate=n},postUpdatedDoiComplete(e,t){let n={...this.itemsToUpdate};n[t].isFinished=!0,this.itemsToUpdate=n;const r=Object.keys(this.itemsToUpdate).every((e=>!0===this.itemsToUpdate[e].isFinished));if(r){let e={...this.itemsToUpdate},t=!1;if(Object.keys(e).forEach((n=>{e[n].isSuccess||(t=!0,delete e[n])})),this.itemsToUpdate=e,t&&pkp.eventBus.$emit("notify",this.__("manager.dois.update.partialFailure"),"warning"),0!==Object.keys(this.itemsToUpdate).length){let e=this;$.ajax({url:`${this.apiUrl}/${this.item.id}`,type:"GET",success(t){e.$emit("update-successful-doi-edits",t)},error(t){e.ajaxErrorCallback(t)},complete(t){e.itemsToUpdate={}}})}else this.updateMutableDois(this.item.doiObjects);this.isSaving=!1,this.isEditingDois=!1}},handleDepositorActions(){return this.isDeposited?this.viewRecord():this.triggerDeposit()},viewRecord(){this.$modal.show("registeredMessageModal")},triggerDeposit(){this.$emit("deposit-triggered",[this.item.id],"deposit")},toggleSelected(){this.$emit("select-item",this.item.id)},toggleExpanded(){this.$emit("expand-item",this.item.id)},getVersionHeader(e){const t=null!==e.datePublished?`(${e.datePublished})`:this.__("publication.status.unpublished");return`${this.__("publication.version",{version:e.versionNumber})} ${t}`}},mounted(){this.updateMutableDois(this.item.doiObjects)},watch:{item:function(){this.updateMutableDois(this.item.doiObjects)}}},XM=JM,QM=zh(XM,GM,KM,!1,null,null,null),ZM=QM.exports,eS={components:{Notification:_p,DoiListItem:ZM,Dropdown:ap,FieldSelect:vw,ListPanel:y_,Pagination:Yy,PkpFilter:zb,PkpFilterAutosuggest:ey,PkpHeader:Bp,Search:t_,Modal:Bh},mixins:[uv,Jk],props:{id:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsMax:{type:Number,default(){return 0}},itemType:{type:String,required:!0},filters:{type:Array,default(){return[]}},title:{type:String,required:!0},doiPrefix:{type:String,default(){return""}},enabledDoiTypes:{type:Array,default(){return[]}},versionDois:{type:Boolean,required:!0},doiApiUrl:{type:String,required:!0},executeActionApiUrl:{type:String,required:!0},registrationAgencyInfo:{type:Object,required:!0},registrationAgencyNames:{type:Object,default(){return{}}},publishedStatuses:{type:Object,required:!0}},data(){return{activeFilters:{},selected:[],expanded:[],failedDoiActions:[]}},methods:{setItems(e,t){this.$emit("set",this.id,{items:e,itemsMax:t})},selectItem(e){this.selected.includes(e)?this.selected=this.selected.filter((t=>t!==e)):this.selected.push(e)},expandItem(e){this.expanded.includes(e)?this.expanded=this.expanded.filter((t=>t!==e)):this.expanded.push(e)},toggleExpandAll(){this.isAllExpanded?this.expanded=[]:this.expanded=this.items.map((e=>e.id))},toggleSelectAll(){this.isAllSelected?this.selected=[]:this.selected=this.items.map((e=>e.id))},addFilter(e,t){let n={...this.activeFilters};"unregistered"===e&&(n["doiStatus"]=pkp.const.DOI_STATUS_UNREGISTERED,n[this.publishedStatuses.name]=this.publishedStatuses.published),"doiStatus"===e&&t!==pkp.const.DOI_STATUS_UNREGISTERED&&delete n["unregistered"],n[e]=t,this.activeFilters=n},isFilterActive:function(e,t){return!!Object.keys(this.activeFilters).includes(e)&&(Array.isArray(this.activeFilters[e])?this.activeFilters[e].includes(t):this.activeFilters[e]===t)},removeFilter(e,t){let n={...this.activeFilters};"unregistered"===e&&(delete n[this.publishedStatuses.name],delete n["doiStatus"]),delete n[e],this.activeFilters=n},openBulkDeposit(e=[]){const t=e.length>0?e:this.selected,n=this.__("manager.dois.actions.deposit.label"),r=this.__("manager.dois.actions.deposit.prompt",{count:t.length,registrationAgency:this.registrationAgencyInfo["displayName"]});this.openBulkActionDialog(n,r,(()=>{let e=this;e.loading=!0,$.ajax({...this.getBulkActionAjaxProps("deposit","PUT"),data:{ids:t},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.depositQueuedSuccess"),"success")},error:e=>this.ajaxErrorCallback(e),complete:()=>(e.isloading=!1,this.onBulkActionComplete())})}))},openBulkExport(){const e=this.__("manager.dois.actions.export.label"),t=this.__("manager.dois.actions.export.prompt",{count:this.selected.length,registrationAgency:this.registrationAgencyInfo["displayName"]});this.openBulkActionDialog(e,t,(()=>{$.ajax({...this.getBulkActionAjaxProps("export","PUT"),data:{ids:this.selected},success:e=>{const t=document.createElement("a");t.href=`${this.doiApiUrl}/exports/${e.temporaryFileId}`,document.body.appendChild(t),t.click(),document.body.removeChild(t),pkp.eventBus.$emit("notify",this.__("manager.dois.notification.exportSuccess"),"success")},error:e=>this.ajaxErrorCallback(e),complete:()=>this.onBulkActionComplete()})}))},openBulkMarkRegistered(){const e=this.__("manager.dois.actions.markRegistered.label"),t=this.__("manager.dois.actions.markRegistered.prompt",{count:this.selected.length});this.openBulkActionDialog(e,t,(()=>{$.ajax({...this.getBulkActionAjaxProps("markRegistered","PUT"),data:{ids:this.selected},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.markRegisteredSuccess"),"success")},error:e=>{if(!e.responseJSON.hasOwnProperty("failedDoiActions"))return this.ajaxErrorCallback(e);this.failedDoiActions=e.responseJSON.failedDoiActions},complete:()=>this.onBulkActionComplete()})}))},openBulkMarkUnregistered(){const e=this.__("manager.dois.actions.markUnregistered.label"),t=this.__("manager.dois.actions.markUnregistered.prompt",{count:this.selected.length});this.openBulkActionDialog(e,t,(()=>{$.ajax({...this.getBulkActionAjaxProps("markUnregistered","PUT"),data:{ids:this.selected},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.markUnregisteredSuccess"),"success")},error:e=>this.ajaxErrorCallback(e),complete:()=>this.onBulkActionComplete()})}))},openBulkMarkStale(){const e=this.__("manager.dois.actions.markStale.label"),t=this.__("manager.dois.actions.markStale.prompt",{count:this.selected.length});this.openBulkActionDialog(e,t,(()=>{$.ajax({...this.getBulkActionAjaxProps("markStale","PUT"),data:{ids:this.selected},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.markStaleSuccess"),"success")},error:e=>{if(!e.responseJSON.hasOwnProperty("failedDoiActions"))return this.ajaxErrorCallback(e);this.failedDoiActions=e.responseJSON.failedDoiActions},complete:()=>this.onBulkActionComplete()})}))},openBulkAssign(){const e=this.__("manager.dois.actions.assign.label"),t=this.__("manager.dois.actions.assign.prompt",{count:this.selected.length});this.openBulkActionDialog(e,t,(()=>{$.ajax({...this.getBulkActionAjaxProps("assignDois"),data:{ids:this.selected},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.assignDoisSuccess"),"success")},error:e=>{if(!e.responseJSON.hasOwnProperty("failedDoiActions"))return this.ajaxErrorCallback(e);this.failedDoiActions=e.responseJSON.failedDoiActions},complete:()=>this.onBulkActionComplete()})}))},openBulkDepositAll(){const e=this.__("manager.dois.actions.depositAll.label"),t=this.__("manager.dois.actions.depositAll.prompt",{registrationAgency:this.registrationAgencyInfo["displayName"]});this.openBulkActionDialog(e,t,(()=>{$.ajax({url:`${this.doiApiUrl}/depositAll`,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},success:()=>{pkp.eventBus.$emit("notify",this.__("manager.dois.notification.depositQueuedSuccess"),"success")},error:e=>this.ajaxErrorCallback(e),complete:()=>this.onBulkActionComplete()})}))},openBulkActionDialog(e,t,n){this.openDialog({name:"bulkActions",title:e,message:t,actions:[{label:e,isPrimary:!0,callback:n},{label:this.__("common.cancel"),isWarnable:!0,callback:()=>this.$modal.hide("bulkActions")}]})},getBulkActionAjaxProps(e,t="POST"){let n={"X-Csrf-Token":pkp.currentUser.csrfToken};return"POST"!==t&&(n["X-Http-Method-Override"]=t),{url:`${this.executeActionApiUrl}/${e}`,type:"POST",headers:n}},onBulkActionComplete(){this.$modal.hide("bulkActions"),this.get(),this.selected=[]},updateSuccessfulDoiEdits(e){let t=this.items.map((t=>t.id===e.id?e:t));pkp.eventBus.$emit("notify",this.__("manger.dois.update.success"),"success"),this.setItems(t,this.itemsMax)},getCurrentPublication(e){return e.publications.find((t=>t.id===e.currentPublicationId))},addDoiObjects(e){return e},getItemTitle(e){return this.getItemTitleBase(e)},getItemTitleBase(e){const t=this.getCurrentPublication(e),n=t.authorsStringShort,r=this.localize(t.fullTitle);return`${n} — ${r}`},getUrlPublished(e){return this.getUrlPublishedBase(e)},getUrlPublishedBase(e){return this.getCurrentPublication(e).urlPublished},getIsPublished(e){return this.getIsPublishedBase(e)},getIsPublishedBase(e){return e.status===pkp.const.STATUS_PUBLISHED},getVersions(e){return e.publications?.map((t=>({id:t.id,isCurrentVersion:e.currentPublicationId===t.id,versionNumber:t.version,urlPublished:t.urlPublished,datePublished:t.datePublished})))||[]},mapDoiObject(e,t){return{doiId:null===e?null:e.id,identifier:null===e?"":e.doi,depositStatus:null===e?pkp.const.DOI_STATUS_UNREGISTERED:e.status,errorMessage:null===e?null:e[this.registrationAgencyInfo["errorMessageKey"]],registeredMessage:null===e?null:e[this.registrationAgencyInfo["registeredMessageKey"]],registrationAgency:null===e?null:e.registrationAgency,...t}}},computed:{canAssignDois(){return this.doiPrefix&&this.doiPrefix?.length>0&&this.enabledDoiTypes.length>0},isAllSelected(){return this.selected.length&&this.selected.length===this.items.length},isAllExpanded(){return this.expanded.length&&this.expanded.length===this.items.length},mappedItems(){return this.items.map((e=>{let t={id:e.id,type:this.itemType,title:this.getItemTitle(e),urlPublished:this.getUrlPublished(e),isPublished:this.getIsPublished(e),versions:this.getVersions(e),doiObjects:[]};return t=this.addDoiObjects(t),t}))},isRegistrationPluginConfigured(){return this.registrationAgencyInfo["isConfigured"]}},watch:{failedDoiActions(e,t){0!==e.length?this.$modal.show("failedDoiActionModal"):this.$modal.hide("failedDoiActionModal")}}},tS=eS,nS=zh(tS,WM,qM,!1,null,null,null),rS=nS.exports,iS={name:"DoiListPanelOJS",extends:rS,methods:{addDoiObjects(e){let t=e;const n=this.items.find((t=>t.id===e.id));if("submission"===this.itemType)n.publications.forEach((e=>{const r=e.id===this.getCurrentPublication(n).id,i=e.version;if(this.enabledDoiTypes.includes("publication")){let o=e.doiObject,a=`${this.doiApiUrl}/publications/${n.currentPublicationId}`;a=a.replace(/dois/g,"_dois"),t.doiObjects.push(this.mapDoiObject(o,{id:e.id,uid:`${n.id}-article-${e.id}`,displayType:this.__("article.article"),type:"publication",isCurrentVersion:r,versionNumber:i,updateWithNewDoiEndpoint:a}))}this.enabledDoiTypes.includes("representation")&&e.galleys.forEach((e=>{const o=e.doiObject;let a=`${this.doiApiUrl}/galleys/${e.id}`;a=a.replace(/dois/g,"_dois"),t.doiObjects.push(this.mapDoiObject(o,{id:e.id,uid:`${n.id}-representation-${e.id}`,displayType:e.label,type:"representation",isCurrentVersion:r,versionNumber:i,updateWithNewDoiEndpoint:a}))}))}));else if("issue"===this.itemType&&this.enabledDoiTypes.includes("issue")){let e=n.doiObject,r=`${this.doiApiUrl}/issues/${n.id}`;r=r.replace(/dois/g,"_dois"),t.doiObjects.push(this.mapDoiObject(e,{id:n.id,uid:`${n.id}-issue`,displayType:this.__("issue.issue"),type:"issue",isCurrentVersion:!0,versionNumber:1,updateWithNewDoiEndpoint:r}))}return t},getItemTitle(e){return"submission"===this.itemType?this.getItemTitleBase(e):e.identification},getUrlPublished(e){return"submission"===this.itemType?this.getUrlPublishedBase(e):e.publishedUrl},getIsPublished(e){return"submission"===this.itemType?this.getIsPublishedBase(e):e.published}}},oS=iS,aS=zh(oS,Ek,Ak,!1,null,null,null),sS=aS.exports,uS={name:"DoiPageOJS",extends:xM,components:{DoiListPanel:sS}},lS=uS,cS=zh(lS,Pk,Fk,!1,null,null,null),dS=cS.exports;const fS={email:"email",form:"form",promoteFiles:"promoteFiles"};var hS,pS,mS,gS,vS,_S,bS,yS,xS,wS,kS,MS,SS,LS,CS,TS,DS,OS,ES,AS,PS,FS,IS,YS,RS,NS,HS,zS,jS,BS,VS,$S={extends:xM,mixins:[uv,qh,oM],components:{ButtonRow:Am,Composer:Tb,ListPanel:y_,PkpForm:hk,SelectSubmissionFileListItem:A_,Tooltip:Dg},data(){return{abandonDecisionLabel:"",cancelConfirmationPrompt:"",currentStep:{},decision:0,decisionCompleteLabel:"",decisionCompleteDescription:"",emailTemplatesApiUrl:"",startedSteps:[],isSubmitting:!1,keepWorkingLabel:"",reviewRoundId:0,skippedSteps:[],stageId:0,steps:[],submissionUrl:"",submissionApiUrl:"",submissionListUrl:"",viewAllSubmissionsLabel:"",viewSubmissionLabel:""}},computed:{currentStepIndex(){return this.steps.findIndex((e=>e.id===this.currentStep.id))},errors(){return this.steps.filter((e=>Object.keys(e.errors).length||e.type===fS.form&&Object.keys(e.form.errors).length)).reduce(((e,t)=>(e[t.id]=this.replaceLocaleParams(this.stepErrorMessage,{stepName:t.name}),e)),{})},isOnFirstStep(){return 0===this.currentStepIndex},isOnLastStep(){return this.currentStepIndex===this.steps.length-1}},methods:{cancel(){this.openDialog({name:"cancel",title:this.abandonDecisionLabel,message:this.cancelConfirmationPrompt,actions:[{label:this.abandonDecisionLabel,isWarnable:!0,callback:()=>{window.location=this.submissionUrl}},{label:this.keepWorkingLabel,callback:()=>this.$modal.hide("cancel")}]})},copyFile(e,t,n){$.ajax({url:this.submissionApiUrl+"/files/"+e+"/copy?"+$.param({stageId:this.stageId}),type:"POST",data:{toFileStage:t},headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},error:this.ajaxErrorCallback,complete:n})},nextStep(){const e=1+this.currentStepIndex;this.steps.length<=e?this.submit():this.openStep(this.steps[e].id)},openCompletedDialog(){this.openDialog({name:"completed",title:this.decisionCompleteLabel,message:this.decisionCompleteDescription,actions:[{label:this.viewSubmissionLabel,element:"a",href:this.submissionUrl},{label:this.viewAllSubmissionsLabel,element:"a",href:this.submissionListUrl}],close:()=>{window.location=this.submissionUrl}})},openStep(e){this.startedSteps=[...new Set([...this.startedSteps,e])],this.currentStep=this.steps.find((t=>t.id===e))},previousStep(){const e=this.currentStepIndex-1;e>=0&&this.openStep(this.steps[e].id)},setStepErrors(e){this.steps.forEach(((t,n)=>{n in e!==!1&&(t.type===fS.form?t.form.errors=e[n]:t.errors=e[n])}))},toggleSkippedStep(e){this.skippedSteps.includes(e)?this.skippedSteps=this.skippedSteps.filter((t=>t!==e)):(this.skippedSteps.push(e),this.steps=this.steps.map((t=>(t.id===e&&(t.errors={}),t))),this.steps.findIndex((t=>t.id===e))<this.steps.length-1&&this.nextStep())},submit(){this.isSubmitting=!0;const e=this.steps.filter((e=>!this.skippedSteps.includes(e.id))),t={decision:this.decision,actions:e.filter((e=>[fS.form,fS.email].includes(e.type))).map((e=>{let t={id:e.id};if(e.type===fS.form)return e.form.fields.forEach((e=>{t[e.name]=e.value})),t;if(e.type===fS.email){const n=e.bcc.trim(),r=e.cc.trim();return{...t,attachments:e.attachments,bcc:n?n.split(",").map((e=>e.trim())):[],cc:r?r.split(",").map((e=>e.trim())):[],locale:e.locale,recipients:e.canChangeRecipients?e.recipients:[],subject:e.subject,body:e.body}}}))};this.reviewRoundId&&(t.reviewRoundId=this.reviewRoundId);const n=e.filter((e=>e.type===fS.promoteFiles&&e.selected.length)).reduce(((e,t)=>(t.selected.forEach((n=>{e.push({id:n,toFileStage:t.to})})),e)),[]);$.ajax({url:this.submissionApiUrl+"/decisions",type:"POST",context:this,data:t,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},error(e){e.status&&400===e.status?e.responseJSON.decision?this.ajaxErrorCallback({responseJSON:{errorMessage:e.responseJSON.decision[0]}}):e.responseJSON.actions?this.setStepErrors(e.responseJSON.actions):this.ajaxErrorCallback(e):this.ajaxErrorCallback(e),this.isSubmitting=!1},success(){n.length||(this.isSubmitting=!1,this.openCompletedDialog());let e=0;const t=()=>{e++,e>=n.length&&(this.openCompletedDialog(),clearInterval(t))};n.forEach((e=>this.copyFile(e.id,e.toFileStage,t)))}})},updateStep(e,t){this.steps=this.steps.map((n=>{if(n.id!==e)return n;if(n.type===fS.form){let e={...n.form.errors};return Object.keys(t).forEach((t=>delete e[t])),{...n,form:{...n.form,...t,errors:e}}}let r={...n.errors};return Object.keys(t).forEach((e=>delete r[e])),{...n,...t,errors:r}}))}},created(){this.steps.length&&(this.openStep(this.steps[0].id),this.steps=this.steps.map((e=>e.type!==fS.email?e:{...e,attachments:[],subject:"",body:"",cc:"",bcc:"",recipients:e.recipientOptions.map((e=>e.value))})))}},US=$S,WS=zh(US,hS,pS,!1,null,null,null),qS=WS.exports,GS={name:"ImportExportPage",extends:xM,data(){return{selectedSubmissions:[]}},methods:{submit(e){$(e).submit()},toggleSelectAll(){this.selectedSubmissions.length>=this.components.submissions.itemsMax?this.selectedSubmissions=[]:this.selectedSubmissions=this.components.submissions.items.map((e=>e.id))}}},KS=GS,JS=zh(KS,mS,gS,!1,null,null,null),XS=JS.exports,QS={name:"ManageEmailsPage",extends:xM,mixins:[qh],components:{Modal:Bh,PkpFilter:zb,Search:t_},data(){return{activeFilters:{},currentMailable:{},currentTemplate:{},currentTemplateForm:{},i18nRemoveTemplate:"",i18nRemoveTemplateMessage:"",i18nResetAll:"",i18nResetAllMessage:"",mailables:[],mailablesApiUrl:"",resetFocusTo:{},searchPhrase:"",templateForm:{},templatesApiUrl:""}},computed:{currentMailables(){let e=[...this.mailables];if(!this.searchPhrase.length&&!Object.keys(this.activeFilters).length)return e;if(this.searchPhrase.length){const t=this.searchPhrase.toLowerCase();e=e.filter((e=>e.name.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)))}return Object.keys(this.activeFilters).forEach((t=>{this.activeFilters[t].forEach((n=>{e=e.filter((e=>e[t].includes(n)))}))})),e}},methods:{addFilter(e,t){let n={...this.activeFilters};n[e]?n[e].push(t):n[e]=[t],this.activeFilters=n},confirmRemoveTemplate(e){this.openDialog({name:"removeTemplate",title:this.i18nRemoveTemplate,message:this.i18nRemoveTemplateMessage.replace("{$template}",this.localize(e.subject)),actions:[{label:this.i18nRemoveTemplate,isWarnable:!0,callback:()=>{this.deleteTemplate(e,(()=>{this.currentMailable.emailTemplates=this.currentMailable.emailTemplates.filter((t=>t.key!==e.key))}),(()=>{this.$modal.hide("removeTemplate")}))}},{label:this.__("common.cancel"),callback:()=>this.$modal.hide("removeTemplate")}]})},confirmResetAll(){this.openDialog({name:"resetAll",title:this.i18nResetAll,message:this.i18nResetAllMessage,actions:[{label:this.i18nResetAll,isWarnable:!0,callback:()=>{$.ajax({url:this.templatesApiUrl+"/restoreDefaults",type:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success(e){window.location.reload()}})}},{label:this.__("common.cancel"),callback:()=>this.$modal.hide("resetAll")}]})},confirmResetTemplate(e){this.openDialog({name:"resetTemplate",title:this.i18nResetTemplate,message:this.i18nResetTemplateMessage.replace("{$template}",this.currentMailable.name),actions:[{label:this.i18nResetTemplate,isWarnable:!0,callback:()=>{this.deleteTemplate(e,(()=>{this.getTemplate(e.key,(t=>{this.currentMailable.emailTemplates=this.currentMailable.emailTemplates.map((n=>n.key===e.key?t:n)),this.$modal.hide("resetTemplate")}))}))}},{label:this.__("common.cancel"),callback:()=>this.$modal.hide("resetTemplate")}]})},deleteTemplate(e,t,n){$.ajax({url:this.templatesApiUrl+"/"+e.key,type:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success:t,complete:n})},getMailable(e,t){$.ajax({url:this.mailablesApiUrl+"/"+encodeURIComponent(e.emailTemplateKey),type:"GET",context:this,error:this.ajaxErrorCallback,success:t})},getTemplate(e,t){$.ajax({url:this.templatesApiUrl+"/"+encodeURIComponent(e),type:"GET",context:this,error:this.ajaxErrorCallback,success:t})},isFilterActive(e,t){return this.activeFilters[e]&&this.activeFilters[e].includes(t)},mailableModalClosed(){this.resetFocus(),setTimeout((()=>{this.currentMailable={},this.currentTemplate={}}),300)},openMailable(e){e.supportsTemplates?this.getMailable(e,(e=>{this.resetFocusTo=document.activeElement,this.currentMailable=e,this.$modal.show("mailable")})):this.getTemplate(e.emailTemplateKey,(t=>{this.currentMailable=e,this.openTemplate(t)}))},openTemplate(e){e=e||{},this.resetFocusTo=document.activeElement,this.currentTemplate=e,this.$nextTick((()=>this.$modal.show("template")))},removeFilter(e,t){if(!this.activeFilters[e])return;let n={...this.activeFilters};n[e]=n[e].filter((e=>e!==t)),this.activeFilters=n},resetFocus(){this.resetFocusTo&&this.resetFocusTo.focus()},setCurrentTemplateForm(e){let t=JSON.parse(JSON.stringify(this.templateForm));if(Object.entries(this.currentMailable).length){if(Object.entries(e).length){t.action=e._href,t.method="PUT";const n=Object.keys(e);t.fields=t.fields.map((t=>(n.includes(t.name)&&(t.value=t.isMultilingual?{...e[t.name]}:e[t.name]),t)))}t.fields=t.fields.map((e=>("body"===e.name&&(e.preparedContent=Object.keys(this.currentMailable.dataDescriptions).map((e=>({key:e,value:"{$"+e+"}",description:this.currentMailable.dataDescriptions[e]})))),e))),(!e||e&&this.currentMailable.emailTemplateKey!==e.key)&&(t.hiddenFields.alternateTo=this.currentMailable.emailTemplateKey),this.currentTemplateForm=t}else this.currentTemplateForm=t},templateSaved(e){const t=this.currentMailable.emailTemplates.findIndex((t=>t.key===e.key))>-1;t?this.currentMailable.emailTemplates=this.currentMailable.emailTemplates.map((t=>t.key===e.key?e:t)):this.currentMailable.emailTemplates.push(e),setTimeout((()=>this.$modal.hide("template")),1e3)},templateModalClosed(){this.currentMailable.supportsTemplates?(this.resetFocus(),setTimeout((()=>{this.currentTemplate={}}),300)):this.mailableModalClosed()},updateCurrentTemplateForm(e,t){this.currentTemplateForm={...this.currentTemplateForm,...t}}},watch:{currentTemplate(e){this.setCurrentTemplateForm(e)}}},ZS=QS,eL=zh(ZS,vS,_S,!1,null,null,null),tL=eL.exports,nL=function(){var e=this,t=e._self._c;return t("div",{staticClass:"announcementsListPanel"},[e._t("default",(function(){return[t("list-panel",{attrs:{items:e.items},scopedSlots:e._u([{key:"item-title",fn:function({item:t}){return[e._v(" "+e._s(e.localize(t.title))+" ")]}},{key:"item-actions",fn:function({item:n}){return[t("pkp-button",{attrs:{element:"a",href:e.urlBase.replace("__id__",n.id)}},[e._v(" "+e._s(e.__("common.view"))+" ")]),t("pkp-button",{on:{click:function(t){return e.openEditModal(n.id)}}},[e._v(" "+e._s(e.__("common.edit"))+" ")]),t("pkp-button",{attrs:{isWarnable:!0},on:{click:function(t){return e.openDeleteModal(n.id)}}},[e._v(" "+e._s(e.__("common.delete"))+" ")])]}}])},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.title))]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[t("search",{attrs:{searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e.setSearchPhrase}}),t("pkp-button",{on:{click:e.openAddModal}},[e._v(" "+e._s(e.addAnnouncementLabel)+" ")])],1)],2),e.lastPage>1?t("pagination",{attrs:{slot:"footer",currentPage:e.currentPage,isLoading:e.isLoading,lastPage:e.lastPage},on:{"set-page":e.setPage},slot:"footer"}):e._e()],1),t("modal",{attrs:{closeLabel:e.__("common.close"),name:"form",title:e.activeFormTitle},on:{closed:e.formModalClosed}},[t("pkp-form",e._b({on:{set:e.updateForm,success:e.formSuccess}},"pkp-form",e.activeForm,!1))],1)]}))],2)},rL=[],iL=n(738),oL=n.n(iL),aL={components:{ListPanel:y_,Pagination:Yy,PkpForm:hk,PkpHeader:Bp,Modal:Bh,Search:t_},mixins:[qh,Jk,uv],props:{addAnnouncementLabel:{type:String,required:!0},confirmDeleteMessage:{type:String,required:!0},deleteAnnouncementLabel:{type:String,required:!0},editAnnouncementLabel:{type:String,required:!0},form:{type:Object,required:!0},id:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsMax:{type:Number,default(){return 0}},title:{type:String,required:!0},urlBase:{type:String,required:!0}},data(){return{activeForm:null,activeFormTitle:"",resetFocusTo:null}},methods:{formModalClosed(e){this.activeForm=null,this.activeFormTitle="",this.resetFocusTo&&this.resetFocusTo.focus()},formSuccess(e){"POST"===this.activeForm.method?(this.offset=0,this.get(),pkp.eventBus.$emit("add:announcement",e)):(this.setItems(this.items.map((t=>t.id===e.id?e:t)),this.itemsMax),pkp.eventBus.$emit("update:announcement",e)),this.$modal.hide("form")},openAddModal(){this.resetFocusTo=document.activeElement;let e=oL()(this.form);e.action=this.apiUrl,e.method="POST",this.activeForm=e,this.activeFormTitle=this.addAnnouncementLabel,this.$modal.show("form")},openDeleteModal(e){const t=this.items.find((t=>t.id===e));"undefined"!==typeof t?this.openDialog({name:"delete",title:this.deleteAnnouncementLabel,message:this.replaceLocaleParams(this.confirmDeleteMessage,{title:this.localize(t.title)}),actions:[{label:this.__("common.yes"),isPrimary:!0,callback:()=>{var t=this;$.ajax({url:this.apiUrl+"/"+e,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:t.ajaxErrorCallback,success:function(n){t.setItems(t.items.filter((t=>t.id!==e)),t.itemsMax),t.$modal.hide("delete"),t.setFocusIn(t.$el)}})}},{label:this.__("common.no"),isWarnable:!0,callback:()=>this.$modal.hide("delete")}]}):this.ajaxErrorCallback({})},openEditModal(e){this.resetFocusTo=document.activeElement;const t=this.items.find((t=>t.id===e));if(!t)return void this.ajaxErrorCallback({});let n=oL()(this.form);n.action=this.apiUrl+"/"+e,n.method="PUT",n.fields=n.fields.map((e=>(Object.keys(t).includes(e.name)&&(e.value=t[e.name]),e))),this.activeForm=n,this.activeFormTitle=this.editAnnouncementLabel,this.$modal.show("form")},setItems(e,t){this.$emit("set",this.id,{items:e,itemsMax:t})},updateForm(e,t){let n={...this.activeForm};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.activeForm=n}}},sL=aL,uL=zh(sL,nL,rL,!1,null,null,null),lL=uL.exports,cL=function(){var e=this,t=e._self._c;return t("div",{staticClass:"institutionsListPanel"},[e._t("default",(function(){return[t("list-panel",{attrs:{items:e.items},scopedSlots:e._u([{key:"item-title",fn:function({item:n}){return[t("span",{attrs:{id:"institution-"+n.id}},[e._v(" "+e._s(e.localize(n.name))+" ")])]}},{key:"item-actions",fn:function({item:n}){return[t("pkp-button",{attrs:{"aria-describedby":"institution-"+n.id},on:{click:function(t){return e.openEditModal(n.id)}}},[e._v(" "+e._s(e.__("common.edit"))+" ")]),t("pkp-button",{attrs:{isWarnable:!0,"aria-describedby":"institution-"+n.id},on:{click:function(t){return e.openDeleteModal(n.id)}}},[e._v(" "+e._s(e.__("common.delete"))+" ")])]}}])},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.title))]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[t("search",{attrs:{searchPhrase:e.searchPhrase},on:{"search-phrase-changed":e.setSearchPhrase}}),t("pkp-button",{on:{click:e.openAddModal}},[e._v(" "+e._s(e.addInstitutionLabel)+" ")])],1)],2),e.lastPage>1?t("pagination",{attrs:{slot:"footer",currentPage:e.currentPage,isLoading:e.isLoading,lastPage:e.lastPage},on:{"set-page":e.setPage},slot:"footer"}):e._e()],1),t("modal",{attrs:{closeLabel:e.__("common.close"),name:"form",title:e.activeFormTitle},on:{closed:e.formModalClosed}},[t("pkp-form",e._b({on:{set:e.updateForm,success:e.formSuccess}},"pkp-form",e.activeForm,!1))],1)]}))],2)},dL=[],fL={components:{ListPanel:y_,Pagination:Yy,PkpForm:hk,PkpHeader:Bp,Search:t_,Modal:Bh},mixins:[qh,Jk,uv],props:{addInstitutionLabel:{type:String,required:!0},confirmDeleteMessage:{type:String,required:!0},deleteInstitutionLabel:{type:String,required:!0},editInstitutionLabel:{type:String,required:!0},form:{type:Object,required:!0},id:{type:String,required:!0},items:{type:Array,default(){return[]}},itemsMax:{type:Number,default(){return 0}},title:{type:String,required:!0}},data(){return{activeForm:null,activeFormTitle:"",resetFocusTo:null}},methods:{formModalClosed(e){this.activeForm=null,this.activeFormTitle="",this.resetFocusTo&&this.resetFocusTo.focus()},formSuccess(e){"POST"===this.activeForm.method?(this.offset=0,this.get(),pkp.eventBus.$emit("add:institution",e)):(this.setItems(this.items.map((t=>t.id===e.id?e:t)),this.itemsMax),pkp.eventBus.$emit("update:institution",e)),this.$modal.hide("form")},openAddModal(){this.resetFocusTo=document.activeElement;let e=oL()(this.form);e.action=this.apiUrl,e.method="POST",this.activeForm=e,this.activeFormTitle=this.addInstitutionLabel,this.$modal.show("form")},openDeleteModal(e){const t=this.items.find((t=>t.id===e));"undefined"!==typeof t?this.openDialog({name:"delete",title:this.deleteInstitutionLabel,message:this.replaceLocaleParams(this.confirmDeleteMessage,{title:this.localize(t.title)}),actions:[{label:this.__("common.yes"),isPrimary:!0,callback:()=>{var t=this;$.ajax({url:this.apiUrl+"/"+e,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:t.ajaxErrorCallback,success:function(n){t.setItems(t.items.filter((t=>t.id!==e)),t.itemsMax),t.$modal.hide("delete"),t.setFocusIn(t.$el)}})}},{label:this.__("common.no"),isWarnable:!0,callback:()=>this.$modal.hide("delete")}]}):this.ajaxErrorCallback({})},openEditModal(e){this.resetFocusTo=document.activeElement;const t=this.items.find((t=>t.id===e));if(!t)return void this.ajaxErrorCallback({});let n=oL()(this.form);n.action=this.apiUrl+"/"+e,n.method="PUT",n.fields=n.fields.map((e=>(Object.keys(t).includes(e.name)&&("ipRanges"===e.name?e.value=t[e.name].join("\r\n"):e.value=t[e.name]),e))),this.activeForm=n,this.activeFormTitle=this.editInstitutionLabel,this.$modal.show("form")},setItems(e,t){this.$emit("set",this.id,{items:e,itemsMax:t})},updateForm(e,t){let n={...this.activeForm};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.activeForm=n}}},hL=fL,pL=zh(hL,cL,dL,!1,null,null,null),mL=pL.exports,gL={name:"DateTimeForm",extends:hk,mixins:[Gh],data(){return{fieldBeforeSetEvent:{name:null,value:null},formatMap:new Map([["%a","ddd"],["%A","dddd"],["%d","DD"],["%e","D"],["%j","DDDD"],["%W","w"],["%V","W"],["%b","MMM"],["%B","MMMM"],["%m","MM"],["%y","YY"],["%Y","YYYY"],["%H","HH"],["%k","H"],["%I","hh"],["%l","h"],["%M","mm"],["%p","A"],["%P","a"]])}},methods:{fieldChanged:function(e,t,n,r){let i=this.fields.map((i=>(i.name===e&&(this.fieldBeforeSetEvent.name=e,this.fieldBeforeSetEvent.value=i[t][r],i[t][r]=n),i)));if(!["dateFormatShort","dateFormatLong","timeFormat"].find((t=>t===e)))return void this.$emit("set",this.id,{fields:i});const o=this.fields.find((e=>"dateFormatShort"===e.name)),a=this.fields.find((e=>"dateFormatLong"===e.name)),s=this.fields.find((e=>"timeFormat"===e.name));let u={date:o.value[r],time:s.value[r]},l={date:a.value[r],time:s.value[r]};"dateFormatShort"===e?u.date=n:"dateFormatLong"===e?l.date=n:"timeFormat"===e&&(u.time=n,l.time=n);const c=o.options[r].find((e=>e.value===o.value[r])),d=a.options[r].find((e=>e.value===a.value[r])),f=s.options[r].find((e=>e.value===s.value[r]));let h=c&&f?{date:c.label,time:f.label}:u,p=d&&f?{date:d.label,time:f.label}:l;i=this.updateFields(i,e,r,{value:u,label:h},{value:l,label:p}),this.$emit("set",this.id,{fields:i})},updateFields:function(e,t,n,r,i){return e.map((e=>{if(("dateFormatShort"===t||"timeFormat"===t)&&"datetimeFormatShort"===e.name){let i="dateFormatShort"===t?this.fieldBeforeSetEvent.value+" "+r.value.time:r.value.date+" "+this.fieldBeforeSetEvent.value;i===e.value[n]&&(e.value[n]=r.value.date+" "+r.value.time),e.options[n][0].label=r.label.date+" "+r.label.time}if(("dateFormatLong"===t||"timeFormat"===t)&&"datetimeFormatLong"===e.name){let r="dateFormatLong"===t?this.fieldBeforeSetEvent.value+" - "+i.value.time:i.value.date+" - "+this.fieldBeforeSetEvent.value;r===e.value[n]&&(e.value[n]=i.value.date+" - "+i.value.time),e.options[n][0].label=i.label.date+" - "+i.label.time}return e}))},convertDateFormat:function(e){let t="";const n=e.split("");for(let r=0;r<n.length;r++){const e=n[r];if("%"===e){const i=n[r+1],o=e+i;if(this.formatMap.has(o))t+=this.formatMap.get(o),r++;else{if(" "!==i)return null;t+=e}}else t+=e}return t===e?null:t}},mounted(){this.$nextTick((function(){let e=Lc()();this.fields.forEach((t=>{this.availableLocales.forEach((n=>{e.locale(this.getMomentLocale(n.key)),t.options[n.key].forEach((t=>{const n=this.convertDateFormat(t.label);n&&(t.label=e.format(n))}))}))}))}))}},vL=gL,_L=zh(vL,bS,yS,!1,null,null,null),bL=_L.exports,yL={name:"DoiSetupSettingsForm",extends:hk,props:{enabledRegistrationAgency:{type:String},objectTypeOptions:{type:Array}},methods:{fieldChanged:function(e,t,n,r){"enableDois"===e&&this.removeError("doiPrefix",r),hk.methods.fieldChanged.apply(this,[e,t,n,r])}}},xL=yL,wL=zh(xL,xS,wS,!1,null,null,null),kL=wL.exports,ML={name:"DoiRegistrationSettingsForm",extends:hk,props:{agencyFields:Object},methods:{fieldChanged:function(e,t,n,r){"registrationAgency"===e?this.changeAgencyFields(n):hk.methods.fieldChanged.apply(this,[e,t,n,r])},changeAgencyFields:function(e){this.$emit("set",this.id,{fields:this.fields.filter((e=>"generalSettings"===e.groupId))}),this.$nextTick((()=>{const t=this.agencyFields[e]||[],n=this.fields.map((t=>("registrationAgency"===t.name&&(t.value=e),t)));this.setErrors({}),this.$emit("set",this.id,{fields:[...n,...t]})}))}}},SL=ML,LL=zh(SL,kS,MS,!1,null,null,null),CL=LL.exports,TL={name:"SettingsPage",extends:xM,components:{AnnouncementsListPanel:lL,InstitutionsListPanel:mL,PkpForm:hk,ThemeForm:jM,DateTimeForm:bL,DoiSetupSettingsForm:kL,DoiRegistrationSettingsForm:CL},data(){return{announcementsNavLink:{},institutionsNavLink:{},paymentsNavLink:null}},mounted(){pkp.eventBus.$on("form-success",((e,t)=>{if(e===pkp.const.FORM_PAYMENT_SETTINGS&&this.paymentsNavLink)if(!t.paymentsEnabled&&this.menu["payments"]){let e={...this.menu};delete e.payments,this.menu=e}else if(t.paymentsEnabled&&!Object.keys(this.menu).includes("payments")){let e={};Object.keys(this.menu).forEach((t=>{"settings"===t&&(e.institutions=this.institutionsNavLink,e.payments=this.paymentsNavLink),e[t]=this.menu[t]})),this.menu=e}if(e===pkp.const.FORM_CONTEXT_STATISTICS)if(t.enableInstitutionUsageStats||this.menu["payments"]||!this.menu["institutions"]){if(t.enableInstitutionUsageStats&&!Object.keys(this.menu).includes("institutions")){let e={};Object.keys(this.menu).forEach((t=>{"settings"!==t&&"payments"!==t||(e.institutions=this.institutionsNavLink),e[t]=this.menu[t]})),this.menu=e}}else{let e={...this.menu};delete e.institutions,this.menu=e}if(e===pkp.const.FORM_ANNOUNCEMENT_SETTINGS)if(!t.enableAnnouncements&&this.menu["announcements"]){let e={...this.menu};delete e.announcements,this.menu=e}else if(t.enableAnnouncements&&!Object.keys(this.menu).includes("announcements")){let e={};Object.keys(this.menu).forEach((t=>{"settings"!==t&&"payments"!==t&&"institutions"!==t||(e.announcements=this.announcementsNavLink),e[t]=this.menu[t]})),this.menu=e}if(e===pkp.const.FORM_DOI_REGISTRATION_SETTINGS){const e=t.registrationAgency,n=this.components.doiSetupSettings.enabledRegistrationAgency;e!==n&&(this.components.doiSetupSettings.enabledRegistrationAgency=e,this.components.doiSetupSettings.fields=this.components.doiSetupSettings.fields.map((t=>{if("enabledDoiTypes"===t.name){t.options=this.components.doiSetupSettings.objectTypeOptions.filter((t=>null===e||t.allowedBy.includes(e)));let n=t.value;t.value=n.filter((e=>t.options.some((t=>t.value===e))))}return t})))}}))},destroyed(){pkp.eventBus.$off("form-success")}},DL=TL,OL=zh(DL,SS,LS,!1,null,null,null),EL=OL.exports,AL={name:"StartSubmissionForm",extends:hk,computed:{submitValues(){let e=hk.computed.submitValues.apply(this);return delete e.title,e}},methods:{success(e){this.isSaving=!0;const t=this.fields.find((e=>"title"===e.name));if(!t||!t.value)return void(window.location=e.urlSubmissionWizard);let n={title:{}};n.title[e.locale]=t.value,$.ajax({url:e.publications[0]._href,method:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:n,complete(){window.location=e.urlSubmissionWizard}})},complete(e,t){this.isSaving="success"===t}}},PL=AL,FL=zh(PL,CS,TS,!1,null,null,null),IL=FL.exports,YL={extends:xM,components:{StartSubmissionForm:IL},data(){return{form:{}}},methods:{updateForm(e,t){let n={...this.form};Object.keys(t).forEach((e=>n[e]=t[e])),this.form=n}}},RL=YL,NL=zh(RL,DS,OS,!1,null,null,null),HL=NL.exports,zL={name:"StatsPage",extends:xM,mixins:[uv],components:{DateRange:Fb,PkpFilter:zb,Pagination:Yy,PkpHeader:Bp,PkpTable:Gy,TableCell:$y},data(){return{apiUrl:"",tableColumns:[],dateStart:"",dateEnd:"",dateEndMax:"",dateRangeOptions:[],filters:[],activeFilters:{},isSidebarVisible:!1,isLoadingItems:!1,itemsOfTotalLabel:"",latestItemsGetRequest:""}},computed:{sidebarClasses(){let e=[];return this.isSidebarVisible&&e.push("-isVisible"),e},tableClasses(){let e=[];return this.isLoadingItems&&e.push("-isLoading"),e}},methods:{isFilterActive:function(e,t){return!!Object.keys(this.activeFilters).includes(e)&&(Array.isArray(this.activeFilters[e])?this.activeFilters[e].includes(t):this.activeFilters[e]===t)},setDateRange(e,t){this.dateStart=e,this.dateEnd=t},toggleSidebar(){this.isSidebarVisible=!this.isSidebarVisible,this.isSidebarVisible||(this.activeFilters={},this.get())},addFilter:function(e,t){if(this.isFilterActive(e,t))return;let n={...this.activeFilters};void 0===n[e]&&(n[e]=[]),n[e].push(t),this.activeFilters=n,this.get()},removeFilter:function(e,t){if(void 0===this.activeFilters[e])return;let n={...this.activeFilters};n[e]=n[e].filter((e=>e!==t)),this.activeFilters=n,this.get()},getDaysBetween(e,t){const n=864e5;return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),(t-e)/n},setSidebarFocus(){if(!this.$refs.sidebar)return;const e=this.isSidebarVisible?0:-1;this.$refs.sidebar.querySelectorAll("button, [href], input, select, textarea").forEach((t=>t.tabIndex=e))}},watch:{activeFilters(e,t){e!==t&&(this.offset=0,this.get())},dateEnd(e,t){e!==t&&(this.offset=0,this.get())},dateStart(e,t){e!==t&&(this.offset=0,this.get())},isSidebarVisible(e,t){e!==t&&(this.setSidebarFocus(),e&&this.$nextTick((()=>{e&&Object.keys(this.$refs).includes("sidebar")&&this.setFocusIn(this.$refs.sidebar)})))}},mounted(){this.setSidebarFocus()}},jL=zL,BL=zh(jL,ES,AS,!1,null,null,null),VL=BL.exports,$L={name:"StatsEditorialPage",extends:VL,components:{DoughnutChart:Xm,Tooltip:Dg},data(){return{activeByStage:[],averages:{},averagesApiUrl:"",isLoading:!1,percentageStats:[],tableRows:[]}},computed:{chartData(){return this.activeByStage.length?{labels:this.activeByStage.map((e=>e.name)),datasets:[{data:this.activeByStage.map((e=>e.count)),backgroundColor:this.activeByStage.map((e=>e.color))}]}:null},getParams(){let e={...this.activeFilters};return this.dateStart&&(e.dateStart=this.dateStart),this.dateEnd&&(e.dateEnd=this.dateEnd),e},totalActive(){return this.activeByStage.reduce(((e,t)=>e+t.count),0)}},methods:{get:rm()((async function(){let e=this,t=$.pkp.classes.Helper.uuid(),n=$.pkp.classes.Helper.uuid(),r=$.pkp.classes.Helper.uuid();this.isLoading=!0;let i=[],o=[],a={};const s=function(e){this.response=e},u=new Promise(((n,r)=>$.ajax({url:this.apiUrl,type:"GET",data:this.getParams,_uuid:t,error(n){t===this._uuid&&(e.ajaxErrorCallback(n),r(new s(n)))},success(e){t===this._uuid&&(i=e,n(e))}})));let l={...this.getParams};delete l["dateStart"],delete l["dateEnd"];const c=new Promise(((t,r)=>$.ajax({url:this.apiUrl,type:"GET",data:l,_uuid:n,error(t){n===this._uuid&&(e.ajaxErrorCallback(t),r(new s(t)))},success(e){n===this._uuid&&(o=e,t(e))}}))),d=new Promise(((t,n)=>$.ajax({url:this.averagesApiUrl,type:"GET",data:this.getParams,_uuid:r,error(t){r===this._uuid&&(e.ajaxErrorCallback(t),n(new s(t)))},success(e){r===this._uuid&&(a=e,t(e))}})));try{await Promise.all([u,c,d]);let e=this.tableRows.map((e=>{const t=i.find((t=>t.key===e.key)),n=o.find((t=>t.key===e.key));return this.percentageStats.includes(e.key)?(e.dateRange=Number(100*t.value).toFixed(0)+"%",e.total=Number(100*n.value).toFixed(0)+"%"):(e.dateRange=t.value,e.total=n.value),a.hasOwnProperty(e.key)&&a[e.key]>-1&&n.value>0&&(e.total=this.__("stats.countWithYearlyAverage",{count:e.total,average:a[e.key]})),e}));this.tableRows=[],this.tableRows=e,this.isLoading=!1}catch(f){if(!(f instanceof s))throw f}finally{this.isLoading=!1}}),0),setCurrentDateRange(e){this.tableColumns[1].label=e}}},UL=$L,WL=zh(UL,PS,FS,!1,null,null,null),qL=WL.exports,GL={name:"StatsPublicationsPage",extends:VL,components:{ActionPanel:Lm,LineChart:tg,Search:t_,List:_y,ListItem:My,Modal:Bh,Tooltip:Dg},data(){return{count:30,items:[],itemsMax:0,offset:0,searchPhrase:"",timeline:[],timelineInterval:"",timelineType:"",orderBy:"",orderDirection:!1,isLoadingTimeline:!1,latestTimelineGetRequest:"",isDownloadingReport:!1}},computed:{chartData(){return this.timeline.length?{labels:this.timeline.map((e=>e.label)),datasets:[{data:this.timeline.map((e=>e.value))}]}:null},currentPage(){return Math.floor(this.offset/this.count)+1},lastPage(){return Math.ceil(this.itemsMax/this.count)},isDailyIntervalEnabled(){return!(!this.dateStart||!this.dateEnd)&&this.getDaysBetween(this.getBrowserSafeDate(this.dateStart),this.getBrowserSafeDate(this.dateEnd))<91},isMonthlyIntervalEnabled(){return!(this.dateStart&&this.dateEnd&&this.isDailyIntervalEnabled)||this.getDaysBetween(this.getBrowserSafeDate(this.dateStart),this.getBrowserSafeDate(this.dateEndMax))>31}},methods:{getParams(e){let t={...this.activeFilters};return"timeline"!=e&&(t.count=this.count,t.offset=this.offset),this.dateStart&&(t.dateStart=this.dateStart),this.dateEnd&&(t.dateEnd=this.dateEnd),this.searchPhrase&&(t.searchPhrase=this.searchPhrase),"timeline"==e&&(this.timelineInterval&&(t.timelineInterval=this.timelineInterval),"files"==this.timelineType&&(t.type=this.timelineType)),"timeline"!=e&&this.orderBy&&(t.orderBy=this.orderBy,t.orderDirection=this.orderDirection?"DESC":"ASC"),t},getFilterDescription(e){let t=[];Object.values(e.filters).forEach((e=>{e.param in this.activeFilters&&this.activeFilters[e.param].includes(e.value)&&t.push(e.title.trim())}));let n=this.replaceLocaleParams(this.allFiltersLabel,{filter:e.heading});return 0!=t.length&&(n=t.join(this.__("common.commaListSeparator"))),n},getTimelineTypeLabel(){let e=this.viewsLabel;return"files"==this.timelineType&&(e=this.downloadsLabel),e},getTimelineIntervalLabel(){let e=this.monthLabel;return"day"==this.timelineInterval&&(e=this.dayLabel),e},getTimelineDescription(){return this.replaceLocaleParams(this.timelineDescriptionLabel,{type:this.getTimelineTypeLabel().toLowerCase(),interval:this.getTimelineIntervalLabel().toLowerCase()})},getDateRangeDescription(){return this.dateStart||this.dateEnd?this.replaceLocaleParams(this.betweenDatesLabel,{startDate:this.dateStart,endDate:this.dateEnd}):this.allDatesLabel},getReportParams(e){let t={...this.activeFilters};return this.dateStart&&(t.dateStart=this.dateStart),this.dateEnd&&(t.dateEnd=this.dateEnd),this.searchPhrase&&(t.searchPhrase=this.searchPhrase),"timeline"==e&&this.timelineInterval&&(t.timelineInterval=this.timelineInterval),"timeline"!=e&&this.orderBy&&(t.orderBy=this.orderBy,t.orderDirection=this.orderDirection?"DESC":"ASC"),t},getReportFileNamePart(e){return e?"timeline"==e?"submissions_timeline":e:"submissions"},downloadReport(e){this.isDownloadingReport=!0;let t=["stats",this.getReportFileNamePart(e),(new Date).toISOString().slice(0,-5).replace(":","-")].join("_")+".csv",n='"'+this.dateRangeLabel+'","'+this.getDateRangeDescription()+'"\n',r=[];Object.values(this.filters).forEach((e=>{r.push('"'+e.heading+'","'+this.getFilterDescription(e)+'"')}));let i=this.searchPhrase?'"'+this.searchPhraseLabel+'","'+this.searchPhrase+'"\n':"",o='"'+this.timelineTypeLabel+'","'+this.getTimelineTypeLabel()+'"\n',a='"'+this.timelineIntervalLabel+'","'+this.getTimelineIntervalLabel()+'"\n';$.ajax({url:this.apiUrl+(e?"/"+e:"")+("timeline"==e&&"files"==this.timelineType?"?type=files":""),type:"GET",context:this,headers:{Accept:"text/csv; charset=utf-8","Content-Type":"text/csv;·charset_utf-8"},data:this.getReportParams(e),error:this.ajaxErrorCallback,success(s){s=n+(r.length>0?r.join("\n")+"\n":"")+i+("timeline"==e?o+a:"")+s;var u=new Blob([s]),l=document.createElement("a");l.href=window.URL.createObjectURL(u),l.download=t,l.click()},complete(e){this.isDownloadingReport=!1,this.$modal.hide("export")}})},get:rm()((function(){this.getItems(),this.getTimeline()}),0),setItems(e){let t=this;t.items=e.items.map((e=>(e.total=e.abstractViews+e.galleyViews,e))),t.itemsMax=e.itemsMax},getItems(){let e=this;this.isLoadingItems=!0,this.latestItemsGetRequest=$.pkp.classes.Helper.uuid(),$.ajax({url:this.apiUrl,type:"GET",data:this.getParams(),_uuid:this.latestItemsGetRequest,error(t){e.latestItemsGetRequest===this._uuid&&e.ajaxErrorCallback(t)},success(t){e.latestItemsGetRequest===this._uuid&&e.setItems(t)},complete(t){e.latestItemsGetRequest===this._uuid&&(e.isLoadingItems=!1)}})},getTimeline(){let e=this;this.isLoadingTimeline=!0,this.latestTimelineGetRequest=$.pkp.classes.Helper.uuid(),$.ajax({url:this.apiUrl+"/timeline",type:"GET",data:this.getParams("timeline"),_uuid:this.latestTimelineGetRequest,error(t){e.latestTimelineGetRequest===this._uuid&&e.ajaxErrorCallback(t)},success(t){e.latestTimelineGetRequest===this._uuid&&(e.timeline=t)},complete(t){e.latestTimelineGetRequest===this._uuid&&(e.isLoadingTimeline=!1)}})},setOrderBy(e,t){this.orderBy=e,this.orderDirection=t},setPage(e){this.offset=(e-1)*this.count},setSearchPhrase(e){this.searchPhrase=e},setTimelineType(e){this.timelineType=e},setTimelineInterval(e){this.timelineInterval=e}},mounted(){this.getItems()},watch:{count(e,t){e!==t&&this.getItems()},isDailyIntervalEnabled(e,t){e!==t&&(e||(this.timelineInterval="month"))},isMonthlyIntervalEnabled(e,t){e!==t&&(e||(this.timelineInterval="day"))},orderBy(e,t){e!==t&&(this.offset=0,this.getItems())},orderDirection(e,t){e!==t&&(this.offset=0,this.getItems())},offset(e,t){e!==t&&this.getItems()},searchPhrase(e,t){e!==t&&(this.offset=0,rm()(this.get(),250))},timelineInterval(e,t){e!==t&&this.getTimeline()},timelineType(e,t){e!==t&&this.getTimeline()}}},KL=GL,JL=zh(KL,IS,YS,!1,null,null,null),XL=JL.exports,QL={name:"StatsContextPage",extends:XL,methods:{getParams(e){let t={};return this.dateStart&&(t.dateStart=this.dateStart),this.dateEnd&&(t.dateEnd=this.dateEnd),"timeline"==e&&this.timelineInterval&&(t.timelineInterval=this.timelineInterval),t},setItems(e){let t=this;e.context.total=e.total,t.items=[e.context],t.itemsMax=1},getReportFileNamePart(e){return"timeline"==e?"context_timeline":"context"}}},ZL=QL,eC=zh(ZL,RS,NS,!1,null,null,null),tC=eC.exports,nC={name:"StatsIssuesPage",extends:XL,methods:{setItems(e){let t=this;t.items=e.items,t.itemsMax=e.itemsMax},getReportFileNamePart(e){return"timeline"==e?"issues_timeline":"issues"}}},rC=nC,iC=zh(rC,HS,zS,!1,null,null,null),oC=iC.exports,aC={name:"StatsUsersPage",extends:VL,components:{Modal:Bh},methods:{loadExport(e){window.location=e,this.$modal.hide("export")}}},sC=aC,uC=zh(sC,jS,BS,!1,null,null,null),lC=uC.exports,cC=function(){var e=this,t=e._self._c;return t("div",{staticClass:"contributorsListPanel"},[e._t("default",(function(){return[t("list-panel",{staticClass:"listPanel--contributor",class:e.isOrdering?"-isOrdering":"",attrs:{items:e.items},scopedSlots:e._u([{key:"item-title",fn:function({item:n}){return[e._v(" "+e._s(n.fullName)+" "),n.userGroupName?t("badge",[e._v(" "+e._s(e.localize(n.userGroupName))+" ")]):e._e()]}},{key:"item-subtitle",fn:function({item:t}){return[e._v(" "+e._s(e.localize(t.affiliation))+" ")]}},e.publication.status!==e.getConstant("STATUS_PUBLISHED")&&e.canEditPublication?{key:"item-actions",fn:function({item:n}){return[e.isOrdering?[t("orderer",{attrs:{itemId:n.id,itemTitle:n.fullName},on:{up:function(t){return e.contributorItemOrderUp(n)},down:function(t){return e.contributorItemOrderDown(n)}}})]:[e.publication.primaryContactId==n.id?t("badge",{attrs:{isPrimary:!0}},[e._v(" "+e._s(e.i18nPrimaryContact)+" ")]):t("pkp-button",{attrs:{disabled:e.isLoading},on:{click:function(t){return e.setPrimaryContact(n.id)}}},[e._v(" "+e._s(e.i18nSetPrimaryContact)+" ")]),t("pkp-button",{attrs:{disabled:e.isLoading},on:{click:function(t){return e.openEditModal(n.id)}}},[e._v(" "+e._s(e.__("common.edit"))+" ")]),t("pkp-button",{attrs:{disabled:e.isLoading,isWarnable:!0},on:{click:function(t){return e.openDeleteModal(n.id)}}},[e._v(" "+e._s(e.__("common.delete"))+" ")])]]}}:null],null,!0)},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.title))]),e.isLoading?t("spinner"):e._e(),t("template",{slot:"actions"},[e.publication.status!==e.getConstant("STATUS_PUBLISHED")&&e.canEditPublication?t("pkp-button",{attrs:{icon:"sort",isActive:e.isOrdering,disabled:e.isLoading},on:{click:e.toggleOrdering}},[e._v(" "+e._s(e.orderingLabel)+" ")]):e._e(),e.isOrdering?t("pkp-button",{attrs:{isWarnable:!0,disabled:e.isLoading},on:{click:e.cancelOrdering}},[e._v(" "+e._s(e.__("common.cancel"))+" ")]):e._e(),e.isOrdering?e._e():t("pkp-button",{attrs:{disabled:e.isLoading},on:{click:e.openPreviewModal}},[e._v(" "+e._s(e.i18nPreview)+" ")]),!e.isOrdering&&e.publication.status!==e.getConstant("STATUS_PUBLISHED")&&e.canEditPublication?t("pkp-button",{attrs:{disabled:e.isLoading},on:{click:e.openAddModal}},[e._v(" "+e._s(e.i18nAddContributor)+" ")]):e._e()],1)],2)],1),t("modal",{attrs:{closeLabel:e.__("common.close"),name:e.formModal,title:e.activeFormTitle},on:{closed:e.formModalClosed}},[t("pkp-form",e._b({on:{set:e.updateForm,success:e.formSuccess}},"pkp-form",e.activeForm,!1))],1),t("modal",{attrs:{closeLabel:e.__("common.close"),name:e.previewModal,title:e.i18nContributors}},[t("p",[e._v(" "+e._s(e.i18nPreviewDescription)+" ")]),t("table",{staticClass:"pkpTable"},[t("thead",[t("tr",[t("th",[e._v(e._s(e.i18nFormat))]),t("th",[e._v(e._s(e.i18nDisplay))])])]),t("tbody",[t("tr",[t("td",[e._v(e._s(e.i18nAbbreviated))]),t("td",[e._v(e._s(e.publication.authorsStringShort))])]),t("tr",[t("td",[e._v(" "+e._s(e.i18nPublicationLists)+" ")]),t("td",[e._v(e._s(e.publication.authorsStringIncludeInBrowse))])]),t("tr",[t("td",[e._v(e._s(e.i18nFull))]),t("td",[e._v(e._s(e.publication.authorsString))])])])])])]}))],2)},dC=[],fC={components:{ListPanel:y_,Modal:Bh,Orderer:Oy,PkpForm:hk,PkpHeader:Bp},mixins:[uv,qh],props:{canEditPublication:{type:Boolean,required:!0},form:{type:Object,required:!0},id:{type:String,required:!0},items:{type:Array,default(){return[]}},title:{type:String,required:!0},publicationApiUrlFormat:{type:String,required:!0},publication:{type:Object,required:!0},i18nAbbreviated:{type:String,required:!0},i18nAddContributor:{type:String,required:!0},i18nConfirmDelete:{type:String,required:!0},i18nContributors:{type:String,required:!0},i18nDisplay:{type:String,required:!0},i18nDeleteContributor:{type:String,required:!0},i18nEditContributor:{type:String,required:!0},i18nFormat:{type:String,required:!0},i18nFull:{type:String,required:!0},i18nPreview:{type:String,required:!0},i18nPreviewDescription:{type:String,required:!0},i18nPrimaryContact:{type:String,required:!0},i18nPublicationLists:{type:String,required:!0},i18nSaveOrder:{type:String,required:!0},i18nSetPrimaryContact:{type:String,required:!0}},data(){return{activeForm:null,activeFormTitle:"",resetFocusTo:null,isOrdering:!1,isLoading:!1,itemsBeforeReordering:null}},computed:{contributorsApiUrl(){return this.publicationApiUrlFormat.replace("__publicationId__",this.publication.id+"/contributors")},formModal(){return this.id+"form"},previewModal(){return this.id+"preview"},publicationApiUrl(){return this.publicationApiUrlFormat.replace("__publicationId__",this.publication.id)},orderingLabel(){return this.isOrdering?this.i18nSaveOrder:this.__("common.order")}},methods:{getConstant(e){return pkp.const[e]},formModalClosed(e){this.activeForm=null,this.activeFormTitle="",this.resetFocusTo&&this.resetFocusTo.focus()},formSuccess(e){if("POST"===this.activeForm.method){this.offset=0;const t=[...this.publication.authors];t.push(e),this.$emit("updated:contributors",t)}else{const t=this.publication.authors.map((t=>t.id===e.id?e:t));this.$emit("updated:contributors",t)}this.$modal.hide(this.formModal)},openPreviewModal(){this.isLoading=!0,$.ajax({url:this.publicationApiUrl,type:"GET",context:this,error:this.ajaxErrorCallback,success(e){this.$emit("updated:publication",e),this.$modal.show(this.previewModal)},complete(e){this.isLoading=!1}})},openAddModal(){this.resetFocusTo=document.activeElement;let e=oL()(this.form);e.action=this.contributorsApiUrl,e.method="POST",this.activeForm=e,this.activeFormTitle=this.i18nAddContributor,this.$modal.show(this.formModal)},openDeleteModal(e){const t=this.items.find((t=>t.id===e));this.openDialog({name:"delete",title:this.i18nDeleteContributor,message:this.replaceLocaleParams(this.i18nConfirmDelete,{name:t.fullName}),actions:[{label:this.i18nDeleteContributor,isWarnable:!0,callback:()=>{this.isLoading=!0,$.ajax({url:this.contributorsApiUrl.replace("/contributors","/contributors/"+e),type:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success(t){this.$modal.hide("delete"),this.setFocusIn(this.$el);const n=this.publication.authors.filter((t=>t.id!==e));this.$emit("updated:contributors",n)},complete(e){this.isLoading=!1}})}},{label:this.__("common.cancel"),callback:()=>this.$modal.hide("delete")}]})},openEditModal(e){this.isLoading=!0,this.resetFocusTo=document.activeElement;const t=this.contributorsApiUrl.replace("/contributors","/contributors/"+e);$.ajax({url:t,type:"GET",error:this.ajaxErrorCallback,context:this,success(e){let n=oL()(this.form);n.action=t,n.method="PUT",n.fields=n.fields.map((t=>(Object.keys(e).includes(t.name)&&(t.value=e[t.name]),t))),this.activeForm=n,this.activeFormTitle=this.i18nEditContributor,this.$modal.show(this.formModal)},complete(e){this.isLoading=!1}})},updateForm(e,t){let n={...this.activeForm};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.activeForm=n},toggleOrdering(){this.isOrdering?this.setItemOrderSequence():(this.itemsBeforeReordering=this.items,this.isOrdering=!this.isOrdering)},cancelOrdering(){this.$emit("updated:contributors",this.itemsBeforeReordering),this.itemsBeforeReordering=null,this.isOrdering=!1},setItemOrderSequence(){let e=0;for(const t of this.items)t.seq=e,e++;this.isLoading=!0,$.ajax({url:this.contributorsApiUrl.replace("/contributors","/contributors/saveOrder"),context:this,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:{sortedAuthors:this.items},success(e){this.$emit("updated:contributors",e),$.ajax({url:this.publicationApiUrl,context:this,type:"GET",success(e){this.$emit("updated:publication",e)},complete(){this.isLoading=!1,this.isOrdering=!1}})},error:this.ajaxErrorCallback,complete(){this.isLoading=!1,this.isOrdering=!1}})},setPrimaryContact(e){let t=this;t.isLoading=!0,$.ajax({url:this.publicationApiUrl,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:{primaryContactId:e},success(e){t.$emit("updated:publication",e),t.setFocusIn(t.$el)},error:this.ajaxErrorCallback,complete(){t.isLoading=!1}})},contributorItemOrderDown(e){var t=this.items.findIndex((t=>e.id==t.id));if(t===this.items.length-1)return;let n=[...this.items];n.splice(t+1,0,n.splice(t,1)[0]),this.$emit("updated:contributors",n)},contributorItemOrderUp(e){var t=this.items.findIndex((t=>e.id==t.id));if(0===t)return;let n=[...this.items];n.splice(t-1,0,n.splice(t,1)[0]),this.$emit("updated:contributors",n)}}},hC=fC,pC=zh(hC,cC,dC,!1,null,null,null),mC=pC.exports,gC=function(){var e=this,t=e._self._c;return t("div",{staticClass:"submissionFilesListPanel"},[t("list-panel",{staticClass:"listPanel--submissionFiles",attrs:{items:e.items},scopedSlots:e._u([{key:"item",fn:function({item:n}){return[e._t("item",(function(){return[t("submission-files-list-item",{attrs:{apiUrl:e.apiUrl,cancelUploadLabel:e.cancelUploadLabel,genrePromptLabel:e.genrePromptLabel,fileStage:e.fileStage,genres:e.genres,item:n,otherLabel:e.otherLabel,stageId:e.stageId},on:{cancel:e.cancelUpload,edit:e.edit,remove:e.remove,update:e.updateItem}})]}),{item:n})]}}],null,!0)},[t("pkp-header",{attrs:{slot:"header"},slot:"header"},[t("h2",[e._v(e._s(e.title))]),t("template",{slot:"actions"},[t("pkp-button",{ref:"addFileButton",on:{click:e.openFileBrowser}},[e._v(" "+e._s(e.addFileLabel)+" ")])],1)],2),t("template",{slot:"itemsEmpty"},[e._v(" "+e._s(e.emptyLabel)+" "),t("button",{staticClass:"-linkButton",on:{click:e.openFileBrowser}},[e._v(" "+e._s(e.emptyAddLabel)+" ")])])],2),t("file-uploader",{ref:"uploader",attrs:{apiUrl:e.apiUrl,filenameLocale:e.primaryLocale,files:e.items,id:e.id+"-uploader",options:e.options,queryParams:{fileStage:e.fileStage},uploadProgressLabel:e.uploadProgressLabel},on:{"updated:files":e.setFiles}}),t("modal",{attrs:{closeLabel:e.__("common.close"),name:e.formModal,title:e.editingLabel}},[t("pkp-form",e._b({on:{set:e.setForm,success:e.formSuccess}},"pkp-form",e.activeForm,!1))],1)],1)},vC=[],_C=function(){var e=this,t=e._self._c;return t("div",{staticClass:"listPanel__item--submissionFile"},[e.item.fileId?[t("div",{staticClass:"listPanel__itemSummary"},[t("div",{staticClass:"listPanel__itemIdentity"},[t("div",{staticClass:"listPanel__itemSubtitle"},[t("a",{staticClass:"listPanel__item--submissionFile__link",attrs:{href:e.item.url,id:e.nameId}},[t("submission-files-file",{attrs:{documentType:e.item.documentType,name:e.localize(e.item.name)}})],1)])]),t("div",{staticClass:"listPanel__itemActions"},[e.item.genreId?t("badge",{staticClass:"listPanel--submissionFiles__itemGenre",attrs:{"is-primary":e.isPrimaryGenre}},[e._v(" "+e._s(e.localize(e.item.genreName))+" ")]):e._e(),t("pkp-button",{attrs:{id:e.editId,"aria-describedby":e.nameId},on:{click:function(t){return e.$emit("edit",e.item)}}},[e._v(" "+e._s(e.__("common.edit"))+" ")]),t("pkp-button",{attrs:{"is-warnable":!0,"aria-describedby":e.nameId},on:{click:function(t){return e.$emit("remove",e.item)}}},[e._v(" "+e._s(e.__("common.remove"))+" ")])],1)]),e.item.genreId?e._e():t("div",{staticClass:"listPanel--submissionFiles__setGenre"},[t("span",{attrs:{role:"alert"}},[t("icon",{attrs:{icon:"exclamation-triangle",inline:!0}}),t("span",{staticClass:"listPanel--submissionFiles__setGenreLabel",attrs:{id:e.genrePromptId}},[e._v(" "+e._s(e.genrePromptLabel)+" ")]),e._l(e.primaryGenres,(function(n){return t("button",{key:n.id,staticClass:"-linkButton listPanel--submissionFiles__setGenreButton",attrs:{"aria-describedby":e.genrePromptId+" "+e.nameId},on:{click:function(t){return e.setGenre(n.id)}}},[e._v(" "+e._s(n.name)+" ")])})),t("button",{staticClass:"-linkButton listPanel--submissionFiles__setGenreButton",attrs:{"aria-describedby":e.genrePromptId+" "+e.nameId},on:{click:function(t){return e.$emit("edit",e.item)}}},[e._v(" "+e._s(e.otherLabel)+" ")])],2),e.isSavingGenreId?[t("spinner",{staticClass:"listPanel--submissionFiles__genreSpinner"}),t("span",{staticClass:"-screenReader",attrs:{role:"status","aria-live":"polite","aria-atomic":"true"}},[e._v(" "+e._s(e.status)+" ")])]:e._e()],2)]:[t("file-upload-progress",{attrs:{cancelUploadLabel:e.cancelUploadLabel,errors:e.item.errors||[],name:e.item.name,progress:e.item.progress},on:{cancel:function(t){return e.$emit("cancel",e.item.id)}}})]],2)},bC=[],yC={components:{Badge:ep,FileUploadProgress:gb,SubmissionFilesFile:T_},props:{apiUrl:{type:String,required:!0},cancelUploadLabel:{type:String,required:!0},genrePromptLabel:{type:String,required:!0},genres:{type:Array,required:!0},item:{type:Object,required:!0},otherLabel:{type:String,required:!0},stageId:{type:Number,required:!0}},data(){return{isSavingGenreId:!1,status:""}},computed:{editId(){return this.compileId("edit")},isPrimaryGenre(){return!this.item.genreIsDependent&&!this.item.genreIsSupplementary},genrePromptId(){return this.compileId("setGenre")},nameId(){return this.compileId("name")},primaryGenres(){return this.genres.filter((e=>!!e.isPrimary))}},methods:{compileId(e){const t=this.item.id||this.item.uuid;return[e,t].join("-")},setGenre(e){this.isSavingGenreId=!0,this.status=this.__("common.saving");var t=this;$.ajax({url:this.apiUrl+"/"+this.item.id+"?stageId="+this.stageId,type:"POST",data:{genreId:e},headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},error:this.ajaxErrorCallback,success(e){t.status=t.__("form.saved"),setTimeout((()=>{t.$emit("update",e),t.$el.querySelector("#"+t.editId).focus()}),500)},complete(e){setTimeout((()=>t.isSavingGenreId=!1),500)}})}}},xC=yC,wC=zh(xC,_C,bC,!1,null,null,null),kC=wC.exports,MC={components:{FileUploader:ib,ListPanel:y_,Modal:Bh,PkpForm:hk,PkpHeader:Bp,SubmissionFilesListItem:kC},mixins:[qh],props:{addFileLabel:{type:String,required:!0},apiUrl:{type:String,required:!0},cancelUploadLabel:{type:String,required:!0},emptyLabel:{type:String,required:!0},emptyAddLabel:{type:String,required:!0},fileStage:{type:Number,required:!0},form:{type:Object},genrePromptLabel:{type:String,required:!0},genres:{type:Array,required:!0},id:{type:String,required:!0},items:{type:Array,default(){return[]}},options:{type:Object,default(){return{}}},otherLabel:{type:String,required:!0},primaryLocale:{type:String,required:!0},removeConfirmLabel:{type:String,required:!0},stageId:{type:Number,required:!0},title:{type:String,required:!0},uploadProgressLabel:{type:String,required:!0}},data(){return{activeForm:{},dragEventCounter:0,editingLabel:"",isDragging:!1,status:""}},computed:{formModal(){return this.id+"form"}},methods:{cancelUpload(e){this.$refs.uploader.cancelUpload(e)},edit(e){let t={...oL()(this.form)};t.action=t.action+"/"+e.id+"?stageId="+this.stageId,t.fields=t.fields.map((t=>(null!=e[t.name]&&(t.value=e[t.name]),t))),this.activeForm=t,this.editingLabel=this.__("common.editItem",{name:this.localize(e.name)}),this.$modal.show(this.formModal)},formSuccess(e){this.updateItem(e),this.$modal.hide(this.formModal),this.activeForm={},this.$el.querySelector("#edit-"+e.id).focus()},openFileBrowser(){this.$refs.uploader.openFileBrowser()},remove(e){this.openDialog({name:"remove",title:this.__("common.remove"),message:this.removeConfirmLabel,actions:[{label:this.__("common.yes"),isPrimary:!0,callback:()=>{$.ajax({url:this.apiUrl+"/"+e.id+"?stageId="+this.stageId,type:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success(e){const t=this.items.filter((t=>t.id!==e.id));this.$emit("set",this.id,{items:t}),this.$modal.hide("remove"),this.$refs.addFileButton.$el.focus()}})}},{label:this.__("common.no"),isWarnable:!0,callback:()=>this.$modal.hide("remove")}]})},setFiles(e){this.$emit("set",this.id,{items:e})},setForm(e,t){let n={...this.activeForm};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.activeForm=n},updateItem(e){const t=this.items.map((t=>t.id===e.id?e:t));this.$emit("set",this.id,{items:t})}}},SC=MC,LC=zh(SC,gC,vC,!1,null,null,null),CC=LC.exports,TC=new Uint8Array(16);function DC(){if(!VS&&(VS="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!VS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return VS(TC)}var OC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function EC(e){return"string"===typeof e&&OC.test(e)}for(var AC=EC,PC=[],FC=0;FC<256;++FC)PC.push((FC+256).toString(16).substr(1));function IC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(PC[e[t+0]]+PC[e[t+1]]+PC[e[t+2]]+PC[e[t+3]]+"-"+PC[e[t+4]]+PC[e[t+5]]+"-"+PC[e[t+6]]+PC[e[t+7]]+"-"+PC[e[t+8]]+PC[e[t+9]]+"-"+PC[e[t+10]]+PC[e[t+11]]+PC[e[t+12]]+PC[e[t+13]]+PC[e[t+14]]+PC[e[t+15]]).toLowerCase();if(!AC(n))throw TypeError("Stringified UUID is invalid");return n}var YC=IC;function RC(e,t,n){e=e||{};var r=e.random||(e.rng||DC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return YC(r)}var NC=RC,HC={data(){return{clientId:null,isLocalStorageEnabled:!1}},methods:{setLocalStorage(e,t){localStorage.setItem(e,JSON.stringify(t))},getLocalStorage(e){const t=localStorage.getItem(e);if(null!==t)return JSON.parse(t)},removeLocaleStorage(e){localStorage.removeItem(e)},_setClientId(){const e=localStorage.getItem("clientId");this.clientId=e??NC(),e||localStorage.setItem("clientId",this.clientId)},_test(){try{const e=window["localStorage"],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(LT){return!1}}},created(){this.isLocalStorageEnabled=this._test(),this.isLocalStorageEnabled&&this._setClientId()}};let zC=null,jC=4e3,BC=!1;var VC,$C,UC,WC,qC,GC,KC,JC,XC,QC,ZC,eT,tT={mixins:[qh,Gh,HC],data(){return{isAutosaving:!1,isDisconnected:!1,lastSavedTimestamp:Date.now(),pendingAutosaves:[]}},methods:{addAutosave(e,t,n){this.pendingAutosaves.push({id:e,url:t,timestamp:Date.now(),data:n})},startAutosaveTimer(){zC=setInterval(this._runAutosaveJobs,500)},stopAutosaveTimer(){clearTimeout(zC)},_getNextAutosave(){if(this.isLocalStorageEnabled){let e=this.getLocalStorage(this.autosavesKey)??[];if(e.length){const t=e.splice(0,1)[0];return this.setLocalStorage(this.autosavesKey,e),t}}if(this.pendingAutosaves.length)return this.pendingAutosaves.splice(0,1)[0]},_initAutosave(){const e=this.getLocalStorage(this.autosavesKey)??[];e.length?this.$nextTick((()=>{this.openDialog({name:"loadAutosave",title:this.i18nUnsavedChanges,message:this.i18nUnsavedChangesMessage.replace("{$when}",Lc()(e[0].timestamp).locale(this.getMomentLocale($.pkp.app.currentLocale)).fromNow()),actions:[{label:this.__("common.yes"),isPrimary:!0,callback:()=>{e.forEach(this.restoreStoredAutosave),this.removeLocaleStorage(this.autosavesKey),this.$nextTick((()=>{this.addAutosaves(),this.startAutosaveTimer();const e=setInterval((()=>{this.isAutosaving||(clearInterval(e),this.$modal.hide("loadAutosave"))}),2e3)}))}},{label:this.i18nDiscardChanges,isWarnable:!0,callback:()=>{this.removeLocaleStorage(this.autosavesKey),this.startAutosaveTimer(),this.$modal.hide("loadAutosave")}}]})})):this.startAutosaveTimer()},_runAutosaveJobs(){if(this.isDisconnected&&this._storePendingAutosaves(),this.isDisconnected||BC)return;const e=this._getNextAutosave();e?this._sendAutosave(e,{}):Date.now()-this.lastSavedTimestamp>6e4&&this.addAutosaves()},_runReconnect(){this.isDisconnected&&setTimeout((()=>{this._sendAutosave(this._getNextAutosave(),{success:e=>{jC=4e3,this.isDisconnected=!1},error:()=>{jC<3e4&&(jC*=2),this._runReconnect()}})}),jC)},_sendAutosave(e,t){BC=!0,this.isAutosaving=!0;const n=t=>{"function"===typeof this.autosaveSucceeded&&this.autosaveSucceeded(e,t),this.lastSavedTimestamp=e.timestamp},r=(t,n)=>{this.isDisconnected=!0,this.isAutosaving=!1;let r=this.getLocalStorage(this.autosavesKey)??[];r.length?r.unshift(e):r=[e],this.setLocalStorage(this.autosavesKey,r),"function"===typeof this.autosaveErrored&&this.autosaveErrored(e,t,n)},i=e=>{BC=!1;let t=this.getLocalStorage(this.autosavesKey)??[];t.length||this.pendingAutosaves.length||(this.isAutosaving=!1)};t.success=t.success?[n,t.success]:n,t.error=t.error?[r,t.error]:r,t.complete=t.complete?[i,t.complete]:i,$.ajax({context:this,url:e.url,method:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:e.data,...t})},_storePendingAutosaves(){if(!this.isLocalStorageEnabled||!this.pendingAutosaves.length)return;let e=this.getLocalStorage(this.autosavesKey)??[];this.setLocalStorage(this.autosavesKey,[...e,...this.pendingAutosaves]),this.pendingAutosaves=[]}},watch:{isDisconnected(e,t){e&&e!==t&&this._runReconnect()}},created(){const e="Missing required `{$prop}` property or callback function. See docs for autosave.js";["autosavesKey","i18nDiscardChanges","i18nUnsavedChanges","i18nUnsavedChangesMessage"].forEach((t=>{if("undefined"===typeof this[t])throw new Error(e.replace("{$prop}",t))})),["addAutosaves","restoreStoredAutosave"].forEach((t=>{if("function"!==typeof this[t])throw new Error(e.replace("{$prop}",t))})),this.isLocalStorageEnabled||(this.clientId=NC()),this._initAutosave()},destroyed(){this.stopAutosaveTimer()}},nT={extends:xM,mixins:[uv,tT,qh,Gh,oM,HC],components:{ButtonRow:Am,ContributorsListPanel:mC,File:T_,Modal:Bh,SubmissionFilesListPanel:CC},data(){return{autosavesKeyBase:"submitAutosaves",categories:{},currentStepId:"",errors:{},isValidating:!1,lastAutosavedMessage:"",publication:{},publicationApiUrl:"",reconfigurePublicationProps:[],reconfigureSubmissionProps:[],staleForms:[],startedSteps:[],steps:[],submission:{},submissionApiUrl:"",submissionSavedUrl:"",submissionWizardUrl:"",submitApiUrl:"",i18nConfirmSubmit:"",i18nDiscardChanges:"",i18nDisconnected:"",i18nLastAutosaved:"",i18nPageTitle:"",i18nSubmit:"",i18nTitleSeparator:"",i18nUnableToSave:"",i18nUnsavedChanges:"",i18nUnsavedChangesMessage:""}},computed:{autosavesKey(){return this.autosavesKeyBase+this.submission.id},canSubmit(){return!this.isAutosaving&&!this.isDisconnected&&this.isValid&&this.isConfirmed},currentCategoryTitles(){return this.publication.categoryIds.filter((e=>!!this.categories[e])).map((e=>this.categories[e]))},currentStep(){return this.steps.find((e=>e.id===this.currentStepId))},currentStepIndex(){return this.steps.findIndex((e=>e.id===this.currentStepId))},isConfirmed(){const e=this.steps.find((e=>"review"===e.id))?.sections.find((e=>"confirmSubmission"===e.id))?.form.fields.map((e=>"field-options"!==e.component||e.value)).includes(!1);return!e},isOnFirstStep(){return!this.currentStepIndex},isOnLastStep(){return this.currentStepIndex===this.steps.length-1},isValid(){return 0===Object.keys(this.errors).length},pageTitle(){return this.currentStep?this.i18nPageTitle.replace("{$step}",this.currentStep.name):""}},methods:{addAutosaves(){if(this.staleForms.length)while(this.staleForms.length){const e=this.staleForms.splice(0,1)[0],t=this.$refs.autosaveForms.find((t=>t.id===e));if(!t)return;this.addAutosave(t.id,t.action,{...t.submitValues})}},addHistory(e){window.history.pushState({},e.name,"#"+e.id)},autosaveErrored(e,t,n){if(![0,500].includes(t.status)){if(403!==t.status){let t=this.getLocalStorage(this.autosavesKey);t.length&&this.setLocalStorage(this.autosavesKey,t.filter((t=>t.id!==e.id)))}this.isDisconnected=!0,this.ajaxErrorCallback({})}},autosaveSucceeded(e,t){t.submissionId?this.publication=t:t.dateSubmitted&&(this.submission=t)},getAuthorName(e){let t=this.localize(e.affiliation);return t?[e.fullName,t].join(pkp.localeKeys["common.commaListSeparator"]):e.fullName},getPageTitle(e){return document.title.split(this.i18nTitleSeparator).map(((t,n)=>n?t:this.i18nPageTitle.replace("{$step}",e.name))).join(this.i18nTitleSeparator)},nextStep(){this.isOnLastStep?this.submit():this.openStep(this.steps[1+this.currentStepIndex].id)},openSaveForLaterFailed(){this.openDialog({name:"saveForLaterFailed",title:this.i18nDisconnected,message:this.i18nUnableToSave,actions:[{label:this.__("common.ok"),callback:()=>this.$modal.hide("saveForLaterFailed")}]})},openStep(e){const t=this.steps.find((t=>t.id===e));t&&(this.currentStepId=e)},openUrlHash(){const e=window.location.hash.replace("#",""),t=this.steps.find((t=>t.id===e));this.openStep(t?t.id:this.steps[0].id)},previousStep(){const e=this.currentStepIndex-1;e>=0&&this.openStep(this.steps[e].id)},reconfigureSubmission(e){const t=(t,n)=>(void 0!==typeof e[n]&&(t[n]=e[n]),t),n=this.reconfigureSubmissionProps.reduce(t,{}),r=this.reconfigurePublicationProps.reduce(t,{});$.ajax({url:this.submissionApiUrl,method:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:n,error:this.ajaxErrorCallback,success(e){Object.keys(r).length?$.ajax({url:this.publicationApiUrl,method:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:r,error:this.ajaxErrorCallback,success(e){window.location.reload()}}):window.location.reload()}})},saveForLater(){this.isLoading=!0,this.addAutosaves();const e=setInterval((()=>{if(!this.isAutosaving){if(this.isDisconnected)return clearInterval(e),this.isLoading=!1,void this.openSaveForLaterFailed();$.ajax({url:this.submissionApiUrl+"/saveForLater",method:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:{step:this.startedSteps[this.startedSteps.length-1]},error(){this.isLoading=!1,this.openSaveForLaterFailed()},success(){window.location=this.submissionSavedUrl}}),clearInterval(e)}}),1e3)},setLastAutosaveMessage(){this.lastSavedTimestamp?this.lastAutosavedMessage=this.i18nLastAutosaved.replace("{$when}",Lc()(this.lastSavedTimestamp).locale(this.getMomentLocale($.pkp.app.currentLocale)).fromNow()):this.lastAutosavedMessage=""},setContributors(e){this.publication.authors=e},setPublication(e){this.publication=e},submit(){this.openDialog({name:"submitConfirmation",title:this.i18nSubmit,message:this.i18nConfirmSubmit.replace("{$title}",this.localize(this.publication.title)),actions:[{label:this.i18nSubmit,isPrimary:!0,callback:()=>{const e=this.steps.find((e=>"review"===e.id))?.sections.find((e=>"confirm"===e.type))?.form.fields.filter((e=>"field-options"===e.component&&e.value)).reduce(((e,t)=>({...e,[t.name]:t.value})),{});$.ajax({url:this.submitApiUrl,context:this,method:"POST",data:e,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},error(e){e.responseJSON?this.errors=e.responseJSON:this.ajaxErrorCallback(),this.$modal.hide("submitConfirmation")},success(){window.location=this.submissionWizardUrl}})}},{label:this.__("common.cancel"),isWarnable:!0,callback:()=>this.$modal.hide("submitConfirmation")}]})},restoreStoredAutosave(e){let t;const n=Object.keys(e.data);this.steps.forEach((n=>{n.sections.forEach((n=>{"form"===n.type&&n.form.id===e.id&&(t=n.form)}))})),t&&this.updateForm(e.id,{fields:t.fields.map((t=>n.includes(t.name)?{...t,value:e.data[t.name]}:t))})},updateAutosaveForm(e,t){this.updateForm(e,t),-1===this.staleForms.indexOf(e)&&this.staleForms.push(e)},updateForm(e,t){this.steps.forEach(((n,r)=>{n.sections.forEach(((n,i)=>{"form"===n.type&&n.form.id===e&&(this.steps[r].sections[i].form={...this.steps[r].sections[i].form,...t})}))}))},validate(){this.isValidating=!0,this.errors={};const e=setInterval((()=>{this.isAutosaving||this.isDisconnected||(clearInterval(e),$.ajax({url:this.submitApiUrl,method:"POST",context:this,headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},data:{_validateOnly:!0},error(e){e.responseJSON?this.errors=e.responseJSON:this.ajaxErrorCallback()},success(e){this.errors={}},complete(){this.isValidating=!1}}))}),500)}},watch:{currentStepIndex(e,t){if(e===t)return;this.addAutosaves(),this.steps.forEach(((e,t)=>{!this.startedSteps.includes(e.id)&&t<=this.currentStepIndex&&this.startedSteps.push(e.id)}));const n=this.steps[e];document.title=this.getPageTitle(n),n.id!==window.location.hash.replace("#","")&&this.addHistory(n),e===this.steps.length-1&&this.validate()},errors(e,t){const n=Object.keys(e);this.steps.forEach(((t,r)=>{t.sections.forEach(((t,i)=>{"form"===t.type&&t.form.fields.forEach((t=>{n.includes(t.name)&&(this.steps[r].sections[i].form.errors={...this.steps[r].sections[i].form.errors,[t.name]:e[t.name]})}))}))})),pkp.eventBus.$emit("submission:submit:errors",e,this)},isAutosaving(e,t){!e&&t&&this.setLastAutosaveMessage()}},created(){if(window.location.hash)this.openStep(this.steps[0].id);else{const e=this.steps.find((e=>e.id===this.submission.submissionProgress));this.openStep(e?e.id:this.steps[0].id)}setInterval(this.setLastAutosaveMessage,3e3)}},rT=nT,iT=zh(rT,VC,$C,!1,null,null,null),oT=iT.exports,aT={name:"WorkflowPage",extends:xM,mixins:[oM,qh,uv],components:{ContributorsListPanel:mC,Composer:Tb,Dropdown:ap,Modal:Bh,PkpHeader:Bp},data(){return{activityLogLabel:"",canAccessPublication:!1,canEditPublication:!1,currentPublication:null,decisionUrl:"",editorialHistoryUrl:"",isLoadingVersion:!1,publicationFormIds:[],publicationList:[],publicationTabsLabel:"",publishLabel:"",publishUrl:"",representationsGridUrl:"",schedulePublicationLabel:"",submission:null,submissionApiUrl:"",submissionFileApiUrl:"",submissionLibraryLabel:"",submissionLibraryUrl:"",supportsReferences:!1,statusLabel:"",unpublishConfirmLabel:"",unpublishLabel:"",unscheduleConfirmLabel:"",unscheduleLabel:"",uploadFileModalLabel:"",uploadFileUrl:"",versionLabel:"",versionConfirmMessage:"",versionConfirmTitle:"",workingPublication:null}},computed:{canCreateNewVersion(){return this.submission.status===pkp.const.STATUS_PUBLISHED&&this.latestPublicationId<=this.currentPublication.id},latestPublicationId(){return this.publicationList.reduce(((e,t)=>e<t.id?t.id:e),0)},publicationMaskClasses(){let e=[];return this.isLoadingVersion&&e.push("-isVisible"),e},currentPublicationTabsLabel(){return this.replaceLocaleParams(this.publicationTabsLabel,{version:this.workingPublication.version})}},methods:{createVersion(){this.isLoadingVersion=!0;const e=new Date;var t=this;$.ajax({url:this.submissionApiUrl+"/publications/"+this.latestPublicationId+"/version",type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},error(e){t.isLoadingVersion=!1,t.ajaxErrorCallback(e)},success(n){t.publicationList.push({id:n.id,datePublished:n.datePublished,status:n.status,version:n.version}),t.workingPublication={},t.workingPublication=n,t.$nextTick((()=>{t.setFocusIn(t.$refs.publication);const n=new Date,r=n-e;r/1e3>=3?t.isLoadingVersion=!1:setTimeout((()=>{t.isLoadingVersion=!1}),r)}))}})},getConstant(e){return pkp.const[e]},goToRevisionDecision(e){window.location=this.decisionUrl.replace("__decision__",e.decision).replace("__reviewRoundId__",e.reviewRoundId)},loadRepresentationsGrid(e){if(!this.$refs.representations)return;const t=$(this.$refs.representations),n=this.representationsGridUrl.replace("__publicationId__",e.id);if($.pkp.classes.Handler.hasHandler(t)){const e=$.pkp.classes.Handler.getHandler(t);e.setSourceUrl(n),e.reload()}else t.pkpHandler("$.pkp.controllers.UrlInDivHandler",{sourceUrl:n,refreshOn:"form-success"})},openActivity(){var e={title:this.activityLogLabel,url:this.editorialHistoryUrl,closeCallback:()=>this.$refs.activityButton.$el.focus()};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",e)},openCreateVersionPrompt(){this.openDialog({name:"createVersion",title:this.versionConfirmTitle,message:this.versionConfirmMessage,actions:[{label:this.__("common.yes"),isWarnable:!0,callback:()=>{this.$modal.hide("createVersion"),this.createVersion()}},{label:this.__("common.no"),callback:()=>this.$modal.hide("createVersion")}]})},openFileUpload(){var e={title:this.uploadFileModalLabel,url:this.uploadFileUrl,closeCallback:()=>{pkp.eventBus.$emit("refreshRevisionsGrid"),this.$refs.uploadFileButton.$el.focus()}};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.WizardModalHandler",e)},openLibrary(){var e={title:this.submissionLibraryLabel,url:this.submissionLibraryUrl,closeCallback:()=>this.$refs.library.$el.focus()};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",e)},openPublish(){const e=this.publishUrl.replace("__publicationId__",this.workingPublication.id),t={title:this.publishLabel,url:e,closeCallback:()=>{this.$refs.publish?this.$refs.publish.$el.focus():this.$refs.createVersion&&this.$refs.createVersion.$el.focus(),this.setFocusIn(this.$refs.publication)},closeOnFormSuccessId:pkp.const.FORM_PUBLISH};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",t)},openUnpublish(){this.openDialog({name:"confirmUnpublish",title:this.workingPublication.status===pkp.const.STATUS_SCHEDULED?this.unscheduleLabel:this.unpublishLabel,message:this.workingPublication.status===pkp.const.STATUS_SCHEDULED?this.unscheduleConfirmLabel:this.unpublishConfirmLabel,actions:[{label:this.workingPublication.status===pkp.const.STATUS_SCHEDULED?this.unscheduleLabel:this.unpublishLabel,isPrimary:!0,callback:()=>{this.unpublish(this.workingPublication),this.$modal.hide("confirmUnpublish")}},{label:this.__("common.cancel"),callback:()=>this.$modal.hide("confirmUnpublish")}]})},refreshSubmission(){const e=this;$.ajax({url:this.submissionApiUrl,type:"GET",success(t){t.publications.forEach((t=>e.updatePublicationInList(t))),delete t.publications,e.submission={},e.submission=t},error(t){e.ajaxErrorCallback(t)}})},setPublicationForms(e){this.publicationFormIds.forEach((t=>{if(!this.components[t])return;let n={...this.components[t]};n.action=this.submissionApiUrl+"/publications/"+e.id,n.fields=n.fields.map((t=>(Object.keys(e).includes(t.name)&&(t.value=e[t.name]),t))),n.canSubmit=this.canEditPublication&&e.status!==pkp.const.STATUS_PUBLISHED,t===pkp.const.FORM_ISSUE_ENTRY&&(n.fields=n.fields.map((t=>("issueId"===t.name&&(t.publicationStatus=e.status),t)))),t===pkp.const.FORM_PUBLICATION_IDENTIFIERS&&(n.fields=n.fields.map((t=>(["pub-id::doi","pub-id::other::urn"].includes(t.name)&&(t.pages=e.pages||"",t.publisherId=e["pub-id::publisher-id"]||""),t)))),this.components[t]={},this.components[t]=n}))},setWorkingPublicationById(e){this.isLoadingVersion=!0;var t=this;$.ajax({url:this.submissionApiUrl+"/publications/"+e,type:"GET",error(e){t.isLoadingVersion=!1,t.ajaxErrorCallback(e)},success(e){t.workingPublication={},t.workingPublication=e,t.updatePublicationInList(e),t.$nextTick((()=>{t.setFocusIn(t.$refs.publication),t.isLoadingVersion=!1}))}})},unpublish(e){this.isLoadingVersion=!0;var t=this;$.ajax({url:this.submissionApiUrl+"/publications/"+e.id+"/unpublish",type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"PUT"},error(e){t.isLoadingVersion=!1,t.ajaxErrorCallback(e)},success(e){t.workingPublication={},t.workingPublication=e,t.updatePublicationInList(e),t.setPublicationForms(e),t.loadRepresentationsGrid(e),t.isLoadingVersion=!1,t.setFocusIn(t.$refs.publication),t.refreshSubmission()}})},updatePublicationInList(e){this.publicationList.forEach((t=>{t.id===e.id&&(t.datePublished=e.datePublished,t.status=e.status,t.version=e.version)}))},setWorkingPublication(e){this.workingPublication=e},setContributors(e){this.workingPublication.authors=[...e]}},watch:{workingPublication(e,t){this.setPublicationForms(e),this.loadRepresentationsGrid(e),e.id===this.currentPublication.id&&(this.currentPublication={},this.currentPublication=e)}},created(){pkp.eventBus.$on("form-success",((e,t)=>{this.publicationFormIds.includes(e)&&(this.workingPublication={},this.workingPublication=t),e===pkp.const.FORM_PUBLISH&&(this.setPublicationForms(t),this.currentPublication={},this.currentPublication=t,this.submission.currentPublicationId=t.id,this.refreshSubmission())})),pkp.eventBus.$on("unpublish:publication",this.openUnpublish),pkp.eventBus.$on("decision:revisions",(e=>{this.components.selectRevisionDecision.hiddenFields["reviewRoundId"]=e,this.$modal.show("selectRevisionDecision")})),pkp.eventBus.$on("recommendation:revisions",(e=>{this.components.selectRevisionRecommendation.hiddenFields["reviewRoundId"]=e,this.$modal.show("selectRevisionRecommendation")})),this.setPublicationForms(this.workingPublication)},mounted(){setTimeout((()=>{this.loadRepresentationsGrid(this.workingPublication)}),1e3)},destroyed(){pkp.eventBus.$off("form-success"),pkp.eventBus.$off("unpublish:publication"),pkp.eventBus.$off("decision:revisions"),pkp.eventBus.$off("recommendation:revisions")}},sT=aT,uT=zh(sT,UC,WC,!1,null,null,null),lT=uT.exports,cT={name:"WorkflowPageOJS",extends:lT,data(){return{assignToIssueUrl:"",issueApiUrl:"",sectionWordLimits:{},selectIssueLabel:""}},methods:{openAssignToIssue(){const e=this.assignToIssueUrl.replace("__publicationId__",this.workingPublication.id),t={title:this.selectIssueLabel,url:e,closeOnFormSuccessId:pkp.const.FORM_ASSIGN_TO_ISSUE};$('<div id="'+$.pkp.classes.Helper.uuid()+'" class="pkp_modal pkpModalWrapper" tabIndex="-1"></div>').pkpHandler("$.pkp.controllers.modal.AjaxModalHandler",t)}},watch:{workingPublication(e,t){if(e.sectionId!==t.sectionId&&this.components[pkp.const.FORM_TITLE_ABSTRACT]){const t=this.sectionWordLimits[e.sectionId]||0;let n={...this.components[pkp.const.FORM_TITLE_ABSTRACT]};n.fields=n.fields.map((e=>("abstract"===e.name&&(e.wordLimit=t),e))),this.components[pkp.const.FORM_TITLE_ABSTRACT]={},this.components[pkp.const.FORM_TITLE_ABSTRACT]=n}if(e.issueId!==t.issueId){let t=this.components[pkp.const.FORM_ISSUE_ENTRY];if(t.fields=t.fields.map((t=>("issueId"===t.name&&(t.value=e.issueId),t))),e.issueId){var n=this;$.ajax({url:this.issueApiUrl.replace("__issueId__",e.issueId),type:"GET",error(e){n.ajaxErrorCallback(e)},success(e){n.publicationFormIds.forEach((t=>{if(t!==pkp.const.FORM_PUBLICATION_IDENTIFIERS)return;let r={...n.components[t]};r.fields=r.fields.map((t=>("pub-id::doi"===t.name&&(t.issueNumber=e.number||"",t.issueVolume=e.volume||"",n.workingPublication.datePublished||(t.year=e.year||"")),t))),n.components[t]={},n.components[t]=r}))}})}else this.publicationFormIds.forEach((e=>{if(e!==pkp.const.FORM_PUBLICATION_IDENTIFIERS)return;let t={...this.components[e]};t.fields=t.fields.map((e=>("pub-id::doi"===e.name&&(e.issueNumber="",e.issueVolume="",this.workingPublication.datePublished||(e.year="")),e))),this.components[e]={},this.components[e]=t}))}}},mounted(){pkp.eventBus.$on("form-success",((e,t)=>{pkp.const.FORM_ASSIGN_TO_ISSUE&&e===pkp.const.FORM_ASSIGN_TO_ISSUE&&(this.workingPublication=t,this.workingPublication.issueId&&this.$nextTick((()=>this.openPublish())))})),pkp.eventBus.$on("schedule:publication",this.openAssignToIssue)}},dT=cT,fT=zh(dT,qC,GC,!1,null,null,null),hT=fT.exports,pT={name:"JobsPage",extends:xM,components:{PkpTable:Gy,Pagination:Yy},data(){return{i18nDescription:"",columns:[],rows:[],label:"",total:0,currentPage:1,lastPage:1,isLoadingItems:!1,apiUrl:null}},mixins:[uv],computed:{description(){return this.replaceLocaleParams(this.i18nDescription,{total:this.total})}},methods:{handlePagination(e){this.isLoadingItems=!0,this.loadList(e)},loadList(e){e=e||1,$.ajax({url:this.apiUrl,type:"GET",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},data:{page:e},error:this.ajaxErrorCallback,success:e=>{this.rows=e.data,this.total=e.total,this.currentPage=e.pagination.currentPage,this.lastPage=e.pagination.lastPage,this.isLoadingItems=!1}})}},created(){this.loadList()}},mT=pT,gT=zh(mT,KC,JC,!1,null,null,null),vT=gT.exports,_T={name:"FailedJobsPage",extends:vT,components:{TableCell:$y,ButtonRow:Am},data(){return{apiUrlRedispatchAll:null}},methods:{removeJob(e){this.rows=this.rows.filter((t=>t.id!==e.id)),this.total=this.total-1},redispatch(e){$.ajax({url:e._hrefs._redispatch,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},error:this.ajaxErrorCallback,success:t=>{pkp.eventBus.$emit("notify",t.message,"success"),this.removeJob(e)}})},remove(e){$.ajax({url:e._hrefs._delete,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken,"X-Http-Method-Override":"DELETE"},error:this.ajaxErrorCallback,success:t=>{pkp.eventBus.$emit("notify",t.message,"success"),this.removeJob(e)}})},requeueAll(){this.isLoadingItems=!0,$.ajax({url:this.apiUrlRedispatchAll,type:"POST",headers:{"X-Csrf-Token":pkp.currentUser.csrfToken},error:this.ajaxErrorCallback,success:e=>{pkp.eventBus.$emit("notify",e.message,"success"),this.loadList(1)}})}}},bT=_T,yT=zh(bT,XC,QC,!1,null,null,null),xT=yT.exports,wT={name:"FailedJobDetailsPage",extends:xM,components:{PkpTable:Gy,TableCell:$y},data(){return{columns:[],rows:[],label:""}},methods:{isValidJson(e){try{JSON.parse(e)}catch(LT){return!1}return!0}}},kT=wT,MT=zh(kT,ZC,eT,!1,null,"09b97495",null),ST=MT.exports;window.pkp=Object.assign(Ik,{controllers:{AccessPage:DM,AddContextContainer:RM,AdminPage:UM,Container:vM,DoiPage:dS,DecisionPage:qS,ImportExportPage:XS,ManageEmailsPage:tL,JobsPage:vT,FailedJobsPage:xT,FailedJobDetailsPage:ST,Page:xM,SettingsPage:EL,StartSubmissionPage:HL,StatsEditorialPage:qL,StatsPublicationsPage:XL,StatsContextPage:tC,StatsIssuesPage:oC,StatsUsersPage:lC,SubmissionWizardPage:oT,WorkflowPage:hT}}),window.pkp.Vue.component("field-text",Rw),window.pkp.Vue.component("field-pub-id",Vx)}()})();

3g86 2022