@bigbinary/neeto-editor 1.10.3 → 1.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
- package/CHANGELOG.md +0 -353
package/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import*as e from"react";import t,{useState as n,useRef as i,useEffect as r,creat
|
|
|
14
14
|
* @param {string} phrase that needs interpolation, with placeholders
|
|
15
15
|
* @param {object} options with values that will be used to replace placeholders
|
|
16
16
|
* @returns {any[]} interpolated
|
|
17
|
-
*/function xe(e,t){const n=/\$/g,i="$$$$";let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,i)),r=ye(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var we=ve("apply");function _e(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ke=class{constructor(e){Object.defineProperty(this,we,{value:_e}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(me(this,we)[we],this):me(this,we)[we](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!be(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return xe(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return xe(n,t)}},Ee="Expected a function",Me=0/0,Ce="[object Symbol]",Oe=/^\s+|\s+$/g,De=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,Ae=parseInt,Ne="object"==typeof B&&B&&B.Object===Object&&B,je="object"==typeof self&&self&&self.Object===Object&&self,Le=Ne||je||Function("return this")(),Ie=Object.prototype.toString,ze=Math.max,Re=Math.min,Fe=function(){return Le.Date.now()};function Be(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Ee);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=Fe();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?Re(n,o-(e-c)):n}(e))}function v(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function b(){var e=Fe(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Ue(t)||0,Pe(n)&&(u=!!n.leading,o=(p="maxWait"in n)?ze(Ue(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},b.flush=function(){return void 0===a?s:v(Fe())},b}function Pe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ue(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Ie.call(e)==Ce}(e))return Me;if(Pe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Pe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oe,"");var n=Se.test(e);return n||Te.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Me:+e}var He=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(Ee);return Pe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Be(e,t,{leading:i,maxWait:t,trailing:r})};var $e=0;function We(e){return"__private_"+$e+++"_"+e}var qe=We("publish");class Ve{constructor(){Object.defineProperty(this,qe,{value:Ke}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,qe)[qe](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Ve.VERSION="2.1.1";var Ge=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}};const Ye=Ge,Qe={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Ze(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Je=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Ze(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Ze(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t};var Xe=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[i,r]=n.split(".");return i=parseInt(i,10),r=parseInt(r,10),i<15||15===i&&r<15063||(i>18||18===i&&r>=18218)};var et=se,tt=X,nt=ae;let it,rt;function ot(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var st=0;function at(e){return"__private_"+st+++"_"+e}const lt=ke,ct=function(){var e={},t=e._fns={};return e.emit=function(e,n,i,r,o,s,a){var l=function(e){var n=t[e]?t[e]:[],i=e.indexOf(":"),r=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var l=o[s];if("*"===l&&(n=n.concat(t[l])),2===r.length&&r[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var i=0,r=t.length;for(;i<r&&t[i];i++)t[i].event=e,t[i].apply(t[i],n)}(e,l,[n,i,r,o,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function i(){n.apply(this,arguments),e.off(t,i)}))},e.off=function(e,t){var n=[];if(e&&t)for(var i=this._fns[e],r=0,o=i?i.length:0;r<o;r++)i[r]!==t&&n.push(i[r]);n.length?this._fns[e]=n:delete this._fns[e]},e},ut=He,pt=function(){return new Ve},dt=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Ye(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Qe?Qe[n]:"application/octet-stream"},ht=Ge,ft=Je,mt=Xe,gt=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"},vt={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var bt=at("plugins"),yt=at("restricter"),xt=at("storeUnsubscribe"),wt=at("emitter"),_t=at("preProcessors"),kt=at("uploaders"),Et=at("postProcessors"),Mt=at("informAndEmit"),Ct=at("checkRequiredMetaFieldsOnFile"),Ot=at("checkRequiredMetaFields"),Dt=at("assertNewUploadAllowed"),St=at("checkAndCreateFileStateObject"),Tt=at("startIfAutoProceed"),At=at("addListeners"),Nt=at("updateOnlineStatus"),jt=at("createUpload"),Lt=at("getUpload"),It=at("removeUpload"),zt=at("runUpload");it=Symbol.for("uppy test: getPlugins"),rt=Symbol.for("uppy test: createUpload");class Rt{constructor(e){Object.defineProperty(this,zt,{value:Gt}),Object.defineProperty(this,It,{value:Kt}),Object.defineProperty(this,Lt,{value:Vt}),Object.defineProperty(this,jt,{value:qt}),Object.defineProperty(this,At,{value:Wt}),Object.defineProperty(this,Tt,{value:$t}),Object.defineProperty(this,St,{value:Ht}),Object.defineProperty(this,Dt,{value:Ut}),Object.defineProperty(this,Ot,{value:Pt}),Object.defineProperty(this,Ct,{value:Bt}),Object.defineProperty(this,Mt,{value:Ft}),Object.defineProperty(this,bt,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,yt,{writable:!0,value:void 0}),Object.defineProperty(this,xt,{writable:!0,value:void 0}),Object.defineProperty(this,wt,{writable:!0,value:ct()}),Object.defineProperty(this,_t,{writable:!0,value:new Set}),Object.defineProperty(this,kt,{writable:!0,value:new Set}),Object.defineProperty(this,Et,{writable:!0,value:new Set}),Object.defineProperty(this,Nt,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=vt;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:nt.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:pt(),logger:tt.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=tt.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=ut(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:mt(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ot(this,yt)[yt]=new nt.Restricter((()=>this.opts),this.i18n),ot(this,xt)[xt]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),ot(this,At)[At]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];ot(this,wt)[wt].emit(e,...n)}on(e,t){return ot(this,wt)[wt].on(e,t),this}once(e,t){return ot(this,wt)[wt].once(e,t),this}off(e,t){return ot(this,wt)[wt].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new lt([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((i=>{const r={...t[i]};r.progress={...r.progress,...e},n[i]=r})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ot(this,_t)[_t].add(e)}removePreProcessor(e){return ot(this,_t)[_t].delete(e)}addPostProcessor(e){ot(this,Et)[Et].add(e)}removePostProcessor(e){return ot(this,Et)[Et].delete(e)}addUploader(e){ot(this,kt)[kt].add(e)}removeUploader(e){return ot(this,kt)[kt].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...n[e].meta,...t};n[e]={...n[e],meta:i},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),i=Object.values(e),r=i.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=i.filter((e=>!e.progress.uploadStarted)),s=i.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=i.filter((e=>e.progress.uploadStarted)),l=i.filter((e=>e.isPaused)),c=i.filter((e=>e.progress.uploadComplete)),u=i.filter((e=>e.error)),p=r.filter((e=>!e.isPaused)),d=i.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:r,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===i.length&&0===d.length,isAllErrored:!!n&&u.length===i.length,isAllPaused:0!==r.length&&l.length===r.length,isUploadInProgress:r.length>0,isSomeGhost:i.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return ot(this,yt)[yt].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){ot(this,Dt)[Dt](e);const{files:t}=this.getState();let n=ot(this,St)[St](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),ot(this,Tt)[Tt](),n.id}addFiles(e){ot(this,Dt)[Dt]();const t={...this.getState().files},n=[],i=[];for(let r=0;r<e.length;r++)try{let i=ot(this,St)[St](t,e[r]);t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e[r].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),t[i.id]=i,n.push(i)}catch(e){e.isRestriction||i.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&ot(this,Tt)[Tt](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:n,currentUploads:i}=this.getState(),r={...n},o={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{n[e]&&(s[e]=n[e],delete r[e])})),Object.keys(o).forEach((e=>{const t=i[e].fileIDs.filter(a);0!==t.length?o[e]={...i[e],fileIDs:t}:delete o[e]}));const l={currentUploads:o,files:r};0===Object.keys(r).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=ot(this,jt)[jt](t,{forceAllowNewUpload:!0});return ot(this,zt)[zt](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=ot(this,jt)[jt]([e],{forceAllowNewUpload:!0});return ot(this,zt)[zt](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,i=n.reduce(((e,t)=>e+t.progress.percentage),0),r=Math.round(i/t*100);return void this.setState({totalProgress:r})}let i=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const r=i/t.length;i+=r*n.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),n.forEach((e=>{o+=r*(e.progress.percentage||0)/100}));let s=0===i?0:Math.round(o/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}.`+" Please verify that the plugin was imported and spelled correctly.")}const n=new e(this,t),i=n.id;if(!i)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const r=this.getPlugin(i);if(r){const e=`Already found a plugin named '${r.id}'. `+`Tried to use: '${i}'.\n`+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),n.type in ot(this,bt)[bt]?ot(this,bt)[bt][n.type].push(n):ot(this,bt)[bt][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(ot(this,bt)[bt])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[it](e){return ot(this,bt)[bt][e]}iteratePlugins(e){Object.values(ot(this,bt)[bt]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=ot(this,bt)[bt][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),ot(this,xt)[xt](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",ot(this,Nt)[Nt]),window.removeEventListener("offline",ot(this,Nt)[Nt]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ot(this,zt)[zt](e):(ot(this,It)[It](e),Promise.reject(new Error("Nonexistent upload")))}[rt](){return ot(this,jt)[jt](...arguments)}addResultData(e,t){if(!ot(this,Lt)[Lt](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),i={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:i}})}upload(){var e;null!=(e=ot(this,bt)[bt].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>ot(this,yt)[yt].validateMinNumberOfFiles(t))).catch((e=>{throw ot(this,Mt)[Mt](e),e})).then((()=>{if(!ot(this,Ot)[Ot](t))throw new nt.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),i=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||i.push(t.id)}));const r=ot(this,jt)[jt](i);return ot(this,zt)[zt](r)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Ft(e,t){const{message:n,details:i=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:i},"error",this.opts.infoTimeout),this.log(`${n} ${i}`.trim(),"error")}function Bt(e){const{missingFields:t,error:n}=ot(this,yt)[yt].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function Pt(e){let t=!0;for(const n of Object.values(e))ot(this,Ct)[Ct](n)||(t=!1);return t}function Ut(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new nt.RestrictionError(this.i18n("noMoreFilesAllowed"));throw ot(this,Mt)[Mt](t,e),t}}function Ht(e,t){const n=dt(t),i=gt(n,t),r=ht(i).extension,o=Boolean(t.isRemote),s=ft({...t,type:n});if(this.checkIfFileAlreadyExists(s)){const e=new nt.RestrictionError(this.i18n("noDuplicates",{fileName:i}));throw ot(this,Mt)[Mt](e,t),e}const a=t.meta||{};a.name=i,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:s,name:i,extension:r||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new nt.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));ot(this,yt)[yt].validate(c,t)}catch(e){throw ot(this,Mt)[Mt](e,c),e}return c}function $t(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Wt(){const e=(e,t,n)=>{let i=e.message||"Unknown error";e.details&&(i+=` ${e.details}`),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:n})};this.on("error",e),this.on("upload-error",((t,n,i)=>{if(e(n,t,i),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),ot(this,Mt)[Mt](e)}else ot(this,Mt)[Mt](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:ot(this,Et)[Et].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&ot(this,Ct)[Ct](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",ot(this,Nt)[Nt]),window.addEventListener("offline",ot(this,Nt)[Nt]),setTimeout(ot(this,Nt)[Nt],3e3))}function qt(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,et.nanoid)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[o]:{fileIDs:e,step:0,result:{}}}}),o}function Vt(e){const{currentUploads:t}=this.getState();return t[e]}function Kt(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Gt(e){let{currentUploads:t}=this.getState(),n=t[e];const i=n.step||0,r=[...ot(this,_t)[_t],...ot(this,kt)[kt],...ot(this,Et)[Et]];try{for(let o=i;o<r.length&&n;o++){const i=r[o],s={...n,step:o};this.setState({currentUploads:{...t,[e]:s}}),await i(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw ot(this,It)[It](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const i=n.fileIDs.map((e=>this.getFile(e))),r=i.filter((e=>!e.error)),o=i.filter((e=>e.error));await this.addResultData(e,{successful:r,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),ot(this,It)[It](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}Rt.VERSION="2.3.1";var Yt,Qt,Zt,Jt,Xt,en,tn,nn=Rt,rn={},on={},sn=[],an=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ln(e,t){for(var n in t)e[n]=t[n];return e}function cn(e){var t=e.parentNode;t&&t.removeChild(e)}function un(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Yt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return pn(e,s,i,r,null)}function pn(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++Zt:r};return null==r&&null!=Qt.vnode&&Qt.vnode(o),o}function dn(e){return e.children}function hn(e,t){this.props=e,this.context=t}function fn(e,t){if(null==t)return e.__?fn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?fn(e):null}function mn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return mn(e)}}function gn(e){(!e.__d&&(e.__d=!0)&&Xt.push(e)&&!vn.__r++||en!==Qt.debounceRendering)&&((en=Qt.debounceRendering)||setTimeout)(vn)}function vn(){for(var e;vn.__r=Xt.length;)e=Xt.sort((function(e,t){return e.__v.__b-t.__v.__b})),Xt=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=ln({},r)).__v=r.__v+1,Mn(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?fn(r):o,r.__h),Cn(n,r),r.__e!=o&&mn(r)))}))}function bn(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,v=i&&i.__k||sn,b=v.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?pn(null,h,null,null,h):Array.isArray(h)?pn(dn,{children:h},null,null,null):h.__b>0?pn(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=v[u])||d&&h.key==d.key&&h.type===d.type)v[u]=void 0;else for(p=0;p<b;p++){if((d=v[p])&&h.key==d.key&&h.type===d.type){v[p]=void 0;break}d=null}Mn(e,h,d=d||on,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=yn(h,l,e):l=xn(e,h,d,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=fn(d))}for(n.__e=m,u=b;u--;)null!=v[u]&&("function"==typeof n.type&&null!=v[u].__e&&v[u].__e==n.__d&&(n.__d=fn(i,u+1)),Dn(v[u],v[u]));if(g)for(u=0;u<g.length;u++)On(g[u],g[++u],g[++u])}function yn(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?yn(i,t,n):xn(n,i,i,r,i.__e,t));return t}function xn(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function wn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||an.test(t)?n:n+"px"}function _n(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||wn(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||wn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?En:kn,o):e.removeEventListener(t,o?En:kn,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function kn(e){this.l[e.type+!1](Qt.event?Qt.event(e):e)}function En(e){this.l[e.type+!0](Qt.event?Qt.event(e):e)}function Mn(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,v,b,y,x,w,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Qt.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,v=(c=_.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(g,b):(t.__c=u=new hn(g,b),u.constructor=_,u.render=Sn),v&&v.sub(u),u.props=g,u.state||(u.state={}),u.context=b,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=ln({},u.__s)),ln(u.__s,_.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,b)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}if(u.context=b,u.props=g,u.__v=t,u.__P=e,y=Qt.__r,x=0,"prototype"in _&&_.prototype.render)u.state=u.__s,u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context);else do{u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(i=ln(ln({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),w=null!=c&&c.type===dn&&null==c.key?c.props.children:c,bn(e,Array.isArray(w)?w:[w],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&Yt.call(e.childNodes),c=(p=n.props||on).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||_n(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||_n(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,bn(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&fn(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&cn(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==p.value)&&_n(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&_n(e,"checked",f,p.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=Qt.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Qt.__e(e,t,n)}}function Cn(e,t){Qt.__c&&Qt.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Qt.__e(e,t.__v)}}))}function On(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Qt.__e(e,n)}}function Dn(e,t,n){var i,r;if(Qt.unmount&&Qt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||On(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Qt.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Dn(i[r],t,"function"!=typeof e.type);n||null==e.__e||cn(e.__e),e.__=e.__e=e.__d=void 0}function Sn(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var i,r,o;Qt.__&&Qt.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Mn(t,e=(!i&&n||t).__k=un(dn,null,[e]),r||on,on,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?Yt.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),Cn(o,e)}Yt=sn.slice,Qt={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},Zt=0,Jt=function(e){return null!=e&&void 0===e.constructor},hn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ln({},this.state),"function"==typeof e&&(e=e(ln({},n),this.props)),e&&ln(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),gn(this))},hn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gn(this))},hn.prototype.render=dn,Xt=[],vn.__r=0,tn=0,rn.Component=hn,rn.Fragment=dn,rn.cloneElement=function(e,t,n){var i,r,o,s=ln({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?Yt.call(arguments,2):n),pn(e.type,s,i||e.key,r||e.ref,null)},rn.createContext=function(e,t){var n={__c:t="__cC"+tn++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(gn)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},rn.createElement=un,rn.createRef=function(){return{current:null}},rn.h=un,rn.hydrate=function e(t,n){Tn(t,n,e)},rn.isValidElement=Jt,rn.options=Qt,rn.render=Tn,rn.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n};var An=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE};const Nn=An;var jn=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):Nn(e)?e:null};var Ln=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};const In=ke;var zn=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new In([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}},Rn=rn;function Fn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bn=0;function Pn(e){return"__private_"+Bn+++"_"+e}const Un=jn,Hn=Ln,$n=zn;var Wn=Pn("updateUI");class qn extends $n{constructor(){super(...arguments),Object.defineProperty(this,Wn,{writable:!0,value:void 0})}mount(e,t){const n=t.id,i=Un(e);if(i){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Fn(this,Wn)[Wn]=function(e){let t=null,n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=r,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,Rn.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,Rn.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||Hn(t)||"ltr",this.onMount(),this.el}let r;if("object"==typeof e&&e instanceof qn)r=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(r=e)}))}if(r)return this.uppy.log(`Installing ${n} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. "+"Please check that you're not specifying a React Component instead of a plugin. "+"If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: "+"run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. "+"Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. "+"(see https://github.com/transloadit/uppy/issues/1042)\n\n"+"If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=Fn(this,Wn))[Wn])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Vn=qn;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=X;e.exports=nn;const i=Vn;t.UIPlugin=i;const r=zn;t.BasePlugin=r;const o=nn;t.Uppy=o;const s=Vn,a=zn;o.Uppy=o,o.UIPlugin=s,o.BasePlugin=a,o.debugLogger=n.debugLogger}(J,J.exports);var Kn=P(J.exports),Gn={exports:{}},Yn={},Qn=Array.from,Zn=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];var Jn=function(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.forInline=function(e,t,n){null===t||ii(e,t,n)},Yn.forModal=ii;const Xn=Qn,ei=Zn,ti=Jn;function ni(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function ii(e,t,n){const i=ti(n,t),r=Xn(i.querySelectorAll(ei)),o=r.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(i)?ni(e,r):e.shiftKey&&0===o?function(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,r):e.shiftKey||o!==r.length-1||ni(e,r)}var ri={exports:{}};var oi=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)};var si=function(e){return e.bytesTotal-e.bytesUploaded},ai={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},li={};const ci=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}};var ui=function(e){const t=ci(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`};Object.defineProperty(li,"__esModule",{value:!0}),li.CancelBtn=function(e){const{i18n:t,uppy:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,pi.h)("g",{fill:"none",fillRule:"evenodd"},(0,pi.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,pi.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},li.DoneBtn=function(e){const{i18n:t,doneButtonHandler:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))},li.LoadingSpinner=bi,li.PauseResumeButton=function(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:o}=e,s=n(t?"resume":"pause");return(0,pi.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:r?t?o.resumeAll():o.pauseAll():o.cancelAll()},"data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,pi.h)("g",{fill:"none",fillRule:"evenodd"},(0,pi.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,pi.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},li.ProgressBarComplete=function(e){const{i18n:t}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,pi.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},li.ProgressBarError=function(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,pi.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),(0,pi.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${n("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),(0,pi.h)(xi,{i18n:n,complete:i,numUploads:r})))},li.ProgressBarProcessing=function(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,o=Math.round(100*n),s=`·`;return(0,pi.h)("div",{className:"uppy-StatusBar-content"},(0,pi.h)(bi,null),"determinate"===i?`${o}% ${s} `:"",r)},li.ProgressBarUploading=function(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:o,isAllComplete:s,isAllPaused:a,newFiles:l,numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,startUpload:f}=e,m=l&&o;if(!o||s)return null;const g=t(a?"paused":"uploading");return(0,pi.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},a?null:(0,pi.h)(bi,null),(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},n?`${g}: ${i}%`:g),a||m||!r?null:n?(0,pi.h)(_i,{numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,i18n:t}):(0,pi.h)(xi,{i18n:t,complete:u,numUploads:c}),m?(0,pi.h)(wi,{i18n:t,newFiles:l,startUpload:f}):null))},li.ProgressDetails=yi,li.RetryBtn=function(e){const{i18n:t,uppy:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll(),"data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,pi.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},li.UploadBtn=function(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:o,isSomeGhost:s,startUpload:a}=e,l=di("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===mi.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=r(t&&n&&!i?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,pi.h)("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:a,disabled:s,"data-uppy-super-focusable":!0},c)};var pi=rn;const di=$.exports,hi=le,fi=ui,mi=ai,gi=`·`,vi=()=>` ${gi} `;function bi(){return(0,pi.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,pi.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function yi(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:o,i18n:s}=e,a=t>1;return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},a&&s("filesUploadedOfTotal",{complete:n,smart_count:t}),(0,pi.h)("span",{className:"uppy-StatusBar-additionalInfo"},a&&vi(),s("dataUploadedOfTotal",{complete:hi(i),total:hi(r)}),vi(),s("xTimeLeft",{time:fi(o)})))}function xi(e){const{i18n:t,complete:n,numUploads:i}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function wi(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=di("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),(0,pi.h)("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}const _i=He(yi,500,{leading:!0,trailing:!0});var ki=rn,Ei=li;const Mi=$.exports,Ci=ai,Oi=function(e){const t=[];let n,i;for(const{progress:r}of Object.values(e)){const{preprocess:e,postprocess:o}=r;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,n)=>e+n/t.length),0)}},{STATE_ERROR:Di,STATE_WAITING:Si,STATE_PREPROCESSING:Ti,STATE_UPLOADING:Ai,STATE_POSTPROCESSING:Ni,STATE_COMPLETE:ji}=Ci;var Li=function(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:o,error:s,hideUploadButton:a,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:u,recoveredState:p,uploadState:d,totalProgress:h,files:f,supportsUploadProgress:m,hideAfterFinish:g,isSomeGhost:v,doneButtonHandler:b,isUploadStarted:y,i18n:x,startUpload:w,uppy:_,isAllComplete:k,showProgressDetails:E,numUploads:M,complete:C,totalSize:O,totalETA:D,totalUploadedSize:S}=e,T=function(){switch(d){case Ni:case Ti:{const e=Oi(f);return"determinate"===e.mode?100*e.value:h}case Di:return null;case Ai:return m?h:null;default:return h}}(),A=function(){if(p)return!1;switch(d){case Si:return a||0===t;case ji:return g;default:return!1}}(),N=null!=T?T:100,j=!s&&t&&!i&&!r&&n&&!a,L=!c&&d!==Si&&d!==ji,I=o&&!l&&d===Ai,z=s&&!k&&!u,R=b&&d===ji,F=Mi("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case Ni:case Ti:{const{mode:e}=Oi(f);return"indeterminate"===e}case Ai:return!m;default:return!1}}()}),B=Mi("uppy-StatusBar",`is-${d}`,{"has-ghosts":v});return(0,ki.h)("div",{className:B,"aria-hidden":A},(0,ki.h)("div",{className:F,style:{width:`${N}%`},role:"progressbar","aria-label":`${N}%`,"aria-valuetext":`${N}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":T}),(()=>{switch(d){case Ti:case Ni:return(0,ki.h)(Ei.ProgressBarProcessing,{progress:Oi(f)});case ji:return(0,ki.h)(Ei.ProgressBarComplete,{i18n:x});case Di:return(0,ki.h)(Ei.ProgressBarError,{error:s,i18n:x,numUploads:M,complete:C});case Ai:return(0,ki.h)(Ei.ProgressBarUploading,{i18n:x,supportsUploadProgress:m,totalProgress:h,showProgressDetails:E,isUploadStarted:y,isAllComplete:k,isAllPaused:r,newFiles:t,numUploads:M,complete:C,totalUploadedSize:S,totalSize:O,totalETA:D,startUpload:w});default:return null}})(),(0,ki.h)("div",{className:"uppy-StatusBar-actions"},p||j?(0,ki.h)(Ei.UploadBtn,{newFiles:t,isUploadStarted:y,recoveredState:p,i18n:x,isSomeGhost:v,startUpload:w,uploadState:d}):null,z?(0,ki.h)(Ei.RetryBtn,{i18n:x,uppy:_}):null,I?(0,ki.h)(Ei.PauseResumeButton,{isAllPaused:r,i18n:x,isAllComplete:k,resumableUploads:o,uppy:_}):null,L?(0,ki.h)(Ei.CancelBtn,{i18n:x,uppy:_}):null,R?(0,ki.h)(Ei.DoneBtn,{i18n:x,doneButtonHandler:b}):null))},Ii=J.exports;const zi=oi,Ri=si,Fi=Ln,Bi=ai,Pi=Li,Ui={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Hi(e){const t=function(e){let t=0;return e.forEach((e=>{t+=zi(e.progress)})),t}(e);if(0===t)return 0;const n=e.reduce(((e,t)=>e+Ri(t.progress)),0);return Math.round(n/t*10)/10}function $i(e,t,n,i){if(e&&!t)return Bi.STATE_ERROR;if(t)return Bi.STATE_COMPLETE;if(n)return Bi.STATE_WAITING;let r=Bi.STATE_WAITING;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return Bi.STATE_UPLOADING;t.preprocess&&r!==Bi.STATE_UPLOADING&&(r=Bi.STATE_PREPROCESSING),t.postprocess&&r!==Bi.STATE_UPLOADING&&r!==Bi.STATE_PREPROCESSING&&(r=Bi.STATE_POSTPROCESSING)}return r}class Wi extends Ii.UIPlugin{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=Ui;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:n,allowNewUpload:i,totalProgress:r,error:o,recoveredState:s}=e,{newFiles:a,startedFiles:l,completeFiles:c,inProgressNotPausedFiles:u,isUploadStarted:p,isAllComplete:d,isAllErrored:h,isAllPaused:f,isUploadInProgress:m,isSomeGhost:g}=this.uppy.getObjectOfFilesPerState(),v=s?Object.values(n):a,b=Hi(u),y=!!t.resumableUploads,x=!1!==t.uploadProgress;let w=0,_=0;return l.forEach((e=>{w+=e.progress.bytesTotal||0,_+=e.progress.bytesUploaded||0})),Pi({error:o,uploadState:$i(o,d,s,e.files||{}),allowNewUpload:i,totalProgress:r,totalSize:w,totalUploadedSize:_,isAllComplete:!1,isAllPaused:f,isAllErrored:h,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:g,recoveredState:s,complete:c.length,newFiles:v.length,numUploads:l.length,totalETA:b,files:n,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:y,supportsUploadProgress:x,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;Fi(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Wi.VERSION="2.2.2",ri.exports=Wi;var qi={exports:{}},Vi=rn;const Ki=300;class Gi extends Vi.Component{constructor(){super(...arguments),this.ref=(0,Vi.createRef)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,Ki)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,Ki)}render(){const{children:e}=this.props;return(0,Vi.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}var Yi=Gi,Qi=rn;function Zi(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=n=>{e.refs[t]=n})}function Ji(e){const t={};for(let o=0;o<e.length;o++)if(null!=e[o]){t[(n=e[o],i=o.toString(36),r=void 0,null!=(r=null==n?void 0:n.key)?r:i)]=e[o]}var n,i,r;return t}function Xi(e,t){e=e||{},t=t||{};const n=n=>t.hasOwnProperty(n)?t[n]:e[n],i={};let r=[];for(const n in e)t.hasOwnProperty(n)?r.length&&(i[n]=r,r=[]):r.push(n);const o={};for(const e in t){if(i.hasOwnProperty(e))for(let t=0;t<i[e].length;t++){const r=i[e][t];o[i[e][t]]=n(r)}o[e]=n(e)}for(let e=0;e<r.length;e++)o[r[e]]=n(r[e]);return o}class er extends Qi.Component{constructor(e,t){super(e,t),this.refs={},this.state={children:Ji((0,Qi.toChildArray)((0,Qi.toChildArray)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=Ji((0,Qi.toChildArray)(e.children)||[]),n=this.state.children;let i;for(i in this.setState((e=>({children:Xi(e.children,t)}))),t)if(t.hasOwnProperty(i)){const e=n&&n.hasOwnProperty(i);t[i]&&e&&this.currentlyTransitioningKeys[i]?(this.keysToEnter.push(i),this.keysToAbortLeave.push(i)):!t[i]||e||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(i in n)if(n.hasOwnProperty(i)){const e=t&&t.hasOwnProperty(i);!n[i]||e||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{const t=(i={},r=this.state.children,Object.assign(i,r));delete t[e],this.setState({children:t})}var i,r}render(e,t){let{childFactory:n,transitionLeave:i,transitionName:r,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:a,transitionEnterTimeout:l,transitionAppearTimeout:c,component:u,...p}=e,{children:d}=t;const h=[];for(const e in d)if(d.hasOwnProperty(e)){const t=d[e];if(t){const i=Zi(this,e),r=(0,Qi.cloneElement)(n(t),{ref:i,key:e});h.push(r)}}return(0,Qi.h)(u,p,h)}}er.defaultProps={component:"span",childFactory:e=>e};var tr=rn,nr=J.exports;const ir=Yi,rr=er;class or extends nr.UIPlugin{constructor(e,t){super(e,t),this.render=e=>(0,tr.h)("div",{className:"uppy uppy-Informer"},(0,tr.h)(rr,null,e.info.map((e=>(0,tr.h)(ir,{key:e.message},(0,tr.h)("p",{role:"alert"},e.message," ",e.details&&(0,tr.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}or.VERSION="2.1.1",qi.exports=or;var sr={exports:{}};!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n="undefined"!=typeof self?self:B;const i="undefined"!=typeof navigator,r=i&&"undefined"==typeof HTMLImageElement,o=!(void 0===B||"undefined"==typeof process||!process.versions||!process.versions.node),s=n.Buffer,a=!!s,l=e=>void 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(l).length)}function u(e){let t=new Error(e);throw delete t.stack,t}function p(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const d=e=>String.fromCharCode.apply(null,e),h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class f{static from(e,t){return e instanceof this&&e.le===t?e:new f(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof f){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&u("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else u("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=f){return e instanceof DataView||e instanceof f?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||u("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new f(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return n=this.getUint8Array(e,t),h?h.decode(n):a?Buffer.from(n).toString("utf8"):decodeURIComponent(escape(d(n)));var n}getLatin1String(e=0,t=this.byteLength){let n=this.getUint8Array(e,t);return d(n)}getUnicodeString(e=0,t=this.byteLength){const n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return d(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function m(e,t){u(`${e} '${t}' was not loaded, try using full build of exifr.`)}class g extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||m(this.kind,e),t&&(e in t||function(e,t){u(`Unknown ${e} '${t}'.`)}(this.kind,e),t[e].enabled||m(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var v=new g("file parser"),b=new g("segment parser"),y=new g("file reader");let x=n.fetch;const w="Invalid input argument";function _(e,t){return(n=e).startsWith("data:")||n.length>1e4?E(e,t,"base64"):o&&e.includes("://")?k(e,t,"url",M):o?E(e,t,"fs"):i?k(e,t,"url",M):void u(w);var n}async function k(e,t,n,i){return y.has(n)?E(e,t,n):i?async function(e,t){let n=await t(e);return new f(n)}(e,i):void u(`Parser ${n} is not loaded`)}async function E(e,t,n){let i=new(y.get(n))(e,t);return await i.read(),i}const M=e=>x(e).then((e=>e.arrayBuffer())),C=e=>new Promise(((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}));class O extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function D(e,t,n){let i=new O;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function S(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}const T=new Map,A=new Map,N=new Map,j=37500,L=37510,I=33723,z=34675,R=34665,F=34853,P=40965,U=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],H=["jfif","xmp","icc","iptc","ihdr"],$=["tiff",...H],W=["ifd0","ifd1","exif","gps","interop"],q=[...$,...W],V=["makerNote","userComment"],K=["translateKeys","translateValues","reviveValues","multiSegment"],G=[...K,"sanitize","mergeOutput","silentErrors"];class Y{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Q extends Y{get needed(){return this.enabled||this.deps.size>0}constructor(e,n,i,r){if(super(),t(this,"enabled",!1),t(this,"skip",new Set),t(this,"pick",new Set),t(this,"deps",new Set),t(this,"translateKeys",!1),t(this,"translateValues",!1),t(this,"reviveValues",!1),this.key=e,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=W.includes(e),this.canBeFiltered&&(this.dict=T.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:u(`Invalid options argument: ${i}`)}applyInheritables(e){let t,n;for(t of K)n=e[t],void 0!==n&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(i=o.indexOf(n),-1===i&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,ne(this.pick,this.deps)):this.enabled&&this.pick.size>0&&ne(this.pick,this.deps)}}var Z={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},J=new Map;class X extends Y{static useCached(e){let t=J.get(e);return void 0!==t||(t=new this(e),J.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):u(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=i?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=Z[e];for(e of q)this[e]=new Q(e,Z[e],void 0,this)}setupFromTrue(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=!0;for(e of q)this[e]=new Q(e,!0,void 0,this)}setupFromArray(e){let t;for(t of U)this[t]=Z[t];for(t of G)this[t]=Z[t];for(t of V)this[t]=Z[t];for(t of q)this[t]=new Q(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,W)}setupFromObject(e){let t;for(t of(W.ifd0=W.ifd0||W.image,W.ifd1=W.ifd1||W.thumbnail,Object.assign(this,e),U))this[t]=te(e[t],Z[t]);for(t of G)this[t]=te(e[t],Z[t]);for(t of V)this[t]=te(e[t],Z[t]);for(t of $)this[t]=new Q(t,Z[t],e[t],this);for(t of W)this[t]=new Q(t,Z[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,W,q),!0===e.tiff?this.batchEnableWithBool(W,!0):!1===e.tiff?this.batchEnableWithUserValue(W,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,W):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,W)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;let t=ee(e,n);for(let[e,n]of t)ne(this[e].pick,n),this[e].enabled=!0}else if(t&&t.length){let e=ee(t,n);for(let[t,n]of e)ne(this[t].skip,n)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(j):t.skip.add(j),this.userComment?t.deps.add(L):t.skip.add(L),n.enabled||e.skip.add(700),i.enabled||e.skip.add(I),r.enabled||e.skip.add(z)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;i.needed&&(t.deps.add(P),e.deps.add(P)),t.needed&&e.deps.add(R),n.needed&&e.deps.add(F),this.tiff.enabled=W.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of W)this[e].finalizeFilters()}get onlyTiff(){return!H.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of $)this[e].enabled&&!b.has(e)&&m("segment parser",e)}}function ee(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=T.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function te(e,t){return void 0!==e?e:void 0!==t?t:void 0}function ne(e,t){for(let n of t)e.add(n)}t(X,"default",Z);class ie{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=X.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?_(e,t):i&&!r&&e instanceof HTMLImageElement?_(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new f(e):i&&e instanceof Blob?k(e,t,"blob",C):void u(w)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of v)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),u("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),c(n=e)?void 0:n;var n}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let n=await t.parse();t.assignToOutput(e,n)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,n=b.get("tiff",e);var i;if(t.tiff?i={start:0,type:"tiff"}:t.jpeg&&(i=await this.fileParser.getOrFindSegment("tiff")),void 0===i)return;let r=await this.fileParser.ensureSegmentChunk(i),o=this.parsers.tiff=new n(r,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function re(e,t){let n=new ie(t);return await n.read(e),n.parse()}var oe=Object.freeze({__proto__:null,parse:re,Exifr:ie,fileParsers:v,segmentParsers:b,fileReaders:y,tagKeys:T,tagValues:A,tagRevivers:N,createDictionary:D,extendDictionary:S,fetchUrlAsArrayBuffer:M,readBlobAsArrayBuffer:C,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X});class se{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new X({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof f?e:new f(e)}constructor(e,n={},i){t(this,"errors",[]),t(this,"raw",new Map),t(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=N.get(t),i=A.get(t),r=T.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,c={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),c[t]=o;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}function ae(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function le(e){return e>=224&&e<=239}function ce(e,t,n){for(let[i,r]of b)if(r.canHandle(e,t,n))return i}t(se,"headerLength",4),t(se,"type",void 0),t(se,"multiSegment",!1),t(se,"canHandle",(()=>!1));class ue extends class{constructor(e,n,i){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){u(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):u("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=n,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(b.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(...e){super(...e),t(this,"appSegments",[]),t(this,"jpegSegments",[]),t(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(b.keyList())):(e=void 0===e?b.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&b.has(e))),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(e=0,t){this.setupSegmentFinderArgs(t);let{file:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some((e=>{let t=b.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment})),i&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:c,wanted:u,remaining:p,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(n=l.getUint8(e+1),le(n)){if(i=l.getUint16(e+2),r=ce(l,e,i),r&&u.has(r)&&(o=b.get(r),s=o.findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!c&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(r)):p.delete(r),0===p.size)))break;d.recordUnknownSegments&&(s=se.findPosition(l,e),s.marker=n,this.unknownSegments.push(s)),e+=i+1}else if(ae(n)){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)n=e[s],i=n[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map((([e,t])=>{let n=b.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}t(ue,"type","jpeg"),v.set("jpeg",ue);const pe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class de extends se{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t];i=new Set(i);let o=i.size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=pe[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&u(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&u(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return""===(a=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(a=i.getString(e,o)).trim())?void 0:a;var a;if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o),n=s;for(let i=0;i<o;i++)t[i]=this.parseTagValue(r,e),e+=n;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:u(`Invalid tiff type ${e}`)}}}class he extends de{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&u("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&u(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,p(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(R),this.interopOffset=t.get(P),this.gpsOffset=t.get(F),this.xmp=t.get(700),this.iptc=t.get(I),this.icc=t.get(z),this.options.sanitize&&(t.delete(R),t.delete(P),t.delete(F),t.delete(700),t.delete(I),t.delete(z)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,p(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(P)),this.makerNote=e.get(j),this.userComment=e.get(L),this.options.sanitize&&(e.delete(P),e.delete(j),e.delete(L)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",fe(...e.get(2),e.get(1))),e.set("longitude",fe(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of W)if(e=this[t],!c(e))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function fe(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}t(he,"type","tiff"),t(he,"headerLength",10),b.set("tiff",he);var me=Object.freeze({__proto__:null,default:oe,Exifr:ie,fileParsers:v,segmentParsers:b,fileReaders:y,tagKeys:T,tagValues:A,tagRevivers:N,createDictionary:D,extendDictionary:S,fetchUrlAsArrayBuffer:M,readBlobAsArrayBuffer:C,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X,parse:re});const ge={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},ve=Object.assign({},ge,{firstChunkSize:4e4,gps:[1,2,3,4]}),be=Object.assign({},ge,{tiff:!1,ifd1:!0,mergeOutput:!1}),ye=Object.assign({},ge,{firstChunkSize:4e4,ifd0:[274]});async function xe(e){let t=new ie(ye);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const we=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){let t=navigator.userAgent;if(t.includes("iPad")||t.includes("iPhone")){let n=t.match(/OS (\d+)_(\d+)/);if(n){let[,t,i]=n,r=Number(t)+.1*Number(i);e.rotateCanvas=r<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,n]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<15}if(t.includes("Chrome/")){let[,n]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<81}else if(t.includes("Firefox/")){let[,n]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<77}}class _e extends f{constructor(...e){super(...e),t(this,"ranges",new ke),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t;t=a?s.allocUnsafe(e):new Uint8Array(e);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class ke{constructor(){t(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter((t=>Ee(e,t.offset,i)||Ee(e,t.end,i)));if(r.length>0){e=Math.min(e,...r.map((e=>e.offset))),i=Math.max(i,...r.map((e=>e.end))),t=i-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((e=>!r.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some((t=>t.offset<=e&&n<=t.end))}}function Ee(e,t,n){return e<=t&&t<=n}class Me extends _e{constructor(e,n){super(0),t(this,"chunksRead",0),this.input=e,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}y.set("blob",class extends Me{async readWhole(){this.chunked=!1;let e=await C(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await C(i);return this.set(r,e,!0)}}),e.Exifr=ie,e.Options=X,e.allFormatters=G,e.chunkedProps=U,e.createDictionary=D,e.default=me,e.extendDictionary=S,e.fetchUrlAsArrayBuffer=M,e.fileParsers=v,e.fileReaders=y,e.gps=async function(e){let t=new ie(ve);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}},e.gpsOnlyOptions=ve,e.inheritables=K,e.orientation=xe,e.orientationOnlyOptions=ye,e.otherSegments=H,e.parse=re,e.readBlobAsArrayBuffer=C,e.rotation=async function(t){let n=await xe(t);return Object.assign({canvas:e.rotateCanvas,css:e.rotateCss},we[n])},e.rotations=we,e.segmentParsers=b,e.segments=$,e.segmentsAndBlocks=q,e.tagKeys=T,e.tagRevivers=N,e.tagValues=A,e.thumbnail=async function(e){let t=new ie(be);await t.read(e);let n=await t.extractThumbnail();return n&&a?s.from(n):n},e.thumbnailOnlyOptions=be,e.thumbnailUrl=async function(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}},e.tiffBlocks=W,e.tiffExtractables=V,Object.defineProperty(e,"__esModule",{value:!0})}(sr.exports);const ar=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;var lr=function(e,t,n){var i,r;const o=ar.exec(e),s=null!=(i=null!=(r=t.mimeType)?r:null==o?void 0:o[1])?i:"plain/text";let a;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);a=[t]}else a=[decodeURIComponent(o[3])];return n?new File(a,t.name||"",{type:s}):new Blob(a,{type:s})};var cr=J.exports,ur=sr.exports;const pr=lr,dr=function(e){return e.startsWith("blob:")},hr=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)},fr={strings:{generatingThumbnails:"Generating thumbnails..."}};class mr extends cr.UIPlugin{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&hr(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&dr(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!dr(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=fr;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,n){const i=URL.createObjectURL(e.data),r=new Promise(((e,t)=>{const n=new Image;n.src=i,n.addEventListener("load",(()=>{URL.revokeObjectURL(i),e(n)})),n.addEventListener("error",(e=>{URL.revokeObjectURL(i),t(e.error||new Error("Could not create thumbnail"))}))})),o=(0,ur.rotation)(e.data).catch((()=>1));return Promise.all([r,o]).then((e=>{let[i,r]=e;const o=this.getProportionalDimensions(i,t,n,r.deg),s=this.rotateImage(i,r),a=this.resizeImage(s,o.width,o.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,n,i){let r=e.width/e.height;return 90!==i&&270!==i||(r=e.height/e.width),null!=t?{width:t,height:Math.round(t/r)}:null!=n?{width:Math.round(n*r),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/r)}}resizeImage(e,t,n){let i=this.protect(e),r=Math.ceil(Math.log2(i.width/t));r<1&&(r=1);let o=t*2**(r-1),s=n*2**(r-1);const a=2;for(;r--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),i=e,o=Math.round(o/a),s=Math.round(s/a)}return i}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return hr(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}mr.VERSION="2.2.2";var gr=mr;mr.prototype.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((i=>{e.toBlob(i,t,n)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>pr(e.toDataURL(t,n),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))},mr.prototype.protect=function(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),o=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,o=Math.round(r/t)),o>i&&(o=i,r=Math.round(t*o)),e.width>r){const t=document.createElement("canvas");return t.width=r,t.height=o,t.getContext("2d").drawImage(e,0,0,r,o),t}return e},mr.prototype.rotateImage=function(e,t){let n=e.width,i=e.height;90!==t.deg&&270!==t.deg||(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const o=r.getContext("2d");return o.translate(n/2,i/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r};const vr=An;var br=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&vr(e)?[e]:null};var yr=function e(t,n,i,r){let{onSuccess:o}=r;t.readEntries((r=>{const s=[...n,...r];r.length?queueMicrotask((()=>{e(t,s,i,{onSuccess:o})})):o(s)}),(e=>{i(e),o(n)}))};const xr=yr;function wr(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),i=await new Promise((e=>{xr(n,[],t,{onSuccess:n=>e(n.map((e=>wr(e,t))))})}));yield*i}}}async function*_r(e,t){if("file"===e.kind){const n=await e.getFile();null!==n&&(n.relativePath=t?`${t}/${e.name}`:null,yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*_r(n,`${t}/${e.name}`)}const kr=Qn;const Er=async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{var n;return{lastResortFile:e.getAsFile(),entry:null!=(n=await(null==e.getAsFileSystemHandle?void 0:e.getAsFileSystemHandle()))?n:wr(e.webkitGetAsEntry(),t)}})));for(const{lastResortFile:e,entry:i}of n)if(null!=i)try{yield*_r(i,"")}catch(n){e?yield e:t(n)}},Mr=function(e){const t=kr(e.files);return Promise.resolve(t)};var Cr=async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const i of Er(e,n))t.push(i);return t}catch{return Mr(e)}},Or=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Dr(e,t){return e===t||!(!Or(e)||!Or(t))}function Sr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}var Tr=Object.freeze({__proto__:null,default:function(e,t){var n;void 0===t&&(t=Sr);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}}}),Ar=U(Tr),Nr="Expected a function",jr=0/0,Lr="[object Symbol]",Ir=/^\s+|\s+$/g,zr=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Br=parseInt,Pr="object"==typeof B&&B&&B.Object===Object&&B,Ur="object"==typeof self&&self&&self.Object===Object&&self,Hr=Pr||Ur||Function("return this")(),$r=Object.prototype.toString,Wr=Math.max,qr=Math.min,Vr=function(){return Hr.Date.now()};function Kr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gr(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&$r.call(e)==Lr}(e))return jr;if(Kr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ir,"");var n=Rr.test(e);return n||Fr.test(e)?Br(e.slice(2),n?2:8):zr.test(e)?jr:+e}var Yr=function(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Nr);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=Vr();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?qr(n,o-(e-c)):n}(e))}function v(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function b(){var e=Vr(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Gr(t)||0,Kr(n)&&(u=!!n.leading,o=(p="maxWait"in n)?Wr(Gr(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},b.flush=function(){return void 0===a?s:v(Vr())},b};const Qr=Yr,Zr=Zn,Jr=Jn;var Xr=function(){let e=!1;return Qr(((t,n)=>{const i=Jr(t,n),r=i.contains(document.activeElement);if(r&&e)return;const o=i.querySelector("[data-uppy-super-focusable]");if(!r||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=i.querySelector(Zr);null==t||t.focus({preventScroll:!0}),e=!1}}),260)};var eo=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)},to=rn;var no=function(e){const t={color:"#838999",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,to.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,to.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return"text"===n?{color:"#5a5e69",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}:"image"===n?{color:"#686de0",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,to.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,to.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,to.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===n?{color:"#068dbb",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}:"video"===n?{color:"#19af67",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}:"application"===n&&"pdf"===i?{color:"#e25149",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}:"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)?{color:"#00C469",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t},io=rn;const ro=no;var oo=function(e){const{file:t}=e;if(t.preview)return(0,io.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=ro(t.type);return(0,io.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,io.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),(0,io.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,io.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))},so=rn;var ao=function(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>((e,t)=>{const n=t.filter((t=>t.id===e));return n[0].name})(e,r))).join(", ");return(0,so.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,so.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))},lo=rn;const co=oo,uo=ao,po=no;var ho=rn;function fo(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function mo(e){return(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":fo(e),title:fo(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function go(e){let{children:t}=e;return(0,ho.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function vo(e){let{progress:t}=e;const n=2*Math.PI*15;return(0,ho.h)("g",null,(0,ho.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,ho.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}const bo="...";var yo=rn;const xo=le,wo=function(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=bo.length+1)return`${e.slice(0,t-1)}…`;const n=t-bo.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+bo+e.slice(-r)},_o=ao,ko=e=>{let{file:t,onClick:n}=e;return t.error?(0,yo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};var Eo=rn;const Mo=function(e,t){return t||(t="Copy the URL below"),new Promise((n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch(e){return document.body.removeChild(i),r()}}))};function Co(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:o,onClick:s}=e;return!n&&i&&i.length>0||!n&&r(t)?(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,Eo.h)("g",{fillRule:"evenodd"},(0,Eo.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,Eo.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,Eo.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function Oo(e){let{i18n:t,onClick:n,file:i}=e;return(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,Eo.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,Eo.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function Do(e){const{i18n:t}=e;return(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{Mo(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,Eo.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}var So=function(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:a,i18n:l,toggleFileCard:c,openFileEditor:u}=e;return(0,Eo.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,Eo.h)(Co,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,n.id):u(n)}}),s&&n.uploadURL?(0,Eo.h)(Do,{file:n,uppy:t,i18n:l}):null,a?(0,Eo.h)(Oo,{i18n:l,file:n,uppy:t,onClick:()=>e.uppy.removeFile(n.id,"removed-by-user")}):null)},To=rn;const Ao=$.exports,No=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0},jo=function(e){return(0,lo.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:po(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&(0,lo.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},(0,lo.h)("span",{hidden:!0},e.file.meta.name)),(0,lo.h)(co,{file:e.file}),(0,lo.h)(uo,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},Lo=function(e){return e.file.progress.uploadStarted?e.isUploaded?(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,ho.h)(go,null,(0,ho.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,ho.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,ho.h)(mo,e,(0,ho.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,ho.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,ho.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,ho.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,ho.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,ho.h)(mo,e,(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage}),e.file.isPaused?(0,ho.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,ho.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,ho.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,ho.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage})))):(0,ho.h)(mo,e,(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage}),(0,ho.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null},Io=function(e){const{file:t}=e;return(0,yo.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,yo.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:n}=e.file.meta;return(0,yo.h)("div",{className:"uppy-Dashboard-Item-name",title:n},wo(n,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,yo.h)(ko,{file:e.file,onClick:()=>alert(e.file.error)})),(0,yo.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:n}=e.file.remote,i=`·`;return t?(0,yo.h)("div",{className:"uppy-Dashboard-Item-author"},(0,yo.h)("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},wo(t.name,13)),n?(0,yo.h)(yo.Fragment,null,` ${i} `,n,` ${i} `):null):null})(e),(e=>e.file.size&&(0,yo.h)("div",{className:"uppy-Dashboard-Item-statusSize"},xo(e.file.size)))(e),(e=>e.file.isGhost&&(0,yo.h)("span",null," • ",(0,yo.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,yo.h)(_o,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},zo=So;class Ro extends To.Component{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!No(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,i=e.progress.uploadStarted||t,r=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let a=(this.props.individualCancellation||!r)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(a=!0);const l=Ao({"uppy-Dashboard-Item":!0,"is-inprogress":r&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,To.h)("div",{className:l,id:`uppy_${e.id}`,role:this.props.role},(0,To.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,To.h)(jo,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,To.h)(Lo,{uppy:this.props.uppy,file:e,error:o,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,To.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,To.h)(Io,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,To.h)(zo,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:a,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:i,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}var Fo=Ro,Bo=rn;function Po(){return Po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Po.apply(this,arguments)}const Uo={position:"relative",width:"100%",minHeight:"100%"},Ho={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class $o extends Bo.Component{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:n,renderRow:i,overscanCount:r=10,...o}=e;const{offset:s,height:a}=this.state;let l=Math.floor(s/n),c=Math.floor(a/n);r&&(l=Math.max(0,l-l%r),c+=r);const u=l+c+4,p=t.slice(l,u),d={...Uo,height:t.length*n},h={...Ho,top:l*n};return(0,Bo.h)("div",Po({onScroll:this.handleScroll},o),(0,Bo.h)("div",{role:"presentation",style:d},(0,Bo.h)("div",{role:"presentation",style:h},p.map(i))))}}var Wo=rn;function qo(){return qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qo.apply(this,arguments)}const Vo=$.exports,Ko=Fo,Go=$o;var Yo=rn;let Qo;Qo=Symbol.for("uppy test: disable unused locale key warning");class Zo extends Yo.Component{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,Yo.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>(0,Yo.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,Yo.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Yo.h)("g",{fill:"none",fillRule:"evenodd"},(0,Yo.h)("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),(0,Yo.h)("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),(0,Yo.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const n=this.props.acquirers.length;return(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===n},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),n=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,r=i.charAt(0).toUpperCase()+i.slice(1);return(0,Yo.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${r}`,{browseFiles:t,browseFolders:n,browse:t}):this.props.i18nArray(`dropPaste${r}`,{browseFiles:t,browseFolders:n,browse:t}))},this.renderAcquirer=e=>(0,Yo.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),(0,Yo.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const n=[...e],i=n.splice(e.length-2,e.length);return(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),n.map((e=>this.renderAcquirer(e))),(0,Yo.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))}}[Qo](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,Yo.h)("span",null,(0,Yo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Yo.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,Yo.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,Yo.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,Yo.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}var Jo=Zo,Xo=rn;const es=$.exports,ts=Jo;var ns=e=>(0,Xo.h)("div",{className:es("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},(0,Xo.h)("div",{className:"uppy-DashboardContent-bar"},(0,Xo.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,Xo.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,Xo.h)(ts,e));var is=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()},rs=rn;const ss=$.exports,as=is;var ls=function(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:o,uppy:s}=e;return(0,rs.h)("div",{className:ss("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:as,onDragLeave:as,onDrop:as,onPaste:as},(0,rs.h)("div",{className:"uppy-DashboardContent-bar"},(0,rs.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),(0,rs.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),(0,rs.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))},cs=rn;const us=$.exports;var ps=function(e){const t=e.files[e.fileCardFor];return(0,cs.h)("div",{className:us("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,cs.h)("div",{className:"uppy-DashboardContent-bar"},(0,cs.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,cs.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,cs.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),(0,cs.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,cs.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},ds=rn;const hs="error",fs="waiting",ms="preprocessing",gs="uploading",vs="postprocessing",bs="complete",ys="paused";function xs(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:a,processingFiles:l}=e;const c=function(e,t,n,i){if(void 0===i&&(i={}),e)return hs;if(t)return bs;if(n)return ys;let r=fs;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return gs;t.preprocess&&r!==gs&&(r=ms),t.postprocess&&r!==gs&&r!==ms&&(r=vs)}return r}(r,i,o,t);switch(c){case"uploading":return n("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:a.length});case"complete":return n("uploadComplete")}}var ws=function(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:a}=e;return a&&r&&(a=e.totalFileCount<e.maxNumberOfFiles),(0,ds.h)("div",{className:"uppy-DashboardContent-bar"},n||i?(0,ds.h)("div",null):(0,ds.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,ds.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,ds.h)(xs,e)),a?(0,ds.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,ds.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,ds.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,ds.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,ds.h)("div",null))},_s=rn,ks=se;const Es=$.exports,Ms=no,Cs=is,Os=oo;class Ds extends _s.Component{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((n=>{let{formState:i}=n;return{formState:{...i,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{const e=this.props.files[this.props.fileCardFor];this.props.uppy.emit("file-editor:cancel",e),this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const n=`uppy-Dashboard-FileCard-input-${e.id}`,i=this.props.requiredMetaFields.includes(e.id);return(0,_s.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,_s.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:n},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:i,form:this.form.id},_s.h):(0,_s.h)("input",{className:t.text,id:n,form:this.form.id,type:e.type||"text",required:i,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],n=this.getMetaFields()||[],i={};n.forEach((e=>{i[e.id]=t.meta[e.id]||""})),this.state={formState:i},this.form.id=(0,ks.nanoid)()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return(0,_s.h)("div",{className:Es("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:Cs,onDragLeave:Cs,onDrop:Cs,onPaste:Cs},(0,_s.h)("div",{className:"uppy-DashboardContent-bar"},(0,_s.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:(0,_s.h)("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),(0,_s.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:Ms(e.type).color}},(0,_s.h)(Os,{file:e}),t&&(0,_s.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,_s.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),(0,_s.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}var Ss=Ds,Ts=rn;const As=$.exports,Ns="uppy-transition-slideDownUp",js=250;class Ls extends Ts.Component{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,n=(0,Ts.toChildArray)(e.children)[0];if(t===n)return null;const i={cachedChildren:n};n&&!t&&(i.className=`${Ns}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Ns}-enter ${Ns}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),js)}))),t&&!n&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=`${Ns}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Ns}-leave ${Ns}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),js)}))),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,Ts.cloneElement)(e,{className:As(t,e.props.className)}):null}}var Is=rn;function zs(){return zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zs.apply(this,arguments)}const Rs=$.exports,Fs=eo,Bs=e=>{const t=0===e.totalFileCount,n=Vo("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),i=1===e.itemsPerRow?71:200,r={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},o=Object.keys(e.files);e.recoveredState&&o.sort(((t,n)=>e.files[n].isGhost-e.files[t].isGhost));const s=function(e,t){const n=[];let i=[];return e.forEach((e=>{i.length<t?i.push(e):(n.push(i),i=[e])})),i.length&&n.push(i),n}(o,e.itemsPerRow);return(0,Wo.h)(Go,{class:n,role:"list",data:s,renderRow:t=>(0,Wo.h)("div",{role:"presentation",key:t[0]},t.map((t=>(0,Wo.h)(Ko,qo({key:t,uppy:e.uppy},r,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:i})},Ps=Jo,Us=ns,Hs=ls,$s=ps,Ws=ws,qs=Ss,Vs=Ls,Ks=900,Gs=700,Ys=576,Qs=400;var Zs=rn,Js=J.exports,Xs=se,ea=Yn;function ta(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var na=0;function ia(e){return"__private_"+na+++"_"+e}const ra=ri.exports,oa=qi.exports,sa=gr,aa=br,la=Qn,ca=Cr,ua=Ar,pa=Zn,da=Xr,ha=function(e){const t=0===e.totalFileCount,n=e.containerWidth>Ys,i=Rs({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>Ys,"uppy-size--lg":e.containerWidth>Gs,"uppy-size--xl":e.containerWidth>Ks,"uppy-size--height-md":e.containerHeight>Qs,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let r=1;e.containerWidth>Ks?r=5:e.containerWidth>Gs?r=4:e.containerWidth>Ys&&(r=3);const o=e.showSelectedFiles&&!t,s=e.recoveredState?Object.keys(e.recoveredState.files).length:null,a=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null;return(0,Is.h)("div",{className:i,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&Fs(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,Is.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,Is.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,Is.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,Is.h)("span",{"aria-hidden":"true"},"×")),(0,Is.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,Is.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),o&&(0,Is.h)(Ws,e),s&&(0,Is.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,Is.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,Is.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,Is.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,Is.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,Is.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,Is.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,Is.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},a>0?e.i18n("recoveredXFiles",{smart_count:a}):e.i18n("recoveredAllFiles"))),o?(0,Is.h)(Bs,zs({},e,{itemsPerRow:r})):(0,Is.h)(Ps,zs({},e,{isSizeMD:n})),(0,Is.h)(Vs,null,e.showAddFilesPanel?(0,Is.h)(Us,zs({key:"AddFiles"},e,{isSizeMD:n})):null),(0,Is.h)(Vs,null,e.fileCardFor?(0,Is.h)(qs,zs({key:"FileCard"},e)):null),(0,Is.h)(Vs,null,e.activePickerPanel?(0,Is.h)(Hs,zs({key:"Picker"},e)):null),(0,Is.h)(Vs,null,e.showFileEditor?(0,Is.h)($s,zs({key:"Editor"},e)):null),(0,Is.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))))},fa={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."}}},ma=ua.default||ua,ga=9,va=27;function ba(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}function ya(){return(0,Zs.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Zs.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var xa=ia("openFileEditorWhenFilesAdded"),wa=ia("attachRenderFunctionToTarget"),_a=ia("isTargetSupported"),ka=ia("getAcquirers"),Ea=ia("getProgressIndicators"),Ma=ia("getEditors");class Ca extends Js.UIPlugin{constructor(e,t){var n;super(e,t),n=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,n=e.title||t,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"editor"!==i){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const r={id:t,name:n,type:i},o=this.getPluginState().targets.slice();return o.push(r),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),n=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:n,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return ta(this,Ma)[Ma](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),n=ta(this,Ma)[Ma](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();ta(this,Ma)[Ma](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=ba();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:i,isClosing:r}=n.getPluginState();if(i||r)return;const{promise:o,resolve:s}=ba();if(n.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),n.opts.animateOpenClose){n.setPluginState({isClosing:!0});const e=()=>{n.setPluginState({isHidden:!0,isClosing:!1}),n.superFocus.cancel(),n.savedActiveElement.focus(),n.el.removeEventListener("animationend",e,!1),s()};n.el.addEventListener("animationend",e,!1)}else n.setPluginState({isHidden:!0}),n.superFocus.cancel(),n.savedActiveElement.focus(),s();var a;(document.removeEventListener("keydown",n.handleKeyDownInModal),t)&&(n.opts.browserBackButtonClose&&null!=(a=history.state)&&a[n.modalName]&&history.back());return n.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log(`[Dashboard] Dark mode is ${t?"on":"off"}`),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const n=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",n):this.uppy.emit("dashboard:file-edit-complete",n),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:n,height:i}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${n} / ${i}`,"debug"),this.setPluginState({containerWidth:n,containerHeight:i,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=la(this.el.querySelectorAll(pa));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{e.keyCode===va&&this.requestCloseModal(e),e.keyCode===ga&&ea.forModal(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=la(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=la(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,n;e.preventDefault(),e.stopPropagation();const i=(()=>{let t=!0;return this.uppy.iteratePlugins((n=>{null!=n.canHandleRootDrop&&n.canHandleRootDrop(e)&&(t=!0)})),t})(),r=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!i&&!r||this.opts.disabled||this.opts.disableLocalFiles&&(r||!i)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)},this.handleDragLeave=e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let i=!1;const r=await ca(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),i||(this.uppy.info(e.message,"error"),i=!0)}});r.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(r)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{e.keyCode===ga&&ea.forInline(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,xa,{writable:!0,value:e=>{const t=e[0];this.canEditFile(t)&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=aa(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("file-editor:complete",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",ta(this,xa)[xa])},this.removeEvents=()=>{const e=aa(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("file-editor:complete",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",ta(this,xa)[xa])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=0===this.uppy.getState().info.length,i=!this.opts.inline;n&&(i||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,wa,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,_a,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,ka,{writable:!0,value:ma((e=>e.filter((e=>"acquirer"===e.type&&ta(this,_a)[_a](e))).map(ta(this,wa)[wa])))}),Object.defineProperty(this,Ea,{writable:!0,value:ma((e=>e.filter((e=>"progressindicator"===e.type)).map(ta(this,wa)[wa])))}),Object.defineProperty(this,Ma,{writable:!0,value:ma((e=>e.filter((e=>"editor"===e.type)).map(ta(this,wa)[wa])))}),this.render=e=>{const t=this.getPluginState(),{files:n,capabilities:i,allowNewUpload:r}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m}=this.uppy.getObjectOfFilesPerState(),g=ta(this,ka)[ka](t.targets),v=ta(this,Ea)[Ea](t.targets),b=ta(this,Ma)[Ma](t.targets);let y;return y="auto"===this.opts.theme?i.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),ha({state:e,isHidden:t.isHidden,files:n,newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m,totalFileCount:Object.keys(n).length,totalProgress:e.totalProgress,allowNewUpload:r,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:v,editors:b,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:n,allowMultipleUploadBatches:i}=this.uppy.opts;(n||i)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:r}=this.opts;r&&this.mount(r,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use(ra,{id:`${this.id}:StatusBar`,target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(oa,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(sa,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log(`[Dashboard] Dark mode is ${o?"on":"off"}`),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${(0,Xs.nanoid)()}`,this.defaultLocale=fa;const i={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:ya,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...i,...t},this.i18nInit(),this.superFocus=da(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}Ca.VERSION="2.4.3",Gn.exports=Ca;var Oa={exports:{}},Da="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function Sa(){}function Ta(){}Ta.resetWarningCache=Sa;Oa.exports=function(){function e(e,t,n,i,r,o){if(o!==Da){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ta,resetWarningCache:Sa};return n.PropTypes=n,n}();const Aa=Oa.exports,Na=J.exports.Uppy,ja=Aa.instanceOf(Na).isRequired,La=Aa.arrayOf(Aa.string),Ia=Aa.shape({strings:Aa.object,pluralize:Aa.func}),za=Aa.shape({id:Aa.string.isRequired,name:Aa.string.isRequired,placeholder:Aa.string}),Ra=Aa.oneOfType([Aa.arrayOf(za),Aa.func]),Fa=Aa.oneOfType([Aa.string,Aa.number]);var Ba={uppy:ja,locale:Ia,dashboard:{uppy:ja,inline:Aa.bool,plugins:La,width:Fa,height:Fa,showProgressDetails:Aa.bool,hideUploadButton:Aa.bool,hideProgressAfterFinish:Aa.bool,note:Aa.string,metaFields:Ra,proudlyDisplayPoweredByUppy:Aa.bool,disableStatusBar:Aa.bool,disableInformer:Aa.bool,disableThumbnailGenerator:Aa.bool,thumbnailWidth:Aa.number,locale:Ia}};const Pa=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ua=/^(aria-|data-)/;var Ha=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return Ua.test(t)||Pa.includes(t)})));var $a=function(e,t){return Object.keys(e.props).some((n=>!((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(e.validProps,n)&&e.props[n]!==t[n]))};const Wa=t,qa=Gn.exports,Va=Ba.dashboard,Ka=Ha,Ga=$a,Ya=Wa.createElement;class Qa extends Wa.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Ga(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(qa,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Ka(this.props),Ya("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Qa.propTypes=Va,Qa.defaultProps={inline:!0};const Za=t,Ja=Oa.exports,Xa=Gn.exports,el=Ba.dashboard,tl=Ha,nl=$a,il=Za.createElement;class rl extends Za.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(nl(this,e)){const e={...this.props,onRequestCloseModal:this.props.onRequestClose};delete e.uppy,this.plugin.setOptions(e)}e.open&&!this.props.open?this.plugin.closeModal():!e.open&&this.props.open&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DashboardModal",...this.props,onRequestCloseModal:this.props.onRequestClose};t.target||(t.target=this.container),delete t.uppy,e.use(Xa,t),this.plugin=e.getPlugin(t.id),this.props.open&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=tl(this.props),il("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}rl.propTypes={target:"undefined"!=typeof window?Ja.instanceOf(window.HTMLElement):Ja.any,open:Ja.bool,onRequestClose:Ja.func,closeModalOnClickOutside:Ja.bool,disablePageScrollWhenModalOpen:Ja.bool,...el};var ol={exports:{}},sl=J.exports,al=rn;const ll=Qn,cl=eo,ul=Cr,pl={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class dl extends sl.UIPlugin{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const i=await ul(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});i.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=pl;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=cl(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=ll(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,n;e.preventDefault(),e.stopPropagation();const{types:i}=e.dataTransfer,r=i.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!r||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)}handleDragLeave(e){var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,al.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,al.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,al.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,al.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,al.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,al.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e=`uppy-u-reset\n uppy-DragDrop-container\n ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n `,t={width:this.opts.width,height:this.opts.height};return(0,al.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,al.h)("div",{className:"uppy-DragDrop-inner"},dl.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}dl.VERSION="2.1.2";const hl=t,fl=ol.exports=dl,ml=Ba,gl=Ha,vl=$a,bl=hl.createElement;class yl extends hl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(vl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DragDrop",...this.props,target:this.container};delete t.uppy,e.use(fl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=gl(this.props),bl("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}yl.propTypes={uppy:ml.uppy,locale:ml.locale},yl.defaultProps={};var xl=yl,wl={exports:{}},_l=rn,kl=J.exports;class El extends kl.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,_l.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},(0,_l.h)("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),(0,_l.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}El.VERSION="2.1.2",wl.exports=El;const Ml=t,Cl=Oa.exports,Ol=wl.exports,Dl=Ba.uppy,Sl=Ha,Tl=$a,Al=Ml.createElement;class Nl extends Ml.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Tl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:ProgressBar",...this.props,target:this.container};delete t.uppy,e.use(Ol,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Sl(this.props),Al("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Nl.propTypes={uppy:Dl,fixed:Cl.bool,hideAfterFinish:Cl.bool},Nl.defaultProps={};const jl=t,Ll=Oa.exports,Il=ri.exports,zl=Ba.uppy,Rl=Ha,Fl=$a,Bl=jl.createElement;class Pl extends jl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Fl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:StatusBar",...this.props,target:this.container};delete t.uppy,e.use(Il,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Rl(this.props),Bl("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Pl.propTypes={uppy:zl,hideAfterFinish:Ll.bool,showProgressDetails:Ll.bool},Pl.defaultProps={};var Ul={exports:{}},Hl=J.exports,$l=rn;const Wl=Qn,ql={strings:{chooseFiles:"Choose files"}};class Vl extends Hl.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=ql;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=Wl(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,$l.h)("div",{className:"uppy-FileInput-container"},(0,$l.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,$l.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Vl.VERSION="2.1.2",Ul.exports=Vl;const Kl=Oa.exports,Gl=t,Yl=Ul.exports,Ql=Ba,Zl=Gl.createElement;class Jl extends Gl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:FileInput",...this.props,target:this.container};delete t.uppy,e.use(Yl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return Zl("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}Jl.propTypes={uppy:Ql.uppy,locale:Ql.locale,pretty:Kl.bool,inputName:Kl.string},Jl.defaultProps={};const{useEffect:Xl,useRef:ec}=t,tc=J.exports.Uppy;const nc=5*1024*1024,ic={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxFileSize:nc,allowedFileTypes:[".jpg",".jpeg",".png",".gif"]}},rc={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxFileSize:100*1024*1024,allowedFileTypes:[".mp4",".mov",".avi",".mkv"]}},oc={formData:!0,fieldName:"blob"},sc=[{title:"Upload",key:"local"},{title:"Link",key:"link"},{title:"Unsplash",key:"unsplash"}];function ac(){return ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ac.apply(this,arguments)}function lc(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var cc={exports:{}},uc={},pc=Object.getOwnPropertySymbols,dc=Object.prototype.hasOwnProperty,hc=Object.prototype.propertyIsEnumerable;function fc(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var mc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=fc(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))dc.call(n,s)&&(r[s]=n[s]);if(pc){i=pc(n);for(var a=0;a<i.length;a++)hc.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},gc=mc,vc=60103,bc=60106;
|
|
17
|
+
*/function xe(e,t){const n=/\$/g,i="$$$$";let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,i)),r=ye(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var we=ve("apply");function _e(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ke=class{constructor(e){Object.defineProperty(this,we,{value:_e}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(me(this,we)[we],this):me(this,we)[we](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!be(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return xe(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return xe(n,t)}},Ee="Expected a function",Me=0/0,Ce="[object Symbol]",Oe=/^\s+|\s+$/g,De=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,Ae=parseInt,Ne="object"==typeof B&&B&&B.Object===Object&&B,je="object"==typeof self&&self&&self.Object===Object&&self,Le=Ne||je||Function("return this")(),Ie=Object.prototype.toString,ze=Math.max,Re=Math.min,Fe=function(){return Le.Date.now()};function Be(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Ee);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=Fe();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?Re(n,o-(e-c)):n}(e))}function v(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function b(){var e=Fe(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Ue(t)||0,Pe(n)&&(u=!!n.leading,o=(p="maxWait"in n)?ze(Ue(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},b.flush=function(){return void 0===a?s:v(Fe())},b}function Pe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ue(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Ie.call(e)==Ce}(e))return Me;if(Pe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Pe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Oe,"");var n=Se.test(e);return n||Te.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Me:+e}var He=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(Ee);return Pe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Be(e,t,{leading:i,maxWait:t,trailing:r})};var $e=0;function We(e){return"__private_"+$e+++"_"+e}var qe=We("publish");class Ve{constructor(){Object.defineProperty(this,qe,{value:Ke}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,qe)[qe](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Ve.VERSION="2.1.1";var Ge=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}};const Ye=Ge,Qe={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Ze(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Je=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Ze(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Ze(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t};var Xe=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[i,r]=n.split(".");return i=parseInt(i,10),r=parseInt(r,10),i<15||15===i&&r<15063||(i>18||18===i&&r>=18218)};var et=se,tt=X,nt=ae;let it,rt;function ot(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var st=0;function at(e){return"__private_"+st+++"_"+e}const lt=ke,ct=function(){var e={},t=e._fns={};return e.emit=function(e,n,i,r,o,s,a){var l=function(e){var n=t[e]?t[e]:[],i=e.indexOf(":"),r=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var l=o[s];if("*"===l&&(n=n.concat(t[l])),2===r.length&&r[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var i=0,r=t.length;for(;i<r&&t[i];i++)t[i].event=e,t[i].apply(t[i],n)}(e,l,[n,i,r,o,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function i(){n.apply(this,arguments),e.off(t,i)}))},e.off=function(e,t){var n=[];if(e&&t)for(var i=this._fns[e],r=0,o=i?i.length:0;r<o;r++)i[r]!==t&&n.push(i[r]);n.length?this._fns[e]=n:delete this._fns[e]},e},ut=He,pt=function(){return new Ve},dt=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Ye(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Qe?Qe[n]:"application/octet-stream"},ht=Ge,ft=Je,mt=Xe,gt=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"},vt={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var bt=at("plugins"),yt=at("restricter"),xt=at("storeUnsubscribe"),wt=at("emitter"),_t=at("preProcessors"),kt=at("uploaders"),Et=at("postProcessors"),Mt=at("informAndEmit"),Ct=at("checkRequiredMetaFieldsOnFile"),Ot=at("checkRequiredMetaFields"),Dt=at("assertNewUploadAllowed"),St=at("checkAndCreateFileStateObject"),Tt=at("startIfAutoProceed"),At=at("addListeners"),Nt=at("updateOnlineStatus"),jt=at("createUpload"),Lt=at("getUpload"),It=at("removeUpload"),zt=at("runUpload");it=Symbol.for("uppy test: getPlugins"),rt=Symbol.for("uppy test: createUpload");class Rt{constructor(e){Object.defineProperty(this,zt,{value:Gt}),Object.defineProperty(this,It,{value:Kt}),Object.defineProperty(this,Lt,{value:Vt}),Object.defineProperty(this,jt,{value:qt}),Object.defineProperty(this,At,{value:Wt}),Object.defineProperty(this,Tt,{value:$t}),Object.defineProperty(this,St,{value:Ht}),Object.defineProperty(this,Dt,{value:Ut}),Object.defineProperty(this,Ot,{value:Pt}),Object.defineProperty(this,Ct,{value:Bt}),Object.defineProperty(this,Mt,{value:Ft}),Object.defineProperty(this,bt,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,yt,{writable:!0,value:void 0}),Object.defineProperty(this,xt,{writable:!0,value:void 0}),Object.defineProperty(this,wt,{writable:!0,value:ct()}),Object.defineProperty(this,_t,{writable:!0,value:new Set}),Object.defineProperty(this,kt,{writable:!0,value:new Set}),Object.defineProperty(this,Et,{writable:!0,value:new Set}),Object.defineProperty(this,Nt,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=vt;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:nt.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:pt(),logger:tt.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=tt.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=ut(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:mt(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ot(this,yt)[yt]=new nt.Restricter((()=>this.opts),this.i18n),ot(this,xt)[xt]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),ot(this,At)[At]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];ot(this,wt)[wt].emit(e,...n)}on(e,t){return ot(this,wt)[wt].on(e,t),this}once(e,t){return ot(this,wt)[wt].once(e,t),this}off(e,t){return ot(this,wt)[wt].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new lt([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((i=>{const r={...t[i]};r.progress={...r.progress,...e},n[i]=r})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ot(this,_t)[_t].add(e)}removePreProcessor(e){return ot(this,_t)[_t].delete(e)}addPostProcessor(e){ot(this,Et)[Et].add(e)}removePostProcessor(e){return ot(this,Et)[Et].delete(e)}addUploader(e){ot(this,kt)[kt].add(e)}removeUploader(e){return ot(this,kt)[kt].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...n[e].meta,...t};n[e]={...n[e],meta:i},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),i=Object.values(e),r=i.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=i.filter((e=>!e.progress.uploadStarted)),s=i.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=i.filter((e=>e.progress.uploadStarted)),l=i.filter((e=>e.isPaused)),c=i.filter((e=>e.progress.uploadComplete)),u=i.filter((e=>e.error)),p=r.filter((e=>!e.isPaused)),d=i.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:r,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===i.length&&0===d.length,isAllErrored:!!n&&u.length===i.length,isAllPaused:0!==r.length&&l.length===r.length,isUploadInProgress:r.length>0,isSomeGhost:i.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return ot(this,yt)[yt].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){ot(this,Dt)[Dt](e);const{files:t}=this.getState();let n=ot(this,St)[St](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),ot(this,Tt)[Tt](),n.id}addFiles(e){ot(this,Dt)[Dt]();const t={...this.getState().files},n=[],i=[];for(let r=0;r<e.length;r++)try{let i=ot(this,St)[St](t,e[r]);t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e[r].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),t[i.id]=i,n.push(i)}catch(e){e.isRestriction||i.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&ot(this,Tt)[Tt](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:n,currentUploads:i}=this.getState(),r={...n},o={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{n[e]&&(s[e]=n[e],delete r[e])})),Object.keys(o).forEach((e=>{const t=i[e].fileIDs.filter(a);0!==t.length?o[e]={...i[e],fileIDs:t}:delete o[e]}));const l={currentUploads:o,files:r};0===Object.keys(r).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=ot(this,jt)[jt](t,{forceAllowNewUpload:!0});return ot(this,zt)[zt](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=ot(this,jt)[jt]([e],{forceAllowNewUpload:!0});return ot(this,zt)[zt](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,i=n.reduce(((e,t)=>e+t.progress.percentage),0),r=Math.round(i/t*100);return void this.setState({totalProgress:r})}let i=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const r=i/t.length;i+=r*n.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),n.forEach((e=>{o+=r*(e.progress.percentage||0)/100}));let s=0===i?0:Math.round(o/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}.`+" Please verify that the plugin was imported and spelled correctly.")}const n=new e(this,t),i=n.id;if(!i)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const r=this.getPlugin(i);if(r){const e=`Already found a plugin named '${r.id}'. `+`Tried to use: '${i}'.\n`+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),n.type in ot(this,bt)[bt]?ot(this,bt)[bt][n.type].push(n):ot(this,bt)[bt][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(ot(this,bt)[bt])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[it](e){return ot(this,bt)[bt][e]}iteratePlugins(e){Object.values(ot(this,bt)[bt]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=ot(this,bt)[bt][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),ot(this,xt)[xt](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",ot(this,Nt)[Nt]),window.removeEventListener("offline",ot(this,Nt)[Nt]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ot(this,zt)[zt](e):(ot(this,It)[It](e),Promise.reject(new Error("Nonexistent upload")))}[rt](){return ot(this,jt)[jt](...arguments)}addResultData(e,t){if(!ot(this,Lt)[Lt](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),i={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:i}})}upload(){var e;null!=(e=ot(this,bt)[bt].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>ot(this,yt)[yt].validateMinNumberOfFiles(t))).catch((e=>{throw ot(this,Mt)[Mt](e),e})).then((()=>{if(!ot(this,Ot)[Ot](t))throw new nt.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),i=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||i.push(t.id)}));const r=ot(this,jt)[jt](i);return ot(this,zt)[zt](r)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Ft(e,t){const{message:n,details:i=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:i},"error",this.opts.infoTimeout),this.log(`${n} ${i}`.trim(),"error")}function Bt(e){const{missingFields:t,error:n}=ot(this,yt)[yt].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function Pt(e){let t=!0;for(const n of Object.values(e))ot(this,Ct)[Ct](n)||(t=!1);return t}function Ut(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new nt.RestrictionError(this.i18n("noMoreFilesAllowed"));throw ot(this,Mt)[Mt](t,e),t}}function Ht(e,t){const n=dt(t),i=gt(n,t),r=ht(i).extension,o=Boolean(t.isRemote),s=ft({...t,type:n});if(this.checkIfFileAlreadyExists(s)){const e=new nt.RestrictionError(this.i18n("noDuplicates",{fileName:i}));throw ot(this,Mt)[Mt](e,t),e}const a=t.meta||{};a.name=i,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:s,name:i,extension:r||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new nt.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));ot(this,yt)[yt].validate(c,t)}catch(e){throw ot(this,Mt)[Mt](e,c),e}return c}function $t(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Wt(){const e=(e,t,n)=>{let i=e.message||"Unknown error";e.details&&(i+=` ${e.details}`),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:n})};this.on("error",e),this.on("upload-error",((t,n,i)=>{if(e(n,t,i),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),ot(this,Mt)[Mt](e)}else ot(this,Mt)[Mt](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:ot(this,Et)[Et].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&ot(this,Ct)[Ct](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",ot(this,Nt)[Nt]),window.addEventListener("offline",ot(this,Nt)[Nt]),setTimeout(ot(this,Nt)[Nt],3e3))}function qt(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,et.nanoid)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[o]:{fileIDs:e,step:0,result:{}}}}),o}function Vt(e){const{currentUploads:t}=this.getState();return t[e]}function Kt(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Gt(e){let{currentUploads:t}=this.getState(),n=t[e];const i=n.step||0,r=[...ot(this,_t)[_t],...ot(this,kt)[kt],...ot(this,Et)[Et]];try{for(let o=i;o<r.length&&n;o++){const i=r[o],s={...n,step:o};this.setState({currentUploads:{...t,[e]:s}}),await i(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw ot(this,It)[It](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const i=n.fileIDs.map((e=>this.getFile(e))),r=i.filter((e=>!e.error)),o=i.filter((e=>e.error));await this.addResultData(e,{successful:r,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),ot(this,It)[It](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}Rt.VERSION="2.3.1";var Yt,Qt,Zt,Jt,Xt,en,tn,nn=Rt,rn={},on={},sn=[],an=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ln(e,t){for(var n in t)e[n]=t[n];return e}function cn(e){var t=e.parentNode;t&&t.removeChild(e)}function un(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Yt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return pn(e,s,i,r,null)}function pn(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++Zt:r};return null==r&&null!=Qt.vnode&&Qt.vnode(o),o}function dn(e){return e.children}function hn(e,t){this.props=e,this.context=t}function fn(e,t){if(null==t)return e.__?fn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?fn(e):null}function mn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return mn(e)}}function gn(e){(!e.__d&&(e.__d=!0)&&Xt.push(e)&&!vn.__r++||en!==Qt.debounceRendering)&&((en=Qt.debounceRendering)||setTimeout)(vn)}function vn(){for(var e;vn.__r=Xt.length;)e=Xt.sort((function(e,t){return e.__v.__b-t.__v.__b})),Xt=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=ln({},r)).__v=r.__v+1,Mn(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?fn(r):o,r.__h),Cn(n,r),r.__e!=o&&mn(r)))}))}function bn(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,v=i&&i.__k||sn,b=v.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?pn(null,h,null,null,h):Array.isArray(h)?pn(dn,{children:h},null,null,null):h.__b>0?pn(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=v[u])||d&&h.key==d.key&&h.type===d.type)v[u]=void 0;else for(p=0;p<b;p++){if((d=v[p])&&h.key==d.key&&h.type===d.type){v[p]=void 0;break}d=null}Mn(e,h,d=d||on,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=yn(h,l,e):l=xn(e,h,d,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=fn(d))}for(n.__e=m,u=b;u--;)null!=v[u]&&("function"==typeof n.type&&null!=v[u].__e&&v[u].__e==n.__d&&(n.__d=fn(i,u+1)),Dn(v[u],v[u]));if(g)for(u=0;u<g.length;u++)On(g[u],g[++u],g[++u])}function yn(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?yn(i,t,n):xn(n,i,i,r,i.__e,t));return t}function xn(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function wn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||an.test(t)?n:n+"px"}function _n(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||wn(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||wn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?En:kn,o):e.removeEventListener(t,o?En:kn,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function kn(e){this.l[e.type+!1](Qt.event?Qt.event(e):e)}function En(e){this.l[e.type+!0](Qt.event?Qt.event(e):e)}function Mn(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,v,b,y,x,w,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Qt.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,v=(c=_.contextType)&&i[c.__c],b=c?v?v.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(g,b):(t.__c=u=new hn(g,b),u.constructor=_,u.render=Sn),v&&v.sub(u),u.props=g,u.state||(u.state={}),u.context=b,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=ln({},u.__s)),ln(u.__s,_.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,b)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}if(u.context=b,u.props=g,u.__v=t,u.__P=e,y=Qt.__r,x=0,"prototype"in _&&_.prototype.render)u.state=u.__s,u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context);else do{u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(i=ln(ln({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),w=null!=c&&c.type===dn&&null==c.key?c.props.children:c,bn(e,Array.isArray(w)?w:[w],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&Yt.call(e.childNodes),c=(p=n.props||on).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||_n(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||_n(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,bn(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&fn(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&cn(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==p.value)&&_n(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&_n(e,"checked",f,p.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=Qt.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Qt.__e(e,t,n)}}function Cn(e,t){Qt.__c&&Qt.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Qt.__e(e,t.__v)}}))}function On(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Qt.__e(e,n)}}function Dn(e,t,n){var i,r;if(Qt.unmount&&Qt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||On(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Qt.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Dn(i[r],t,"function"!=typeof e.type);n||null==e.__e||cn(e.__e),e.__=e.__e=e.__d=void 0}function Sn(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var i,r,o;Qt.__&&Qt.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Mn(t,e=(!i&&n||t).__k=un(dn,null,[e]),r||on,on,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?Yt.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),Cn(o,e)}Yt=sn.slice,Qt={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},Zt=0,Jt=function(e){return null!=e&&void 0===e.constructor},hn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ln({},this.state),"function"==typeof e&&(e=e(ln({},n),this.props)),e&&ln(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),gn(this))},hn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gn(this))},hn.prototype.render=dn,Xt=[],vn.__r=0,tn=0,rn.Component=hn,rn.Fragment=dn,rn.cloneElement=function(e,t,n){var i,r,o,s=ln({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?Yt.call(arguments,2):n),pn(e.type,s,i||e.key,r||e.ref,null)},rn.createContext=function(e,t){var n={__c:t="__cC"+tn++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(gn)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},rn.createElement=un,rn.createRef=function(){return{current:null}},rn.h=un,rn.hydrate=function e(t,n){Tn(t,n,e)},rn.isValidElement=Jt,rn.options=Qt,rn.render=Tn,rn.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n};var An=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE};const Nn=An;var jn=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):Nn(e)?e:null};var Ln=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};const In=ke;var zn=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new In([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}},Rn=rn;function Fn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bn=0;function Pn(e){return"__private_"+Bn+++"_"+e}const Un=jn,Hn=Ln,$n=zn;var Wn=Pn("updateUI");class qn extends $n{constructor(){super(...arguments),Object.defineProperty(this,Wn,{writable:!0,value:void 0})}mount(e,t){const n=t.id,i=Un(e);if(i){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Fn(this,Wn)[Wn]=function(e){let t=null,n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=r,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,Rn.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,Rn.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||Hn(t)||"ltr",this.onMount(),this.el}let r;if("object"==typeof e&&e instanceof qn)r=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(r=e)}))}if(r)return this.uppy.log(`Installing ${n} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. "+"Please check that you're not specifying a React Component instead of a plugin. "+"If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: "+"run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. "+"Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. "+"(see https://github.com/transloadit/uppy/issues/1042)\n\n"+"If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=Fn(this,Wn))[Wn])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Vn=qn;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=X;e.exports=nn;const i=Vn;t.UIPlugin=i;const r=zn;t.BasePlugin=r;const o=nn;t.Uppy=o;const s=Vn,a=zn;o.Uppy=o,o.UIPlugin=s,o.BasePlugin=a,o.debugLogger=n.debugLogger}(J,J.exports);var Kn=P(J.exports),Gn={exports:{}},Yn={},Qn=Array.from,Zn=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];var Jn=function(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.forInline=function(e,t,n){null===t||ii(e,t,n)},Yn.forModal=ii;const Xn=Qn,ei=Zn,ti=Jn;function ni(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function ii(e,t,n){const i=ti(n,t),r=Xn(i.querySelectorAll(ei)),o=r.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(i)?ni(e,r):e.shiftKey&&0===o?function(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,r):e.shiftKey||o!==r.length-1||ni(e,r)}var ri={exports:{}};var oi=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)};var si=function(e){return e.bytesTotal-e.bytesUploaded},ai={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},li={};const ci=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}};var ui=function(e){const t=ci(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`};Object.defineProperty(li,"__esModule",{value:!0}),li.CancelBtn=function(e){const{i18n:t,uppy:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,pi.h)("g",{fill:"none",fillRule:"evenodd"},(0,pi.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,pi.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},li.DoneBtn=function(e){const{i18n:t,doneButtonHandler:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))},li.LoadingSpinner=bi,li.PauseResumeButton=function(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:o}=e,s=n(t?"resume":"pause");return(0,pi.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:r?t?o.resumeAll():o.pauseAll():o.cancelAll()},"data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,pi.h)("g",{fill:"none",fillRule:"evenodd"},(0,pi.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,pi.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},li.ProgressBarComplete=function(e){const{i18n:t}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,pi.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},li.ProgressBarError=function(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,pi.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),(0,pi.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${n("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),(0,pi.h)(xi,{i18n:n,complete:i,numUploads:r})))},li.ProgressBarProcessing=function(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,o=Math.round(100*n),s=`·`;return(0,pi.h)("div",{className:"uppy-StatusBar-content"},(0,pi.h)(bi,null),"determinate"===i?`${o}% ${s} `:"",r)},li.ProgressBarUploading=function(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:o,isAllComplete:s,isAllPaused:a,newFiles:l,numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,startUpload:f}=e,m=l&&o;if(!o||s)return null;const g=t(a?"paused":"uploading");return(0,pi.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},a?null:(0,pi.h)(bi,null),(0,pi.h)("div",{className:"uppy-StatusBar-status"},(0,pi.h)("div",{className:"uppy-StatusBar-statusPrimary"},n?`${g}: ${i}%`:g),a||m||!r?null:n?(0,pi.h)(_i,{numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,i18n:t}):(0,pi.h)(xi,{i18n:t,complete:u,numUploads:c}),m?(0,pi.h)(wi,{i18n:t,newFiles:l,startUpload:f}):null))},li.ProgressDetails=yi,li.RetryBtn=function(e){const{i18n:t,uppy:n}=e;return(0,pi.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll(),"data-uppy-super-focusable":!0},(0,pi.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,pi.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},li.UploadBtn=function(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:o,isSomeGhost:s,startUpload:a}=e,l=di("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===mi.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=r(t&&n&&!i?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,pi.h)("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:a,disabled:s,"data-uppy-super-focusable":!0},c)};var pi=rn;const di=$.exports,hi=le,fi=ui,mi=ai,gi=`·`,vi=()=>` ${gi} `;function bi(){return(0,pi.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,pi.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function yi(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:o,i18n:s}=e,a=t>1;return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},a&&s("filesUploadedOfTotal",{complete:n,smart_count:t}),(0,pi.h)("span",{className:"uppy-StatusBar-additionalInfo"},a&&vi(),s("dataUploadedOfTotal",{complete:hi(i),total:hi(r)}),vi(),s("xTimeLeft",{time:fi(o)})))}function xi(e){const{i18n:t,complete:n,numUploads:i}=e;return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function wi(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=di("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,pi.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),(0,pi.h)("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}const _i=He(yi,500,{leading:!0,trailing:!0});var ki=rn,Ei=li;const Mi=$.exports,Ci=ai,Oi=function(e){const t=[];let n,i;for(const{progress:r}of Object.values(e)){const{preprocess:e,postprocess:o}=r;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,n)=>e+n/t.length),0)}},{STATE_ERROR:Di,STATE_WAITING:Si,STATE_PREPROCESSING:Ti,STATE_UPLOADING:Ai,STATE_POSTPROCESSING:Ni,STATE_COMPLETE:ji}=Ci;var Li=function(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:o,error:s,hideUploadButton:a,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:u,recoveredState:p,uploadState:d,totalProgress:h,files:f,supportsUploadProgress:m,hideAfterFinish:g,isSomeGhost:v,doneButtonHandler:b,isUploadStarted:y,i18n:x,startUpload:w,uppy:_,isAllComplete:k,showProgressDetails:E,numUploads:M,complete:C,totalSize:O,totalETA:D,totalUploadedSize:S}=e,T=function(){switch(d){case Ni:case Ti:{const e=Oi(f);return"determinate"===e.mode?100*e.value:h}case Di:return null;case Ai:return m?h:null;default:return h}}(),A=function(){if(p)return!1;switch(d){case Si:return a||0===t;case ji:return g;default:return!1}}(),N=null!=T?T:100,j=!s&&t&&!i&&!r&&n&&!a,L=!c&&d!==Si&&d!==ji,I=o&&!l&&d===Ai,z=s&&!k&&!u,R=b&&d===ji,F=Mi("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case Ni:case Ti:{const{mode:e}=Oi(f);return"indeterminate"===e}case Ai:return!m;default:return!1}}()}),B=Mi("uppy-StatusBar",`is-${d}`,{"has-ghosts":v});return(0,ki.h)("div",{className:B,"aria-hidden":A},(0,ki.h)("div",{className:F,style:{width:`${N}%`},role:"progressbar","aria-label":`${N}%`,"aria-valuetext":`${N}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":T}),(()=>{switch(d){case Ti:case Ni:return(0,ki.h)(Ei.ProgressBarProcessing,{progress:Oi(f)});case ji:return(0,ki.h)(Ei.ProgressBarComplete,{i18n:x});case Di:return(0,ki.h)(Ei.ProgressBarError,{error:s,i18n:x,numUploads:M,complete:C});case Ai:return(0,ki.h)(Ei.ProgressBarUploading,{i18n:x,supportsUploadProgress:m,totalProgress:h,showProgressDetails:E,isUploadStarted:y,isAllComplete:k,isAllPaused:r,newFiles:t,numUploads:M,complete:C,totalUploadedSize:S,totalSize:O,totalETA:D,startUpload:w});default:return null}})(),(0,ki.h)("div",{className:"uppy-StatusBar-actions"},p||j?(0,ki.h)(Ei.UploadBtn,{newFiles:t,isUploadStarted:y,recoveredState:p,i18n:x,isSomeGhost:v,startUpload:w,uploadState:d}):null,z?(0,ki.h)(Ei.RetryBtn,{i18n:x,uppy:_}):null,I?(0,ki.h)(Ei.PauseResumeButton,{isAllPaused:r,i18n:x,isAllComplete:k,resumableUploads:o,uppy:_}):null,L?(0,ki.h)(Ei.CancelBtn,{i18n:x,uppy:_}):null,R?(0,ki.h)(Ei.DoneBtn,{i18n:x,doneButtonHandler:b}):null))},Ii=J.exports;const zi=oi,Ri=si,Fi=Ln,Bi=ai,Pi=Li,Ui={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Hi(e){const t=function(e){let t=0;return e.forEach((e=>{t+=zi(e.progress)})),t}(e);if(0===t)return 0;const n=e.reduce(((e,t)=>e+Ri(t.progress)),0);return Math.round(n/t*10)/10}function $i(e,t,n,i){if(e&&!t)return Bi.STATE_ERROR;if(t)return Bi.STATE_COMPLETE;if(n)return Bi.STATE_WAITING;let r=Bi.STATE_WAITING;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return Bi.STATE_UPLOADING;t.preprocess&&r!==Bi.STATE_UPLOADING&&(r=Bi.STATE_PREPROCESSING),t.postprocess&&r!==Bi.STATE_UPLOADING&&r!==Bi.STATE_PREPROCESSING&&(r=Bi.STATE_POSTPROCESSING)}return r}class Wi extends Ii.UIPlugin{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=Ui;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:n,allowNewUpload:i,totalProgress:r,error:o,recoveredState:s}=e,{newFiles:a,startedFiles:l,completeFiles:c,inProgressNotPausedFiles:u,isUploadStarted:p,isAllComplete:d,isAllErrored:h,isAllPaused:f,isUploadInProgress:m,isSomeGhost:g}=this.uppy.getObjectOfFilesPerState(),v=s?Object.values(n):a,b=Hi(u),y=!!t.resumableUploads,x=!1!==t.uploadProgress;let w=0,_=0;return l.forEach((e=>{w+=e.progress.bytesTotal||0,_+=e.progress.bytesUploaded||0})),Pi({error:o,uploadState:$i(o,d,s,e.files||{}),allowNewUpload:i,totalProgress:r,totalSize:w,totalUploadedSize:_,isAllComplete:!1,isAllPaused:f,isAllErrored:h,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:g,recoveredState:s,complete:c.length,newFiles:v.length,numUploads:l.length,totalETA:b,files:n,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:y,supportsUploadProgress:x,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;Fi(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Wi.VERSION="2.2.2",ri.exports=Wi;var qi={exports:{}},Vi=rn;const Ki=300;class Gi extends Vi.Component{constructor(){super(...arguments),this.ref=(0,Vi.createRef)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,Ki)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,Ki)}render(){const{children:e}=this.props;return(0,Vi.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}var Yi=Gi,Qi=rn;function Zi(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=n=>{e.refs[t]=n})}function Ji(e){const t={};for(let o=0;o<e.length;o++)if(null!=e[o]){t[(n=e[o],i=o.toString(36),r=void 0,null!=(r=null==n?void 0:n.key)?r:i)]=e[o]}var n,i,r;return t}function Xi(e,t){e=e||{},t=t||{};const n=n=>t.hasOwnProperty(n)?t[n]:e[n],i={};let r=[];for(const n in e)t.hasOwnProperty(n)?r.length&&(i[n]=r,r=[]):r.push(n);const o={};for(const e in t){if(i.hasOwnProperty(e))for(let t=0;t<i[e].length;t++){const r=i[e][t];o[i[e][t]]=n(r)}o[e]=n(e)}for(let e=0;e<r.length;e++)o[r[e]]=n(r[e]);return o}class er extends Qi.Component{constructor(e,t){super(e,t),this.refs={},this.state={children:Ji((0,Qi.toChildArray)((0,Qi.toChildArray)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=Ji((0,Qi.toChildArray)(e.children)||[]),n=this.state.children;let i;for(i in this.setState((e=>({children:Xi(e.children,t)}))),t)if(t.hasOwnProperty(i)){const e=n&&n.hasOwnProperty(i);t[i]&&e&&this.currentlyTransitioningKeys[i]?(this.keysToEnter.push(i),this.keysToAbortLeave.push(i)):!t[i]||e||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(i in n)if(n.hasOwnProperty(i)){const e=t&&t.hasOwnProperty(i);!n[i]||e||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const n=Ji((0,Qi.toChildArray)(this.props.children)||[]);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{const t=(i={},r=this.state.children,Object.assign(i,r));delete t[e],this.setState({children:t})}var i,r}render(e,t){let{childFactory:n,transitionLeave:i,transitionName:r,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:a,transitionEnterTimeout:l,transitionAppearTimeout:c,component:u,...p}=e,{children:d}=t;const h=[];for(const e in d)if(d.hasOwnProperty(e)){const t=d[e];if(t){const i=Zi(this,e),r=(0,Qi.cloneElement)(n(t),{ref:i,key:e});h.push(r)}}return(0,Qi.h)(u,p,h)}}er.defaultProps={component:"span",childFactory:e=>e};var tr=rn,nr=J.exports;const ir=Yi,rr=er;class or extends nr.UIPlugin{constructor(e,t){super(e,t),this.render=e=>(0,tr.h)("div",{className:"uppy uppy-Informer"},(0,tr.h)(rr,null,e.info.map((e=>(0,tr.h)(ir,{key:e.message},(0,tr.h)("p",{role:"alert"},e.message," ",e.details&&(0,tr.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}or.VERSION="2.1.1",qi.exports=or;var sr={exports:{}};!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n="undefined"!=typeof self?self:B;const i="undefined"!=typeof navigator,r=i&&"undefined"==typeof HTMLImageElement,o=!(void 0===B||"undefined"==typeof process||!process.versions||!process.versions.node),s=n.Buffer,a=!!s,l=e=>void 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(l).length)}function u(e){let t=new Error(e);throw delete t.stack,t}function p(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const d=e=>String.fromCharCode.apply(null,e),h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class f{static from(e,t){return e instanceof this&&e.le===t?e:new f(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof f){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&u("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else u("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=f){return e instanceof DataView||e instanceof f?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||u("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new f(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return n=this.getUint8Array(e,t),h?h.decode(n):a?Buffer.from(n).toString("utf8"):decodeURIComponent(escape(d(n)));var n}getLatin1String(e=0,t=this.byteLength){let n=this.getUint8Array(e,t);return d(n)}getUnicodeString(e=0,t=this.byteLength){const n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return d(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function m(e,t){u(`${e} '${t}' was not loaded, try using full build of exifr.`)}class g extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||m(this.kind,e),t&&(e in t||function(e,t){u(`Unknown ${e} '${t}'.`)}(this.kind,e),t[e].enabled||m(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var v=new g("file parser"),b=new g("segment parser"),y=new g("file reader");let x=n.fetch;const w="Invalid input argument";function _(e,t){return(n=e).startsWith("data:")||n.length>1e4?E(e,t,"base64"):o&&e.includes("://")?k(e,t,"url",M):o?E(e,t,"fs"):i?k(e,t,"url",M):void u(w);var n}async function k(e,t,n,i){return y.has(n)?E(e,t,n):i?async function(e,t){let n=await t(e);return new f(n)}(e,i):void u(`Parser ${n} is not loaded`)}async function E(e,t,n){let i=new(y.get(n))(e,t);return await i.read(),i}const M=e=>x(e).then((e=>e.arrayBuffer())),C=e=>new Promise(((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}));class O extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function D(e,t,n){let i=new O;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function S(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}const T=new Map,A=new Map,N=new Map,j=37500,L=37510,I=33723,z=34675,R=34665,F=34853,P=40965,U=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],H=["jfif","xmp","icc","iptc","ihdr"],$=["tiff",...H],W=["ifd0","ifd1","exif","gps","interop"],q=[...$,...W],V=["makerNote","userComment"],K=["translateKeys","translateValues","reviveValues","multiSegment"],G=[...K,"sanitize","mergeOutput","silentErrors"];class Y{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Q extends Y{get needed(){return this.enabled||this.deps.size>0}constructor(e,n,i,r){if(super(),t(this,"enabled",!1),t(this,"skip",new Set),t(this,"pick",new Set),t(this,"deps",new Set),t(this,"translateKeys",!1),t(this,"translateValues",!1),t(this,"reviveValues",!1),this.key=e,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=W.includes(e),this.canBeFiltered&&(this.dict=T.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:u(`Invalid options argument: ${i}`)}applyInheritables(e){let t,n;for(t of K)n=e[t],void 0!==n&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(i=o.indexOf(n),-1===i&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,ne(this.pick,this.deps)):this.enabled&&this.pick.size>0&&ne(this.pick,this.deps)}}var Z={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},J=new Map;class X extends Y{static useCached(e){let t=J.get(e);return void 0!==t||(t=new this(e),J.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):u(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=i?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=Z[e];for(e of q)this[e]=new Q(e,Z[e],void 0,this)}setupFromTrue(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=!0;for(e of q)this[e]=new Q(e,!0,void 0,this)}setupFromArray(e){let t;for(t of U)this[t]=Z[t];for(t of G)this[t]=Z[t];for(t of V)this[t]=Z[t];for(t of q)this[t]=new Q(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,W)}setupFromObject(e){let t;for(t of(W.ifd0=W.ifd0||W.image,W.ifd1=W.ifd1||W.thumbnail,Object.assign(this,e),U))this[t]=te(e[t],Z[t]);for(t of G)this[t]=te(e[t],Z[t]);for(t of V)this[t]=te(e[t],Z[t]);for(t of $)this[t]=new Q(t,Z[t],e[t],this);for(t of W)this[t]=new Q(t,Z[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,W,q),!0===e.tiff?this.batchEnableWithBool(W,!0):!1===e.tiff?this.batchEnableWithUserValue(W,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,W):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,W)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;let t=ee(e,n);for(let[e,n]of t)ne(this[e].pick,n),this[e].enabled=!0}else if(t&&t.length){let e=ee(t,n);for(let[t,n]of e)ne(this[t].skip,n)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(j):t.skip.add(j),this.userComment?t.deps.add(L):t.skip.add(L),n.enabled||e.skip.add(700),i.enabled||e.skip.add(I),r.enabled||e.skip.add(z)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;i.needed&&(t.deps.add(P),e.deps.add(P)),t.needed&&e.deps.add(R),n.needed&&e.deps.add(F),this.tiff.enabled=W.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of W)this[e].finalizeFilters()}get onlyTiff(){return!H.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of $)this[e].enabled&&!b.has(e)&&m("segment parser",e)}}function ee(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=T.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function te(e,t){return void 0!==e?e:void 0!==t?t:void 0}function ne(e,t){for(let n of t)e.add(n)}t(X,"default",Z);class ie{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=X.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?_(e,t):i&&!r&&e instanceof HTMLImageElement?_(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new f(e):i&&e instanceof Blob?k(e,t,"blob",C):void u(w)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of v)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),u("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),c(n=e)?void 0:n;var n}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let n=await t.parse();t.assignToOutput(e,n)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,n=b.get("tiff",e);var i;if(t.tiff?i={start:0,type:"tiff"}:t.jpeg&&(i=await this.fileParser.getOrFindSegment("tiff")),void 0===i)return;let r=await this.fileParser.ensureSegmentChunk(i),o=this.parsers.tiff=new n(r,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function re(e,t){let n=new ie(t);return await n.read(e),n.parse()}var oe=Object.freeze({__proto__:null,parse:re,Exifr:ie,fileParsers:v,segmentParsers:b,fileReaders:y,tagKeys:T,tagValues:A,tagRevivers:N,createDictionary:D,extendDictionary:S,fetchUrlAsArrayBuffer:M,readBlobAsArrayBuffer:C,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X});class se{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new X({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof f?e:new f(e)}constructor(e,n={},i){t(this,"errors",[]),t(this,"raw",new Map),t(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=N.get(t),i=A.get(t),r=T.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,c={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),c[t]=o;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}function ae(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function le(e){return e>=224&&e<=239}function ce(e,t,n){for(let[i,r]of b)if(r.canHandle(e,t,n))return i}t(se,"headerLength",4),t(se,"type",void 0),t(se,"multiSegment",!1),t(se,"canHandle",(()=>!1));class ue extends class{constructor(e,n,i){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){u(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):u("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=n,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(b.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(...e){super(...e),t(this,"appSegments",[]),t(this,"jpegSegments",[]),t(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(b.keyList())):(e=void 0===e?b.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&b.has(e))),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(e=0,t){this.setupSegmentFinderArgs(t);let{file:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some((e=>{let t=b.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment})),i&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:c,wanted:u,remaining:p,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(n=l.getUint8(e+1),le(n)){if(i=l.getUint16(e+2),r=ce(l,e,i),r&&u.has(r)&&(o=b.get(r),s=o.findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!c&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(r)):p.delete(r),0===p.size)))break;d.recordUnknownSegments&&(s=se.findPosition(l,e),s.marker=n,this.unknownSegments.push(s)),e+=i+1}else if(ae(n)){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)n=e[s],i=n[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map((([e,t])=>{let n=b.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}t(ue,"type","jpeg"),v.set("jpeg",ue);const pe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class de extends se{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t];i=new Set(i);let o=i.size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=pe[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&u(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&u(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return""===(a=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(a=i.getString(e,o)).trim())?void 0:a;var a;if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o),n=s;for(let i=0;i<o;i++)t[i]=this.parseTagValue(r,e),e+=n;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:u(`Invalid tiff type ${e}`)}}}class he extends de{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&u("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&u(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,p(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(R),this.interopOffset=t.get(P),this.gpsOffset=t.get(F),this.xmp=t.get(700),this.iptc=t.get(I),this.icc=t.get(z),this.options.sanitize&&(t.delete(R),t.delete(P),t.delete(F),t.delete(700),t.delete(I),t.delete(z)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,p(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(P)),this.makerNote=e.get(j),this.userComment=e.get(L),this.options.sanitize&&(e.delete(P),e.delete(j),e.delete(L)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",fe(...e.get(2),e.get(1))),e.set("longitude",fe(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of W)if(e=this[t],!c(e))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function fe(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}t(he,"type","tiff"),t(he,"headerLength",10),b.set("tiff",he);var me=Object.freeze({__proto__:null,default:oe,Exifr:ie,fileParsers:v,segmentParsers:b,fileReaders:y,tagKeys:T,tagValues:A,tagRevivers:N,createDictionary:D,extendDictionary:S,fetchUrlAsArrayBuffer:M,readBlobAsArrayBuffer:C,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X,parse:re});const ge={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},ve=Object.assign({},ge,{firstChunkSize:4e4,gps:[1,2,3,4]}),be=Object.assign({},ge,{tiff:!1,ifd1:!0,mergeOutput:!1}),ye=Object.assign({},ge,{firstChunkSize:4e4,ifd0:[274]});async function xe(e){let t=new ie(ye);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const we=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){let t=navigator.userAgent;if(t.includes("iPad")||t.includes("iPhone")){let n=t.match(/OS (\d+)_(\d+)/);if(n){let[,t,i]=n,r=Number(t)+.1*Number(i);e.rotateCanvas=r<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,n]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<15}if(t.includes("Chrome/")){let[,n]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<81}else if(t.includes("Firefox/")){let[,n]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<77}}class _e extends f{constructor(...e){super(...e),t(this,"ranges",new ke),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t;t=a?s.allocUnsafe(e):new Uint8Array(e);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class ke{constructor(){t(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter((t=>Ee(e,t.offset,i)||Ee(e,t.end,i)));if(r.length>0){e=Math.min(e,...r.map((e=>e.offset))),i=Math.max(i,...r.map((e=>e.end))),t=i-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((e=>!r.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some((t=>t.offset<=e&&n<=t.end))}}function Ee(e,t,n){return e<=t&&t<=n}class Me extends _e{constructor(e,n){super(0),t(this,"chunksRead",0),this.input=e,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}y.set("blob",class extends Me{async readWhole(){this.chunked=!1;let e=await C(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await C(i);return this.set(r,e,!0)}}),e.Exifr=ie,e.Options=X,e.allFormatters=G,e.chunkedProps=U,e.createDictionary=D,e.default=me,e.extendDictionary=S,e.fetchUrlAsArrayBuffer=M,e.fileParsers=v,e.fileReaders=y,e.gps=async function(e){let t=new ie(ve);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}},e.gpsOnlyOptions=ve,e.inheritables=K,e.orientation=xe,e.orientationOnlyOptions=ye,e.otherSegments=H,e.parse=re,e.readBlobAsArrayBuffer=C,e.rotation=async function(t){let n=await xe(t);return Object.assign({canvas:e.rotateCanvas,css:e.rotateCss},we[n])},e.rotations=we,e.segmentParsers=b,e.segments=$,e.segmentsAndBlocks=q,e.tagKeys=T,e.tagRevivers=N,e.tagValues=A,e.thumbnail=async function(e){let t=new ie(be);await t.read(e);let n=await t.extractThumbnail();return n&&a?s.from(n):n},e.thumbnailOnlyOptions=be,e.thumbnailUrl=async function(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}},e.tiffBlocks=W,e.tiffExtractables=V,Object.defineProperty(e,"__esModule",{value:!0})}(sr.exports);const ar=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;var lr=function(e,t,n){var i,r;const o=ar.exec(e),s=null!=(i=null!=(r=t.mimeType)?r:null==o?void 0:o[1])?i:"plain/text";let a;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);a=[t]}else a=[decodeURIComponent(o[3])];return n?new File(a,t.name||"",{type:s}):new Blob(a,{type:s})};var cr=J.exports,ur=sr.exports;const pr=lr,dr=function(e){return e.startsWith("blob:")},hr=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)},fr={strings:{generatingThumbnails:"Generating thumbnails..."}};class mr extends cr.UIPlugin{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&hr(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&dr(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!dr(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=fr;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,n){const i=URL.createObjectURL(e.data),r=new Promise(((e,t)=>{const n=new Image;n.src=i,n.addEventListener("load",(()=>{URL.revokeObjectURL(i),e(n)})),n.addEventListener("error",(e=>{URL.revokeObjectURL(i),t(e.error||new Error("Could not create thumbnail"))}))})),o=(0,ur.rotation)(e.data).catch((()=>1));return Promise.all([r,o]).then((e=>{let[i,r]=e;const o=this.getProportionalDimensions(i,t,n,r.deg),s=this.rotateImage(i,r),a=this.resizeImage(s,o.width,o.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,n,i){let r=e.width/e.height;return 90!==i&&270!==i||(r=e.height/e.width),null!=t?{width:t,height:Math.round(t/r)}:null!=n?{width:Math.round(n*r),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/r)}}resizeImage(e,t,n){let i=this.protect(e),r=Math.ceil(Math.log2(i.width/t));r<1&&(r=1);let o=t*2**(r-1),s=n*2**(r-1);const a=2;for(;r--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),i=e,o=Math.round(o/a),s=Math.round(s/a)}return i}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return hr(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}mr.VERSION="2.2.2";var gr=mr;mr.prototype.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((i=>{e.toBlob(i,t,n)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>pr(e.toDataURL(t,n),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))},mr.prototype.protect=function(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),o=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,o=Math.round(r/t)),o>i&&(o=i,r=Math.round(t*o)),e.width>r){const t=document.createElement("canvas");return t.width=r,t.height=o,t.getContext("2d").drawImage(e,0,0,r,o),t}return e},mr.prototype.rotateImage=function(e,t){let n=e.width,i=e.height;90!==t.deg&&270!==t.deg||(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const o=r.getContext("2d");return o.translate(n/2,i/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r};const vr=An;var br=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&vr(e)?[e]:null};var yr=function e(t,n,i,r){let{onSuccess:o}=r;t.readEntries((r=>{const s=[...n,...r];r.length?queueMicrotask((()=>{e(t,s,i,{onSuccess:o})})):o(s)}),(e=>{i(e),o(n)}))};const xr=yr;function wr(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),i=await new Promise((e=>{xr(n,[],t,{onSuccess:n=>e(n.map((e=>wr(e,t))))})}));yield*i}}}async function*_r(e,t){if("file"===e.kind){const n=await e.getFile();null!==n&&(n.relativePath=t?`${t}/${e.name}`:null,yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*_r(n,`${t}/${e.name}`)}const kr=Qn;const Er=async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{var n;return{lastResortFile:e.getAsFile(),entry:null!=(n=await(null==e.getAsFileSystemHandle?void 0:e.getAsFileSystemHandle()))?n:wr(e.webkitGetAsEntry(),t)}})));for(const{lastResortFile:e,entry:i}of n)if(null!=i)try{yield*_r(i,"")}catch(n){e?yield e:t(n)}},Mr=function(e){const t=kr(e.files);return Promise.resolve(t)};var Cr=async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const i of Er(e,n))t.push(i);return t}catch{return Mr(e)}},Or=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Dr(e,t){return e===t||!(!Or(e)||!Or(t))}function Sr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}var Tr=Object.freeze({__proto__:null,default:function(e,t){var n;void 0===t&&(t=Sr);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}}}),Ar=U(Tr),Nr="Expected a function",jr=0/0,Lr="[object Symbol]",Ir=/^\s+|\s+$/g,zr=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Br=parseInt,Pr="object"==typeof B&&B&&B.Object===Object&&B,Ur="object"==typeof self&&self&&self.Object===Object&&self,Hr=Pr||Ur||Function("return this")(),$r=Object.prototype.toString,Wr=Math.max,qr=Math.min,Vr=function(){return Hr.Date.now()};function Kr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Gr(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&$r.call(e)==Lr}(e))return jr;if(Kr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ir,"");var n=Rr.test(e);return n||Fr.test(e)?Br(e.slice(2),n?2:8):zr.test(e)?jr:+e}var Yr=function(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(Nr);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=Vr();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?qr(n,o-(e-c)):n}(e))}function v(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function b(){var e=Vr(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Gr(t)||0,Kr(n)&&(u=!!n.leading,o=(p="maxWait"in n)?Wr(Gr(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},b.flush=function(){return void 0===a?s:v(Vr())},b};const Qr=Yr,Zr=Zn,Jr=Jn;var Xr=function(){let e=!1;return Qr(((t,n)=>{const i=Jr(t,n),r=i.contains(document.activeElement);if(r&&e)return;const o=i.querySelector("[data-uppy-super-focusable]");if(!r||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=i.querySelector(Zr);null==t||t.focus({preventScroll:!0}),e=!1}}),260)};var eo=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)},to=rn;var no=function(e){const t={color:"#838999",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,to.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,to.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return"text"===n?{color:"#5a5e69",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}:"image"===n?{color:"#686de0",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,to.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,to.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,to.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===n?{color:"#068dbb",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}:"video"===n?{color:"#19af67",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}:"application"===n&&"pdf"===i?{color:"#e25149",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}:"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)?{color:"#00C469",icon:(0,to.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,to.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t},io=rn;const ro=no;var oo=function(e){const{file:t}=e;if(t.preview)return(0,io.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=ro(t.type);return(0,io.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,io.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),(0,io.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,io.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))},so=rn;var ao=function(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>((e,t)=>{const n=t.filter((t=>t.id===e));return n[0].name})(e,r))).join(", ");return(0,so.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,so.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))},lo=rn;const co=oo,uo=ao,po=no;var ho=rn;function fo(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function mo(e){return(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":fo(e),title:fo(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function go(e){let{children:t}=e;return(0,ho.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function vo(e){let{progress:t}=e;const n=2*Math.PI*15;return(0,ho.h)("g",null,(0,ho.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,ho.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}const bo="...";var yo=rn;const xo=le,wo=function(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=bo.length+1)return`${e.slice(0,t-1)}…`;const n=t-bo.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+bo+e.slice(-r)},_o=ao,ko=e=>{let{file:t,onClick:n}=e;return t.error?(0,yo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};var Eo=rn;const Mo=function(e,t){return t||(t="Copy the URL below"),new Promise((n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch(e){return document.body.removeChild(i),r()}}))};function Co(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:o,onClick:s}=e;return!n&&i&&i.length>0||!n&&r(t)?(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,Eo.h)("g",{fillRule:"evenodd"},(0,Eo.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,Eo.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,Eo.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function Oo(e){let{i18n:t,onClick:n,file:i}=e;return(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,Eo.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,Eo.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function Do(e){const{i18n:t}=e;return(0,Eo.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{Mo(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},(0,Eo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,Eo.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}var So=function(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:a,i18n:l,toggleFileCard:c,openFileEditor:u}=e;return(0,Eo.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,Eo.h)(Co,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,n.id):u(n)}}),s&&n.uploadURL?(0,Eo.h)(Do,{file:n,uppy:t,i18n:l}):null,a?(0,Eo.h)(Oo,{i18n:l,file:n,uppy:t,onClick:()=>e.uppy.removeFile(n.id,"removed-by-user")}):null)},To=rn;const Ao=$.exports,No=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0},jo=function(e){return(0,lo.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:po(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&(0,lo.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},(0,lo.h)("span",{hidden:!0},e.file.meta.name)),(0,lo.h)(co,{file:e.file}),(0,lo.h)(uo,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},Lo=function(e){return e.file.progress.uploadStarted?e.isUploaded?(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,ho.h)(go,null,(0,ho.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,ho.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,ho.h)(mo,e,(0,ho.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,ho.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,ho.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,ho.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,ho.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,ho.h)(mo,e,(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage}),e.file.isPaused?(0,ho.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,ho.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,ho.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,ho.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,ho.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,ho.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage})))):(0,ho.h)(mo,e,(0,ho.h)(go,null,(0,ho.h)(vo,{progress:e.file.progress.percentage}),(0,ho.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null},Io=function(e){const{file:t}=e;return(0,yo.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,yo.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:n}=e.file.meta;return(0,yo.h)("div",{className:"uppy-Dashboard-Item-name",title:n},wo(n,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,yo.h)(ko,{file:e.file,onClick:()=>alert(e.file.error)})),(0,yo.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:n}=e.file.remote,i=`·`;return t?(0,yo.h)("div",{className:"uppy-Dashboard-Item-author"},(0,yo.h)("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},wo(t.name,13)),n?(0,yo.h)(yo.Fragment,null,` ${i} `,n,` ${i} `):null):null})(e),(e=>e.file.size&&(0,yo.h)("div",{className:"uppy-Dashboard-Item-statusSize"},xo(e.file.size)))(e),(e=>e.file.isGhost&&(0,yo.h)("span",null," • ",(0,yo.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,yo.h)(_o,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},zo=So;class Ro extends To.Component{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!No(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,i=e.progress.uploadStarted||t,r=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let a=(this.props.individualCancellation||!r)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(a=!0);const l=Ao({"uppy-Dashboard-Item":!0,"is-inprogress":r&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,To.h)("div",{className:l,id:`uppy_${e.id}`,role:this.props.role},(0,To.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,To.h)(jo,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,To.h)(Lo,{uppy:this.props.uppy,file:e,error:o,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,To.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,To.h)(Io,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,To.h)(zo,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:a,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:i,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}var Fo=Ro,Bo=rn;function Po(){return Po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Po.apply(this,arguments)}const Uo={position:"relative",width:"100%",minHeight:"100%"},Ho={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class $o extends Bo.Component{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:n,renderRow:i,overscanCount:r=10,...o}=e;const{offset:s,height:a}=this.state;let l=Math.floor(s/n),c=Math.floor(a/n);r&&(l=Math.max(0,l-l%r),c+=r);const u=l+c+4,p=t.slice(l,u),d={...Uo,height:t.length*n},h={...Ho,top:l*n};return(0,Bo.h)("div",Po({onScroll:this.handleScroll},o),(0,Bo.h)("div",{role:"presentation",style:d},(0,Bo.h)("div",{role:"presentation",style:h},p.map(i))))}}var Wo=rn;function qo(){return qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qo.apply(this,arguments)}const Vo=$.exports,Ko=Fo,Go=$o;var Yo=rn;let Qo;Qo=Symbol.for("uppy test: disable unused locale key warning");class Zo extends Yo.Component{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,Yo.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>(0,Yo.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,Yo.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Yo.h)("g",{fill:"none",fillRule:"evenodd"},(0,Yo.h)("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),(0,Yo.h)("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),(0,Yo.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const n=this.props.acquirers.length;return(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===n},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),n=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,r=i.charAt(0).toUpperCase()+i.slice(1);return(0,Yo.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${r}`,{browseFiles:t,browseFolders:n,browse:t}):this.props.i18nArray(`dropPaste${r}`,{browseFiles:t,browseFolders:n,browse:t}))},this.renderAcquirer=e=>(0,Yo.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,Yo.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),(0,Yo.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const n=[...e],i=n.splice(e.length-2,e.length);return(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),n.map((e=>this.renderAcquirer(e))),(0,Yo.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))}}[Qo](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,Yo.h)("span",null,(0,Yo.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Yo.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,Yo.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,Yo.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),(0,Yo.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,Yo.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}var Jo=Zo,Xo=rn;const es=$.exports,ts=Jo;var ns=e=>(0,Xo.h)("div",{className:es("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},(0,Xo.h)("div",{className:"uppy-DashboardContent-bar"},(0,Xo.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,Xo.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,Xo.h)(ts,e));var is=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()},rs=rn;const ss=$.exports,as=is;var ls=function(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:o,uppy:s}=e;return(0,rs.h)("div",{className:ss("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:as,onDragLeave:as,onDrop:as,onPaste:as},(0,rs.h)("div",{className:"uppy-DashboardContent-bar"},(0,rs.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),(0,rs.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),(0,rs.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))},cs=rn;const us=$.exports;var ps=function(e){const t=e.files[e.fileCardFor];return(0,cs.h)("div",{className:us("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,cs.h)("div",{className:"uppy-DashboardContent-bar"},(0,cs.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,cs.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,cs.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),(0,cs.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,cs.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},ds=rn;const hs="error",fs="waiting",ms="preprocessing",gs="uploading",vs="postprocessing",bs="complete",ys="paused";function xs(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:a,processingFiles:l}=e;const c=function(e,t,n,i){if(void 0===i&&(i={}),e)return hs;if(t)return bs;if(n)return ys;let r=fs;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return gs;t.preprocess&&r!==gs&&(r=ms),t.postprocess&&r!==gs&&r!==ms&&(r=vs)}return r}(r,i,o,t);switch(c){case"uploading":return n("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:a.length});case"complete":return n("uploadComplete")}}var ws=function(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:a}=e;return a&&r&&(a=e.totalFileCount<e.maxNumberOfFiles),(0,ds.h)("div",{className:"uppy-DashboardContent-bar"},n||i?(0,ds.h)("div",null):(0,ds.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,ds.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,ds.h)(xs,e)),a?(0,ds.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,ds.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,ds.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,ds.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,ds.h)("div",null))},_s=rn,ks=se;const Es=$.exports,Ms=no,Cs=is,Os=oo;class Ds extends _s.Component{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((n=>{let{formState:i}=n;return{formState:{...i,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{const e=this.props.files[this.props.fileCardFor];this.props.uppy.emit("file-editor:cancel",e),this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const n=`uppy-Dashboard-FileCard-input-${e.id}`,i=this.props.requiredMetaFields.includes(e.id);return(0,_s.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,_s.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:n},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:i,form:this.form.id},_s.h):(0,_s.h)("input",{className:t.text,id:n,form:this.form.id,type:e.type||"text",required:i,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],n=this.getMetaFields()||[],i={};n.forEach((e=>{i[e.id]=t.meta[e.id]||""})),this.state={formState:i},this.form.id=(0,ks.nanoid)()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return(0,_s.h)("div",{className:Es("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:Cs,onDragLeave:Cs,onDrop:Cs,onPaste:Cs},(0,_s.h)("div",{className:"uppy-DashboardContent-bar"},(0,_s.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:(0,_s.h)("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),(0,_s.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:Ms(e.type).color}},(0,_s.h)(Os,{file:e}),t&&(0,_s.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),(0,_s.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,_s.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),(0,_s.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}var Ss=Ds,Ts=rn;const As=$.exports,Ns="uppy-transition-slideDownUp",js=250;class Ls extends Ts.Component{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,n=(0,Ts.toChildArray)(e.children)[0];if(t===n)return null;const i={cachedChildren:n};n&&!t&&(i.className=`${Ns}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Ns}-enter ${Ns}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),js)}))),t&&!n&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=`${Ns}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${Ns}-leave ${Ns}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),js)}))),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,Ts.cloneElement)(e,{className:As(t,e.props.className)}):null}}var Is=rn;function zs(){return zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zs.apply(this,arguments)}const Rs=$.exports,Fs=eo,Bs=e=>{const t=0===e.totalFileCount,n=Vo("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),i=1===e.itemsPerRow?71:200,r={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},o=Object.keys(e.files);e.recoveredState&&o.sort(((t,n)=>e.files[n].isGhost-e.files[t].isGhost));const s=function(e,t){const n=[];let i=[];return e.forEach((e=>{i.length<t?i.push(e):(n.push(i),i=[e])})),i.length&&n.push(i),n}(o,e.itemsPerRow);return(0,Wo.h)(Go,{class:n,role:"list",data:s,renderRow:t=>(0,Wo.h)("div",{role:"presentation",key:t[0]},t.map((t=>(0,Wo.h)(Ko,qo({key:t,uppy:e.uppy},r,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:i})},Ps=Jo,Us=ns,Hs=ls,$s=ps,Ws=ws,qs=Ss,Vs=Ls,Ks=900,Gs=700,Ys=576,Qs=400;var Zs=rn,Js=J.exports,Xs=se,ea=Yn;function ta(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var na=0;function ia(e){return"__private_"+na+++"_"+e}const ra=ri.exports,oa=qi.exports,sa=gr,aa=br,la=Qn,ca=Cr,ua=Ar,pa=Zn,da=Xr,ha=function(e){const t=0===e.totalFileCount,n=e.containerWidth>Ys,i=Rs({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>Ys,"uppy-size--lg":e.containerWidth>Gs,"uppy-size--xl":e.containerWidth>Ks,"uppy-size--height-md":e.containerHeight>Qs,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let r=1;e.containerWidth>Ks?r=5:e.containerWidth>Gs?r=4:e.containerWidth>Ys&&(r=3);const o=e.showSelectedFiles&&!t,s=e.recoveredState?Object.keys(e.recoveredState.files).length:null,a=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null;return(0,Is.h)("div",{className:i,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&Fs(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,Is.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,Is.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,Is.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,Is.h)("span",{"aria-hidden":"true"},"×")),(0,Is.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,Is.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),o&&(0,Is.h)(Ws,e),s&&(0,Is.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,Is.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,Is.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,Is.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,Is.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,Is.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,Is.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,Is.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},a>0?e.i18n("recoveredXFiles",{smart_count:a}):e.i18n("recoveredAllFiles"))),o?(0,Is.h)(Bs,zs({},e,{itemsPerRow:r})):(0,Is.h)(Ps,zs({},e,{isSizeMD:n})),(0,Is.h)(Vs,null,e.showAddFilesPanel?(0,Is.h)(Us,zs({key:"AddFiles"},e,{isSizeMD:n})):null),(0,Is.h)(Vs,null,e.fileCardFor?(0,Is.h)(qs,zs({key:"FileCard"},e)):null),(0,Is.h)(Vs,null,e.activePickerPanel?(0,Is.h)(Hs,zs({key:"Picker"},e)):null),(0,Is.h)(Vs,null,e.showFileEditor?(0,Is.h)($s,zs({key:"Editor"},e)):null),(0,Is.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))))},fa={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."}}},ma=ua.default||ua,ga=9,va=27;function ba(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}function ya(){return(0,Zs.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Zs.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var xa=ia("openFileEditorWhenFilesAdded"),wa=ia("attachRenderFunctionToTarget"),_a=ia("isTargetSupported"),ka=ia("getAcquirers"),Ea=ia("getProgressIndicators"),Ma=ia("getEditors");class Ca extends Js.UIPlugin{constructor(e,t){var n;super(e,t),n=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,n=e.title||t,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"editor"!==i){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const r={id:t,name:n,type:i},o=this.getPluginState().targets.slice();return o.push(r),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),n=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:n,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return ta(this,Ma)[Ma](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),n=ta(this,Ma)[Ma](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();ta(this,Ma)[Ma](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=ba();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:i,isClosing:r}=n.getPluginState();if(i||r)return;const{promise:o,resolve:s}=ba();if(n.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),n.opts.animateOpenClose){n.setPluginState({isClosing:!0});const e=()=>{n.setPluginState({isHidden:!0,isClosing:!1}),n.superFocus.cancel(),n.savedActiveElement.focus(),n.el.removeEventListener("animationend",e,!1),s()};n.el.addEventListener("animationend",e,!1)}else n.setPluginState({isHidden:!0}),n.superFocus.cancel(),n.savedActiveElement.focus(),s();var a;(document.removeEventListener("keydown",n.handleKeyDownInModal),t)&&(n.opts.browserBackButtonClose&&null!=(a=history.state)&&a[n.modalName]&&history.back());return n.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log(`[Dashboard] Dark mode is ${t?"on":"off"}`),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const n=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",n):this.uppy.emit("dashboard:file-edit-complete",n),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:n,height:i}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${n} / ${i}`,"debug"),this.setPluginState({containerWidth:n,containerHeight:i,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=la(this.el.querySelectorAll(pa));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{e.keyCode===va&&this.requestCloseModal(e),e.keyCode===ga&&ea.forModal(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=la(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=la(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,n;e.preventDefault(),e.stopPropagation();const i=(()=>{let t=!0;return this.uppy.iteratePlugins((n=>{null!=n.canHandleRootDrop&&n.canHandleRootDrop(e)&&(t=!0)})),t})(),r=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!i&&!r||this.opts.disabled||this.opts.disableLocalFiles&&(r||!i)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)},this.handleDragLeave=e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let i=!1;const r=await ca(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),i||(this.uppy.info(e.message,"error"),i=!0)}});r.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(r)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{e.keyCode===ga&&ea.forInline(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,xa,{writable:!0,value:e=>{const t=e[0];this.canEditFile(t)&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=aa(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("file-editor:complete",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",ta(this,xa)[xa])},this.removeEvents=()=>{const e=aa(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("file-editor:complete",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",ta(this,xa)[xa])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=0===this.uppy.getState().info.length,i=!this.opts.inline;n&&(i||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,wa,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,_a,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,ka,{writable:!0,value:ma((e=>e.filter((e=>"acquirer"===e.type&&ta(this,_a)[_a](e))).map(ta(this,wa)[wa])))}),Object.defineProperty(this,Ea,{writable:!0,value:ma((e=>e.filter((e=>"progressindicator"===e.type)).map(ta(this,wa)[wa])))}),Object.defineProperty(this,Ma,{writable:!0,value:ma((e=>e.filter((e=>"editor"===e.type)).map(ta(this,wa)[wa])))}),this.render=e=>{const t=this.getPluginState(),{files:n,capabilities:i,allowNewUpload:r}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m}=this.uppy.getObjectOfFilesPerState(),g=ta(this,ka)[ka](t.targets),v=ta(this,Ea)[Ea](t.targets),b=ta(this,Ma)[Ma](t.targets);let y;return y="auto"===this.opts.theme?i.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),ha({state:e,isHidden:t.isHidden,files:n,newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m,totalFileCount:Object.keys(n).length,totalProgress:e.totalProgress,allowNewUpload:r,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:v,editors:b,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:n,allowMultipleUploadBatches:i}=this.uppy.opts;(n||i)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:r}=this.opts;r&&this.mount(r,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use(ra,{id:`${this.id}:StatusBar`,target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(oa,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(sa,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log(`[Dashboard] Dark mode is ${o?"on":"off"}`),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${(0,Xs.nanoid)()}`,this.defaultLocale=fa;const i={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:ya,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...i,...t},this.i18nInit(),this.superFocus=da(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}Ca.VERSION="2.4.3",Gn.exports=Ca;var Oa={exports:{}},Da="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function Sa(){}function Ta(){}Ta.resetWarningCache=Sa;Oa.exports=function(){function e(e,t,n,i,r,o){if(o!==Da){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ta,resetWarningCache:Sa};return n.PropTypes=n,n}();const Aa=Oa.exports,Na=J.exports.Uppy,ja=Aa.instanceOf(Na).isRequired,La=Aa.arrayOf(Aa.string),Ia=Aa.shape({strings:Aa.object,pluralize:Aa.func}),za=Aa.shape({id:Aa.string.isRequired,name:Aa.string.isRequired,placeholder:Aa.string}),Ra=Aa.oneOfType([Aa.arrayOf(za),Aa.func]),Fa=Aa.oneOfType([Aa.string,Aa.number]);var Ba={uppy:ja,locale:Ia,dashboard:{uppy:ja,inline:Aa.bool,plugins:La,width:Fa,height:Fa,showProgressDetails:Aa.bool,hideUploadButton:Aa.bool,hideProgressAfterFinish:Aa.bool,note:Aa.string,metaFields:Ra,proudlyDisplayPoweredByUppy:Aa.bool,disableStatusBar:Aa.bool,disableInformer:Aa.bool,disableThumbnailGenerator:Aa.bool,thumbnailWidth:Aa.number,locale:Ia}};const Pa=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ua=/^(aria-|data-)/;var Ha=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return Ua.test(t)||Pa.includes(t)})));var $a=function(e,t){return Object.keys(e.props).some((n=>!((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(e.validProps,n)&&e.props[n]!==t[n]))};const Wa=t,qa=Gn.exports,Va=Ba.dashboard,Ka=Ha,Ga=$a,Ya=Wa.createElement;class Qa extends Wa.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Ga(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(qa,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Ka(this.props),Ya("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Qa.propTypes=Va,Qa.defaultProps={inline:!0};const Za=t,Ja=Oa.exports,Xa=Gn.exports,el=Ba.dashboard,tl=Ha,nl=$a,il=Za.createElement;class rl extends Za.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(nl(this,e)){const e={...this.props,onRequestCloseModal:this.props.onRequestClose};delete e.uppy,this.plugin.setOptions(e)}e.open&&!this.props.open?this.plugin.closeModal():!e.open&&this.props.open&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DashboardModal",...this.props,onRequestCloseModal:this.props.onRequestClose};t.target||(t.target=this.container),delete t.uppy,e.use(Xa,t),this.plugin=e.getPlugin(t.id),this.props.open&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=tl(this.props),il("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}rl.propTypes={target:"undefined"!=typeof window?Ja.instanceOf(window.HTMLElement):Ja.any,open:Ja.bool,onRequestClose:Ja.func,closeModalOnClickOutside:Ja.bool,disablePageScrollWhenModalOpen:Ja.bool,...el};var ol={exports:{}},sl=J.exports,al=rn;const ll=Qn,cl=eo,ul=Cr,pl={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class dl extends sl.UIPlugin{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const i=await ul(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});i.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=pl;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=cl(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=ll(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,n;e.preventDefault(),e.stopPropagation();const{types:i}=e.dataTransfer,r=i.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!r||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)}handleDragLeave(e){var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,al.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,al.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,al.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,al.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,al.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,al.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e=`uppy-u-reset\n uppy-DragDrop-container\n ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n `,t={width:this.opts.width,height:this.opts.height};return(0,al.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,al.h)("div",{className:"uppy-DragDrop-inner"},dl.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}dl.VERSION="2.1.2";const hl=t,fl=ol.exports=dl,ml=Ba,gl=Ha,vl=$a,bl=hl.createElement;class yl extends hl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(vl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DragDrop",...this.props,target:this.container};delete t.uppy,e.use(fl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=gl(this.props),bl("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}yl.propTypes={uppy:ml.uppy,locale:ml.locale},yl.defaultProps={};var xl=yl,wl={exports:{}},_l=rn,kl=J.exports;class El extends kl.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,_l.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},(0,_l.h)("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),(0,_l.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}El.VERSION="2.1.2",wl.exports=El;const Ml=t,Cl=Oa.exports,Ol=wl.exports,Dl=Ba.uppy,Sl=Ha,Tl=$a,Al=Ml.createElement;class Nl extends Ml.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Tl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:ProgressBar",...this.props,target:this.container};delete t.uppy,e.use(Ol,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Sl(this.props),Al("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Nl.propTypes={uppy:Dl,fixed:Cl.bool,hideAfterFinish:Cl.bool},Nl.defaultProps={};const jl=t,Ll=Oa.exports,Il=ri.exports,zl=Ba.uppy,Rl=Ha,Fl=$a,Bl=jl.createElement;class Pl extends jl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(Fl(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:StatusBar",...this.props,target:this.container};delete t.uppy,e.use(Il,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=Rl(this.props),Bl("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}Pl.propTypes={uppy:zl,hideAfterFinish:Ll.bool,showProgressDetails:Ll.bool},Pl.defaultProps={};var Ul={exports:{}},Hl=J.exports,$l=rn;const Wl=Qn,ql={strings:{chooseFiles:"Choose files"}};class Vl extends Hl.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=ql;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=Wl(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,$l.h)("div",{className:"uppy-FileInput-container"},(0,$l.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,$l.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Vl.VERSION="2.1.2",Ul.exports=Vl;const Kl=Oa.exports,Gl=t,Yl=Ul.exports,Ql=Ba,Zl=Gl.createElement;class Jl extends Gl.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:FileInput",...this.props,target:this.container};delete t.uppy,e.use(Yl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return Zl("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}Jl.propTypes={uppy:Ql.uppy,locale:Ql.locale,pretty:Kl.bool,inputName:Kl.string},Jl.defaultProps={};const{useEffect:Xl,useRef:ec}=t,tc=J.exports.Uppy;const nc=5*1024*1024,ic={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxNumberOfFiles:1,maxFileSize:nc,allowedFileTypes:[".jpg",".jpeg",".png",".gif"]}},rc={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxNumberOfFiles:1,maxFileSize:100*1024*1024,allowedFileTypes:[".mp4",".mov",".avi",".mkv"]}},oc={formData:!0,fieldName:"blob"},sc=[{title:"Upload",key:"local"},{title:"Link",key:"link"},{title:"Unsplash",key:"unsplash"}];function ac(){return ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ac.apply(this,arguments)}function lc(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var cc={exports:{}},uc={},pc=Object.getOwnPropertySymbols,dc=Object.prototype.hasOwnProperty,hc=Object.prototype.propertyIsEnumerable;function fc(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var mc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=fc(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))dc.call(n,s)&&(r[s]=n[s]);if(pc){i=pc(n);for(var a=0;a<i.length;a++)hc.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},gc=mc,vc=60103,bc=60106;
|
|
18
18
|
/** @license React v17.0.2
|
|
19
19
|
* react.production.min.js
|
|
20
20
|
*
|
|
@@ -56,5 +56,5 @@ return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=r.create(
|
|
|
56
56
|
* Released under MIT license <https://lodash.com/license>
|
|
57
57
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
58
58
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
59
|
-
*/!function(e,t){(function(){var n,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",p=1,d=2,h=4,f=1,m=2,g=1,v=2,b=4,y=8,x=16,w=32,_=64,k=128,E=256,M=512,C=30,O="...",D=800,S=16,T=1,A=2,N=3,j=1/0,L=9007199254740991,I=17976931348623157e292,z=0/0,R=4294967295,F=R-1,P=R>>>1,U=[["ary",k],["bind",g],["bindKey",v],["curry",y],["curryRight",x],["flip",M],["partial",w],["partialRight",_],["rearg",E]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",K="[object DOMException]",G="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",X="[object Null]",ee="[object Object]",te="[object Promise]",ne="[object Proxy]",ie="[object RegExp]",re="[object Set]",oe="[object String]",se="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",ce="[object WeakSet]",ue="[object ArrayBuffer]",pe="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",ge="[object Int32Array]",ve="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ce=RegExp(Ee.source),Oe=RegExp(Me.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Le.source),ze=/^\s+/,Re=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",it="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",pt="\\d+",dt="["+nt+"]",ht="["+it+"]",ft="[^"+et+st+pt+nt+it+rt+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",xt="\\u200d",wt="(?:"+ht+"|"+ft+")",_t="(?:"+yt+"|"+ft+")",kt="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Ct="["+ot+"]?",Ot=Ct+Mt+("(?:"+xt+"(?:"+[gt,vt,bt].join("|")+")"+Ct+Mt+")*"),Dt="(?:"+[dt,vt,bt].join("|")+")"+Ot,St="(?:"+[gt+ut+"?",ut,vt,bt,lt].join("|")+")",Tt=RegExp(at,"g"),At=RegExp(ut,"g"),Nt=RegExp(mt+"(?="+mt+")|"+St+Ot,"g"),jt=RegExp([yt+"?"+ht+"+"+kt+"(?="+[ct,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[ct,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+kt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Dt].join("|"),"g"),Lt=RegExp("["+xt+et+tt+ot+"]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Ft={};Ft[de]=Ft[he]=Ft[fe]=Ft[me]=Ft[ge]=Ft[ve]=Ft[be]=Ft[ye]=Ft[xe]=!0,Ft[H]=Ft[$]=Ft[ue]=Ft[q]=Ft[pe]=Ft[V]=Ft[G]=Ft[Y]=Ft[Z]=Ft[J]=Ft[ee]=Ft[ie]=Ft[re]=Ft[oe]=Ft[le]=!1;var Bt={};Bt[H]=Bt[$]=Bt[ue]=Bt[pe]=Bt[q]=Bt[V]=Bt[de]=Bt[he]=Bt[fe]=Bt[me]=Bt[ge]=Bt[Z]=Bt[J]=Bt[ee]=Bt[ie]=Bt[re]=Bt[oe]=Bt[se]=Bt[ve]=Bt[be]=Bt[ye]=Bt[xe]=!0,Bt[G]=Bt[Y]=Bt[le]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof B&&B&&B.Object===Object&&B,Wt="object"==typeof self&&self&&self.Object===Object&&self,qt=$t||Wt||Function("return this")(),Vt=t&&!t.nodeType&&t,Kt=Vt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===Vt,Yt=Gt&&$t.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Zt=Qt&&Qt.isArrayBuffer,Jt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(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)}function on(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function sn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&xn(e,t,0)>-1}function pn(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function dn(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function hn(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function fn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function mn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function gn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var vn=En("length");function bn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function yn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function xn(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function _n(e){return e!=e}function kn(e,t){var n=null==e?0:e.length;return n?On(e,t)/n:z}function En(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Cn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function On(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Dn(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Sn(e){return e?e.slice(0,Kn(e)+1).replace(ze,""):e}function Tn(e){return function(t){return e(t)}}function An(e,t){return dn(t,(function(t){return e[t]}))}function Nn(e,t){return e.has(t)}function jn(e,t){for(var n=-1,i=e.length;++n<i&&xn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&xn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var zn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Rn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[r++]=n)}return o}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qn(e){return Bn(e)?function(e){var t=Nt.lastIndex=0;for(;Nt.test(e);)++t;return t}(e):vn(e)}function Vn(e){return Bn(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var B,Re=(t=null==t?qt:Yn.defaults(qt.Object(),t,Yn.pick(qt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,it=t.Math,rt=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Re.prototype,ct=nt.prototype,ut=rt.prototype,pt=t["__core-js_shared__"],dt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(B=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",gt=ut.toString,vt=dt.call(rt),bt=qt._,yt=ot("^"+dt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=Gt?t.Buffer:n,wt=t.Symbol,_t=t.Uint8Array,kt=xt?xt.allocUnsafe:n,Et=Un(rt.getPrototypeOf,rt),Mt=rt.create,Ct=ut.propertyIsEnumerable,Ot=lt.splice,Dt=wt?wt.isConcatSpreadable:n,St=wt?wt.iterator:n,Nt=wt?wt.toStringTag:n,Lt=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==qt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==qt.Date.now&&et.now,Wt=t.setTimeout!==qt.setTimeout&&t.setTimeout,Vt=it.ceil,Kt=it.floor,Yt=rt.getOwnPropertySymbols,Qt=xt?xt.isBuffer:n,vn=t.isFinite,Mn=lt.join,Qn=Un(rt.keys,rt),Zn=it.max,Jn=it.min,Xn=et.now,ei=t.parseInt,ti=it.random,ni=lt.reverse,ii=qo(t,"DataView"),ri=qo(t,"Map"),oi=qo(t,"Promise"),si=qo(t,"Set"),ai=qo(t,"WeakMap"),li=qo(rt,"create"),ci=ai&&new ai,ui={},pi=bs(ii),di=bs(ri),hi=bs(oi),fi=bs(si),mi=bs(ai),gi=wt?wt.prototype:n,vi=gi?gi.valueOf:n,bi=gi?gi.toString:n;function yi(e){if(Ia(e)&&!Ea(e)&&!(e instanceof ki)){if(e instanceof _i)return e;if(ht.call(e,"__wrapped__"))return ys(e)}return new _i(e)}var xi=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function wi(){}function _i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function ki(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ci;++t<n;)this.add(e[t])}function Di(e){var t=this.__data__=new Mi(e);this.size=t.size}function Si(e,t){var n=Ea(e),i=!n&&ka(e),r=!n&&!i&&Da(e),o=!n&&!i&&!r&&$a(e),s=n||i||r||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Jo(c,l))||a.push(c);return a}function Ti(e){var t=e.length;return t?e[Or(0,t-1)]:n}function Ai(e,t){return ms(lo(e),Pi(t,0,e.length))}function Ni(e){return ms(lo(e))}function ji(e,t,i){(i!==n&&!xa(e[t],i)||i===n&&!(t in e))&&Fi(e,t,i)}function Li(e,t,i){var r=e[t];ht.call(e,t)&&xa(r,i)&&(i!==n||t in e)||Fi(e,t,i)}function Ii(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function zi(e,t,n,i){return qi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ri(e,t){return e&&co(t,pl(t),e)}function Fi(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bi(e,t){for(var i=-1,r=t.length,o=Re(r),s=null==e;++i<r;)o[i]=s?n:sl(e,t[i]);return o}function Pi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function Ui(e,t,i,r,o,s){var a,l=t&p,c=t&d,u=t&h;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!La(e))return e;var f=Ea(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==Y||m==Q;if(Da(e))return no(e,l);if(m==ee||m==H||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,dl(t),e)}(a,e)):function(e,t){return co(e,Vo(e),t)}(e,Ri(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case ue:return io(e);case q:case V:return new i(+e);case pe:return function(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case fe:case me:case ge:case ve:case be:case ye:case xe:return ro(e,n);case Z:return new i;case J:case oe:return new i(e);case ie:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case se:return r=e,vi?rt(vi.call(r)):{}}var r}(e,m,l)}}s||(s=new Di);var v=s.get(e);if(v)return v;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ui(n,t,i,n,e,s))})):za(e)&&e.forEach((function(n,r){a.set(r,Ui(n,t,i,r,e,s))}));var b=f?n:(u?c?Fo:Ro:c?dl:pl)(e);return sn(b||e,(function(n,r){b&&(n=e[r=n]),Li(a,r,Ui(n,t,i,r,e,s))})),a}function Hi(e,t,i){var r=i.length;if(null==e)return!r;for(e=rt(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $i(e,t,i){if("function"!=typeof e)throw new at(s);return ps((function(){e.apply(n,i)}),t)}function Wi(e,t,n,i){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,Tn(n))),i?(s=pn,a=!1):t.length>=r&&(s=Nn,a=!1,t=new Oi(t));e:for(;++o<l;){var p=e[o],d=null==n?p:n(p);if(p=i||0!==p?p:0,a&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(p)}else s(t,d,i)||c.push(p)}return c}yi.templateSettings={escape:De,evaluate:Se,interpolate:Te,variable:"",imports:{_:yi}},yi.prototype=wi.prototype,yi.prototype.constructor=yi,_i.prototype=xi(wi.prototype),_i.prototype.constructor=_i,ki.prototype=xi(wi.prototype),ki.prototype.constructor=ki,Ei.prototype.clear=function(){this.__data__=li?li(null):{},this.size=0},Ei.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(li){var i=t[e];return i===l?n:i}return ht.call(t,e)?t[e]:n},Ei.prototype.has=function(e){var t=this.__data__;return li?t[e]!==n:ht.call(t,e)},Ei.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=li&&t===n?l:t,this},Mi.prototype.clear=function(){this.__data__=[],this.size=0},Mi.prototype["delete"]=function(e){var t=this.__data__,n=Ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},Mi.prototype.get=function(e){var t=this.__data__,i=Ii(t,e);return i<0?n:t[i][1]},Mi.prototype.has=function(e){return Ii(this.__data__,e)>-1},Mi.prototype.set=function(e,t){var n=this.__data__,i=Ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Ci.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ri||Mi),string:new Ei}},Ci.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Ci.prototype.get=function(e){return $o(this,e).get(e)},Ci.prototype.has=function(e){return $o(this,e).has(e)},Ci.prototype.set=function(e,t){var n=$o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Oi.prototype.add=Oi.prototype.push=function(e){return this.__data__.set(e,l),this},Oi.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.clear=function(){this.__data__=new Mi,this.size=0},Di.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Di.prototype.get=function(e){return this.__data__.get(e)},Di.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mi){var i=n.__data__;if(!ri||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ci(i)}return n.set(e,t),this.size=n.size,this};var qi=ho(Xi),Vi=ho(er,!0);function Ki(e,t){var n=!0;return qi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Gi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):i(a,l)))var l=a,c=s}return c}function Yi(e,t){var n=[];return qi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Qi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=Zo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qi(a,t-1,n,i,r):hn(r,a):i||(r[r.length]=a)}return r}var Zi=fo(),Ji=fo(!0);function Xi(e,t){return e&&Zi(e,t,pl)}function er(e,t){return e&&Ji(e,t,pl)}function tr(e,t){return cn(t,(function(t){return Aa(e[t])}))}function nr(e,t){for(var i=0,r=(t=Jr(t,e)).length;null!=e&&i<r;)e=e[vs(t[i++])];return i&&i==r?e:n}function ir(e,t,n){var i=t(e);return Ea(e)?i:hn(i,n(e))}function rr(e){return null==e?e===n?ae:X:Nt&&Nt in rt(e)?function(e){var t=ht.call(e,Nt),i=e[Nt];try{e[Nt]=n;var r=!0}catch(e){}var o=gt.call(e);r&&(t?e[Nt]=i:delete e[Nt]);return o}(e):function(e){return gt.call(e)}(e)}function or(e,t){return e>t}function sr(e,t){return null!=e&&ht.call(e,t)}function ar(e,t){return null!=e&&t in rt(e)}function lr(e,t,i){for(var r=i?pn:un,o=e[0].length,s=e.length,a=s,l=Re(s),c=1/0,u=[];a--;){var p=e[a];a&&t&&(p=dn(p,Tn(t))),c=Jn(p.length,c),l[a]=!i&&(t||o>=120&&p.length>=120)?new Oi(a&&p):n}p=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var f=p[d],m=t?t(f):f;if(f=i||0!==f?f:0,!(h?Nn(h,m):r(u,m,i))){for(a=s;--a;){var g=l[a];if(!(g?Nn(g,m):r(e[a],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function cr(e,t,i){var r=null==(e=as(e,t=Jr(t,e)))?e:e[vs(Ts(t))];return null==r?n:rn(r,e,i)}function ur(e){return Ia(e)&&rr(e)==H}function pr(e,t,i,r,o){return e===t||(null==e||null==t||!Ia(e)&&!Ia(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Ea(e),l=Ea(t),c=a?$:Go(e),u=l?$:Go(t),p=(c=c==H?ee:c)==ee,d=(u=u==H?ee:u)==ee,h=c==u;if(h&&Da(e)){if(!Da(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Di),a||$a(e)?Io(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case q:case V:case J:return xa(+e,+t);case G:return e.name==t.name&&e.message==t.message;case ie:case oe:return e==t+"";case Z:var a=Pn;case re:var l=i&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=m,s.set(e,t);var u=Io(a(e),a(t),i,r,o,s);return s["delete"](e),u;case se:if(vi)return vi.call(e)==vi.call(t)}return!1}(e,t,c,i,r,o,s);if(!(i&f)){var g=p&&ht.call(e,"__wrapped__"),v=d&&ht.call(t,"__wrapped__");if(g||v){var b=g?e.value():e,y=v?t.value():t;return s||(s=new Di),o(b,y,i,r,s)}}if(!h)return!1;return s||(s=new Di),function(e,t,i,r,o,s){var a=i&f,l=Ro(e),c=l.length,u=Ro(t).length;if(c!=u&&!a)return!1;var p=c;for(;p--;){var d=l[p];if(!(a?d in t:ht.call(t,d)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++p<c;){var b=e[d=l[p]],y=t[d];if(r)var x=a?r(y,b,d,t,e,s):r(b,y,d,e,t,s);if(!(x===n?b===y||o(b,y,i,r,s):x)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,i,r,o,s)}(e,t,i,r,pr,o))}function dr(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=rt(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],p=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var d=new Di;if(r)var h=r(u,p,c,e,t,d);if(!(h===n?pr(p,u,f|m,r,d):h))return!1}}return!0}function hr(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Aa(e)?yt:Ge).test(bs(e));var t}function fr(e){return"function"==typeof e?e:null==e?Rl:"object"==typeof e?Ea(e)?xr(e[0],e[1]):yr(e):Vl(e)}function mr(e){if(!is(e))return Qn(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gr(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}(e);var t=is(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function vr(e,t){return e<t}function br(e,t){var n=-1,i=Ca(e)?Re(e.length):[];return qi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function yr(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}}function xr(e,t){return es(e)&&rs(t)?os(vs(e),t):function(i){var r=sl(i,e);return r===n&&r===t?al(i,e):pr(t,r,f|m)}}function wr(e,t,i,r,o){e!==t&&Zi(t,(function(s,a){if(o||(o=new Di),La(s))!function(e,t,i,r,o,s,a){var l=cs(e,i),c=cs(t,i),u=a.get(c);if(u)return void ji(e,i,u);var p=s?s(l,c,i+"",e,t,a):n,d=p===n;if(d){var h=Ea(c),f=!h&&Da(c),m=!h&&!f&&$a(c);p=c,h||f||m?Ea(l)?p=l:Oa(l)?p=lo(l):f?(d=!1,p=no(c,!0)):m?(d=!1,p=ro(c,!0)):p=[]:Fa(c)||ka(c)?(p=l,ka(l)?p=Za(l):La(l)&&!Aa(l)||(p=Qo(c))):d=!1}d&&(a.set(c,p),o(p,c,r,s,a),a["delete"](c));ji(e,i,p)}(e,t,a,i,wr,r,o);else{var l=r?r(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),ji(e,a,l)}}),dl)}function _r(e,t){var i=e.length;if(i)return Jo(t+=t<0?i:0,i)?e[t]:n}function kr(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return nr(t,1===e.length?e[0]:e)}:e})):[Rl];var i=-1;t=dn(t,Tn(Ho()));var r=br(e,(function(e,n,r){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var l=oo(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Er(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=nr(e,s);n(a,s)&&Nr(o,Jr(s,e),a)}return o}function Mr(e,t,n,i){var r=i?wn:xn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,Tn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==e&&Ot.call(a,l,1),Ot.call(e,l,1);return e}function Cr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Jo(r)?Ot.call(e,r,1):Wr(e,r)}}return e}function Or(e,t){return e+Kt(ti()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Sr(e,t){return ds(ss(e,t,Rl),e+"")}function Tr(e){return Ti(xl(e))}function Ar(e,t){var n=xl(e);return ms(n,Pi(t,0,n.length))}function Nr(e,t,i,r){if(!La(e))return e;for(var o=-1,s=(t=Jr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=vs(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var p=l[c];(u=r?r(p,c,l):n)===n&&(u=La(p)?p:Jo(t[o+1])?[]:{})}Li(l,c,u),l=l[c]}return e}var jr=ci?function(e,t){return ci.set(e,t),e}:Rl,Lr=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Rl;function Ir(e){return ms(xl(e))}function zr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Re(r);++i<r;)o[i]=e[i+t];return o}function Rr(e,t){var n;return qi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Fr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=P){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Br(e,t,Rl,n)}function Br(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var p=Kt((o+s)/2),d=i(e[p]),h=d!==n,f=null===d,m=d==d,g=Ha(d);if(a)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return Jn(s,F)}function Pr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!xa(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Ur(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hr(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hr)+"";if(Ha(e))return bi?bi.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function $r(e,t,n){var i=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=pn;else if(s>=r){var u=t?null:So(e);if(u)return $n(u);a=!1,o=Nn,c=new Oi}else c=t?[]:l;e:for(;++i<s;){var p=e[i],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(p)}else o(c,d,n)||(c!==l&&c.push(d),l.push(p))}return l}function Wr(e,t){return null==(e=as(e,t=Jr(t,e)))||delete e[vs(Ts(t))]}function qr(e,t,n,i){return Nr(e,t,n(nr(e,t)),i)}function Vr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?zr(e,i?0:o,i?o+1:r):zr(e,i?o+1:0,i?r:o)}function Kr(e,t){var n=e;return n instanceof ki&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gr(e,t,n){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var r=-1,o=Re(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Wi(o[r]||s,e[a],t,n));return $r(Qi(o,1),t,n)}function Yr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:n;i(a,e[r],l)}return a}function Qr(e){return Oa(e)?e:[]}function Zr(e){return"function"==typeof e?e:Rl}function Jr(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Ja(e))}var Xr=Sr;function eo(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:zr(e,t,i)}var to=Pt||function(e){return qt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,i=kt?kt(n):new e.constructor(n);return e.copy(i),i}function io(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function ro(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Zn(o-s,0),u=Re(l+c),p=!i;++a<l;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;c--;)u[a++]=e[r++];return u}function ao(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Zn(o-a,0),p=Re(u+c),d=!i;++r<u;)p[r]=e[r];for(var h=r;++l<c;)p[h+l]=t[l];for(;++s<a;)(d||r<o)&&(p[h+n[s]]=e[r++]);return p}function lo(e,t){var n=-1,i=e.length;for(t||(t=Re(i));++n<i;)t[n]=e[n];return t}function co(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(i[l],e[l],l,i,e):n;c===n&&(c=e[l]),o?Fi(i,l,c):Li(i,l,c)}return i}function uo(e,t){return function(n,i){var r=Ea(n)?on:zi,o=t?t():{};return r(n,e,Ho(i,2),o)}}function po(e){return Sr((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=rt(t);++r<o;){var l=i[r];l&&e(t,l,r,s)}return t}))}function ho(e,t){return function(n,i){if(null==n)return n;if(!Ca(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=rt(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function fo(e){return function(t,n,i){for(var r=-1,o=rt(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var i=Bn(t=Ja(t))?Vn(t):n,r=i?i[0]:t.charAt(0),o=i?eo(i,1).join(""):t.slice(1);return r[e]()+o}}function go(e){return function(t){return fn(Al(kl(t).replace(Tt,"")),e,"")}}function vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xi(e.prototype),i=e.apply(n,t);return La(i)?i:n}}function bo(e){return function(t,i,r){var o=rt(t);if(!Ca(t)){var s=Ho(i,3);t=pl(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function yo(e){return zo((function(t){var i=t.length,r=i,o=_i.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new _i([],!0)}for(r=l?r:i;++r<i;){var c=Po(a=t[r]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(k|y|w|E)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ea(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function xo(e,t,i,r,o,s,a,l,c,u){var p=t&k,d=t&g,h=t&v,f=t&(y|x),m=t&M,b=h?n:vo(e);return function n(){for(var g=arguments.length,v=Re(g),y=g;y--;)v[y]=arguments[y];if(f)var x=Uo(n),w=In(v,x);if(r&&(v=so(v,r,o,f)),s&&(v=ao(v,s,a,f)),g-=w,f&&g<u){var _=Hn(v,x);return Oo(e,t,xo,n.placeholder,i,v,_,l,c,u-g)}var k=d?i:this,E=h?k[e]:e;return g=v.length,l?v=ls(v,l):m&&g>1&&v.reverse(),p&&c<g&&(v.length=c),this&&this!==qt&&this instanceof n&&(E=b||vo(E)),E.apply(k,v)}}function wo(e,t){return function(n,i){return function(e,t,n,i){return Xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function _o(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=Hr(i),r=Hr(r)):(i=Ur(i),r=Ur(r)),o=e(i,r)}return o}}function ko(e){return zo((function(t){return t=dn(t,Tn(Ho())),Sr((function(n){var i=this;return e(t,(function(e){return rn(e,i,n)}))}))}))}function Eo(e,t){var i=(t=t===n?" ":Hr(t)).length;if(i<2)return i?Dr(t,e):t;var r=Dr(t,Vt(e/qn(t)));return Bn(t)?eo(Vn(r),0,e).join(""):r.slice(0,e)}function Mo(e){return function(t,i,r){return r&&"number"!=typeof r&&Xo(t,i,r)&&(i=r=n),t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n,i){for(var r=-1,o=Zn(Vt((t-e)/(n||1)),0),s=Re(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:Ka(r),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Oo(e,t,i,r,o,s,a,l,c,u){var p=t&y;t|=p?w:_,(t&=~(p?_:w))&b||(t&=~(g|v));var d=[e,t,o,p?s:n,p?a:n,p?n:s,p?n:a,l,c,u],h=i.apply(n,d);return ts(e)&&us(h,d),h.placeholder=r,hs(h,e,t)}function Do(e){var t=it[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Jn(Ga(n),292))&&vn(e)){var i=(Ja(e)+"e").split("e");return+((i=(Ja(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var So=si&&1/$n(new si([,-0]))[1]==j?function(e){return new si(e)}:Hl;function To(e){return function(t){var n=Go(t);return n==Z?Pn(t):n==re?Wn(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ao(e,t,i,r,o,a,l,c){var p=t&v;if(!p&&"function"!=typeof e)throw new at(s);var d=r?r.length:0;if(d||(t&=~(w|_),r=o=n),l=l===n?l:Zn(Ga(l),0),c=c===n?c:Ga(c),d-=o?o.length:0,t&_){var h=r,f=o;r=o=n}var m=p?n:Bo(e),M=[e,t,i,r,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(g|v|k),s=i==k&&n==y||i==k&&n==E&&e[7].length<=t[8]||i==(k|E)&&t[7].length<=t[8]&&n==y;if(!o&&!s)return e;i&g&&(e[2]=t[2],r|=n&g?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Hn(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Hn(e[5],u):t[6]);(a=t[7])&&(e[7]=a);i&k&&(e[8]=null==e[8]?t[8]:Jn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(M,m),e=M[0],t=M[1],i=M[2],r=M[3],o=M[4],!(c=M[9]=M[9]===n?p?0:e.length:Zn(M[9]-d,0))&&t&(y|x)&&(t&=~(y|x)),t&&t!=g)C=t==y||t==x?function(e,t,i){var r=vo(e);return function o(){for(var s=arguments.length,a=Re(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Hn(a,c);return(s-=u.length)<i?Oo(e,t,xo,o.placeholder,n,a,u,n,n,i-s):rn(this&&this!==qt&&this instanceof o?r:e,this,a)}}(e,t,c):t!=w&&t!=(g|w)||o.length?xo.apply(n,M):function(e,t,n,i){var r=t&g,o=vo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=i.length,u=Re(c+a),p=this&&this!==qt&&this instanceof t?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++s];return rn(p,r?n:this,u)}}(e,t,i,r);else var C=function(e,t,n){var i=t&g,r=vo(e);return function t(){return(this&&this!==qt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return hs((m?jr:us)(C,M),e,t)}function No(e,t,i,r){return e===n||xa(e,ut[i])&&!ht.call(r,i)?t:e}function jo(e,t,i,r,o,s){return La(e)&&La(t)&&(s.set(t,e),wr(e,t,n,jo,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function Io(e,t,i,r,o,s){var a=i&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,h=!0,g=i&m?new Oi:n;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],b=t[d];if(r)var y=a?r(b,v,d,t,e,s):r(v,b,d,e,t,s);if(y!==n){if(y)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Nn(g,t)&&(v===e||o(v,e,i,r,s)))return g.push(t)}))){h=!1;break}}else if(v!==b&&!o(v,b,i,r,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ds(ss(e,n,Ms),e+"")}function Ro(e){return ir(e,pl,Vo)}function Fo(e){return ir(e,dl,Ko)}var Bo=ci?function(e){return ci.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ui[t],i=ht.call(ui,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Uo(e){return(ht.call(yi,"placeholder")?yi:e).placeholder}function Ho(){var e=yi.iteratee||Fl;return e=e===Fl?fr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wo(e){for(var t=pl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,rs(r)]}return t}function qo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return hr(i)?i:n}var Vo=Yt?function(e){return null==e?[]:(e=rt(e),cn(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,Vo(e)),e=Et(e);return t}:Yl,Go=rr;function Yo(e,t,n){for(var i=-1,r=(t=Jr(t,e)).length,o=!1;++i<r;){var s=vs(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ja(r)&&Jo(s,r)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||is(e)?{}:xi(Et(e))}function Zo(e){return Ea(e)||ka(e)||!!(Dt&&e&&e[Dt])}function Jo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var i=typeof t;return!!("number"==i?Ca(n)&&Jo(t,n.length):"string"==i&&t in n)&&xa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in rt(t))}function ts(e){var t=Po(e),n=yi[t];if("function"!=typeof n||!(t in ki.prototype))return!1;if(e===n)return!0;var i=Bo(n);return!!i&&e===i[0]}(ii&&Go(new ii(new ArrayBuffer(1)))!=pe||ri&&Go(new ri)!=Z||oi&&Go(oi.resolve())!=te||si&&Go(new si)!=re||ai&&Go(new ai)!=le)&&(Go=function(e){var t=rr(e),i=t==ee?e.constructor:n,r=i?bs(i):"";if(r)switch(r){case pi:return pe;case di:return Z;case hi:return te;case fi:return re;case mi:return le}return t});var ns=pt?Aa:Ql;function is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function rs(e){return e==e&&!La(e)}function os(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in rt(i)))}}function ss(e,t,i){return t=Zn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Zn(n.length-t,0),s=Re(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Re(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:nr(e,zr(t,0,-1))}function ls(e,t){for(var i=e.length,r=Jn(t.length,i),o=lo(e);r--;){var s=t[r];e[r]=Jo(s,i)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(jr),ps=Wt||function(e,t){return qt.setTimeout(e,t)},ds=fs(Lr);function hs(e,t,n){var i=t+"";return ds(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return sn(U,(function(n){var i="_."+n[0];t&n[1]&&!un(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(i),n)))}function fs(e){var t=0,i=0;return function(){var r=Xn(),o=S-(r-i);if(i=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Or(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(je,(function(e,n,i,r){t.push(i?r.replace($e,"$1"):n||e)})),t}));function vs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function bs(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ys(e){if(e instanceof ki)return e.clone();var t=new _i(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xs=Sr((function(e,t){return Oa(e)?Wi(e,Qi(t,1,Oa,!0)):[]})),ws=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),Ho(i,2)):[]})),_s=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),n,i):[]}));function ks(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),yn(e,Ho(t,3),r)}function Es(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=Ga(i),o=i<0?Zn(r+o,0):Jn(o,r-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qi(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Os=Sr((function(e){var t=dn(e,Qr);return t.length&&t[0]===e[0]?lr(t):[]})),Ds=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return t===Ts(i)?t=n:i.pop(),i.length&&i[0]===e[0]?lr(i,Ho(t,2)):[]})),Ss=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?lr(i,n,t):[]}));function Ts(e){var t=null==e?0:e.length;return t?e[t-1]:n}var As=Sr(Ns);function Ns(e,t){return e&&e.length&&t&&t.length?Mr(e,t):e}var js=zo((function(e,t){var n=null==e?0:e.length,i=Bi(e,t);return Cr(e,dn(t,(function(e){return Jo(e,n)?+e:e})).sort(oo)),i}));function Ls(e){return null==e?e:ni.call(e)}var Is=Sr((function(e){return $r(Qi(e,1,Oa,!0))})),zs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),$r(Qi(e,1,Oa,!0),Ho(t,2))})),Rs=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,$r(Qi(e,1,Oa,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Oa(e))return t=Zn(e.length,t),!0})),Dn(t,(function(t){return dn(e,En(t))}))}function Bs(e,t){if(!e||!e.length)return[];var i=Fs(e);return null==t?i:dn(i,(function(e){return rn(t,n,e)}))}var Ps=Sr((function(e,t){return Oa(e)?Wi(e,t):[]})),Us=Sr((function(e){return Gr(cn(e,Oa))})),Hs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),Gr(cn(e,Oa),Ho(t,2))})),$s=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,Gr(cn(e,Oa),n,t)})),Ws=Sr(Fs);var qs=Sr((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,Bs(e,i)}));function Vs(e){var t=yi(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ki&&Jo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new _i(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Fi(e,n,1)}));var Qs=bo(ks),Zs=bo(Es);function Js(e,t){return(Ea(e)?sn:qi)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?an:Vi)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fi(e,n,[t])}));var ta=Sr((function(e,t,n){var i=-1,r="function"==typeof t,o=Ca(e)?Re(e.length):[];return qi(e,(function(e){o[++i]=r?rn(t,e,n):cr(e,t,n)})),o})),na=uo((function(e,t,n){Fi(e,n,t)}));function ia(e,t){return(Ea(e)?dn:br)(e,Ho(t,3))}var ra=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Sr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),kr(e,Qi(t,1),[])})),sa=$t||function(){return qt.Date.now()};function aa(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Ao(e,k,n,n,n,n,t)}function la(e,t){var i;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ca=Sr((function(e,t,n){var i=g;if(n.length){var r=Hn(n,Uo(ca));i|=w}return Ao(e,i,t,n,r)})),ua=Sr((function(e,t,n){var i=g|v;if(n.length){var r=Hn(n,Uo(ua));i|=w}return Ao(t,i,e,n,r)}));function pa(e,t,i){var r,o,a,l,c,u,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var i=r,s=o;return r=o=n,p=t,l=e.apply(s,i)}function g(e){return p=e,c=ps(b,t),d?m(e):l}function v(e){var i=e-u;return u===n||i>=t||i<0||h&&e-p>=a}function b(){var e=sa();if(v(e))return y(e);c=ps(b,function(e){var n=t-(e-u);return h?Jn(n,a-(e-p)):n}(e))}function y(e){return c=n,f&&r?m(e):(r=o=n,l)}function x(){var e=sa(),i=v(e);if(r=arguments,o=this,u=e,i){if(c===n)return g(u);if(h)return to(c),c=ps(b,t),m(u)}return c===n&&(c=ps(b,t)),l}return t=Qa(t)||0,La(i)&&(d=!!i.leading,a=(h="maxWait"in i)?Zn(Qa(i.maxWait)||0,t):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){c!==n&&to(c),p=0,r=u=o=c=n},x.flush=function(){return c===n?l:y(sa())},x}var da=Sr((function(e,t){return $i(e,1,t)})),ha=Sr((function(e,t,n){return $i(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(fa.Cache||Ci),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Ci;var ga=Xr((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],Tn(Ho())):dn(Qi(t,1),Tn(Ho()))).length;return Sr((function(i){for(var r=-1,o=Jn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return rn(e,this,i)}))})),va=Sr((function(e,t){var i=Hn(t,Uo(va));return Ao(e,w,n,t,i)})),ba=Sr((function(e,t){var i=Hn(t,Uo(ba));return Ao(e,_,n,t,i)})),ya=zo((function(e,t){return Ao(e,E,n,n,n,t)}));function xa(e,t){return e===t||e!=e&&t!=t}var wa=Co(or),_a=Co((function(e,t){return e>=t})),ka=ur(function(){return arguments}())?ur:function(e){return Ia(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Re.isArray,Ma=Zt?Tn(Zt):function(e){return Ia(e)&&rr(e)==ue};function Ca(e){return null!=e&&ja(e.length)&&!Aa(e)}function Oa(e){return Ia(e)&&Ca(e)}var Da=Qt||Ql,Sa=Jt?Tn(Jt):function(e){return Ia(e)&&rr(e)==V};function Ta(e){if(!Ia(e))return!1;var t=rr(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Aa(e){if(!La(e))return!1;var t=rr(e);return t==Y||t==Q||t==W||t==ne}function Na(e){return"number"==typeof e&&e==Ga(e)}function ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ia(e){return null!=e&&"object"==typeof e}var za=Xt?Tn(Xt):function(e){return Ia(e)&&Go(e)==Z};function Ra(e){return"number"==typeof e||Ia(e)&&rr(e)==J}function Fa(e){if(!Ia(e)||rr(e)!=ee)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==vt}var Ba=en?Tn(en):function(e){return Ia(e)&&rr(e)==ie};var Pa=tn?Tn(tn):function(e){return Ia(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&Ia(e)&&rr(e)==oe}function Ha(e){return"symbol"==typeof e||Ia(e)&&rr(e)==se}var $a=nn?Tn(nn):function(e){return Ia(e)&&ja(e.length)&&!!Ft[rr(e)]};var Wa=Co(vr),qa=Co((function(e,t){return e<=t}));function Va(e){if(!e)return[];if(Ca(e))return Ua(e)?Vn(e):lo(e);if(St&&e[St])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[St]());var t=Go(e);return(t==Z?Pn:t==re?$n:xl)(e)}function Ka(e){return e?(e=Qa(e))===j||e===-j?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pi(Ga(e),0,R):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return z;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var n=Ke.test(e);return n||Ye.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Za(e){return co(e,dl(e))}function Ja(e){return null==e?"":Hr(e)}var Xa=po((function(e,t){if(is(t)||Ca(t))co(t,pl(t),e);else for(var n in t)ht.call(t,n)&&Li(e,n,t[n])})),el=po((function(e,t){co(t,dl(t),e)})),tl=po((function(e,t,n,i){co(t,dl(t),e,i)})),nl=po((function(e,t,n,i){co(t,pl(t),e,i)})),il=zo(Bi);var rl=Sr((function(e,t){e=rt(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=dl(s),l=-1,c=a.length;++l<c;){var u=a[l],p=e[u];(p===n||xa(p,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Sr((function(e){return e.push(n,jo),rn(fl,n,e)}));function sl(e,t,i){var r=null==e?n:nr(e,t);return r===n?i:r}function al(e,t){return null!=e&&Yo(e,t,ar)}var ll=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(Rl)),cl=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Sr(cr);function pl(e){return Ca(e)?Si(e):mr(e)}function dl(e){return Ca(e)?Si(e,!0):gr(e)}var hl=po((function(e,t,n){wr(e,t,n)})),fl=po((function(e,t,n,i){wr(e,t,n,i)})),ml=zo((function(e,t){var n={};if(null==e)return n;var i=!1;t=dn(t,(function(t){return t=Jr(t,e),i||(i=t.length>1),t})),co(e,Fo(e),n),i&&(n=Ui(n,p|d|h,Lo));for(var r=t.length;r--;)Wr(n,t[r]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return Er(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function vl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Er(e,n,(function(e,n){return t(e,n[0])}))}var bl=To(pl),yl=To(dl);function xl(e){return null==e?[]:An(e,pl(e))}var wl=go((function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}));function _l(e){return Tl(Ja(e).toLowerCase())}function kl(e){return(e=Ja(e))&&e.replace(Ze,zn).replace(At,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Ol=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=go((function(e,t,n){return e+(n?" ":"")+Tl(t)}));var Sl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Tl=mo("toUpperCase");function Al(e,t,i){return e=Ja(e),(t=i?n:t)===n?function(e){return It.test(e)}(e)?function(e){return e.match(jt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Nl=Sr((function(e,t){try{return rn(e,n,t)}catch(e){return Ta(e)?e:new tt(e)}})),jl=zo((function(e,t){return sn(t,(function(t){t=vs(t),Fi(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Il=yo(),zl=yo(!0);function Rl(e){return e}function Fl(e){return fr("function"==typeof e?e:Ui(e,p))}var Bl=Sr((function(e,t){return function(n){return cr(n,e,t)}})),Pl=Sr((function(e,t){return function(n){return cr(e,n,t)}}));function Ul(e,t,n){var i=pl(t),r=tr(t,i);null!=n||La(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=tr(t,pl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Aa(e);return sn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=lo(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Wl=ko(ln),ql=ko(gn);function Vl(e){return es(e)?En(vs(e)):function(e){return function(t){return nr(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Zl=_o((function(e,t){return e+t}),0),Jl=Do("ceil"),Xl=_o((function(e,t){return e/t}),1),ec=Do("floor");var tc=_o((function(e,t){return e*t}),1),nc=Do("round"),ic=_o((function(e,t){return e-t}),0);return yi.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},yi.ary=aa,yi.assign=Xa,yi.assignIn=el,yi.assignInWith=tl,yi.assignWith=nl,yi.at=il,yi.before=la,yi.bind=ca,yi.bindAll=jl,yi.bindKey=ua,yi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},yi.chain=Vs,yi.chunk=function(e,t,i){t=(i?Xo(e,t,i):t===n)?1:Zn(Ga(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=Re(Vt(r/t));o<r;)a[s++]=zr(e,o,o+=t);return a},yi.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},yi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return hn(Ea(n)?lo(n):[n],Qi(t,1))},yi.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Sr((function(n){for(var i=-1;++i<t;){var r=e[i];if(rn(r[0],this,n))return rn(r[1],this,n)}}))},yi.conforms=function(e){return function(e){var t=pl(e);return function(n){return Hi(n,e,t)}}(Ui(e,p))},yi.constant=Ll,yi.countBy=Ys,yi.create=function(e,t){var n=xi(e);return null==t?n:Ri(n,t)},yi.curry=function e(t,i,r){var o=Ao(t,y,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.curryRight=function e(t,i,r){var o=Ao(t,x,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.debounce=pa,yi.defaults=rl,yi.defaultsDeep=ol,yi.defer=da,yi.delay=ha,yi.difference=xs,yi.differenceBy=ws,yi.differenceWith=_s,yi.drop=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=i||t===n?1:Ga(t))<0?0:t,r):[]},yi.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,0,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t):[]},yi.dropRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0,!0):[]},yi.dropWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0):[]},yi.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ga(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ga(r))<0&&(r+=o),r=i>r?0:Ya(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},yi.filter=function(e,t){return(Ea(e)?cn:Yi)(e,Ho(t,3))},yi.flatMap=function(e,t){return Qi(ia(e,t),1)},yi.flatMapDeep=function(e,t){return Qi(ia(e,t),j)},yi.flatMapDepth=function(e,t,i){return i=i===n?1:Ga(i),Qi(ia(e,t),i)},yi.flatten=Ms,yi.flattenDeep=function(e){return(null==e?0:e.length)?Qi(e,j):[]},yi.flattenDepth=function(e,t){return(null==e?0:e.length)?Qi(e,t=t===n?1:Ga(t)):[]},yi.flip=function(e){return Ao(e,M)},yi.flow=Il,yi.flowRight=zl,yi.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},yi.functions=function(e){return null==e?[]:tr(e,pl(e))},yi.functionsIn=function(e){return null==e?[]:tr(e,dl(e))},yi.groupBy=ea,yi.initial=function(e){return(null==e?0:e.length)?zr(e,0,-1):[]},yi.intersection=Os,yi.intersectionBy=Ds,yi.intersectionWith=Ss,yi.invert=ll,yi.invertBy=cl,yi.invokeMap=ta,yi.iteratee=Fl,yi.keyBy=na,yi.keys=pl,yi.keysIn=dl,yi.map=ia,yi.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,t(e,i,r),e)})),n},yi.mapValues=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,i,t(e,i,r))})),n},yi.matches=function(e){return yr(Ui(e,p))},yi.matchesProperty=function(e,t){return xr(e,Ui(t,p))},yi.memoize=fa,yi.merge=hl,yi.mergeWith=fl,yi.method=Bl,yi.methodOf=Pl,yi.mixin=Ul,yi.negate=ma,yi.nthArg=function(e){return e=Ga(e),Sr((function(t){return _r(t,e)}))},yi.omit=ml,yi.omitBy=function(e,t){return vl(e,ma(Ho(t)))},yi.once=function(e){return la(2,e)},yi.orderBy=function(e,t,i,r){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(i=r?n:i)||(i=null==i?[]:[i]),kr(e,t,i))},yi.over=$l,yi.overArgs=ga,yi.overEvery=Wl,yi.overSome=ql,yi.partial=va,yi.partialRight=ba,yi.partition=ra,yi.pick=gl,yi.pickBy=vl,yi.property=Vl,yi.propertyOf=function(e){return function(t){return null==e?n:nr(e,t)}},yi.pull=As,yi.pullAll=Ns,yi.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,Ho(n,2)):e},yi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Mr(e,t,n,i):e},yi.pullAt=js,yi.range=Kl,yi.rangeRight=Gl,yi.rearg=ya,yi.reject=function(e,t){return(Ea(e)?cn:Yi)(e,ma(Ho(t,3)))},yi.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Ho(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Cr(e,r),n},yi.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Sr(e,t=t===n?t:Ga(t))},yi.reverse=Ls,yi.sampleSize=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),(Ea(e)?Ai:Ar)(e,t)},yi.set=function(e,t,n){return null==e?e:Nr(e,t,n)},yi.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Nr(e,t,i,r)},yi.shuffle=function(e){return(Ea(e)?Ni:Ir)(e)},yi.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Xo(e,t,i)?(t=0,i=r):(t=null==t?0:Ga(t),i=i===n?r:Ga(i)),zr(e,t,i)):[]},yi.sortBy=oa,yi.sortedUniq=function(e){return e&&e.length?Pr(e):[]},yi.sortedUniqBy=function(e,t){return e&&e.length?Pr(e,Ho(t,2)):[]},yi.split=function(e,t,i){return i&&"number"!=typeof i&&Xo(e,t,i)&&(t=i=n),(i=i===n?R:i>>>0)?(e=Ja(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hr(t))&&Bn(e)?eo(Vn(e),0,i):e.split(t,i):[]},yi.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Zn(Ga(t),0),Sr((function(n){var i=n[t],r=eo(n,0,t);return i&&hn(r,i),rn(e,this,r)}))},yi.tail=function(e){var t=null==e?0:e.length;return t?zr(e,1,t):[]},yi.take=function(e,t,i){return e&&e.length?zr(e,0,(t=i||t===n?1:Ga(t))<0?0:t):[]},yi.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t,r):[]},yi.takeRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!1,!0):[]},yi.takeWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3)):[]},yi.tap=function(e,t){return t(e),e},yi.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pa(e,t,{leading:i,maxWait:t,trailing:r})},yi.thru=Ks,yi.toArray=Va,yi.toPairs=bl,yi.toPairsIn=yl,yi.toPath=function(e){return Ea(e)?dn(e,vs):Ha(e)?[e]:lo(gs(Ja(e)))},yi.toPlainObject=Za,yi.transform=function(e,t,n){var i=Ea(e),r=i||Da(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:La(e)&&Aa(o)?xi(Et(e)):{}}return(r?sn:Xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},yi.unary=function(e){return aa(e,1)},yi.union=Is,yi.unionBy=zs,yi.unionWith=Rs,yi.uniq=function(e){return e&&e.length?$r(e):[]},yi.uniqBy=function(e,t){return e&&e.length?$r(e,Ho(t,2)):[]},yi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$r(e,n,t):[]},yi.unset=function(e,t){return null==e||Wr(e,t)},yi.unzip=Fs,yi.unzipWith=Bs,yi.update=function(e,t,n){return null==e?e:qr(e,t,Zr(n))},yi.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:qr(e,t,Zr(i),r)},yi.values=xl,yi.valuesIn=function(e){return null==e?[]:An(e,dl(e))},yi.without=Ps,yi.words=Al,yi.wrap=function(e,t){return va(Zr(t),e)},yi.xor=Us,yi.xorBy=Hs,yi.xorWith=$s,yi.zip=Ws,yi.zipObject=function(e,t){return Yr(e||[],t||[],Li)},yi.zipObjectDeep=function(e,t){return Yr(e||[],t||[],Nr)},yi.zipWith=qs,yi.entries=bl,yi.entriesIn=yl,yi.extend=el,yi.extendWith=tl,Ul(yi,yi),yi.add=Zl,yi.attempt=Nl,yi.camelCase=wl,yi.capitalize=_l,yi.ceil=Jl,yi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Qa(i))==i?i:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pi(Qa(e),t,i)},yi.clone=function(e){return Ui(e,h)},yi.cloneDeep=function(e){return Ui(e,p|h)},yi.cloneDeepWith=function(e,t){return Ui(e,p|h,t="function"==typeof t?t:n)},yi.cloneWith=function(e,t){return Ui(e,h,t="function"==typeof t?t:n)},yi.conformsTo=function(e,t){return null==t||Hi(e,t,pl(t))},yi.deburr=kl,yi.defaultTo=function(e,t){return null==e||e!=e?t:e},yi.divide=Xl,yi.endsWith=function(e,t,i){e=Ja(e),t=Hr(t);var r=e.length,o=i=i===n?r:Pi(Ga(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},yi.eq=xa,yi.escape=function(e){return(e=Ja(e))&&Oe.test(e)?e.replace(Me,Rn):e},yi.escapeRegExp=function(e){return(e=Ja(e))&&Ie.test(e)?e.replace(Le,"\\$&"):e},yi.every=function(e,t,i){var r=Ea(e)?ln:Ki;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.find=Qs,yi.findIndex=ks,yi.findKey=function(e,t){return bn(e,Ho(t,3),Xi)},yi.findLast=Zs,yi.findLastIndex=Es,yi.findLastKey=function(e,t){return bn(e,Ho(t,3),er)},yi.floor=ec,yi.forEach=Js,yi.forEachRight=Xs,yi.forIn=function(e,t){return null==e?e:Zi(e,Ho(t,3),dl)},yi.forInRight=function(e,t){return null==e?e:Ji(e,Ho(t,3),dl)},yi.forOwn=function(e,t){return e&&Xi(e,Ho(t,3))},yi.forOwnRight=function(e,t){return e&&er(e,Ho(t,3))},yi.get=sl,yi.gt=wa,yi.gte=_a,yi.has=function(e,t){return null!=e&&Yo(e,t,sr)},yi.hasIn=al,yi.head=Cs,yi.identity=Rl,yi.includes=function(e,t,n,i){e=Ca(e)?e:xl(e),n=n&&!i?Ga(n):0;var r=e.length;return n<0&&(n=Zn(r+n,0)),Ua(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&xn(e,t,n)>-1},yi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),xn(e,t,r)},yi.inRange=function(e,t,i){return t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n){return e>=Jn(t,n)&&e<Zn(t,n)}(e=Qa(e),t,i)},yi.invoke=ul,yi.isArguments=ka,yi.isArray=Ea,yi.isArrayBuffer=Ma,yi.isArrayLike=Ca,yi.isArrayLikeObject=Oa,yi.isBoolean=function(e){return!0===e||!1===e||Ia(e)&&rr(e)==q},yi.isBuffer=Da,yi.isDate=Sa,yi.isElement=function(e){return Ia(e)&&1===e.nodeType&&!Fa(e)},yi.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Z||t==re)return!e.size;if(is(e))return!mr(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},yi.isEqual=function(e,t){return pr(e,t)},yi.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?pr(e,t,n,i):!!r},yi.isError=Ta,yi.isFinite=function(e){return"number"==typeof e&&vn(e)},yi.isFunction=Aa,yi.isInteger=Na,yi.isLength=ja,yi.isMap=za,yi.isMatch=function(e,t){return e===t||dr(e,t,Wo(t))},yi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,dr(e,t,Wo(t),i)},yi.isNaN=function(e){return Ra(e)&&e!=+e},yi.isNative=function(e){if(ns(e))throw new tt(o);return hr(e)},yi.isNil=function(e){return null==e},yi.isNull=function(e){return null===e},yi.isNumber=Ra,yi.isObject=La,yi.isObjectLike=Ia,yi.isPlainObject=Fa,yi.isRegExp=Ba,yi.isSafeInteger=function(e){return Na(e)&&e>=-L&&e<=L},yi.isSet=Pa,yi.isString=Ua,yi.isSymbol=Ha,yi.isTypedArray=$a,yi.isUndefined=function(e){return e===n},yi.isWeakMap=function(e){return Ia(e)&&Go(e)==le},yi.isWeakSet=function(e){return Ia(e)&&rr(e)==ce},yi.join=function(e,t){return null==e?"":Mn.call(e,t)},yi.kebabCase=El,yi.last=Ts,yi.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=Ga(i))<0?Zn(r+o,0):Jn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):yn(e,_n,o,!0)},yi.lowerCase=Ml,yi.lowerFirst=Cl,yi.lt=Wa,yi.lte=qa,yi.max=function(e){return e&&e.length?Gi(e,Rl,or):n},yi.maxBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),or):n},yi.mean=function(e){return kn(e,Rl)},yi.meanBy=function(e,t){return kn(e,Ho(t,2))},yi.min=function(e){return e&&e.length?Gi(e,Rl,vr):n},yi.minBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),vr):n},yi.stubArray=Yl,yi.stubFalse=Ql,yi.stubObject=function(){return{}},yi.stubString=function(){return""},yi.stubTrue=function(){return!0},yi.multiply=tc,yi.nth=function(e,t){return e&&e.length?_r(e,Ga(t)):n},yi.noConflict=function(){return qt._===this&&(qt._=bt),this},yi.noop=Hl,yi.now=sa,yi.pad=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Eo(Kt(r),n)+e+Eo(Vt(r),n)},yi.padEnd=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?e+Eo(t-i,n):e},yi.padStart=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?Eo(t-i,n)+e:e},yi.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ei(Ja(e).replace(ze,""),t||0)},yi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=ti();return Jn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Or(e,t)},yi.reduce=function(e,t,n){var i=Ea(e)?fn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,qi)},yi.reduceRight=function(e,t,n){var i=Ea(e)?mn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,Vi)},yi.repeat=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),Dr(Ja(e),t)},yi.replace=function(){var e=arguments,t=Ja(e[0]);return e.length<3?t:t.replace(e[1],e[2])},yi.result=function(e,t,i){var r=-1,o=(t=Jr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[vs(t[r])];s===n&&(r=o,s=i),e=Aa(s)?s.call(e):s}return e},yi.round=nc,yi.runInContext=e,yi.sample=function(e){return(Ea(e)?Ti:Tr)(e)},yi.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?qn(e):e.length;var t=Go(e);return t==Z||t==re?e.size:mr(e).length},yi.snakeCase=Ol,yi.some=function(e,t,i){var r=Ea(e)?gn:Rr;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.sortedIndex=function(e,t){return Fr(e,t)},yi.sortedIndexBy=function(e,t,n){return Br(e,t,Ho(n,2))},yi.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Fr(e,t);if(i<n&&xa(e[i],t))return i}return-1},yi.sortedLastIndex=function(e,t){return Fr(e,t,!0)},yi.sortedLastIndexBy=function(e,t,n){return Br(e,t,Ho(n,2),!0)},yi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},yi.startCase=Dl,yi.startsWith=function(e,t,n){return e=Ja(e),n=null==n?0:Pi(Ga(n),0,e.length),t=Hr(t),e.slice(n,n+t.length)==t},yi.subtract=ic,yi.sum=function(e){return e&&e.length?On(e,Rl):0},yi.sumBy=function(e,t){return e&&e.length?On(e,Ho(t,2)):0},yi.template=function(e,t,i){var r=yi.templateSettings;i&&Xo(e,t,i)&&(t=n),e=Ja(e),t=tl({},t,r,No);var o,s,l=tl({},t.imports,r.imports,No),c=pl(l),u=An(l,c),p=0,d=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+d.source+"|"+(d===Te?We:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(p,l).replace(Xe,Fn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(ke,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Nl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(v.source=h,Ta(v))throw v;return v},yi.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=R,i=Jn(e,R);t=Ho(t),e-=R;for(var r=Dn(i,t);++n<e;)t(n);return r},yi.toFinite=Ka,yi.toInteger=Ga,yi.toLength=Ya,yi.toLower=function(e){return Ja(e).toLowerCase()},yi.toNumber=Qa,yi.toSafeInteger=function(e){return e?Pi(Ga(e),-L,L):0===e?e:0},yi.toString=Ja,yi.toUpper=function(e){return Ja(e).toUpperCase()},yi.trim=function(e,t,i){if((e=Ja(e))&&(i||t===n))return Sn(e);if(!e||!(t=Hr(t)))return e;var r=Vn(e),o=Vn(t);return eo(r,jn(r,o),Ln(r,o)+1).join("")},yi.trimEnd=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,0,Ln(r,Vn(t))+1).join("")},yi.trimStart=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.replace(ze,"");if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,jn(r,Vn(t))).join("")},yi.truncate=function(e,t){var i=C,r=O;if(La(t)){var o="separator"in t?t.separator:o;i="length"in t?Ga(t.length):i,r="omission"in t?Hr(t.omission):r}var s=(e=Ja(e)).length;if(Bn(e)){var a=Vn(e);s=a.length}if(i>=s)return e;var l=i-qn(r);if(l<1)return r;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+r;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,p=c;for(o.global||(o=ot(o.source,Ja(qe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;c=c.slice(0,d===n?l:d)}}else if(e.indexOf(Hr(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},yi.unescape=function(e){return(e=Ja(e))&&Ce.test(e)?e.replace(Ee,Gn):e},yi.uniqueId=function(e){var t=++ft;return Ja(e)+t},yi.upperCase=Sl,yi.upperFirst=Tl,yi.each=Js,yi.eachRight=Xs,yi.first=Cs,Ul(yi,function(){var e={};return Xi(yi,(function(t,n){ht.call(yi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),yi.VERSION=i,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){yi[e].placeholder=yi})),sn(["drop","take"],(function(e,t){ki.prototype[e]=function(i){i=i===n?1:Zn(Ga(i),0);var r=this.__filtered__&&!t?new ki(this):this.clone();return r.__filtered__?r.__takeCount__=Jn(i,r.__takeCount__):r.__views__.push({size:Jn(i,R),type:e+(r.__dir__<0?"Right":"")}),r},ki.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==T||n==N;ki.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ki.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ki.prototype[e]=function(){return this.__filtered__?new ki(this):this[n](1)}})),ki.prototype.compact=function(){return this.filter(Rl)},ki.prototype.find=function(e){return this.filter(e).head()},ki.prototype.findLast=function(e){return this.reverse().find(e)},ki.prototype.invokeMap=Sr((function(e,t){return"function"==typeof e?new ki(this):this.map((function(n){return cr(n,e,t)}))})),ki.prototype.reject=function(e){return this.filter(ma(Ho(e)))},ki.prototype.slice=function(e,t){e=Ga(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ki(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ga(t))<0?i.dropRight(-t):i.take(t-e)),i)},ki.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ki.prototype.toArray=function(){return this.take(R)},Xi(ki.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=yi[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(yi.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof ki,c=a[0],u=l||Ea(t),p=function(e){var t=o.apply(yi,hn([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,m=l&&!h;if(!s&&u){t=m?t:new ki(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[p],thisArg:n}),new _i(g,d)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);yi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ea(r)?r:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xi(ki.prototype,(function(e,t){var n=yi[t];if(n){var i=n.name+"";ht.call(ui,i)||(ui[i]=[]),ui[i].push({name:t,func:n})}})),ui[xo(n,v).name]=[{name:"wrapper",func:n}],ki.prototype.clone=function(){var e=new ki(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},ki.prototype.reverse=function(){if(this.__filtered__){var e=new ki(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ki.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Jn(t,e+s);break;case"takeRight":e=Zn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,h=Jn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return Kr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<p;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(y==A)g=x;else if(!x){if(y==T)continue e;break e}}f[d++]=g}return f},yi.prototype.at=Gs,yi.prototype.chain=function(){return Vs(this)},yi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},yi.prototype.next=function(){this.__values__===n&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},yi.prototype.plant=function(e){for(var t,i=this;i instanceof wi;){var r=ys(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},yi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ki){var t=e;return this.__actions__.length&&(t=new ki(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new _i(t,this.__chain__)}return this.thru(Ls)},yi.prototype.toJSON=yi.prototype.valueOf=yi.prototype.value=function(){return Kr(this.__wrapped__,this.__actions__)},yi.prototype.first=yi.prototype.head,St&&(yi.prototype[St]=function(){return this}),yi}();Kt?((Kt.exports=Yn)._=Yn,Vt._=Yn):qt._=Yn}).call(B)}(rP,rP.exports);const oP=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),sP=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),aP={onMouseEnter:oP,onMouseLeave:sP},lP=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?aP:{}};function cP(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var uP="undefined"!=typeof window&&"undefined"!=typeof document;function pP(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function dP(){return uP&&document.createElement("div")}function hP(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!hP(e[n],t[n]))return!1}return!0}return!1}function fP(e){var t=[];return e.forEach((function(e){t.find((function(t){return hP(e,t)}))||t.push(e)})),t}var mP=uP?c:r;function gP(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var vP={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||gP(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&gP(t,"remove",e.props.className)},onAfterUpdate:i}}};function bP(e){return function(r){var o=r.children,s=r.content,a=r.visible,c=r.singleton,u=r.render,p=r.reference,d=r.disabled,h=void 0!==d&&d,f=r.ignoreAttributes,m=void 0===f||f;r.__source,r.__self;var g,v,b=cP(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),y=void 0!==a,x=void 0!==c,w=n(!1),_=w[0],k=w[1],E=n({}),M=E[0],C=E[1],O=n(),D=O[0],S=O[1],T=(g=function(){return{container:dP(),renders:1}},(v=i()).current||(v.current="function"==typeof g?g():g),v.current),A=Object.assign({ignoreAttributes:m},b,{content:T.container});y&&(A.trigger="manual",A.hideOnClick=!1),x&&(h=!0);var N=A,j=A.plugins||[];u&&(N=Object.assign({},A,{plugins:x&&null!=c.data?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,S(n.content)}}}}]):j,render:function(){return{popper:T.container}}}));var L=[p].concat(o?[o.type]:[]);return mP((function(){var t=p;p&&p.hasOwnProperty("current")&&(t=p.current);var n=e(t||T.ref||dP(),Object.assign({},N,{plugins:[vP].concat(A.plugins||[])}));return T.instance=n,h&&n.disable(),a&&n.show(),x&&c.hook({instance:n,content:s,props:N,setSingletonContent:S}),k(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),L),mP((function(){var e;if(1!==T.renders){var t,n,i,r,o=T.instance;o.setProps((t=o.props,n=N,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:fP([].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],(null==(r=n.popperOptions)?void 0:r.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),y&&(a?o.show():o.hide()),x&&c.hook({instance:o,content:s,props:N,setSingletonContent:S})}else T.renders++})),mP((function(){var e;if(u){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&M.escaped===(null==i?void 0:i.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?l(o,{ref:function(e){T.ref=e,pP(o.ref,e)}}):null,_&&z(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),D,T.instance):s,T.container))}}var yP=function(e,n){return a((function(i,r){var o=i.children,s=cP(i,["children"]);return t.createElement(e,Object.assign({},n,s),o?l(o,{ref:function(e){pP(r,e),pP(o.ref,e)}}):null)}))},xP=yP(bP(rD));class wP extends t.Component{constructor(e){super(e),Nd(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Nd(this,"selectItem",(e=>{const{items:t,editor:n,range:i}=this.props,r=t[e],o=r&&r.command,s=dg(r.items);o&&s&&r.command({editor:n,range:i})})),Nd(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Nd(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Nd(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Nd(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Nd(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:i}=this.state,r=n[i];r&&!dg(r.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=t.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:i}=this.props,r=n===i;t!==e.items&&this.setState({selectedIndex:0}),pF({wrapperRef:this.menuRef,index:this.state.selectedIndex}),r?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:i}=this.props,{selectedIndex:r}=this.state,o=n===i;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,i)=>{const s=dg(e.items),a=t.createElement(_P,{index:i,item:e,key:e.title,selectItem:()=>s&&this.selectItem(i),selectedIndex:o?r:-1,onHover:()=>this.setState({selectedIndex:i})});return s?a:t.createElement(xP,{interactive:!0,key:e.title,placement:"right",visible:r===i,content:t.createElement(wP,Db({},this.props,{items:e.items,menuIndex:n+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const _P=a(((e,n)=>{let{item:i,selectedIndex:r,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=i;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:W("neeto-editor-slash-commands__item",{active:o===r}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,i.title),t.createElement("p",null,i.description)))}));class kP extends t.Component{constructor(){super(...arguments),Nd(this,"state",{activeMenuIndex:0}),Nd(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Nd(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(wP,Db({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const EP=[{optionName:q.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:sp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:q.H1,title:"H1",description:"Add a big heading.",Icon:xp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:q.H2,title:"H2",description:"Add a sub-heading.",Icon:_p,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:q.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:q.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:q.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:q.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:q.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:Gu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:q.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:Vu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:q.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Pu,command:hg},{optionName:q.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Qu,command:hg},{optionName:q.ATTACHMENTS,title:"Attachments",description:"Add an attachment.",Icon:zu,command:hg},{optionName:q.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:xu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:q.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Du,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:q.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:fp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:q.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:np,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:q.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Np,command:hg},{optionName:q.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:rp,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],MP={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},CP=e=>{let{editor:t,range:n}=e;const i=prompt("Please enter Youtube/Loom/Vimeo embed URL."),r=!!i&&(DP(i)||TP(i)||SP(i));r?t.chain().focus().deleteRange(n).setExternalVideo({src:r}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},OP=e=>{let{options:t,addonCommands:n,setMediaUploader:i}=e;const r=EP.map((e=>e.optionName===q.IMAGE_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("image",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("video",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_EMBED?gb("command",CP,e):e));return[...r.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},DP=e=>{const t=e.match(Y);return t&&`https://www.youtube.com/embed/${t[5]}`},SP=e=>{const t=e.match(Q);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},TP=e=>{const t=e.match(Z);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},AP=new Xx("commands");var NP=e=>{let{addonCommands:t,options:n,setMediaUploader:i}=e;const r=OP({options:n,addonCommands:t,setMediaUploader:i});return iM.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:AP,command:e=>{let{editor:t,range:n,props:i}=e;i.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=r.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return rP.exports.isEmpty(n)?[MP]:n},render:()=>{let e,t;return{onStart:n=>{e=new vD(kP,{props:n,editor:n.editor}),t=rD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),oP()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),sP()}}}}}),addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}})};const jP=e=>{let{onClickVariable:n,variables:i}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:i,category_label:r,variables:o}=n;if(i&&o){const e=o.map(gb("category_key",i));t.push({label:r,variables:e})}else e.push(n)})),rP.exports.isEmpty(e)||t.push({label:rP.exports.isEmpty(t)?null:"Others",variables:e}),t}(i);return Sd(i)?null:t.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,i)=>{let{label:r,variables:o}=e;return t.createElement(LP,{index:i,key:i,title:r,variables:o,onClickItem:n})})))},LP=e=>{let{index:n,title:i,variables:r,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},i&&t.createElement("h6",null,i),t.createElement("div",{className:"neeto-editor-variables-row"},r.map((e=>t.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},IP=e=>{let{items:n,command:i}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(jP,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,r=t?`${t}.${n}`:n;i({label:r,id:r})}}))},zP=new Xx("variables"),RP=GM.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",BE({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,i=!1;const{selection:r}=n,{empty:o,anchor:s}=r;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return i=!0,t.insertText("",n,n+e.nodeSize),!1})),i)}))}},addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}}),FP={char:"{{",startOfLine:!1,pluginKey:zP,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setVariable(i).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new vD(IP,{props:n,editor:n.editor}),t=rD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var BP=e=>{let{suggestion:t={}}=e;return RP.configure({suggestion:{...FP,...t}})};const PP=e=>{var n;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:p,vidheight:d,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=d,v=h;const b=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(gD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(tF,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(eF,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:v},onResizeStop:(e,t,n)=>{g=n.offsetHeight,v=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:v,height:g,width:v})),o.commands.focus()}},t.createElement("video",Db({controls:!0},r.attrs,{alt:b,preload:"metadata",src:p}))),t.createElement(mD,{as:"figcaption",className:W({"is-empty":Sd(b)})})))},UP=GM.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:i,src:r,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",BE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",BE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>yD(PP),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),HP=e=>{var i;let{uppy:o}=e;const[s,a]=n(0);r((()=>{o.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[o]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(i=o.getFiles()[0])||void 0===i?void 0:i.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(f,{icon:Cu,size:"small",style:"text",onClick:()=>o.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},$P=e=>{let{isImage:n,endpoint:i,onSuccess:r}=e;const o=n?ic:rc,{uppy:s,isUploading:a}=eb({endpoint:i,uppyConfig:o,onSuccess:r});return a?t.createElement(HP,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(xl,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${jp(o.restrictions.maxFileSize)}`}))},WP=e=>{let{isImage:i,url:r,editor:o,onClose:s,alt:a=""}=e;const[l,c]=n(a||""),[u,p]=n(!1),d=()=>{i?o.chain().focus().setFigure({src:r,caption:l,alt:l}).run():o.chain().focus().setVideo({src:r,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,i?t.createElement("img",{loading:"lazy",src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(h,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(f,{disabled:u,label:"Done",onClick:d}),t.createElement(f,{label:"Cancel",style:"text",onClick:s})))};var qP={},VP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},KP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function i(e,t){return t._once=!0,n(e,t),this}function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return VP({},e,{on:n,once:i,off:r,emit:o})},GP=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,v=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return k(v.children)},new:function(){return k(v.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[C,O,D],x=[S,T,A,N],w=KP({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function C(){i=M()}function O(){r=-1===i?m[m.length-1]:m[i]}function D(){s=E(r.columns)}function S(){p=b[t?"new":"all"]()}function T(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function A(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function N(){v.style.position="relative",v.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",v.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==M()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),YP=U(GP),QP={exports:{}},ZP={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(Oa.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(ZP,ZP.exports),QP.exports=ZP.exports,Object.defineProperty(qP,"__esModule",{value:!0});var JP,XP,eU=qP.default=void 0,tU=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nU=t,iU=aU(nU),rU=aU(Oa.exports),oU=aU(YP),sU=aU(QP.exports);function aU(e){return e&&e.__esModule?e:{default:e}}function lU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cU(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var uU=(XP=JP=function(e){function t(){var e,n,i;lU(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=cU(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,oU.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},cU(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,nU.Component),tU(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return iU.default.createElement(sU.default,r,iU.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),JP.propTypes={children:rU.default.arrayOf(rU.default.element).isRequired,className:rU.default.string,initialLoad:rU.default.bool,pack:rU.default.bool,packed:rU.default.string,position:rU.default.bool,sizes:rU.default.array,style:rU.default.object},JP.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},XP);eU=qP.default=uU;const pU=e=>{let{onSubmit:o,unsplashApiKey:s}=e;const a=i(null),[l,c]=n(""),[u,p]=n(!1),[d,f]=n([]),[m,g]=n(1),[v,y]=n(!0),[x,w]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[i,o]=n(e);return r((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e]),i}(l||"latest");r((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return ig.get(V,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:i}}=t;f(1===e?n:[...d,...n]),g(e+1),y(e<i)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!x&&dg(d)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(eU,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:v,loadMore:()=>{!x&&v&&m>1&&k(m)},loader:t.createElement(b,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.map(((e,n)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},t.createElement("img",{src:e.urls.regular,onClick:()=>o(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!v&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},dU=e=>{let{buttonLabel:i="Submit",placeholder:r,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:W("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:r,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(f,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:i,onClick:e=>{e.preventDefault(),G.test(a)?o(a):u("Please enter a valid url")}}))},hU=e=>{let{mediaUploader:i,onClose:r,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,p]=n(""),d=i.image||i.video;let h=a?sc:sc.slice(0,2);i.video&&(h=[]);const f=()=>{r(),p(""),c("local")};return t.createElement(x,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!rP.exports.isEmpty(h)&&t.createElement(w,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(w.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(WP,{editor:o,isImage:i.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement($P,{endpoint:s,isImage:i.image,onSuccess:p}),"link"===l&&t.createElement(dU,{placeholder:"Paste the link here...",buttonLabel:i.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(pU,{unsplashApiKey:a,onSubmit:p})))))};var fU=[],mU=[];function gU(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=fU.indexOf(o);-1===s&&(s=fU.push(o)-1,mU[s]={}),n=mU[s]&&mU[s][i]?mU[s][i]:mU[s][i]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}gU(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const vU=e=>{let{editor:i,handleClose:o,handleAnimateInvalidLink:s}=e;const[a,l]=n("");r((()=>{l(i.getAttributes("link").href||"")}),[]);const c=()=>{G.test(a)?(i.chain().focus().setLink({href:a}).run(),o()):dg(a)?(i.chain().focus().unsetLink().run(),o()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?o():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(f,{"data-cy":"neeto-editor-link-cancel-button",icon:Cu,size:"small",style:"icon",onClick:()=>{a?(l(""),i.chain().focus().unsetLink().run()):o()}}))},bU=16,yU="#2F3941",xU="#68737D",wU=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(d,r,t.createElement("button",Db({disabled:a,type:"button",className:W("neeto-editor-menu__item",{active:i})},lP(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:bU,color:s||(i?yU:xU)})))};wU.propTypes={icon:Oa.exports.oneOfType([Oa.exports.element,Oa.exports.func]),iconActive:Oa.exports.bool,onClick:Oa.exports.func,tooltipProps:Oa.exports.object};const _U=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(wU,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:pg(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},kU=e=>{let{editor:n,mentions:i}=e;const r=JB(i),{Menu:o,MenuItem:s}=g;return Sd(r)?null:t.createElement(g,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:Lu,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(y,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(m,{style:"body2"},r))}))))},EU=e=>{let{editor:n}=e;return t.createElement(g,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:fp,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(CR,{editor:n}))},MU=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var CU=zp((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const OU=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],DU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:zu,command:()=>{},active:!1,optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"}],right:[{Icon:Tp,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return CU(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},SU=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(f,Db({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:r?"secondary":"text",tooltipProps:{content:pg(o),position:"bottom"},onClick:i},lP(s)))},TU=e=>{let{editor:t,commands:n}=e;const{to:i}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:i,to:i}})}}}))},AU=e=>{let{editor:i,options:r,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=n(!1),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:i}),h=(e=>{var t;return(null===(t=e.find(JF("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=r.includes(q.EMOJI),m=r.includes(q.LINK),{font:g,block:v,list:b}=DU({editor:i,options:r,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(vU,{editor:i,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(xP,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(Nu,{size:14}))),t.createElement(MU,null),g.map(_U),t.createElement(MU,null),v.map(_U),f&&t.createElement(EU,{editor:i,theme:"dark"}),t.createElement(MU,null),b.map(_U),t.createElement(MU,null),m&&_U({Icon:Wu,command:()=>l(!0),active:i.isActive("link"),optionName:"link",highlight:!1}),t.createElement(kU,{editor:i,mentions:o,menuType:"bubble"}))},NU=e=>{let{editor:i,options:r,mentions:o=[],setMediaUploader:s}=e;const[a,l]=n(!1),[c,u]=n(!1),p=i&&i.view.state.selection.node,d=p&&"image"===p.type.name,h=[q.BOLD,q.ITALIC,q.UNDERLINE,q.STRIKETHROUGH,q.LINK],f=dg(r.filter((e=>h.includes(e))));return!i||!d&&f?null:t.createElement("div",null,t.createElement(lD,{editor:i,className:W("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:gO,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(AU,{editor:i,isLinkOptionActive:c,mentions:o,options:r,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:jU,MenuItem:LU}=g,IU=e=>{var n;let{editor:i}=e;const r=(null===(n=OU.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(g,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(jU,null,OU.map((e=>{let{label:n,value:r}=e;return t.createElement(LU.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:zU}=g,RU=e=>{let{editor:i}=e;const[r,o]=n(""),[s,a]=n(""),[l,c]=n(!1),u=i.isActive("link"),p=()=>c(!1),d=()=>{G.test(s)?(i.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(g,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:Wu,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(zU,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:r,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{i.chain().focus().unsetLink().run(),p()}})))},{Menu:FU}=g,BU=e=>{let{editor:n,variables:i}=e;return Sd(i)?null:t.createElement(g,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:_u,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(FU,null,t.createElement(jP,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},PU=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=DU({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(q.EMOJI),v=i.includes(q.LINK),b=TU({editor:n,commands:a});return t.createElement("div",{className:W("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(IU,{editor:n}),u.map(SU),p.map(SU),g&&t.createElement(EU,{editor:n}),d.map(SU),v&&t.createElement(RU,{editor:n}),h.map(SU),t.createElement(kU,{editor:n,mentions:r}),b.map(SU),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(SU))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(BU,{editor:n,variables:o})))},UU=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(d,Db({disabled:!s,onClick:()=>i()},s),t.createElement("button",Db({className:W("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},HU={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},$U=e=>{let{icon:i,isOpen:r,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=n(!1);return t.createElement(xP,Db({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[HU],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:W("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement(UU,Db({icon:i,onClick:l},c))))},WU=e=>{let{editor:i,optionName:r}=e;const[o,s]=n(!1);return t.createElement($U,{className:"ne-headless__emoji",icon:fp,isOpen:o,buttonProps:{tooltipProps:{content:pg(r),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(CR,{editor:i}))},qU=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===q.EMOJI?t.createElement(WU,{editor:n,optionName:i}):t.createElement(UU,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:pg(i),delay:[500],position:"bottom"},onClick:r})},VU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"},{Icon:fp,command:()=>{},optionName:"emoji"},{Icon:Tp,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},KU=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s}=e;if(!n)return null;const a=[...VU({editor:n,options:i,setMediaUploader:r}),...TU({editor:n,commands:o})];return t.createElement("div",{className:"ne-headless"},a.map((e=>t.createElement(qU,Db({editor:n,key:e.optionName},e)))),s)},GU=e=>{const[i,r]=n({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=K,editorSecrets:u={}}=e,p={fixed:PU,bubble:NU,headless:KU,none:()=>t.createElement("div",null)}[o],d=Sd(a)?[...kD,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,Db({},e,{options:d,setMediaUploader:r})),t.createElement(hU,{editor:l,mediaUploader:i,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>r({image:!1,video:!1})}))},YU=e=>{let{rows:t}=e;return`min-height: ${t*CD+2*(ED+MD)}px;`},QU=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=ny.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Nb.fromArray(n);return Fb.maxOpen(i)},ZU=(e,i)=>{let{initialValue:o="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=kD,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:v=K,onChange:b=hg,onFocus:y=hg,onBlur:x=hg,onSubmit:w=hg,variables:k=[],mentions:E=[],placeholder:M,extensions:C=[],editorSecrets:O={},rows:D=6,isCharacterCountActive:S=!1,keyboardShortcuts:T=[],error:A=null,config:N={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!M,[F,B]=n({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=ND(p,_I);let f=[RD,zD.configure(h.code),dT.configure(h.underline),UD.configure(h.highlight),wI.configure(h.codeBlock),sF.configure(h.figCaption),EI.configure(h.embeds),pT.configure(h.link),LR.configure(h.emojiSuggestion),DR.configure(h.emojiPicker),kI.configure(h.customCommands),jD.configure(h.characterCount),FD.configure(h.focus),UP,oF({uploadEndpoint:u}),xA.configure(h.starterKit),lF({onSubmit:l,shortcuts:c}),iP.configure(ND({placeholder:t},h.placeholder))];return o&&f.push(NP({options:s,addonCommands:a,setMediaUploader:d})),Sd(i)||f.push(nP({suggestion:{items:XB(i)}})),Sd(r)||f.push(BP({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:M,extensions:C,mentions:E,variables:k,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:T,uploadEndpoint:v,config:N,setMediaUploader:B});(e=>{let{initialValue:t}=e;r((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&dg(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:o});const U=W("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=xD({extensions:P,content:o,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:YU({rows:D})},clipboardTextParser:QU},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=Dx.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return b(t.getHTML())},onFocus:y,onBlur:x});return u(i,(()=>({editor:H}))),rE.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:W({[m]:m})},a&&t.createElement(_,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(_D,{error:A,isFixedMenuActive:L},t.createElement(OD,{editor:H,isActive:S},t.createElement(GU,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:O,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:v,variables:k}),t.createElement(dD,Db({editor:H},j)),t.createElement(hU,{editor:H,mediaUploader:F,unsplashApiKey:O.unsplash,uploadEndpoint:v,onClose:()=>B({image:!1,video:!1})}))));var $};var JU=t.forwardRef(ZU);gU('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-file-attachments-wrapper {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper {\n display: flex;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n margin-top: 0.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n justify-content: space-between;\n align-items: center;\n border-radius: 0.25rem;\n border-width: 2px;\n width: 15rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper {\n display: flex;\n align-items: center;\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n gap: 0.25rem;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper {\n display: flex;\n gap: auto;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n opacity: 0.5;\n width: 85%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper .truncate-ellipsis-progress {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .truncate-ellipsis {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .drop-down-container .menu-label {\n text-transform: capitalize;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .icon-opacity-50 {\n opacity: 0.5;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .rename-input {\n margin-right: 0.5rem;\n height: 90%;\n width: 100%;\n}\n.upload-btn {\n margin-top: 0.5rem;\n}\ninput[type=file] {\n display: none;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const XU=(e,n)=>{let{name:i,...r}=e;return t.createElement(R,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(JU,Db({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var eH=a(XU);
|
|
59
|
+
*/!function(e,t){(function(){var n,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",p=1,d=2,h=4,f=1,m=2,g=1,v=2,b=4,y=8,x=16,w=32,_=64,k=128,E=256,M=512,C=30,O="...",D=800,S=16,T=1,A=2,N=3,j=1/0,L=9007199254740991,I=17976931348623157e292,z=0/0,R=4294967295,F=R-1,P=R>>>1,U=[["ary",k],["bind",g],["bindKey",v],["curry",y],["curryRight",x],["flip",M],["partial",w],["partialRight",_],["rearg",E]],H="[object Arguments]",$="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",K="[object DOMException]",G="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",X="[object Null]",ee="[object Object]",te="[object Promise]",ne="[object Proxy]",ie="[object RegExp]",re="[object Set]",oe="[object String]",se="[object Symbol]",ae="[object Undefined]",le="[object WeakMap]",ce="[object WeakSet]",ue="[object ArrayBuffer]",pe="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",ge="[object Int32Array]",ve="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ce=RegExp(Ee.source),Oe=RegExp(Me.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Le.source),ze=/^\s+/,Re=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,et="\\ud800-\\udfff",tt="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",nt="\\u2700-\\u27bf",it="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ot="\\ufe0e\\ufe0f",st="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",at="['’]",lt="["+et+"]",ct="["+st+"]",ut="["+tt+"]",pt="\\d+",dt="["+nt+"]",ht="["+it+"]",ft="[^"+et+st+pt+nt+it+rt+"]",mt="\\ud83c[\\udffb-\\udfff]",gt="[^"+et+"]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",xt="\\u200d",wt="(?:"+ht+"|"+ft+")",_t="(?:"+yt+"|"+ft+")",kt="(?:"+at+"(?:d|ll|m|re|s|t|ve))?",Et="(?:"+at+"(?:D|LL|M|RE|S|T|VE))?",Mt="(?:"+ut+"|"+mt+")"+"?",Ct="["+ot+"]?",Ot=Ct+Mt+("(?:"+xt+"(?:"+[gt,vt,bt].join("|")+")"+Ct+Mt+")*"),Dt="(?:"+[dt,vt,bt].join("|")+")"+Ot,St="(?:"+[gt+ut+"?",ut,vt,bt,lt].join("|")+")",Tt=RegExp(at,"g"),At=RegExp(ut,"g"),Nt=RegExp(mt+"(?="+mt+")|"+St+Ot,"g"),jt=RegExp([yt+"?"+ht+"+"+kt+"(?="+[ct,yt,"$"].join("|")+")",_t+"+"+Et+"(?="+[ct,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+kt,yt+"+"+Et,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Dt].join("|"),"g"),Lt=RegExp("["+xt+et+tt+ot+"]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Ft={};Ft[de]=Ft[he]=Ft[fe]=Ft[me]=Ft[ge]=Ft[ve]=Ft[be]=Ft[ye]=Ft[xe]=!0,Ft[H]=Ft[$]=Ft[ue]=Ft[q]=Ft[pe]=Ft[V]=Ft[G]=Ft[Y]=Ft[Z]=Ft[J]=Ft[ee]=Ft[ie]=Ft[re]=Ft[oe]=Ft[le]=!1;var Bt={};Bt[H]=Bt[$]=Bt[ue]=Bt[pe]=Bt[q]=Bt[V]=Bt[de]=Bt[he]=Bt[fe]=Bt[me]=Bt[ge]=Bt[Z]=Bt[J]=Bt[ee]=Bt[ie]=Bt[re]=Bt[oe]=Bt[se]=Bt[ve]=Bt[be]=Bt[ye]=Bt[xe]=!0,Bt[G]=Bt[Y]=Bt[le]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ut=parseFloat,Ht=parseInt,$t="object"==typeof B&&B&&B.Object===Object&&B,Wt="object"==typeof self&&self&&self.Object===Object&&self,qt=$t||Wt||Function("return this")(),Vt=t&&!t.nodeType&&t,Kt=Vt&&"object"=="object"&&e&&!e.nodeType&&e,Gt=Kt&&Kt.exports===Vt,Yt=Gt&&$t.process,Qt=function(){try{var e=Kt&&Kt.require&&Kt.require("util").types;return e||Yt&&Yt.binding&&Yt.binding("util")}catch(e){}}(),Zt=Qt&&Qt.isArrayBuffer,Jt=Qt&&Qt.isDate,Xt=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,tn=Qt&&Qt.isSet,nn=Qt&&Qt.isTypedArray;function rn(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)}function on(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function sn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ln(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function un(e,t){return!!(null==e?0:e.length)&&xn(e,t,0)>-1}function pn(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function dn(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function hn(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function fn(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function mn(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function gn(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var vn=En("length");function bn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function yn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function xn(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function _n(e){return e!=e}function kn(e,t){var n=null==e?0:e.length;return n?On(e,t)/n:z}function En(e){return function(t){return null==t?n:t[e]}}function Mn(e){return function(t){return null==e?n:e[t]}}function Cn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function On(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Dn(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Sn(e){return e?e.slice(0,Kn(e)+1).replace(ze,""):e}function Tn(e){return function(t){return e(t)}}function An(e,t){return dn(t,(function(t){return e[t]}))}function Nn(e,t){return e.has(t)}function jn(e,t){for(var n=-1,i=e.length;++n<i&&xn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&xn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var zn=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Rn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fn(e){return"\\"+Pt[e]}function Bn(e){return Lt.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function Un(e,t){return function(n){return e(t(n))}}function Hn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[r++]=n)}return o}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qn(e){return Bn(e)?function(e){var t=Nt.lastIndex=0;for(;Nt.test(e);)++t;return t}(e):vn(e)}function Vn(e){return Bn(e)?function(e){return e.match(Nt)||[]}(e):function(e){return e.split("")}(e)}function Kn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Gn=Mn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yn=function e(t){var B,Re=(t=null==t?qt:Yn.defaults(qt.Object(),t,Yn.pick(qt,zt))).Array,et=t.Date,tt=t.Error,nt=t.Function,it=t.Math,rt=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Re.prototype,ct=nt.prototype,ut=rt.prototype,pt=t["__core-js_shared__"],dt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(B=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",gt=ut.toString,vt=dt.call(rt),bt=qt._,yt=ot("^"+dt.call(ht).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=Gt?t.Buffer:n,wt=t.Symbol,_t=t.Uint8Array,kt=xt?xt.allocUnsafe:n,Et=Un(rt.getPrototypeOf,rt),Mt=rt.create,Ct=ut.propertyIsEnumerable,Ot=lt.splice,Dt=wt?wt.isConcatSpreadable:n,St=wt?wt.iterator:n,Nt=wt?wt.toStringTag:n,Lt=function(){try{var e=qo(rt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==qt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==qt.Date.now&&et.now,Wt=t.setTimeout!==qt.setTimeout&&t.setTimeout,Vt=it.ceil,Kt=it.floor,Yt=rt.getOwnPropertySymbols,Qt=xt?xt.isBuffer:n,vn=t.isFinite,Mn=lt.join,Qn=Un(rt.keys,rt),Zn=it.max,Jn=it.min,Xn=et.now,ei=t.parseInt,ti=it.random,ni=lt.reverse,ii=qo(t,"DataView"),ri=qo(t,"Map"),oi=qo(t,"Promise"),si=qo(t,"Set"),ai=qo(t,"WeakMap"),li=qo(rt,"create"),ci=ai&&new ai,ui={},pi=bs(ii),di=bs(ri),hi=bs(oi),fi=bs(si),mi=bs(ai),gi=wt?wt.prototype:n,vi=gi?gi.valueOf:n,bi=gi?gi.toString:n;function yi(e){if(Ia(e)&&!Ea(e)&&!(e instanceof ki)){if(e instanceof _i)return e;if(ht.call(e,"__wrapped__"))return ys(e)}return new _i(e)}var xi=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function wi(){}function _i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function ki(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Mi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Oi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ci;++t<n;)this.add(e[t])}function Di(e){var t=this.__data__=new Mi(e);this.size=t.size}function Si(e,t){var n=Ea(e),i=!n&&ka(e),r=!n&&!i&&Da(e),o=!n&&!i&&!r&&$a(e),s=n||i||r||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Jo(c,l))||a.push(c);return a}function Ti(e){var t=e.length;return t?e[Or(0,t-1)]:n}function Ai(e,t){return ms(lo(e),Pi(t,0,e.length))}function Ni(e){return ms(lo(e))}function ji(e,t,i){(i!==n&&!xa(e[t],i)||i===n&&!(t in e))&&Fi(e,t,i)}function Li(e,t,i){var r=e[t];ht.call(e,t)&&xa(r,i)&&(i!==n||t in e)||Fi(e,t,i)}function Ii(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function zi(e,t,n,i){return qi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Ri(e,t){return e&&co(t,pl(t),e)}function Fi(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bi(e,t){for(var i=-1,r=t.length,o=Re(r),s=null==e;++i<r;)o[i]=s?n:sl(e,t[i]);return o}function Pi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function Ui(e,t,i,r,o,s){var a,l=t&p,c=t&d,u=t&h;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!La(e))return e;var f=Ea(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==Y||m==Q;if(Da(e))return no(e,l);if(m==ee||m==H||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,dl(t),e)}(a,e)):function(e,t){return co(e,Vo(e),t)}(e,Ri(a,e))}else{if(!Bt[m])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case ue:return io(e);case q:case V:return new i(+e);case pe:return function(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case fe:case me:case ge:case ve:case be:case ye:case xe:return ro(e,n);case Z:return new i;case J:case oe:return new i(e);case ie:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case se:return r=e,vi?rt(vi.call(r)):{}}var r}(e,m,l)}}s||(s=new Di);var v=s.get(e);if(v)return v;s.set(e,a),Pa(e)?e.forEach((function(n){a.add(Ui(n,t,i,n,e,s))})):za(e)&&e.forEach((function(n,r){a.set(r,Ui(n,t,i,r,e,s))}));var b=f?n:(u?c?Fo:Ro:c?dl:pl)(e);return sn(b||e,(function(n,r){b&&(n=e[r=n]),Li(a,r,Ui(n,t,i,r,e,s))})),a}function Hi(e,t,i){var r=i.length;if(null==e)return!r;for(e=rt(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $i(e,t,i){if("function"!=typeof e)throw new at(s);return ps((function(){e.apply(n,i)}),t)}function Wi(e,t,n,i){var o=-1,s=un,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,Tn(n))),i?(s=pn,a=!1):t.length>=r&&(s=Nn,a=!1,t=new Oi(t));e:for(;++o<l;){var p=e[o],d=null==n?p:n(p);if(p=i||0!==p?p:0,a&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(p)}else s(t,d,i)||c.push(p)}return c}yi.templateSettings={escape:De,evaluate:Se,interpolate:Te,variable:"",imports:{_:yi}},yi.prototype=wi.prototype,yi.prototype.constructor=yi,_i.prototype=xi(wi.prototype),_i.prototype.constructor=_i,ki.prototype=xi(wi.prototype),ki.prototype.constructor=ki,Ei.prototype.clear=function(){this.__data__=li?li(null):{},this.size=0},Ei.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(li){var i=t[e];return i===l?n:i}return ht.call(t,e)?t[e]:n},Ei.prototype.has=function(e){var t=this.__data__;return li?t[e]!==n:ht.call(t,e)},Ei.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=li&&t===n?l:t,this},Mi.prototype.clear=function(){this.__data__=[],this.size=0},Mi.prototype["delete"]=function(e){var t=this.__data__,n=Ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)},Mi.prototype.get=function(e){var t=this.__data__,i=Ii(t,e);return i<0?n:t[i][1]},Mi.prototype.has=function(e){return Ii(this.__data__,e)>-1},Mi.prototype.set=function(e,t){var n=this.__data__,i=Ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Ci.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ri||Mi),string:new Ei}},Ci.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Ci.prototype.get=function(e){return $o(this,e).get(e)},Ci.prototype.has=function(e){return $o(this,e).has(e)},Ci.prototype.set=function(e,t){var n=$o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Oi.prototype.add=Oi.prototype.push=function(e){return this.__data__.set(e,l),this},Oi.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.clear=function(){this.__data__=new Mi,this.size=0},Di.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Di.prototype.get=function(e){return this.__data__.get(e)},Di.prototype.has=function(e){return this.__data__.has(e)},Di.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mi){var i=n.__data__;if(!ri||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ci(i)}return n.set(e,t),this.size=n.size,this};var qi=ho(Xi),Vi=ho(er,!0);function Ki(e,t){var n=!0;return qi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Gi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):i(a,l)))var l=a,c=s}return c}function Yi(e,t){var n=[];return qi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Qi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=Zo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qi(a,t-1,n,i,r):hn(r,a):i||(r[r.length]=a)}return r}var Zi=fo(),Ji=fo(!0);function Xi(e,t){return e&&Zi(e,t,pl)}function er(e,t){return e&&Ji(e,t,pl)}function tr(e,t){return cn(t,(function(t){return Aa(e[t])}))}function nr(e,t){for(var i=0,r=(t=Jr(t,e)).length;null!=e&&i<r;)e=e[vs(t[i++])];return i&&i==r?e:n}function ir(e,t,n){var i=t(e);return Ea(e)?i:hn(i,n(e))}function rr(e){return null==e?e===n?ae:X:Nt&&Nt in rt(e)?function(e){var t=ht.call(e,Nt),i=e[Nt];try{e[Nt]=n;var r=!0}catch(e){}var o=gt.call(e);r&&(t?e[Nt]=i:delete e[Nt]);return o}(e):function(e){return gt.call(e)}(e)}function or(e,t){return e>t}function sr(e,t){return null!=e&&ht.call(e,t)}function ar(e,t){return null!=e&&t in rt(e)}function lr(e,t,i){for(var r=i?pn:un,o=e[0].length,s=e.length,a=s,l=Re(s),c=1/0,u=[];a--;){var p=e[a];a&&t&&(p=dn(p,Tn(t))),c=Jn(p.length,c),l[a]=!i&&(t||o>=120&&p.length>=120)?new Oi(a&&p):n}p=e[0];var d=-1,h=l[0];e:for(;++d<o&&u.length<c;){var f=p[d],m=t?t(f):f;if(f=i||0!==f?f:0,!(h?Nn(h,m):r(u,m,i))){for(a=s;--a;){var g=l[a];if(!(g?Nn(g,m):r(e[a],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function cr(e,t,i){var r=null==(e=as(e,t=Jr(t,e)))?e:e[vs(Ts(t))];return null==r?n:rn(r,e,i)}function ur(e){return Ia(e)&&rr(e)==H}function pr(e,t,i,r,o){return e===t||(null==e||null==t||!Ia(e)&&!Ia(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Ea(e),l=Ea(t),c=a?$:Go(e),u=l?$:Go(t),p=(c=c==H?ee:c)==ee,d=(u=u==H?ee:u)==ee,h=c==u;if(h&&Da(e)){if(!Da(t))return!1;a=!0,p=!1}if(h&&!p)return s||(s=new Di),a||$a(e)?Io(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new _t(e),new _t(t)));case q:case V:case J:return xa(+e,+t);case G:return e.name==t.name&&e.message==t.message;case ie:case oe:return e==t+"";case Z:var a=Pn;case re:var l=i&f;if(a||(a=$n),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=m,s.set(e,t);var u=Io(a(e),a(t),i,r,o,s);return s["delete"](e),u;case se:if(vi)return vi.call(e)==vi.call(t)}return!1}(e,t,c,i,r,o,s);if(!(i&f)){var g=p&&ht.call(e,"__wrapped__"),v=d&&ht.call(t,"__wrapped__");if(g||v){var b=g?e.value():e,y=v?t.value():t;return s||(s=new Di),o(b,y,i,r,s)}}if(!h)return!1;return s||(s=new Di),function(e,t,i,r,o,s){var a=i&f,l=Ro(e),c=l.length,u=Ro(t).length;if(c!=u&&!a)return!1;var p=c;for(;p--;){var d=l[p];if(!(a?d in t:ht.call(t,d)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++p<c;){var b=e[d=l[p]],y=t[d];if(r)var x=a?r(y,b,d,t,e,s):r(b,y,d,e,t,s);if(!(x===n?b===y||o(b,y,i,r,s):x)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,i,r,o,s)}(e,t,i,r,pr,o))}function dr(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=rt(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],p=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var d=new Di;if(r)var h=r(u,p,c,e,t,d);if(!(h===n?pr(p,u,f|m,r,d):h))return!1}}return!0}function hr(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Aa(e)?yt:Ge).test(bs(e));var t}function fr(e){return"function"==typeof e?e:null==e?Rl:"object"==typeof e?Ea(e)?xr(e[0],e[1]):yr(e):Vl(e)}function mr(e){if(!is(e))return Qn(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gr(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}(e);var t=is(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function vr(e,t){return e<t}function br(e,t){var n=-1,i=Ca(e)?Re(e.length):[];return qi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function yr(e){var t=Wo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}}function xr(e,t){return es(e)&&rs(t)?os(vs(e),t):function(i){var r=sl(i,e);return r===n&&r===t?al(i,e):pr(t,r,f|m)}}function wr(e,t,i,r,o){e!==t&&Zi(t,(function(s,a){if(o||(o=new Di),La(s))!function(e,t,i,r,o,s,a){var l=cs(e,i),c=cs(t,i),u=a.get(c);if(u)return void ji(e,i,u);var p=s?s(l,c,i+"",e,t,a):n,d=p===n;if(d){var h=Ea(c),f=!h&&Da(c),m=!h&&!f&&$a(c);p=c,h||f||m?Ea(l)?p=l:Oa(l)?p=lo(l):f?(d=!1,p=no(c,!0)):m?(d=!1,p=ro(c,!0)):p=[]:Fa(c)||ka(c)?(p=l,ka(l)?p=Za(l):La(l)&&!Aa(l)||(p=Qo(c))):d=!1}d&&(a.set(c,p),o(p,c,r,s,a),a["delete"](c));ji(e,i,p)}(e,t,a,i,wr,r,o);else{var l=r?r(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),ji(e,a,l)}}),dl)}function _r(e,t){var i=e.length;if(i)return Jo(t+=t<0?i:0,i)?e[t]:n}function kr(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return nr(t,1===e.length?e[0]:e)}:e})):[Rl];var i=-1;t=dn(t,Tn(Ho()));var r=br(e,(function(e,n,r){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var l=oo(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Er(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=nr(e,s);n(a,s)&&Nr(o,Jr(s,e),a)}return o}function Mr(e,t,n,i){var r=i?wn:xn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,Tn(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(a,u,l,i))>-1;)a!==e&&Ot.call(a,l,1),Ot.call(e,l,1);return e}function Cr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Jo(r)?Ot.call(e,r,1):Wr(e,r)}}return e}function Or(e,t){return e+Kt(ti()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Kt(t/2))&&(e+=e)}while(t);return n}function Sr(e,t){return ds(ss(e,t,Rl),e+"")}function Tr(e){return Ti(xl(e))}function Ar(e,t){var n=xl(e);return ms(n,Pi(t,0,n.length))}function Nr(e,t,i,r){if(!La(e))return e;for(var o=-1,s=(t=Jr(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=vs(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var p=l[c];(u=r?r(p,c,l):n)===n&&(u=La(p)?p:Jo(t[o+1])?[]:{})}Li(l,c,u),l=l[c]}return e}var jr=ci?function(e,t){return ci.set(e,t),e}:Rl,Lr=Lt?function(e,t){return Lt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Rl;function Ir(e){return ms(xl(e))}function zr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Re(r);++i<r;)o[i]=e[i+t];return o}function Rr(e,t){var n;return qi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Fr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=P){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return Br(e,t,Rl,n)}function Br(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var p=Kt((o+s)/2),d=i(e[p]),h=d!==n,f=null===d,m=d==d,g=Ha(d);if(a)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return Jn(s,F)}function Pr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!xa(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function Ur(e){return"number"==typeof e?e:Ha(e)?z:+e}function Hr(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hr)+"";if(Ha(e))return bi?bi.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function $r(e,t,n){var i=-1,o=un,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=pn;else if(s>=r){var u=t?null:So(e);if(u)return $n(u);a=!1,o=Nn,c=new Oi}else c=t?[]:l;e:for(;++i<s;){var p=e[i],d=t?t(p):p;if(p=n||0!==p?p:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(p)}else o(c,d,n)||(c!==l&&c.push(d),l.push(p))}return l}function Wr(e,t){return null==(e=as(e,t=Jr(t,e)))||delete e[vs(Ts(t))]}function qr(e,t,n,i){return Nr(e,t,n(nr(e,t)),i)}function Vr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?zr(e,i?0:o,i?o+1:r):zr(e,i?o+1:0,i?r:o)}function Kr(e,t){var n=e;return n instanceof ki&&(n=n.value()),fn(t,(function(e,t){return t.func.apply(t.thisArg,hn([e],t.args))}),n)}function Gr(e,t,n){var i=e.length;if(i<2)return i?$r(e[0]):[];for(var r=-1,o=Re(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Wi(o[r]||s,e[a],t,n));return $r(Qi(o,1),t,n)}function Yr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:n;i(a,e[r],l)}return a}function Qr(e){return Oa(e)?e:[]}function Zr(e){return"function"==typeof e?e:Rl}function Jr(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Ja(e))}var Xr=Sr;function eo(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:zr(e,t,i)}var to=Pt||function(e){return qt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,i=kt?kt(n):new e.constructor(n);return e.copy(i),i}function io(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function ro(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Zn(o-s,0),u=Re(l+c),p=!i;++a<l;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;c--;)u[a++]=e[r++];return u}function ao(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Zn(o-a,0),p=Re(u+c),d=!i;++r<u;)p[r]=e[r];for(var h=r;++l<c;)p[h+l]=t[l];for(;++s<a;)(d||r<o)&&(p[h+n[s]]=e[r++]);return p}function lo(e,t){var n=-1,i=e.length;for(t||(t=Re(i));++n<i;)t[n]=e[n];return t}function co(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(i[l],e[l],l,i,e):n;c===n&&(c=e[l]),o?Fi(i,l,c):Li(i,l,c)}return i}function uo(e,t){return function(n,i){var r=Ea(n)?on:zi,o=t?t():{};return r(n,e,Ho(i,2),o)}}function po(e){return Sr((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=rt(t);++r<o;){var l=i[r];l&&e(t,l,r,s)}return t}))}function ho(e,t){return function(n,i){if(null==n)return n;if(!Ca(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=rt(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function fo(e){return function(t,n,i){for(var r=-1,o=rt(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var i=Bn(t=Ja(t))?Vn(t):n,r=i?i[0]:t.charAt(0),o=i?eo(i,1).join(""):t.slice(1);return r[e]()+o}}function go(e){return function(t){return fn(Al(kl(t).replace(Tt,"")),e,"")}}function vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xi(e.prototype),i=e.apply(n,t);return La(i)?i:n}}function bo(e){return function(t,i,r){var o=rt(t);if(!Ca(t)){var s=Ho(i,3);t=pl(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function yo(e){return zo((function(t){var i=t.length,r=i,o=_i.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Po(a))var l=new _i([],!0)}for(r=l?r:i;++r<i;){var c=Po(a=t[r]),u="wrapper"==c?Bo(a):n;l=u&&ts(u[0])&&u[1]==(k|y|w|E)&&!u[4].length&&1==u[9]?l[Po(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ea(n))return l.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function xo(e,t,i,r,o,s,a,l,c,u){var p=t&k,d=t&g,h=t&v,f=t&(y|x),m=t&M,b=h?n:vo(e);return function n(){for(var g=arguments.length,v=Re(g),y=g;y--;)v[y]=arguments[y];if(f)var x=Uo(n),w=In(v,x);if(r&&(v=so(v,r,o,f)),s&&(v=ao(v,s,a,f)),g-=w,f&&g<u){var _=Hn(v,x);return Oo(e,t,xo,n.placeholder,i,v,_,l,c,u-g)}var k=d?i:this,E=h?k[e]:e;return g=v.length,l?v=ls(v,l):m&&g>1&&v.reverse(),p&&c<g&&(v.length=c),this&&this!==qt&&this instanceof n&&(E=b||vo(E)),E.apply(k,v)}}function wo(e,t){return function(n,i){return function(e,t,n,i){return Xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function _o(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=Hr(i),r=Hr(r)):(i=Ur(i),r=Ur(r)),o=e(i,r)}return o}}function ko(e){return zo((function(t){return t=dn(t,Tn(Ho())),Sr((function(n){var i=this;return e(t,(function(e){return rn(e,i,n)}))}))}))}function Eo(e,t){var i=(t=t===n?" ":Hr(t)).length;if(i<2)return i?Dr(t,e):t;var r=Dr(t,Vt(e/qn(t)));return Bn(t)?eo(Vn(r),0,e).join(""):r.slice(0,e)}function Mo(e){return function(t,i,r){return r&&"number"!=typeof r&&Xo(t,i,r)&&(i=r=n),t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n,i){for(var r=-1,o=Zn(Vt((t-e)/(n||1)),0),s=Re(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:Ka(r),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Oo(e,t,i,r,o,s,a,l,c,u){var p=t&y;t|=p?w:_,(t&=~(p?_:w))&b||(t&=~(g|v));var d=[e,t,o,p?s:n,p?a:n,p?n:s,p?n:a,l,c,u],h=i.apply(n,d);return ts(e)&&us(h,d),h.placeholder=r,hs(h,e,t)}function Do(e){var t=it[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Jn(Ga(n),292))&&vn(e)){var i=(Ja(e)+"e").split("e");return+((i=(Ja(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var So=si&&1/$n(new si([,-0]))[1]==j?function(e){return new si(e)}:Hl;function To(e){return function(t){var n=Go(t);return n==Z?Pn(t):n==re?Wn(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ao(e,t,i,r,o,a,l,c){var p=t&v;if(!p&&"function"!=typeof e)throw new at(s);var d=r?r.length:0;if(d||(t&=~(w|_),r=o=n),l=l===n?l:Zn(Ga(l),0),c=c===n?c:Ga(c),d-=o?o.length:0,t&_){var h=r,f=o;r=o=n}var m=p?n:Bo(e),M=[e,t,i,r,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<(g|v|k),s=i==k&&n==y||i==k&&n==E&&e[7].length<=t[8]||i==(k|E)&&t[7].length<=t[8]&&n==y;if(!o&&!s)return e;i&g&&(e[2]=t[2],r|=n&g?0:b);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Hn(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Hn(e[5],u):t[6]);(a=t[7])&&(e[7]=a);i&k&&(e[8]=null==e[8]?t[8]:Jn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(M,m),e=M[0],t=M[1],i=M[2],r=M[3],o=M[4],!(c=M[9]=M[9]===n?p?0:e.length:Zn(M[9]-d,0))&&t&(y|x)&&(t&=~(y|x)),t&&t!=g)C=t==y||t==x?function(e,t,i){var r=vo(e);return function o(){for(var s=arguments.length,a=Re(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Hn(a,c);return(s-=u.length)<i?Oo(e,t,xo,o.placeholder,n,a,u,n,n,i-s):rn(this&&this!==qt&&this instanceof o?r:e,this,a)}}(e,t,c):t!=w&&t!=(g|w)||o.length?xo.apply(n,M):function(e,t,n,i){var r=t&g,o=vo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=i.length,u=Re(c+a),p=this&&this!==qt&&this instanceof t?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++s];return rn(p,r?n:this,u)}}(e,t,i,r);else var C=function(e,t,n){var i=t&g,r=vo(e);return function t(){return(this&&this!==qt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return hs((m?jr:us)(C,M),e,t)}function No(e,t,i,r){return e===n||xa(e,ut[i])&&!ht.call(r,i)?t:e}function jo(e,t,i,r,o,s){return La(e)&&La(t)&&(s.set(t,e),wr(e,t,n,jo,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function Io(e,t,i,r,o,s){var a=i&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,h=!0,g=i&m?new Oi:n;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],b=t[d];if(r)var y=a?r(b,v,d,t,e,s):r(v,b,d,e,t,s);if(y!==n){if(y)continue;h=!1;break}if(g){if(!gn(t,(function(e,t){if(!Nn(g,t)&&(v===e||o(v,e,i,r,s)))return g.push(t)}))){h=!1;break}}else if(v!==b&&!o(v,b,i,r,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function zo(e){return ds(ss(e,n,Ms),e+"")}function Ro(e){return ir(e,pl,Vo)}function Fo(e){return ir(e,dl,Ko)}var Bo=ci?function(e){return ci.get(e)}:Hl;function Po(e){for(var t=e.name+"",n=ui[t],i=ht.call(ui,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Uo(e){return(ht.call(yi,"placeholder")?yi:e).placeholder}function Ho(){var e=yi.iteratee||Fl;return e=e===Fl?fr:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wo(e){for(var t=pl(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,rs(r)]}return t}function qo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return hr(i)?i:n}var Vo=Yt?function(e){return null==e?[]:(e=rt(e),cn(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)hn(t,Vo(e)),e=Et(e);return t}:Yl,Go=rr;function Yo(e,t,n){for(var i=-1,r=(t=Jr(t,e)).length,o=!1;++i<r;){var s=vs(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&ja(r)&&Jo(s,r)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||is(e)?{}:xi(Et(e))}function Zo(e){return Ea(e)||ka(e)||!!(Dt&&e&&e[Dt])}function Jo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var i=typeof t;return!!("number"==i?Ca(n)&&Jo(t,n.length):"string"==i&&t in n)&&xa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in rt(t))}function ts(e){var t=Po(e),n=yi[t];if("function"!=typeof n||!(t in ki.prototype))return!1;if(e===n)return!0;var i=Bo(n);return!!i&&e===i[0]}(ii&&Go(new ii(new ArrayBuffer(1)))!=pe||ri&&Go(new ri)!=Z||oi&&Go(oi.resolve())!=te||si&&Go(new si)!=re||ai&&Go(new ai)!=le)&&(Go=function(e){var t=rr(e),i=t==ee?e.constructor:n,r=i?bs(i):"";if(r)switch(r){case pi:return pe;case di:return Z;case hi:return te;case fi:return re;case mi:return le}return t});var ns=pt?Aa:Ql;function is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function rs(e){return e==e&&!La(e)}function os(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in rt(i)))}}function ss(e,t,i){return t=Zn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Zn(n.length-t,0),s=Re(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Re(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),rn(e,this,a)}}function as(e,t){return t.length<2?e:nr(e,zr(t,0,-1))}function ls(e,t){for(var i=e.length,r=Jn(t.length,i),o=lo(e);r--;){var s=t[r];e[r]=Jo(s,i)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(jr),ps=Wt||function(e,t){return qt.setTimeout(e,t)},ds=fs(Lr);function hs(e,t,n){var i=t+"";return ds(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return sn(U,(function(n){var i="_."+n[0];t&n[1]&&!un(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Pe):[]}(i),n)))}function fs(e){var t=0,i=0;return function(){var r=Xn(),o=S-(r-i);if(i=r,o>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Or(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(je,(function(e,n,i,r){t.push(i?r.replace($e,"$1"):n||e)})),t}));function vs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function bs(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ys(e){if(e instanceof ki)return e.clone();var t=new _i(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xs=Sr((function(e,t){return Oa(e)?Wi(e,Qi(t,1,Oa,!0)):[]})),ws=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),Ho(i,2)):[]})),_s=Sr((function(e,t){var i=Ts(t);return Oa(i)&&(i=n),Oa(e)?Wi(e,Qi(t,1,Oa,!0),n,i):[]}));function ks(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),yn(e,Ho(t,3),r)}function Es(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=Ga(i),o=i<0?Zn(r+o,0):Jn(o,r-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qi(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Os=Sr((function(e){var t=dn(e,Qr);return t.length&&t[0]===e[0]?lr(t):[]})),Ds=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return t===Ts(i)?t=n:i.pop(),i.length&&i[0]===e[0]?lr(i,Ho(t,2)):[]})),Ss=Sr((function(e){var t=Ts(e),i=dn(e,Qr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?lr(i,n,t):[]}));function Ts(e){var t=null==e?0:e.length;return t?e[t-1]:n}var As=Sr(Ns);function Ns(e,t){return e&&e.length&&t&&t.length?Mr(e,t):e}var js=zo((function(e,t){var n=null==e?0:e.length,i=Bi(e,t);return Cr(e,dn(t,(function(e){return Jo(e,n)?+e:e})).sort(oo)),i}));function Ls(e){return null==e?e:ni.call(e)}var Is=Sr((function(e){return $r(Qi(e,1,Oa,!0))})),zs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),$r(Qi(e,1,Oa,!0),Ho(t,2))})),Rs=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,$r(Qi(e,1,Oa,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=cn(e,(function(e){if(Oa(e))return t=Zn(e.length,t),!0})),Dn(t,(function(t){return dn(e,En(t))}))}function Bs(e,t){if(!e||!e.length)return[];var i=Fs(e);return null==t?i:dn(i,(function(e){return rn(t,n,e)}))}var Ps=Sr((function(e,t){return Oa(e)?Wi(e,t):[]})),Us=Sr((function(e){return Gr(cn(e,Oa))})),Hs=Sr((function(e){var t=Ts(e);return Oa(t)&&(t=n),Gr(cn(e,Oa),Ho(t,2))})),$s=Sr((function(e){var t=Ts(e);return t="function"==typeof t?t:n,Gr(cn(e,Oa),n,t)})),Ws=Sr(Fs);var qs=Sr((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,Bs(e,i)}));function Vs(e){var t=yi(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=zo((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ki&&Jo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new _i(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Fi(e,n,1)}));var Qs=bo(ks),Zs=bo(Es);function Js(e,t){return(Ea(e)?sn:qi)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?an:Vi)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fi(e,n,[t])}));var ta=Sr((function(e,t,n){var i=-1,r="function"==typeof t,o=Ca(e)?Re(e.length):[];return qi(e,(function(e){o[++i]=r?rn(t,e,n):cr(e,t,n)})),o})),na=uo((function(e,t,n){Fi(e,n,t)}));function ia(e,t){return(Ea(e)?dn:br)(e,Ho(t,3))}var ra=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Sr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),kr(e,Qi(t,1),[])})),sa=$t||function(){return qt.Date.now()};function aa(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Ao(e,k,n,n,n,n,t)}function la(e,t){var i;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ca=Sr((function(e,t,n){var i=g;if(n.length){var r=Hn(n,Uo(ca));i|=w}return Ao(e,i,t,n,r)})),ua=Sr((function(e,t,n){var i=g|v;if(n.length){var r=Hn(n,Uo(ua));i|=w}return Ao(t,i,e,n,r)}));function pa(e,t,i){var r,o,a,l,c,u,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var i=r,s=o;return r=o=n,p=t,l=e.apply(s,i)}function g(e){return p=e,c=ps(b,t),d?m(e):l}function v(e){var i=e-u;return u===n||i>=t||i<0||h&&e-p>=a}function b(){var e=sa();if(v(e))return y(e);c=ps(b,function(e){var n=t-(e-u);return h?Jn(n,a-(e-p)):n}(e))}function y(e){return c=n,f&&r?m(e):(r=o=n,l)}function x(){var e=sa(),i=v(e);if(r=arguments,o=this,u=e,i){if(c===n)return g(u);if(h)return to(c),c=ps(b,t),m(u)}return c===n&&(c=ps(b,t)),l}return t=Qa(t)||0,La(i)&&(d=!!i.leading,a=(h="maxWait"in i)?Zn(Qa(i.maxWait)||0,t):a,f="trailing"in i?!!i.trailing:f),x.cancel=function(){c!==n&&to(c),p=0,r=u=o=c=n},x.flush=function(){return c===n?l:y(sa())},x}var da=Sr((function(e,t){return $i(e,1,t)})),ha=Sr((function(e,t,n){return $i(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(fa.Cache||Ci),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Ci;var ga=Xr((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],Tn(Ho())):dn(Qi(t,1),Tn(Ho()))).length;return Sr((function(i){for(var r=-1,o=Jn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return rn(e,this,i)}))})),va=Sr((function(e,t){var i=Hn(t,Uo(va));return Ao(e,w,n,t,i)})),ba=Sr((function(e,t){var i=Hn(t,Uo(ba));return Ao(e,_,n,t,i)})),ya=zo((function(e,t){return Ao(e,E,n,n,n,t)}));function xa(e,t){return e===t||e!=e&&t!=t}var wa=Co(or),_a=Co((function(e,t){return e>=t})),ka=ur(function(){return arguments}())?ur:function(e){return Ia(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Re.isArray,Ma=Zt?Tn(Zt):function(e){return Ia(e)&&rr(e)==ue};function Ca(e){return null!=e&&ja(e.length)&&!Aa(e)}function Oa(e){return Ia(e)&&Ca(e)}var Da=Qt||Ql,Sa=Jt?Tn(Jt):function(e){return Ia(e)&&rr(e)==V};function Ta(e){if(!Ia(e))return!1;var t=rr(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Aa(e){if(!La(e))return!1;var t=rr(e);return t==Y||t==Q||t==W||t==ne}function Na(e){return"number"==typeof e&&e==Ga(e)}function ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ia(e){return null!=e&&"object"==typeof e}var za=Xt?Tn(Xt):function(e){return Ia(e)&&Go(e)==Z};function Ra(e){return"number"==typeof e||Ia(e)&&rr(e)==J}function Fa(e){if(!Ia(e)||rr(e)!=ee)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==vt}var Ba=en?Tn(en):function(e){return Ia(e)&&rr(e)==ie};var Pa=tn?Tn(tn):function(e){return Ia(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&Ia(e)&&rr(e)==oe}function Ha(e){return"symbol"==typeof e||Ia(e)&&rr(e)==se}var $a=nn?Tn(nn):function(e){return Ia(e)&&ja(e.length)&&!!Ft[rr(e)]};var Wa=Co(vr),qa=Co((function(e,t){return e<=t}));function Va(e){if(!e)return[];if(Ca(e))return Ua(e)?Vn(e):lo(e);if(St&&e[St])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[St]());var t=Go(e);return(t==Z?Pn:t==re?$n:xl)(e)}function Ka(e){return e?(e=Qa(e))===j||e===-j?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Pi(Ga(e),0,R):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return z;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var n=Ke.test(e);return n||Ye.test(e)?Ht(e.slice(2),n?2:8):Ve.test(e)?z:+e}function Za(e){return co(e,dl(e))}function Ja(e){return null==e?"":Hr(e)}var Xa=po((function(e,t){if(is(t)||Ca(t))co(t,pl(t),e);else for(var n in t)ht.call(t,n)&&Li(e,n,t[n])})),el=po((function(e,t){co(t,dl(t),e)})),tl=po((function(e,t,n,i){co(t,dl(t),e,i)})),nl=po((function(e,t,n,i){co(t,pl(t),e,i)})),il=zo(Bi);var rl=Sr((function(e,t){e=rt(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=dl(s),l=-1,c=a.length;++l<c;){var u=a[l],p=e[u];(p===n||xa(p,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Sr((function(e){return e.push(n,jo),rn(fl,n,e)}));function sl(e,t,i){var r=null==e?n:nr(e,t);return r===n?i:r}function al(e,t){return null!=e&&Yo(e,t,ar)}var ll=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(Rl)),cl=wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Sr(cr);function pl(e){return Ca(e)?Si(e):mr(e)}function dl(e){return Ca(e)?Si(e,!0):gr(e)}var hl=po((function(e,t,n){wr(e,t,n)})),fl=po((function(e,t,n,i){wr(e,t,n,i)})),ml=zo((function(e,t){var n={};if(null==e)return n;var i=!1;t=dn(t,(function(t){return t=Jr(t,e),i||(i=t.length>1),t})),co(e,Fo(e),n),i&&(n=Ui(n,p|d|h,Lo));for(var r=t.length;r--;)Wr(n,t[r]);return n}));var gl=zo((function(e,t){return null==e?{}:function(e,t){return Er(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function vl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Er(e,n,(function(e,n){return t(e,n[0])}))}var bl=To(pl),yl=To(dl);function xl(e){return null==e?[]:An(e,pl(e))}var wl=go((function(e,t,n){return t=t.toLowerCase(),e+(n?_l(t):t)}));function _l(e){return Tl(Ja(e).toLowerCase())}function kl(e){return(e=Ja(e))&&e.replace(Ze,zn).replace(At,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Ol=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=go((function(e,t,n){return e+(n?" ":"")+Tl(t)}));var Sl=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Tl=mo("toUpperCase");function Al(e,t,i){return e=Ja(e),(t=i?n:t)===n?function(e){return It.test(e)}(e)?function(e){return e.match(jt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var Nl=Sr((function(e,t){try{return rn(e,n,t)}catch(e){return Ta(e)?e:new tt(e)}})),jl=zo((function(e,t){return sn(t,(function(t){t=vs(t),Fi(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var Il=yo(),zl=yo(!0);function Rl(e){return e}function Fl(e){return fr("function"==typeof e?e:Ui(e,p))}var Bl=Sr((function(e,t){return function(n){return cr(n,e,t)}})),Pl=Sr((function(e,t){return function(n){return cr(e,n,t)}}));function Ul(e,t,n){var i=pl(t),r=tr(t,i);null!=n||La(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=tr(t,pl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Aa(e);return sn(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=lo(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,hn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Wl=ko(ln),ql=ko(gn);function Vl(e){return es(e)?En(vs(e)):function(e){return function(t){return nr(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Zl=_o((function(e,t){return e+t}),0),Jl=Do("ceil"),Xl=_o((function(e,t){return e/t}),1),ec=Do("floor");var tc=_o((function(e,t){return e*t}),1),nc=Do("round"),ic=_o((function(e,t){return e-t}),0);return yi.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},yi.ary=aa,yi.assign=Xa,yi.assignIn=el,yi.assignInWith=tl,yi.assignWith=nl,yi.at=il,yi.before=la,yi.bind=ca,yi.bindAll=jl,yi.bindKey=ua,yi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},yi.chain=Vs,yi.chunk=function(e,t,i){t=(i?Xo(e,t,i):t===n)?1:Zn(Ga(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=Re(Vt(r/t));o<r;)a[s++]=zr(e,o,o+=t);return a},yi.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},yi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return hn(Ea(n)?lo(n):[n],Qi(t,1))},yi.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Sr((function(n){for(var i=-1;++i<t;){var r=e[i];if(rn(r[0],this,n))return rn(r[1],this,n)}}))},yi.conforms=function(e){return function(e){var t=pl(e);return function(n){return Hi(n,e,t)}}(Ui(e,p))},yi.constant=Ll,yi.countBy=Ys,yi.create=function(e,t){var n=xi(e);return null==t?n:Ri(n,t)},yi.curry=function e(t,i,r){var o=Ao(t,y,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.curryRight=function e(t,i,r){var o=Ao(t,x,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},yi.debounce=pa,yi.defaults=rl,yi.defaultsDeep=ol,yi.defer=da,yi.delay=ha,yi.difference=xs,yi.differenceBy=ws,yi.differenceWith=_s,yi.drop=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=i||t===n?1:Ga(t))<0?0:t,r):[]},yi.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,0,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t):[]},yi.dropRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0,!0):[]},yi.dropWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!0):[]},yi.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ga(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ga(r))<0&&(r+=o),r=i>r?0:Ya(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},yi.filter=function(e,t){return(Ea(e)?cn:Yi)(e,Ho(t,3))},yi.flatMap=function(e,t){return Qi(ia(e,t),1)},yi.flatMapDeep=function(e,t){return Qi(ia(e,t),j)},yi.flatMapDepth=function(e,t,i){return i=i===n?1:Ga(i),Qi(ia(e,t),i)},yi.flatten=Ms,yi.flattenDeep=function(e){return(null==e?0:e.length)?Qi(e,j):[]},yi.flattenDepth=function(e,t){return(null==e?0:e.length)?Qi(e,t=t===n?1:Ga(t)):[]},yi.flip=function(e){return Ao(e,M)},yi.flow=Il,yi.flowRight=zl,yi.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},yi.functions=function(e){return null==e?[]:tr(e,pl(e))},yi.functionsIn=function(e){return null==e?[]:tr(e,dl(e))},yi.groupBy=ea,yi.initial=function(e){return(null==e?0:e.length)?zr(e,0,-1):[]},yi.intersection=Os,yi.intersectionBy=Ds,yi.intersectionWith=Ss,yi.invert=ll,yi.invertBy=cl,yi.invokeMap=ta,yi.iteratee=Fl,yi.keyBy=na,yi.keys=pl,yi.keysIn=dl,yi.map=ia,yi.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,t(e,i,r),e)})),n},yi.mapValues=function(e,t){var n={};return t=Ho(t,3),Xi(e,(function(e,i,r){Fi(n,i,t(e,i,r))})),n},yi.matches=function(e){return yr(Ui(e,p))},yi.matchesProperty=function(e,t){return xr(e,Ui(t,p))},yi.memoize=fa,yi.merge=hl,yi.mergeWith=fl,yi.method=Bl,yi.methodOf=Pl,yi.mixin=Ul,yi.negate=ma,yi.nthArg=function(e){return e=Ga(e),Sr((function(t){return _r(t,e)}))},yi.omit=ml,yi.omitBy=function(e,t){return vl(e,ma(Ho(t)))},yi.once=function(e){return la(2,e)},yi.orderBy=function(e,t,i,r){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(i=r?n:i)||(i=null==i?[]:[i]),kr(e,t,i))},yi.over=$l,yi.overArgs=ga,yi.overEvery=Wl,yi.overSome=ql,yi.partial=va,yi.partialRight=ba,yi.partition=ra,yi.pick=gl,yi.pickBy=vl,yi.property=Vl,yi.propertyOf=function(e){return function(t){return null==e?n:nr(e,t)}},yi.pull=As,yi.pullAll=Ns,yi.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mr(e,t,Ho(n,2)):e},yi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Mr(e,t,n,i):e},yi.pullAt=js,yi.range=Kl,yi.rangeRight=Gl,yi.rearg=ya,yi.reject=function(e,t){return(Ea(e)?cn:Yi)(e,ma(Ho(t,3)))},yi.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Ho(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Cr(e,r),n},yi.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Sr(e,t=t===n?t:Ga(t))},yi.reverse=Ls,yi.sampleSize=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),(Ea(e)?Ai:Ar)(e,t)},yi.set=function(e,t,n){return null==e?e:Nr(e,t,n)},yi.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Nr(e,t,i,r)},yi.shuffle=function(e){return(Ea(e)?Ni:Ir)(e)},yi.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Xo(e,t,i)?(t=0,i=r):(t=null==t?0:Ga(t),i=i===n?r:Ga(i)),zr(e,t,i)):[]},yi.sortBy=oa,yi.sortedUniq=function(e){return e&&e.length?Pr(e):[]},yi.sortedUniqBy=function(e,t){return e&&e.length?Pr(e,Ho(t,2)):[]},yi.split=function(e,t,i){return i&&"number"!=typeof i&&Xo(e,t,i)&&(t=i=n),(i=i===n?R:i>>>0)?(e=Ja(e))&&("string"==typeof t||null!=t&&!Ba(t))&&!(t=Hr(t))&&Bn(e)?eo(Vn(e),0,i):e.split(t,i):[]},yi.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Zn(Ga(t),0),Sr((function(n){var i=n[t],r=eo(n,0,t);return i&&hn(r,i),rn(e,this,r)}))},yi.tail=function(e){var t=null==e?0:e.length;return t?zr(e,1,t):[]},yi.take=function(e,t,i){return e&&e.length?zr(e,0,(t=i||t===n?1:Ga(t))<0?0:t):[]},yi.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?zr(e,(t=r-(t=i||t===n?1:Ga(t)))<0?0:t,r):[]},yi.takeRightWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3),!1,!0):[]},yi.takeWhile=function(e,t){return e&&e.length?Vr(e,Ho(t,3)):[]},yi.tap=function(e,t){return t(e),e},yi.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pa(e,t,{leading:i,maxWait:t,trailing:r})},yi.thru=Ks,yi.toArray=Va,yi.toPairs=bl,yi.toPairsIn=yl,yi.toPath=function(e){return Ea(e)?dn(e,vs):Ha(e)?[e]:lo(gs(Ja(e)))},yi.toPlainObject=Za,yi.transform=function(e,t,n){var i=Ea(e),r=i||Da(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:La(e)&&Aa(o)?xi(Et(e)):{}}return(r?sn:Xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},yi.unary=function(e){return aa(e,1)},yi.union=Is,yi.unionBy=zs,yi.unionWith=Rs,yi.uniq=function(e){return e&&e.length?$r(e):[]},yi.uniqBy=function(e,t){return e&&e.length?$r(e,Ho(t,2)):[]},yi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$r(e,n,t):[]},yi.unset=function(e,t){return null==e||Wr(e,t)},yi.unzip=Fs,yi.unzipWith=Bs,yi.update=function(e,t,n){return null==e?e:qr(e,t,Zr(n))},yi.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:qr(e,t,Zr(i),r)},yi.values=xl,yi.valuesIn=function(e){return null==e?[]:An(e,dl(e))},yi.without=Ps,yi.words=Al,yi.wrap=function(e,t){return va(Zr(t),e)},yi.xor=Us,yi.xorBy=Hs,yi.xorWith=$s,yi.zip=Ws,yi.zipObject=function(e,t){return Yr(e||[],t||[],Li)},yi.zipObjectDeep=function(e,t){return Yr(e||[],t||[],Nr)},yi.zipWith=qs,yi.entries=bl,yi.entriesIn=yl,yi.extend=el,yi.extendWith=tl,Ul(yi,yi),yi.add=Zl,yi.attempt=Nl,yi.camelCase=wl,yi.capitalize=_l,yi.ceil=Jl,yi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Qa(i))==i?i:0),t!==n&&(t=(t=Qa(t))==t?t:0),Pi(Qa(e),t,i)},yi.clone=function(e){return Ui(e,h)},yi.cloneDeep=function(e){return Ui(e,p|h)},yi.cloneDeepWith=function(e,t){return Ui(e,p|h,t="function"==typeof t?t:n)},yi.cloneWith=function(e,t){return Ui(e,h,t="function"==typeof t?t:n)},yi.conformsTo=function(e,t){return null==t||Hi(e,t,pl(t))},yi.deburr=kl,yi.defaultTo=function(e,t){return null==e||e!=e?t:e},yi.divide=Xl,yi.endsWith=function(e,t,i){e=Ja(e),t=Hr(t);var r=e.length,o=i=i===n?r:Pi(Ga(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},yi.eq=xa,yi.escape=function(e){return(e=Ja(e))&&Oe.test(e)?e.replace(Me,Rn):e},yi.escapeRegExp=function(e){return(e=Ja(e))&&Ie.test(e)?e.replace(Le,"\\$&"):e},yi.every=function(e,t,i){var r=Ea(e)?ln:Ki;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.find=Qs,yi.findIndex=ks,yi.findKey=function(e,t){return bn(e,Ho(t,3),Xi)},yi.findLast=Zs,yi.findLastIndex=Es,yi.findLastKey=function(e,t){return bn(e,Ho(t,3),er)},yi.floor=ec,yi.forEach=Js,yi.forEachRight=Xs,yi.forIn=function(e,t){return null==e?e:Zi(e,Ho(t,3),dl)},yi.forInRight=function(e,t){return null==e?e:Ji(e,Ho(t,3),dl)},yi.forOwn=function(e,t){return e&&Xi(e,Ho(t,3))},yi.forOwnRight=function(e,t){return e&&er(e,Ho(t,3))},yi.get=sl,yi.gt=wa,yi.gte=_a,yi.has=function(e,t){return null!=e&&Yo(e,t,sr)},yi.hasIn=al,yi.head=Cs,yi.identity=Rl,yi.includes=function(e,t,n,i){e=Ca(e)?e:xl(e),n=n&&!i?Ga(n):0;var r=e.length;return n<0&&(n=Zn(r+n,0)),Ua(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&xn(e,t,n)>-1},yi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Ga(n);return r<0&&(r=Zn(i+r,0)),xn(e,t,r)},yi.inRange=function(e,t,i){return t=Ka(t),i===n?(i=t,t=0):i=Ka(i),function(e,t,n){return e>=Jn(t,n)&&e<Zn(t,n)}(e=Qa(e),t,i)},yi.invoke=ul,yi.isArguments=ka,yi.isArray=Ea,yi.isArrayBuffer=Ma,yi.isArrayLike=Ca,yi.isArrayLikeObject=Oa,yi.isBoolean=function(e){return!0===e||!1===e||Ia(e)&&rr(e)==q},yi.isBuffer=Da,yi.isDate=Sa,yi.isElement=function(e){return Ia(e)&&1===e.nodeType&&!Fa(e)},yi.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Z||t==re)return!e.size;if(is(e))return!mr(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},yi.isEqual=function(e,t){return pr(e,t)},yi.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?pr(e,t,n,i):!!r},yi.isError=Ta,yi.isFinite=function(e){return"number"==typeof e&&vn(e)},yi.isFunction=Aa,yi.isInteger=Na,yi.isLength=ja,yi.isMap=za,yi.isMatch=function(e,t){return e===t||dr(e,t,Wo(t))},yi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,dr(e,t,Wo(t),i)},yi.isNaN=function(e){return Ra(e)&&e!=+e},yi.isNative=function(e){if(ns(e))throw new tt(o);return hr(e)},yi.isNil=function(e){return null==e},yi.isNull=function(e){return null===e},yi.isNumber=Ra,yi.isObject=La,yi.isObjectLike=Ia,yi.isPlainObject=Fa,yi.isRegExp=Ba,yi.isSafeInteger=function(e){return Na(e)&&e>=-L&&e<=L},yi.isSet=Pa,yi.isString=Ua,yi.isSymbol=Ha,yi.isTypedArray=$a,yi.isUndefined=function(e){return e===n},yi.isWeakMap=function(e){return Ia(e)&&Go(e)==le},yi.isWeakSet=function(e){return Ia(e)&&rr(e)==ce},yi.join=function(e,t){return null==e?"":Mn.call(e,t)},yi.kebabCase=El,yi.last=Ts,yi.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=Ga(i))<0?Zn(r+o,0):Jn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):yn(e,_n,o,!0)},yi.lowerCase=Ml,yi.lowerFirst=Cl,yi.lt=Wa,yi.lte=qa,yi.max=function(e){return e&&e.length?Gi(e,Rl,or):n},yi.maxBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),or):n},yi.mean=function(e){return kn(e,Rl)},yi.meanBy=function(e,t){return kn(e,Ho(t,2))},yi.min=function(e){return e&&e.length?Gi(e,Rl,vr):n},yi.minBy=function(e,t){return e&&e.length?Gi(e,Ho(t,2),vr):n},yi.stubArray=Yl,yi.stubFalse=Ql,yi.stubObject=function(){return{}},yi.stubString=function(){return""},yi.stubTrue=function(){return!0},yi.multiply=tc,yi.nth=function(e,t){return e&&e.length?_r(e,Ga(t)):n},yi.noConflict=function(){return qt._===this&&(qt._=bt),this},yi.noop=Hl,yi.now=sa,yi.pad=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Eo(Kt(r),n)+e+Eo(Vt(r),n)},yi.padEnd=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?e+Eo(t-i,n):e},yi.padStart=function(e,t,n){e=Ja(e);var i=(t=Ga(t))?qn(e):0;return t&&i<t?Eo(t-i,n)+e:e},yi.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ei(Ja(e).replace(ze,""),t||0)},yi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=ti();return Jn(e+o*(t-e+Ut("1e-"+((o+"").length-1))),t)}return Or(e,t)},yi.reduce=function(e,t,n){var i=Ea(e)?fn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,qi)},yi.reduceRight=function(e,t,n){var i=Ea(e)?mn:Cn,r=arguments.length<3;return i(e,Ho(t,4),n,r,Vi)},yi.repeat=function(e,t,i){return t=(i?Xo(e,t,i):t===n)?1:Ga(t),Dr(Ja(e),t)},yi.replace=function(){var e=arguments,t=Ja(e[0]);return e.length<3?t:t.replace(e[1],e[2])},yi.result=function(e,t,i){var r=-1,o=(t=Jr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[vs(t[r])];s===n&&(r=o,s=i),e=Aa(s)?s.call(e):s}return e},yi.round=nc,yi.runInContext=e,yi.sample=function(e){return(Ea(e)?Ti:Tr)(e)},yi.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?qn(e):e.length;var t=Go(e);return t==Z||t==re?e.size:mr(e).length},yi.snakeCase=Ol,yi.some=function(e,t,i){var r=Ea(e)?gn:Rr;return i&&Xo(e,t,i)&&(t=n),r(e,Ho(t,3))},yi.sortedIndex=function(e,t){return Fr(e,t)},yi.sortedIndexBy=function(e,t,n){return Br(e,t,Ho(n,2))},yi.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Fr(e,t);if(i<n&&xa(e[i],t))return i}return-1},yi.sortedLastIndex=function(e,t){return Fr(e,t,!0)},yi.sortedLastIndexBy=function(e,t,n){return Br(e,t,Ho(n,2),!0)},yi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},yi.startCase=Dl,yi.startsWith=function(e,t,n){return e=Ja(e),n=null==n?0:Pi(Ga(n),0,e.length),t=Hr(t),e.slice(n,n+t.length)==t},yi.subtract=ic,yi.sum=function(e){return e&&e.length?On(e,Rl):0},yi.sumBy=function(e,t){return e&&e.length?On(e,Ho(t,2)):0},yi.template=function(e,t,i){var r=yi.templateSettings;i&&Xo(e,t,i)&&(t=n),e=Ja(e),t=tl({},t,r,No);var o,s,l=tl({},t.imports,r.imports,No),c=pl(l),u=An(l,c),p=0,d=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+d.source+"|"+(d===Te?We:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,l){return i||(i=r),h+=e.slice(p,l).replace(Xe,Fn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(He.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(ke,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Nl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(v.source=h,Ta(v))throw v;return v},yi.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=R,i=Jn(e,R);t=Ho(t),e-=R;for(var r=Dn(i,t);++n<e;)t(n);return r},yi.toFinite=Ka,yi.toInteger=Ga,yi.toLength=Ya,yi.toLower=function(e){return Ja(e).toLowerCase()},yi.toNumber=Qa,yi.toSafeInteger=function(e){return e?Pi(Ga(e),-L,L):0===e?e:0},yi.toString=Ja,yi.toUpper=function(e){return Ja(e).toUpperCase()},yi.trim=function(e,t,i){if((e=Ja(e))&&(i||t===n))return Sn(e);if(!e||!(t=Hr(t)))return e;var r=Vn(e),o=Vn(t);return eo(r,jn(r,o),Ln(r,o)+1).join("")},yi.trimEnd=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.slice(0,Kn(e)+1);if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,0,Ln(r,Vn(t))+1).join("")},yi.trimStart=function(e,t,i){if((e=Ja(e))&&(i||t===n))return e.replace(ze,"");if(!e||!(t=Hr(t)))return e;var r=Vn(e);return eo(r,jn(r,Vn(t))).join("")},yi.truncate=function(e,t){var i=C,r=O;if(La(t)){var o="separator"in t?t.separator:o;i="length"in t?Ga(t.length):i,r="omission"in t?Hr(t.omission):r}var s=(e=Ja(e)).length;if(Bn(e)){var a=Vn(e);s=a.length}if(i>=s)return e;var l=i-qn(r);if(l<1)return r;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+r;if(a&&(l+=c.length-l),Ba(o)){if(e.slice(l).search(o)){var u,p=c;for(o.global||(o=ot(o.source,Ja(qe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;c=c.slice(0,d===n?l:d)}}else if(e.indexOf(Hr(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},yi.unescape=function(e){return(e=Ja(e))&&Ce.test(e)?e.replace(Ee,Gn):e},yi.uniqueId=function(e){var t=++ft;return Ja(e)+t},yi.upperCase=Sl,yi.upperFirst=Tl,yi.each=Js,yi.eachRight=Xs,yi.first=Cs,Ul(yi,function(){var e={};return Xi(yi,(function(t,n){ht.call(yi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),yi.VERSION=i,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){yi[e].placeholder=yi})),sn(["drop","take"],(function(e,t){ki.prototype[e]=function(i){i=i===n?1:Zn(Ga(i),0);var r=this.__filtered__&&!t?new ki(this):this.clone();return r.__filtered__?r.__takeCount__=Jn(i,r.__takeCount__):r.__views__.push({size:Jn(i,R),type:e+(r.__dir__<0?"Right":"")}),r},ki.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),sn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==T||n==N;ki.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),sn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ki.prototype[e]=function(){return this[n](1).value()[0]}})),sn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ki.prototype[e]=function(){return this.__filtered__?new ki(this):this[n](1)}})),ki.prototype.compact=function(){return this.filter(Rl)},ki.prototype.find=function(e){return this.filter(e).head()},ki.prototype.findLast=function(e){return this.reverse().find(e)},ki.prototype.invokeMap=Sr((function(e,t){return"function"==typeof e?new ki(this):this.map((function(n){return cr(n,e,t)}))})),ki.prototype.reject=function(e){return this.filter(ma(Ho(e)))},ki.prototype.slice=function(e,t){e=Ga(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ki(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ga(t))<0?i.dropRight(-t):i.take(t-e)),i)},ki.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ki.prototype.toArray=function(){return this.take(R)},Xi(ki.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=yi[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(yi.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof ki,c=a[0],u=l||Ea(t),p=function(e){var t=o.apply(yi,hn([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,m=l&&!h;if(!s&&u){t=m?t:new ki(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[p],thisArg:n}),new _i(g,d)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?g.value()[0]:g.value():g)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);yi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ea(r)?r:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xi(ki.prototype,(function(e,t){var n=yi[t];if(n){var i=n.name+"";ht.call(ui,i)||(ui[i]=[]),ui[i].push({name:t,func:n})}})),ui[xo(n,v).name]=[{name:"wrapper",func:n}],ki.prototype.clone=function(){var e=new ki(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},ki.prototype.reverse=function(){if(this.__filtered__){var e=new ki(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ki.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Jn(t,e+s);break;case"takeRight":e=Zn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,h=Jn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return Kr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var m=-1,g=e[c+=t];++m<p;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(y==A)g=x;else if(!x){if(y==T)continue e;break e}}f[d++]=g}return f},yi.prototype.at=Gs,yi.prototype.chain=function(){return Vs(this)},yi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},yi.prototype.next=function(){this.__values__===n&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},yi.prototype.plant=function(e){for(var t,i=this;i instanceof wi;){var r=ys(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},yi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ki){var t=e;return this.__actions__.length&&(t=new ki(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new _i(t,this.__chain__)}return this.thru(Ls)},yi.prototype.toJSON=yi.prototype.valueOf=yi.prototype.value=function(){return Kr(this.__wrapped__,this.__actions__)},yi.prototype.first=yi.prototype.head,St&&(yi.prototype[St]=function(){return this}),yi}();Kt?((Kt.exports=Yn)._=Yn,Vt._=Yn):qt._=Yn}).call(B)}(rP,rP.exports);const oP=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),sP=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),aP={onMouseEnter:oP,onMouseLeave:sP},lP=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?aP:{}};function cP(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var uP="undefined"!=typeof window&&"undefined"!=typeof document;function pP(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function dP(){return uP&&document.createElement("div")}function hP(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!hP(e[n],t[n]))return!1}return!0}return!1}function fP(e){var t=[];return e.forEach((function(e){t.find((function(t){return hP(e,t)}))||t.push(e)})),t}var mP=uP?c:r;function gP(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var vP={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||gP(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&gP(t,"remove",e.props.className)},onAfterUpdate:i}}};function bP(e){return function(r){var o=r.children,s=r.content,a=r.visible,c=r.singleton,u=r.render,p=r.reference,d=r.disabled,h=void 0!==d&&d,f=r.ignoreAttributes,m=void 0===f||f;r.__source,r.__self;var g,v,b=cP(r,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),y=void 0!==a,x=void 0!==c,w=n(!1),_=w[0],k=w[1],E=n({}),M=E[0],C=E[1],O=n(),D=O[0],S=O[1],T=(g=function(){return{container:dP(),renders:1}},(v=i()).current||(v.current="function"==typeof g?g():g),v.current),A=Object.assign({ignoreAttributes:m},b,{content:T.container});y&&(A.trigger="manual",A.hideOnClick=!1),x&&(h=!0);var N=A,j=A.plugins||[];u&&(N=Object.assign({},A,{plugins:x&&null!=c.data?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,S(n.content)}}}}]):j,render:function(){return{popper:T.container}}}));var L=[p].concat(o?[o.type]:[]);return mP((function(){var t=p;p&&p.hasOwnProperty("current")&&(t=p.current);var n=e(t||T.ref||dP(),Object.assign({},N,{plugins:[vP].concat(A.plugins||[])}));return T.instance=n,h&&n.disable(),a&&n.show(),x&&c.hook({instance:n,content:s,props:N,setSingletonContent:S}),k(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),L),mP((function(){var e;if(1!==T.renders){var t,n,i,r,o=T.instance;o.setProps((t=o.props,n=N,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:fP([].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],(null==(r=n.popperOptions)?void 0:r.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),h?o.disable():o.enable(),y&&(a?o.show():o.hide()),x&&c.hook({instance:o,content:s,props:N,setSingletonContent:S})}else T.renders++})),mP((function(){var e;if(u){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&M.escaped===(null==i?void 0:i.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),t.createElement(t.Fragment,null,o?l(o,{ref:function(e){T.ref=e,pP(o.ref,e)}}):null,_&&z(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),D,T.instance):s,T.container))}}var yP=function(e,n){return a((function(i,r){var o=i.children,s=cP(i,["children"]);return t.createElement(e,Object.assign({},n,s),o?l(o,{ref:function(e){pP(r,e),pP(o.ref,e)}}):null)}))},xP=yP(bP(rD));class wP extends t.Component{constructor(e){super(e),Nd(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),Nd(this,"selectItem",(e=>{const{items:t,editor:n,range:i}=this.props,r=t[e],o=r&&r.command,s=dg(r.items);o&&s&&r.command({editor:n,range:i})})),Nd(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),Nd(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),Nd(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),Nd(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),Nd(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:i}=this.state,r=n[i];r&&!dg(r.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=t.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:i}=this.props,r=n===i;t!==e.items&&this.setState({selectedIndex:0}),pF({wrapperRef:this.menuRef,index:this.state.selectedIndex}),r?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:n,activeMenuIndex:i}=this.props,{selectedIndex:r}=this.state,o=n===i;return t.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,i)=>{const s=dg(e.items),a=t.createElement(_P,{index:i,item:e,key:e.title,selectItem:()=>s&&this.selectItem(i),selectedIndex:o?r:-1,onHover:()=>this.setState({selectedIndex:i})});return s?a:t.createElement(xP,{interactive:!0,key:e.title,placement:"right",visible:r===i,content:t.createElement(wP,Db({},this.props,{items:e.items,menuIndex:n+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},a)})))}}const _P=a(((e,n)=>{let{item:i,selectedIndex:r,index:o,selectItem:s,onHover:a}=e;const{Icon:l}=i;return t.createElement("div",{"data-cy":`neeto-editor-command-list-item-${o}`,ref:n,className:W("neeto-editor-slash-commands__item",{active:o===r}),onClick:s,onMouseEnter:a},l&&t.createElement(l,{size:20}),t.createElement("div",{className:"neeto-editor-slash-commands__item-content"},t.createElement("h5",null,i.title),t.createElement("p",null,i.description)))}));class kP extends t.Component{constructor(){super(...arguments),Nd(this,"state",{activeMenuIndex:0}),Nd(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),Nd(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return t.createElement(wP,Db({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const EP=[{optionName:q.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:sp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:q.H1,title:"H1",description:"Add a big heading.",Icon:xp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:q.H2,title:"H2",description:"Add a sub-heading.",Icon:_p,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:q.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:q.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:q.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:q.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:Cp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:q.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:Gu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:q.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:Vu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:q.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Pu,command:hg},{optionName:q.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Qu,command:hg},{optionName:q.ATTACHMENTS,title:"Attachments",description:"Add an attachment.",Icon:zu,command:hg},{optionName:q.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:xu,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:q.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Du,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:q.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:fp,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:q.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:np,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:q.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:Np,command:hg},{optionName:q.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:rp,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}}],MP={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},CP=e=>{let{editor:t,range:n}=e;const i=prompt("Please enter Youtube/Loom/Vimeo embed URL."),r=!!i&&(DP(i)||TP(i)||SP(i));r?t.chain().focus().deleteRange(n).setExternalVideo({src:r}).run():t.chain().focus().deleteRange(n).insertContent("#invalid").run()},OP=e=>{let{options:t,addonCommands:n,setMediaUploader:i}=e;const r=EP.map((e=>e.optionName===q.IMAGE_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("image",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_UPLOAD?gb("command",(e=>t=>{let{editor:n,range:i}=t;e(gb("video",!0)),n.chain().focus().deleteRange(i).run()})(i),e):e.optionName===q.VIDEO_EMBED?gb("command",CP,e):e));return[...r.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},DP=e=>{const t=e.match(Y);return t&&`https://www.youtube.com/embed/${t[5]}`},SP=e=>{const t=e.match(Q);return t&&`https://player.vimeo.com/video/${t[4]}?h=${t[5]}`},TP=e=>{const t=e.match(Z);return t&&`https://www.loom.com/embed/${t[4]}?t=${t[5]||""}`},AP=new Xx("commands");var NP=e=>{let{addonCommands:t,options:n,setMediaUploader:i}=e;const r=OP({options:n,addonCommands:t,setMediaUploader:i});return iM.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:AP,command:e=>{let{editor:t,range:n,props:i}=e;i.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=r.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return rP.exports.isEmpty(n)?[MP]:n},render:()=>{let e,t;return{onStart:n=>{e=new vD(kP,{props:n,editor:n.editor}),t=rD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),oP()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),sP()}}}}}),addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}})};const jP=e=>{let{onClickVariable:n,variables:i}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:i,category_label:r,variables:o}=n;if(i&&o){const e=o.map(gb("category_key",i));t.push({label:r,variables:e})}else e.push(n)})),rP.exports.isEmpty(e)||t.push({label:rP.exports.isEmpty(t)?null:"Others",variables:e}),t}(i);return Sd(i)?null:t.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,i)=>{let{label:r,variables:o}=e;return t.createElement(LP,{index:i,key:i,title:r,variables:o,onClickItem:n})})))},LP=e=>{let{index:n,title:i,variables:r,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${n}`},i&&t.createElement("h6",null,i),t.createElement("div",{className:"neeto-editor-variables-row"},r.map((e=>t.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>o(e)},e.label)))))},IP=e=>{let{items:n,command:i}=e;return t.createElement("div",{className:"neeto-editor-variables-suggestion"},t.createElement(jP,{variables:n,onClickVariable:e=>{const{category_key:t,key:n}=e,r=t?`${t}.${n}`:n;i({label:r,id:r})}}))},zP=new Xx("variables"),RP=GM.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",BE({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,i=!1;const{selection:r}=n,{empty:o,anchor:s}=r;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return i=!0,t.insertText("",n,n+e.nodeSize),!1})),i)}))}},addProseMirrorPlugins(){return[CI({editor:this.editor,...this.options.suggestion})]}}),FP={char:"{{",startOfLine:!1,pluginKey:zP,command:e=>{let{editor:t,range:n,props:i}=e;t.chain().focus().deleteRange(n).setVariable(i).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new vD(IP,{props:n,editor:n.editor}),t=rD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var BP=e=>{let{suggestion:t={}}=e;return RP.configure({suggestion:{...FP,...t}})};const PP=e=>{var n;let{node:r,editor:o,getPos:s,updateAttributes:a,deleteNode:l}=e;const c=i(null),{alt:u,src:p,vidheight:d,vidwidth:h,align:f}=r.attrs,{view:m}=o;let g=d,v=h;const b=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(gD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(tF,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(eF,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:v},onResizeStop:(e,t,n)=>{g=n.offsetHeight,v=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(s(),void 0,{...r.attrs,vidheight:g,vidwidth:v,height:g,width:v})),o.commands.focus()}},t.createElement("video",Db({controls:!0},r.attrs,{alt:b,preload:"metadata",src:p}))),t.createElement(mD,{as:"figcaption",className:W({"is-empty":Sd(b)})})))},UP=GM.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:i,src:r,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",BE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",BE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>yD(PP),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),HP=e=>{var i;let{uppy:o}=e;const[s,a]=n(0);r((()=>{o.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[o]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(i=o.getFiles()[0])||void 0===i?void 0:i.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(f,{icon:Cu,size:"small",style:"text",onClick:()=>o.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},$P=e=>{let{isImage:n,endpoint:i,onSuccess:r}=e;const o=n?ic:rc,{uppy:s,isUploading:a}=eb({endpoint:i,uppyConfig:o,onSuccess:r});return a?t.createElement(HP,{uppy:s}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(xl,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:s,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${jp(o.restrictions.maxFileSize)}`}))},WP=e=>{let{isImage:i,url:r,editor:o,onClose:s,alt:a=""}=e;const[l,c]=n(a||""),[u,p]=n(!1),d=()=>{i?o.chain().focus().setFigure({src:r,caption:l,alt:l}).run():o.chain().focus().setVideo({src:r,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,i?t.createElement("img",{loading:"lazy",src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:r,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(h,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(f,{disabled:u,label:"Done",onClick:d}),t.createElement(f,{label:"Cancel",style:"text",onClick:s})))};var qP={},VP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},KP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function i(e,t){return t._once=!0,n(e,t),this}function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return VP({},e,{on:n,once:i,off:r,emit:o})},GP=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,v=e.container.nodeType?e.container:document.querySelector(e.container),b={all:function(){return k(v.children)},new:function(){return k(v.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[C,O,D],x=[S,T,A,N],w=KP({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function C(){i=M()}function O(){r=-1===i?m[m.length-1]:m[i]}function D(){s=E(r.columns)}function S(){p=b[t?"new":"all"]()}function T(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function A(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function N(){v.style.position="relative",v.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",v.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==M()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),YP=U(GP),QP={exports:{}},ZP={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(Oa.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(ZP,ZP.exports),QP.exports=ZP.exports,Object.defineProperty(qP,"__esModule",{value:!0});var JP,XP,eU=qP.default=void 0,tU=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nU=t,iU=aU(nU),rU=aU(Oa.exports),oU=aU(YP),sU=aU(QP.exports);function aU(e){return e&&e.__esModule?e:{default:e}}function lU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cU(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var uU=(XP=JP=function(e){function t(){var e,n,i;lU(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=cU(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,oU.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},cU(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,nU.Component),tU(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return iU.default.createElement(sU.default,r,iU.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),JP.propTypes={children:rU.default.arrayOf(rU.default.element).isRequired,className:rU.default.string,initialLoad:rU.default.bool,pack:rU.default.bool,packed:rU.default.string,position:rU.default.bool,sizes:rU.default.array,style:rU.default.object},JP.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},XP);eU=qP.default=uU;const pU=e=>{let{onSubmit:o,unsplashApiKey:s}=e;const a=i(null),[l,c]=n(""),[u,p]=n(!1),[d,f]=n([]),[m,g]=n(1),[v,y]=n(!0),[x,w]=n(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[i,o]=n(e);return r((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e]),i}(l||"latest");r((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return ig.get(V,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:s}),{data:{results:n,total_pages:i}}=t;f(1===e?n:[...d,...n]),g(e+1),y(e<i)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!x&&dg(d)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(eU,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:v,loadMore:()=>{!x&&v&&m>1&&k(m)},loader:t.createElement(b,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.map(((e,n)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},t.createElement("img",{src:e.urls.regular,onClick:()=>o(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!v&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},dU=e=>{let{buttonLabel:i="Submit",placeholder:r,onSubmit:o,className:s}=e;const[a,l]=n(""),[c,u]=n("");return t.createElement("div",{className:W("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:r,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(f,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:i,onClick:e=>{e.preventDefault(),G.test(a)?o(a):u("Please enter a valid url")}}))},hU=e=>{let{mediaUploader:i,onClose:r,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=n("local"),[u,p]=n(""),d=i.image||i.video;let h=a?sc:sc.slice(0,2);i.video&&(h=[]);const f=()=>{r(),p(""),c("local")};return t.createElement(x,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!rP.exports.isEmpty(h)&&t.createElement(w,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(w.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(WP,{editor:o,isImage:i.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement($P,{endpoint:s,isImage:i.image,onSuccess:p}),"link"===l&&t.createElement(dU,{placeholder:"Paste the link here...",buttonLabel:i.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(pU,{unsplashApiKey:a,onSubmit:p})))))};var fU=[],mU=[];function gU(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=fU.indexOf(o);-1===s&&(s=fU.push(o)-1,mU[s]={}),n=mU[s]&&mU[s][i]?mU[s][i]:mU[s][i]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}gU(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const vU=e=>{let{editor:i,handleClose:o,handleAnimateInvalidLink:s}=e;const[a,l]=n("");r((()=>{l(i.getAttributes("link").href||"")}),[]);const c=()=>{G.test(a)?(i.chain().focus().setLink({href:a}).run(),o()):dg(a)?(i.chain().focus().unsetLink().run(),o()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?o():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(f,{"data-cy":"neeto-editor-link-cancel-button",icon:Cu,size:"small",style:"icon",onClick:()=>{a?(l(""),i.chain().focus().unsetLink().run()):o()}}))},bU=16,yU="#2F3941",xU="#68737D",wU=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(d,r,t.createElement("button",Db({disabled:a,type:"button",className:W("neeto-editor-menu__item",{active:i})},lP(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:bU,color:s||(i?yU:xU)})))};wU.propTypes={icon:Oa.exports.oneOfType([Oa.exports.element,Oa.exports.func]),iconActive:Oa.exports.bool,onClick:Oa.exports.func,tooltipProps:Oa.exports.object};const _U=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(wU,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:pg(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},kU=e=>{let{editor:n,mentions:i}=e;const r=JB(i),{Menu:o,MenuItem:s}=g;return Sd(r)?null:t.createElement(g,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:Lu,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(y,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(m,{style:"body2"},r))}))))},EU=e=>{let{editor:n}=e;return t.createElement(g,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:fp,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(CR,{editor:n}))},MU=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var CU=zp((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const OU=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],DU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:zu,command:()=>{},active:!1,optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"}],right:[{Icon:Tp,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return CU(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},SU=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(f,Db({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:r?"secondary":"text",tooltipProps:{content:pg(o),position:"bottom"},onClick:i},lP(s)))},TU=e=>{let{editor:t,commands:n}=e;const{to:i}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:i,to:i}})}}}))},AU=e=>{let{editor:i,options:r,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=n(!1),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:i}),h=(e=>{var t;return(null===(t=e.find(JF("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=r.includes(q.EMOJI),m=r.includes(q.LINK),{font:g,block:v,list:b}=DU({editor:i,options:r,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(vU,{editor:i,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(xP,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(Nu,{size:14}))),t.createElement(MU,null),g.map(_U),t.createElement(MU,null),v.map(_U),f&&t.createElement(EU,{editor:i,theme:"dark"}),t.createElement(MU,null),b.map(_U),t.createElement(MU,null),m&&_U({Icon:Wu,command:()=>l(!0),active:i.isActive("link"),optionName:"link",highlight:!1}),t.createElement(kU,{editor:i,mentions:o,menuType:"bubble"}))},NU=e=>{let{editor:i,options:r,mentions:o=[],setMediaUploader:s}=e;const[a,l]=n(!1),[c,u]=n(!1),p=i&&i.view.state.selection.node,d=p&&"image"===p.type.name,h=[q.BOLD,q.ITALIC,q.UNDERLINE,q.STRIKETHROUGH,q.LINK],f=dg(r.filter((e=>h.includes(e))));return!i||!d&&f?null:t.createElement("div",null,t.createElement(lD,{editor:i,className:W("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:gO,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(AU,{editor:i,isLinkOptionActive:c,mentions:o,options:r,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:jU,MenuItem:LU}=g,IU=e=>{var n;let{editor:i}=e;const r=(null===(n=OU.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(g,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(jU,null,OU.map((e=>{let{label:n,value:r}=e;return t.createElement(LU.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:zU}=g,RU=e=>{let{editor:i}=e;const[r,o]=n(""),[s,a]=n(""),[l,c]=n(!1),u=i.isActive("link"),p=()=>c(!1),d=()=>{G.test(s)?(i.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(g,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:Wu,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(zU,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(h,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:r,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(f,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{i.chain().focus().unsetLink().run(),p()}})))},{Menu:FU}=g,BU=e=>{let{editor:n,variables:i}=e;return Sd(i)?null:t.createElement(g,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:_u,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(FU,null,t.createElement(jP,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},PU=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=DU({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(q.EMOJI),v=i.includes(q.LINK),b=TU({editor:n,commands:a});return t.createElement("div",{className:W("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(IU,{editor:n}),u.map(SU),p.map(SU),g&&t.createElement(EU,{editor:n}),d.map(SU),v&&t.createElement(RU,{editor:n}),h.map(SU),t.createElement(kU,{editor:n,mentions:r}),b.map(SU),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(SU))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(BU,{editor:n,variables:o})))},UU=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(d,Db({disabled:!s,onClick:()=>i()},s),t.createElement("button",Db({className:W("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},HU={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},$U=e=>{let{icon:i,isOpen:r,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=n(!1);return t.createElement(xP,Db({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[HU],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:W("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement(UU,Db({icon:i,onClick:l},c))))},WU=e=>{let{editor:i,optionName:r}=e;const[o,s]=n(!1);return t.createElement($U,{className:"ne-headless__emoji",icon:fp,isOpen:o,buttonProps:{tooltipProps:{content:pg(r),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(CR,{editor:i}))},qU=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===q.EMOJI?t.createElement(WU,{editor:n,optionName:i}):t.createElement(UU,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:pg(i),delay:[500],position:"bottom"},onClick:r})},VU=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:gp,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:Ep,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:Dp,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:bp,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Fu,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:lp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:Du,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:Vu,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:Gu,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:Pu,command:()=>t(gb("image",!0)),optionName:"image-upload"},{Icon:Qu,command:()=>t(gb("video",!0)),optionName:"video-upload"},{Icon:fp,command:()=>{},optionName:"emoji"},{Icon:Tp,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:up,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},KU=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s,className:a}=e;if(!n)return null;const l=[...VU({editor:n,options:i,setMediaUploader:r}),...TU({editor:n,commands:o})];return t.createElement("div",{className:W("ne-headless",{[a]:a})},l.map((e=>t.createElement(qU,Db({editor:n,key:e.optionName},e)))),s)},GU=e=>{const[i,r]=n({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=K,editorSecrets:u={}}=e,p={fixed:PU,bubble:NU,headless:KU,none:()=>t.createElement("div",null)}[o],d=Sd(a)?[...kD,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,Db({},e,{options:d,setMediaUploader:r})),t.createElement(hU,{editor:l,mediaUploader:i,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>r({image:!1,video:!1})}))},YU=e=>{let{rows:t}=e;return`min-height: ${t*CD+2*(ED+MD)}px;`},QU=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=ny.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Nb.fromArray(n);return Fb.maxOpen(i)},ZU=(e,i)=>{let{initialValue:o="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=kD,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:v=K,onChange:b=hg,onFocus:y=hg,onBlur:x=hg,onSubmit:w=hg,variables:k=[],mentions:E=[],placeholder:M,extensions:C=[],editorSecrets:O={},rows:D=6,isCharacterCountActive:S=!1,keyboardShortcuts:T=[],error:A=null,config:N={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!M,[F,B]=n({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=ND(p,_I);let f=[RD,zD.configure(h.code),dT.configure(h.underline),UD.configure(h.highlight),wI.configure(h.codeBlock),sF.configure(h.figCaption),EI.configure(h.embeds),pT.configure(h.link),LR.configure(h.emojiSuggestion),DR.configure(h.emojiPicker),kI.configure(h.customCommands),jD.configure(h.characterCount),FD.configure(h.focus),UP,oF({uploadEndpoint:u}),xA.configure(h.starterKit),lF({onSubmit:l,shortcuts:c}),iP.configure(ND({placeholder:t},h.placeholder))];return o&&f.push(NP({options:s,addonCommands:a,setMediaUploader:d})),Sd(i)||f.push(nP({suggestion:{items:XB(i)}})),Sd(r)||f.push(BP({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:M,extensions:C,mentions:E,variables:k,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:T,uploadEndpoint:v,config:N,setMediaUploader:B});(e=>{let{initialValue:t}=e;r((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&dg(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:o});const U=W("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=xD({extensions:P,content:o,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:YU({rows:D})},clipboardTextParser:QU},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=Dx.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return b(t.getHTML())},onFocus:y,onBlur:x});return u(i,(()=>({editor:H}))),rE.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:W({[m]:m})},a&&t.createElement(_,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(_D,{error:A,isFixedMenuActive:L},t.createElement(OD,{editor:H,isActive:S},t.createElement(GU,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:O,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:v,variables:k}),t.createElement(dD,Db({editor:H},j)),t.createElement(hU,{editor:H,mediaUploader:F,unsplashApiKey:O.unsplash,uploadEndpoint:v,onClose:()=>B({image:!1,video:!1})}))));var $};var JU=t.forwardRef(ZU);gU('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ne-file-attachments-wrapper {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper {\n display: flex;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n margin-top: 0.5rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n justify-content: space-between;\n align-items: center;\n border-radius: 0.25rem;\n border-width: 2px;\n width: 15rem;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper {\n display: flex;\n align-items: center;\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n gap: 0.25rem;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper {\n display: flex;\n gap: auto;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n opacity: 0.5;\n width: 85%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .ne-file-attachment-progress-wrapper .truncate-ellipsis-progress {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .truncate-ellipsis {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 100%;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .drop-down-container .menu-label {\n text-transform: capitalize;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .icon-opacity-50 {\n opacity: 0.5;\n}\n.ne-file-attachments-wrapper .ne-file-attachment-card-wrapper .ne-file-attachment-inner-wrapper .rename-input {\n margin-right: 0.5rem;\n height: 90%;\n width: 100%;\n}\n.upload-btn {\n margin-top: 0.5rem;\n}\ninput[type=file] {\n display: none;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const XU=(e,n)=>{let{name:i,...r}=e;return t.createElement(R,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(JU,Db({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var eH=a(XU);
|
|
60
60
|
/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function tH(e){return tH="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},tH(e)}function nH(e,t){return nH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nH(e,t)}function iH(){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 rH(e,t,n){return rH=iH()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&nH(r,n.prototype),r},rH.apply(null,arguments)}function oH(e){return function(e){if(Array.isArray(e))return sH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return sH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sH(e,t)}(e)||function(){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 sH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var aH=Object.hasOwnProperty,lH=Object.setPrototypeOf,cH=Object.isFrozen,uH=Object.getPrototypeOf,pH=Object.getOwnPropertyDescriptor,dH=Object.freeze,hH=Object.seal,fH=Object.create,mH="undefined"!=typeof Reflect&&Reflect,gH=mH.apply,vH=mH.construct;gH||(gH=function(e,t,n){return e.apply(t,n)}),dH||(dH=function(e){return e}),hH||(hH=function(e){return e}),vH||(vH=function(e,t){return rH(e,oH(t))});var bH,yH=SH(Array.prototype.forEach),xH=SH(Array.prototype.pop),wH=SH(Array.prototype.push),_H=SH(String.prototype.toLowerCase),kH=SH(String.prototype.match),EH=SH(String.prototype.replace),MH=SH(String.prototype.indexOf),CH=SH(String.prototype.trim),OH=SH(RegExp.prototype.test),DH=(bH=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vH(bH,t)});function SH(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return gH(e,t,i)}}function TH(e,t,n){n=n||_H,lH&&lH(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(cH(t)||(t[i]=o),r=o)}e[r]=!0}return e}function AH(e){var t,n=fH(null);for(t in e)gH(aH,e,[t])&&(n[t]=e[t]);return n}function NH(e,t){for(;null!==e;){var n=pH(e,t);if(n){if(n.get)return SH(n.get);if("function"==typeof n.value)return SH(n.value)}e=uH(e)}return function(e){return console.warn("fallback value for",e),null}}var jH=dH(["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"]),LH=dH(["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"]),IH=dH(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zH=dH(["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"]),RH=dH(["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"]),FH=dH(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),BH=dH(["#text"]),PH=dH(["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"]),UH=dH(["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"]),HH=dH(["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"]),$H=dH(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),WH=hH(/\{\{[\w\W]*|[\w\W]*\}\}/gm),qH=hH(/<%[\w\W]*|[\w\W]*%>/gm),VH=hH(/^data-[\-\w.\u00B7-\uFFFF]/),KH=hH(/^aria-[\-\w]+$/),GH=hH(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),YH=hH(/^(?:\w+script|data):/i),QH=hH(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ZH=hH(/^html$/i),JH=function(){return"undefined"==typeof window?null:window},XH=function(e,t){if("object"!==tH(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var e$=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JH(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,p=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=NH(m,"cloneNode"),v=NH(m,"nextSibling"),b=NH(m,"childNodes"),y=NH(m,"parentNode");if("function"==typeof s){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var w=XH(f,i),_=w?w.createHTML(""):"",k=r,E=k.implementation,M=k.createNodeIterator,C=k.createDocumentFragment,O=k.getElementsByTagName,D=i.importNode,S={};try{S=AH(r).documentMode?r.documentMode:{}}catch(e){}var T={};n.isSupported="function"==typeof y&&E&&void 0!==E.createHTMLDocument&&9!==S;var A,N,j=WH,L=qH,I=VH,z=KH,R=YH,F=QH,B=GH,P=null,U=TH({},[].concat(oH(jH),oH(LH),oH(IH),oH(RH),oH(BH))),H=null,$=TH({},[].concat(oH(PH),oH(UH),oH(HH),oH($H))),W=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}})),q=null,V=null,K=!0,G=!0,Y=!1,Q=!1,Z=!1,J=!1,X=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=TH({},["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"]),pe=null,de=TH({},["audio","video","img","source","image","track"]),he=null,fe=TH({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml",be=ve,ye=!1,xe=["application/xhtml+xml","text/html"],we="text/html",_e=null,ke=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){_e&&_e===e||(e&&"object"===tH(e)||(e={}),e=AH(e),A=A=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?we:e.PARSER_MEDIA_TYPE,N="application/xhtml+xml"===A?function(e){return e}:_H,P="ALLOWED_TAGS"in e?TH({},e.ALLOWED_TAGS,N):U,H="ALLOWED_ATTR"in e?TH({},e.ALLOWED_ATTR,N):$,he="ADD_URI_SAFE_ATTR"in e?TH(AH(fe),e.ADD_URI_SAFE_ATTR,N):fe,pe="ADD_DATA_URI_TAGS"in e?TH(AH(de),e.ADD_DATA_URI_TAGS,N):de,ce="FORBID_CONTENTS"in e?TH({},e.FORBID_CONTENTS,N):ue,q="FORBID_TAGS"in e?TH({},e.FORBID_TAGS,N):{},V="FORBID_ATTR"in e?TH({},e.FORBID_ATTR,N):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,be=e.NAMESPACE||ve,e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(P=TH({},oH(BH)),H=[],!0===le.html&&(TH(P,jH),TH(H,PH)),!0===le.svg&&(TH(P,LH),TH(H,UH),TH(H,$H)),!0===le.svgFilters&&(TH(P,IH),TH(H,UH),TH(H,$H)),!0===le.mathMl&&(TH(P,RH),TH(H,HH),TH(H,$H))),e.ADD_TAGS&&(P===U&&(P=AH(P)),TH(P,e.ADD_TAGS,N)),e.ADD_ATTR&&(H===$&&(H=AH(H)),TH(H,e.ADD_ATTR,N)),e.ADD_URI_SAFE_ATTR&&TH(he,e.ADD_URI_SAFE_ATTR,N),e.FORBID_CONTENTS&&(ce===ue&&(ce=AH(ce)),TH(ce,e.FORBID_CONTENTS,N)),se&&(P["#text"]=!0),Z&&TH(P,["html","head","body"]),P.table&&(TH(P,["tbody"]),delete q.tbody),dH&&dH(e),_e=e)},Ce=TH({},["mi","mo","mn","ms","mtext"]),Oe=TH({},["foreignobject","desc","title","annotation-xml"]),De=TH({},["title","style","font","a","script"]),Se=TH({},LH);TH(Se,IH),TH(Se,zH);var Te=TH({},RH);TH(Te,FH);var Ae=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});var n=_H(e.tagName),i=_H(t.tagName);return e.namespaceURI===ge?t.namespaceURI===ve?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Se[n]):e.namespaceURI===me?t.namespaceURI===ve?"math"===n:t.namespaceURI===ge?"math"===n&&Oe[i]:Boolean(Te[n]):e.namespaceURI===ve&&(!(t.namespaceURI===ge&&!Oe[i])&&(!(t.namespaceURI===me&&!Ce[i])&&(!Te[n]&&(De[n]||!Se[n]))))},Ne=function(e){wH(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},je=function(e,t){try{wH(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){wH(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var i=kH(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===A&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(be===ve)try{t=(new h).parseFromString(o,A)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(be,"template",null);try{t.documentElement.innerHTML=ye?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),be===ve?O.call(t,Z?"html":"body")[0]:Z?t.documentElement:s},Ie=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Re=function(e){return"object"===tH(a)?e instanceof a:e&&"object"===tH(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Fe=function(e,t,i){T[e]&&yH(T[e],(function(e){e.call(n,t,i,_e)}))},Be=function(e){var t;if(Fe("beforeSanitizeElements",e,null),ze(e))return Ne(e),!0;if(OH(/[\u0080-\uFFFF]/,e.nodeName))return Ne(e),!0;var i=N(e.nodeName);if(Fe("uponSanitizeElement",e,{tagName:i,allowedTags:P}),e.hasChildNodes()&&!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&OH(/<[/\w]/g,e.innerHTML)&&OH(/<[/\w]/g,e.textContent))return Ne(e),!0;if("select"===i&&OH(/<template/i,e.innerHTML))return Ne(e),!0;if(!P[i]||q[i]){if(!q[i]&&Ue(i)){if(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,i))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(i))return!1}if(se&&!ce[i]){var r=y(e)||e.parentNode,o=b(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}return Ne(e),!0}return e instanceof l&&!Ae(e)?(Ne(e),!0):"noscript"!==i&&"noembed"!==i||!OH(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=EH(t,j," "),t=EH(t,L," "),e.textContent!==t&&(wH(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe("afterSanitizeElements",e,null),!1):(Ne(e),!0)},Pe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if(G&&!V[t]&&OH(I,t));else if(K&&OH(z,t));else if(!H[t]||V[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&OH(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&OH(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(OH(B,EH(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==MH(n,"data:")||!pe[e]){if(Y&&!OH(R,EH(n,F,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,i,r,o;Fe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(i="value"===c?t.value:CH(t.value),r=N(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(je(c,e),a.keepAttr))if(OH(/\/>/i,i))je(c,e);else{Q&&(i=EH(i,j," "),i=EH(i,L," "));var p=N(e.nodeName);if(Pe(p,r,i)){if(!re||"id"!==r&&"name"!==r||(je(c,e),i=oe+i),w&&"object"===tH(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(p,r)){case"TrustedHTML":i=w.createHTML(i);break;case"TrustedScriptURL":i=w.createScriptURL(i)}try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),xH(n.removed)}catch(e){}}}}Fe("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,i=Ie(t);for(Fe("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Fe("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),He(n));Fe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var r,s,l,c,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw DH("toString is not a function");if("string"!=typeof(e=e.toString()))throw DH("dirty is not a string, aborting")}if(!n.isSupported){if("object"===tH(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Re(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Me(p),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var d=N(e.nodeName);if(!P[d]||q[d])throw DH("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(r=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(!(r=Le(e)))return ee?null:ne?_:""}r&&X&&Ne(r.firstChild);for(var h=Ie(ae?e:r);l=h.nextNode();)3===l.nodeType&&l===c||Be(l)||(l.content instanceof o&&$e(l.content),He(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=C.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return H.shadowroot&&(u=D.call(i,u,!0)),u}var f=Z?r.outerHTML:r.innerHTML;return Z&&P["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&OH(ZH,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),Q&&(f=EH(f,j," "),f=EH(f,L," ")),w&&ne?w.createHTML(f):f},n.setConfig=function(e){Me(e),J=!0},n.clearConfig=function(){_e=null,J=!1},n.isValidAttribute=function(e,t,n){_e||Me({});var i=N(e),r=N(t);return Pe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],wH(T[e],t))},n.removeHook=function(e){if(T[e])return xH(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const t$="neeto-editor-content",n$={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder"]},i$=/<pre><code>([\S\s]*?)<\/code><\/pre>/gim,r$=e=>{if(e.tagName){const n=e.children?e.children.map(r$):null;return t.createElement(e.tagName,e.properties,n)}return e.value},o$=e=>{let{content:n="",className:i,...r}=e;const o=(e=>e.replace(i$,((e,t)=>{const n=yI.highlightAuto(t.replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).children.map(r$);return`<pre><code>${F(n)}</code></pre>`})))(n),s=e$.sanitize;return t.createElement("div",Db({"data-cy":"neeto-editor-content",className:W(t$,{[i]:i}),dangerouslySetInnerHTML:{__html:s(o,n$)}},r))};export{Ob as Attachments,JU as Editor,o$ as EditorContent,eH as FormikEditor,GU as Menu,fg as isEditorEmpty};
|