/*! For license information please see vendor.2124aadd543e0271e15f.js.LICENSE.txt */ (self.webpackChunkhomify_de=self.webpackChunkhomify_de||[]).push([[736],{85158:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,o));const n=r[o];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${n}`:`${(t?"-":"")+e.toFixed(1)} ${n}`}},11512:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,o));var n=r[o];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+n:(t?"-":"")+e.toFixed(1)+" "+n}},26052:function(e,t,r){let o;const{h:n,Component:i}=r(6400);o=Symbol.for("uppy test: disable unused locale key warning"),e.exports=class extends i{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)=>n("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=()=>n("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},n("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},n("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},n("g",{fill:"none",fillRule:"evenodd"},n("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),n("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"}))),n("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const r=this.props.acquirers.length;return n("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===r},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),r=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),o=this.props.fileManagerSelectionType,i=o.charAt(0).toUpperCase()+o.slice(1);return n("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${i}`,{browseFiles:t,browseFolders:r,browse:t}):this.props.i18nArray(`dropPaste${i}`,{browseFiles:t,browseFolders:r,browse:t}))},this.renderAcquirer=e=>n("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},n("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(),n("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const r=[...e],o=r.splice(e.length-2,e.length);return n("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),r.map((e=>this.renderAcquirer(e))),n("span",{role:"presentation",style:{"white-space":"nowrap"}},o.map((e=>this.renderAcquirer(e)))))}}[o](){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:n("span",null,n("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},n("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),n("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return n("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return n("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),n("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&n("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}},45808:function(e,t,r){const{h:o}=r(6400),n=r(93967),i=r(26052);e.exports=e=>o("div",{className:n("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},o("div",{className:"uppy-DashboardContent-bar"},o("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),o("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),o(i,e))},35519:function(e,t,r){function o(){return o=Object.assign||function(e){for(var t=1;t576,m=i({"uppy-Root":e.isTargetDOMEl}),g=i({"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>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>400,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let y=1;e.containerWidth>900?y=5:e.containerWidth>700?y=4:e.containerWidth>576&&(y=3);const b=e.showSelectedFiles&&!t,v=e.recoveredState?Object.keys(e.recoveredState.files).length:null,_=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null,w=n("div",{className:g,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&a(),"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},n("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),n("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:n("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},n("span",{"aria-hidden":"true"},"×")),n("div",{className:"uppy-Dashboard-innerWrap"},n("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),b&&n(p,e),v&&n("div",{className:"uppy-Dashboard-serviceMsg"},n("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},n("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},n("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"}),n("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),n("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),n("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),n("div",{className:"uppy-Dashboard-serviceMsg-text"},_>0?e.i18n("recoveredXFiles",{smart_count:_}):e.i18n("recoveredAllFiles"))),b?n(s,o({},e,{itemsPerRow:y})):n(l,o({},e,{isSizeMD:r})),n(f,null,e.showAddFilesPanel?n(u,o({key:"AddFiles"},e,{isSizeMD:r})):null),n(f,null,e.fileCardFor?n(h,o({key:"FileCard"},e)):null),n(f,null,e.activePickerPanel?n(c,o({key:"Picker"},e)):null),n(f,null,e.showFileEditor?n(d,o({key:"Editor"},e)):null),n("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))));return n("div",{className:m,dir:e.direction},w)}},4477:function(e,t,r){const{h:o}=r(6400),n=r(93967);e.exports=function(e){const t=e.files[e.fileCardFor];return o("div",{className:n("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},o("div",{className:"uppy-DashboardContent-bar"},o("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:o("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),o("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),o("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),o("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))}},95261:function(e,t,r){const{h:o,Component:n}=r(6400),i=r(93967),{nanoid:a}=r(62961),s=r(41882),l=r(8805),u=r(29282);e.exports=class extends n{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((r=>{let{formState:o}=r;return{formState:{...o,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{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 r=`uppy-Dashboard-FileCard-input-${e.id}`,n=this.props.requiredMetaFields.includes(e.id);return o("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},o("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:r},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:n,form:this.form.id},o):o("input",{className:t.text,id:r,form:this.form.id,type:e.type||"text",required:n,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],r=this.getMetaFields()||[],n={};r.forEach((e=>{n[e.id]=t.meta[e.id]||""})),this.state={formState:n},this.form.id=a()}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 o("div",{className:i("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:l,onDragLeave:l,onDrop:l,onPaste:l},o("div",{className:"uppy-DashboardContent-bar"},o("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:o("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),o("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),o("div",{className:"uppy-Dashboard-FileCard-inner"},o("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:s(e.type).color}},o(u,{file:e}),t&&o("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"))),o("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),o("div",{className:"uppy-Dashboard-FileCard-actions"},o("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")),o("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")))))}}},85378:function(e,t,r){const{h:o}=r(6400),n=r(50818);function i(e){let{file:t,uploadInProgressOrComplete:r,metaFields:n,canEditFile:i,i18n:a,onClick:s}=e;return!r&&n&&n.length>0||!r&&i(t)?o("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":a("editFileWithFilename",{file:t.meta.name}),title:a("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},o("g",{fillRule:"evenodd"},o("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"}),o("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),o("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function a(e){let{i18n:t,onClick:r,file:n}=e;return o("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:n.meta.name}),title:t("removeFile",{file:n.meta.name}),onClick:()=>r()},o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},o("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"}),o("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 s(e){const{i18n:t}=e;return o("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)=>{n(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)},o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},o("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"})))}e.exports=function(e){const{uppy:t,file:r,uploadInProgressOrComplete:n,canEditFile:l,metaFields:u,showLinkToFileUploadResult:c,showRemoveButton:d,i18n:p,toggleFileCard:h,openFileEditor:f}=e;return o("div",{className:"uppy-Dashboard-Item-actionWrapper"},o(i,{i18n:p,file:r,uploadInProgressOrComplete:n,canEditFile:l,metaFields:u,onClick:()=>{u&&u.length>0?h(!0,r.id):f(r)}}),c&&r.uploadURL?o(s,{file:r,uppy:t,i18n:p}):null,d?o(a,{i18n:p,file:r,uppy:t,onClick:()=>e.uppy.removeFile(r.id,"removed-by-user")}):null)}},63844:function(e,t,r){const{h:o,Fragment:n}=r(6400),i=r(71737),a=r(65909),s=r(98092),l=e=>{let{file:t,onClick:r}=e;return t.error?o("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:r,type:"button"},"?"):null};e.exports=function(e){const{file:t}=e;return o("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},o("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:r}=e.file.meta;return o("div",{className:"uppy-Dashboard-Item-name",title:r},a(r,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),o(l,{file:e.file,onClick:()=>alert(e.file.error)})),o("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:r}=e.file.remote;return t?o("div",{className:"uppy-Dashboard-Item-author"},o("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},a(t.name,13)),r?o(n,null," · ",r," · "):null):null})(e),(e=>e.file.size&&o("div",{className:"uppy-Dashboard-Item-statusSize"},i(e.file.size)))(e),(e=>e.file.isGhost&&o("span",null," • ",o("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),o(s,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}},86012:function(e,t,r){const{h:o}=r(6400),n=r(29282),i=r(98092),a=r(41882);e.exports=function(e){return o("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:a(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&o("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},o("span",{hidden:!0},e.file.meta.name)),o(n,{file:e.file}),o(i,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}},51911:function(e,t,r){const{h:o}=r(6400);function n(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 i(e){return o("div",{className:"uppy-Dashboard-Item-progress"},o("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":n(e),title:n(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 a(e){let{children:t}=e;return o("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 s(e){let{progress:t}=e;const r=2*Math.PI*15;return o("g",null,o("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),o("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":r,"stroke-dashoffset":r-r/100*t}))}e.exports=function(e){return e.file.progress.uploadStarted?e.isUploaded?o("div",{className:"uppy-Dashboard-Item-progress"},o("div",{className:"uppy-Dashboard-Item-progressIndicator"},o(a,null,o("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),o("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?o(i,e,o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},o("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),o("path",{d:"M7.9 3H10v2H7.9z"}),o("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),o("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?o(i,e,o(a,null,o(s,{progress:e.file.progress.percentage}),e.file.isPaused?o("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):o("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},o("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),o("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?o("div",{className:"uppy-Dashboard-Item-progress"},o("div",{className:"uppy-Dashboard-Item-progressIndicator"},o(a,null,o(s,{progress:e.file.progress.percentage})))):o(i,e,o(a,null,o(s,{progress:e.file.progress.percentage}),o("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}},98092:function(e,t,r){const{h:o}=r(6400);e.exports=function(e){const{file:t,toggleFileCard:r,i18n:n,metaFields:i}=e,{missingRequiredMetaFields:a}=t;if(null==a||!a.length)return null;const s=a.map((e=>((e,t)=>t.filter((t=>t.id===e))[0].name)(e,i))).join(", ");return o("div",{className:"uppy-Dashboard-Item-errorMessage"},n("missingRequiredMetaFields",{smart_count:a.length,fields:s})," ",o("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>r(!0,t.id)},n("editFile")))}},5845:function(e,t,r){const{h:o,Component:n}=r(6400),i=r(93967),a=r(50081),s=r(86012),l=r(51911),u=r(63844),c=r(85378);e.exports=class extends n{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!a(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,r=e.progress.uploadComplete&&!t&&!e.error,n=e.progress.uploadStarted||t,a=e.progress.uploadStarted&&!e.progress.uploadComplete||t,d=e.error||!1,{isGhost:p}=e;let h=(this.props.individualCancellation||!a)&&!r;r&&this.props.showRemoveButtonAfterComplete&&(h=!0);const f=i({"uppy-Dashboard-Item":!0,"is-inprogress":a&&!this.props.recoveredState,"is-processing":t,"is-complete":r,"is-error":!!d,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":p});return o("div",{className:f,id:`uppy_${e.id}`,role:this.props.role},o("div",{className:"uppy-Dashboard-Item-preview"},o(s,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),o(l,{uppy:this.props.uppy,file:e,error:d,isUploaded:r,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})),o("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},o(u,{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}),o(c,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:h,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:n,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}},88689:function(e,t,r){function o(){return o=Object.assign||function(e){for(var t=1;t{const t=0===e.totalFileCount,r=n("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),l=1===e.itemsPerRow?71:200,u={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},c=Object.keys(e.files);e.recoveredState&&c.sort(((t,r)=>e.files[r].isGhost-e.files[t].isGhost));const d=function(e,t){const r=[];let o=[];return e.forEach((e=>{o.lengthi("div",{role:"presentation",key:t[0]},t.map((t=>i(a,o({key:t,uppy:e.uppy},u,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:l})}},29282:function(e,t,r){const{h:o}=r(6400),n=r(41882);e.exports=function(e){const{file:t}=e;if(t.preview)return o("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:r,icon:i}=n(t.type);return o("div",{className:"uppy-Dashboard-Item-previewIconWrap"},o("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:r}},i),o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},o("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}},25859:function(e,t,r){const{h:o}=r(6400),n=r(93967),i=r(8805);e.exports=function(e){return o("div",{className:n("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${e.activePickerPanel.id}`,onDragOver:i,onDragLeave:i,onDrop:i,onPaste:i},o("div",{className:"uppy-DashboardContent-bar"},o("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("importFrom",{name:e.activePickerPanel.name})),o("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel"))),o("div",{className:"uppy-DashboardContent-panelBody"},e.uppy.getPlugin(e.activePickerPanel.id).render(e.state)))}},77246:function(e,t,r){const{h:o}=r(6400),n="error",i="waiting",a="preprocessing",s="uploading",l="postprocessing",u="complete",c="paused";function d(e){switch(function(e,t,r,o){if(void 0===o&&(o={}),e)return n;if(t)return u;if(r)return c;let d=i;const p=Object.keys(o);for(let e=0;ee.uppy.cancelAll()},e.i18n("cancel")),o("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},o(d,e)),t?o("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":e.i18n("addMoreFiles"),title:e.i18n("addMoreFiles"),onClick:()=>e.toggleAddFilesPanel(!0)},o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},o("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"})),o("span",{className:"uppy-DashboardContent-addMoreCaption"},e.i18n("addMore"))):o("div",null))}},69167:function(e,t,r){const{cloneElement:o,Component:n,toChildArray:i}=r(6400),a=r(93967),s="uppy-transition-slideDownUp";e.exports=class extends n{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,r=i(e.children)[0];if(t===r)return null;const o={cachedChildren:r};r&&!t&&(o.className=`${s}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${s}-enter ${s}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),250)}))),t&&!r&&void 0===this.leaveTimeout&&(o.cachedChildren=t,o.className=`${s}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${s}-leave ${s}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),250)}))),this.setState(o)}render(){const{cachedChildren:e,className:t}=this.state;return e?o(e,{className:a(t,e.props.className)}):null}}},14825:function(e,t,r){function o(){return o=Object.assign||function(e){for(var t=1;t{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:r,renderRow:i,overscanCount:l=10,...u}=e;const{offset:c,height:d}=this.state;let p=Math.floor(c/r),h=Math.floor(d/r);l&&(p=Math.max(0,p-p%l),h+=l);const f=p+h+4,m=t.slice(p,f),g={...a,height:t.length*r},y={...s,top:p*r};return n("div",o({onScroll:this.handleScroll},u),n("div",{role:"presentation",style:g},n("div",{role:"presentation",style:y},m.map(i))))}}},83121:function(e,t,r){var o,n,i,a,s,l,u,c;function d(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var p=0;function h(e){return"__private_"+p+++"_"+e}const{h:f}=r(6400),{UIPlugin:m}=r(17841),g=r(22310),y=r(31410),b=r(69417),v=r(78232),_=r(73356),w=r(6397),F=r(15589),{nanoid:k}=r(62961),T=r(43962),j=r(16673),S=r(30845).default||r(30845),P=r(63481),U=r(35519),A=r(45233);function O(){const e={};return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e}function C(){return f("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},f("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"}))}e.exports=(n=h("openFileEditorWhenFilesAdded"),i=h("attachRenderFunctionToTarget"),a=h("isTargetSupported"),s=h("getAcquirers"),l=h("getProgressIndicators"),u=h("getEditors"),c=o=class extends m{constructor(e,t){var r;super(e,t),r=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,r=e.title||t,o=e.type;if("acquirer"!==o&&"progressindicator"!==o&&"editor"!==o){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const n={id:t,name:r,type:o},i=this.getPluginState().targets.slice();return i.push(n),this.setPluginState({targets:i}),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(),r=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:r,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return d(this,u)[u](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),r=d(this,u)[u](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),r.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();d(this,u)[u](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=O();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:o,isClosing:n}=r.getPluginState();if(o||n)return;const{promise:i,resolve:a}=O();if(r.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),r.opts.animateOpenClose){r.setPluginState({isClosing:!0});const e=()=>{r.setPluginState({isHidden:!0,isClosing:!1}),r.superFocus.cancel(),r.savedActiveElement.focus(),r.el.removeEventListener("animationend",e,!1),a()};r.el.addEventListener("animationend",e,!1)}else r.setPluginState({isHidden:!0}),r.superFocus.cancel(),r.savedActiveElement.focus(),a();var s;return document.removeEventListener("keydown",r.handleKeyDownInModal),t&&r.opts.browserBackButtonClose&&null!=(s=history.state)&&s[r.modalName]&&history.back(),r.uppy.emit("dashboard:modal-closed"),i},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 r=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",r):this.uppy.emit("dashboard:file-edit-complete",r),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||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:r,height:o}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${r} / ${o}`,"debug"),this.setPluginState({containerWidth:r,containerHeight:o,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=_(this.el.querySelectorAll(P));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=>{27===e.keyCode&&this.requestCloseModal(e),9===e.keyCode&&T.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=_(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=_(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,r;e.preventDefault(),e.stopPropagation();const o=(()=>{let t=!0;return this.uppy.iteratePlugins((r=>{null!=r.canHandleRootDrop&&r.canHandleRootDrop(e)&&(t=!0)})),t})(),n=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!o&&!n||this.opts.disabled||this.opts.disableLocalFiles&&(n||!o)||!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=(r=this.opts).onDragOver)||t.call(r,e)},this.handleDragLeave=e=>{var t,r;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(r=this.opts).onDragLeave)||t.call(r,e)},this.handleDrop=async e=>{var t,r;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 o=!1;const n=await w(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),o||(this.uppy.info(e.message,"error"),o=!0)}});n.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(n)),null==(t=(r=this.opts).onDrop)||t.call(r,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=>{9===e.keyCode&&T.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,n,{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=v(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",d(this,n)[n])},this.removeEvents=()=>{const e=v(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",d(this,n)[n])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,r=0===this.uppy.getState().info.length,o=!this.opts.inline;r&&(o||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,i,{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,s,{writable:!0,value:S((e=>e.filter((e=>"acquirer"===e.type&&d(this,a)[a](e))).map(d(this,i)[i])))}),Object.defineProperty(this,l,{writable:!0,value:S((e=>e.filter((e=>"progressindicator"===e.type)).map(d(this,i)[i])))}),Object.defineProperty(this,u,{writable:!0,value:S((e=>e.filter((e=>"editor"===e.type)).map(d(this,i)[i])))}),this.render=e=>{const t=this.getPluginState(),{files:r,capabilities:o,allowNewUpload:n}=e,{newFiles:i,uploadStartedFiles:a,completeFiles:c,erroredFiles:p,inProgressFiles:h,inProgressNotPausedFiles:f,processingFiles:m,isUploadStarted:g,isAllComplete:y,isAllErrored:b,isAllPaused:v}=this.uppy.getObjectOfFilesPerState(),_=d(this,s)[s](t.targets),w=d(this,l)[l](t.targets),F=d(this,u)[u](t.targets);let k;return k="auto"===this.opts.theme?o.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}".`)),U({state:e,isHidden:t.isHidden,files:r,newFiles:i,uploadStartedFiles:a,completeFiles:c,erroredFiles:p,inProgressFiles:h,inProgressNotPausedFiles:f,processingFiles:m,isUploadStarted:g,isAllComplete:y,isAllErrored:b,isAllPaused:v,totalFileCount:Object.keys(r).length,totalProgress:e.totalProgress,allowNewUpload:n,acquirers:_,theme:k,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:w,editors:F,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:o.resumableUploads||!1,individualCancellation:o.individualCancellation,isMobileDevice:o.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:r,allowMultipleUploadBatches:o}=this.uppy.opts;(r||o)&&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:n}=this.opts;n&&this.mount(n,this),(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use(g,{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(y,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(b,{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 i=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log("[Dashboard] Dark mode is "+(i?"on":"off")),this.setDarkModeCapability(i),"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-${k()}`,this.defaultLocale=A;const o={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:C,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={...o,...t},this.i18nInit(),this.superFocus=j(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}onMount(){const e=this.el;F(e)||(e.dir="ltr")}},o.VERSION="2.1.4",c)},45233:function(e){e.exports={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}."}}}},50818:function(e){e.exports=function(e,t){return t=t||"Copy the URL below",new Promise((r=>{const o=document.createElement("textarea");o.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),o.value=e,document.body.appendChild(o),o.select();const n=()=>{document.body.removeChild(o),window.prompt(t,e),r()};try{return document.execCommand("copy")?(document.body.removeChild(o),r()):n()}catch(e){return document.body.removeChild(o),n()}}))}},16673:function(e,t,r){const o=r(91296),n=r(63481),i=r(6470);e.exports=function(){let e=!1;return o(((t,r)=>{const o=i(t,r),a=o.contains(document.activeElement);if(a&&e)return;const s=o.querySelector("[data-uppy-super-focusable]");if(!a||s)if(s)s.focus({preventScroll:!0}),e=!0;else{const t=o.querySelector(n);null==t||t.focus({preventScroll:!0}),e=!1}}),260)}},6470:function(e){e.exports=function(e,t){if(t){const r=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(r)return r}return e}},41882:function(e,t,r){const{h:o}=r(6400);e.exports=function(e){const t={color:"#838999",icon:o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},o("g",{fill:"#A7AFB7",fillRule:"nonzero"},o("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"}),o("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const r=e.split("/")[0],n=e.split("/")[1];return"text"===r?{color:"#5a5e69",icon:o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},o("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"===r?{color:"#686de0",icon:o("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},o("g",{fill:"#686DE0",fillRule:"evenodd"},o("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"}),o("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"}),o("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===r?{color:"#068dbb",icon:o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},o("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"===r?{color:"#19af67",icon:o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},o("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"===r&&"pdf"===n?{color:"#e25149",icon:o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},o("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"===r&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(n)?{color:"#00C469",icon:o("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},o("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}},8805:function(e){e.exports=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()}},43962:function(e,t,r){const o=r(73356),n=r(63481),i=r(6470);function a(e,t){const r=t[0];r&&(r.focus(),e.preventDefault())}function s(e,t,r){const s=i(r,t),l=o(s.querySelectorAll(n)),u=l.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(s)?a(e,l):e.shiftKey&&0===u?function(e,t){const r=t[t.length-1];r&&(r.focus(),e.preventDefault())}(e,l):e.shiftKey||u!==l.length-1||a(e,l)}e.exports={forModal:(e,t,r)=>{s(e,t,r)},forInline:(e,t,r)=>{null===t||s(e,t,r)}}},71737:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,o));var n=r[o];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+n:(t?"-":"")+e.toFixed(1)+" "+n}},51118:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var o=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,o));var n=r[o];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+n:(t?"-":"")+e.toFixed(1)+" "+n}},20139:function(e){function t(e,t,r){delete t[r],t[r]=e[r]}function r(e,t,r,o){return function(e,t,r){e[r]=t[r],delete t[r]}(t,r,o),r[o]=function(){return t[o]},e}function o(e,r,o){return Object.keys(r).forEach(t.bind(null,r,o)),r={},e}e.exports={spin:function(e){var t={},n={};return n.wrap=r.bind(null,n,t,e),n.restore=o.bind(null,n,t,e),n}}},68813:function(e,t,r){e.exports=r(20139)},7035:function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function r(e){for(var r=1;r0&&e<1/0},p=Array.prototype.slice;function h(e){return Array.from?Array.from(e):p.call(e)}var f=/^image\/.+$/;function m(e){return f.test(e)}var g=String.fromCharCode,y=c.btoa;function b(e,t){for(var r=[],o=new Uint8Array(e);o.length>0;)r.push(g.apply(null,h(o.subarray(0,8192)))),o=o.subarray(8192);return"data:".concat(t,";base64,").concat(y(r.join("")))}var v=/\.\d*(?:0|9){12}\d*$/;function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return v.test(e)?Math.round(e*t)/t:e}function w(e){var t=e.aspectRatio,r=e.height,o=e.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=d(o),a=d(r);if(i&&a){var s=r*t;("contain"===n||"none"===n)&&s>o||"cover"===n&&s=8&&(i=l+c)}}}if(i){var d,p,h=r.getUint16(i,o);for(p=0;p1&&i(a,function(e){var t=0,r=1,o=1;switch(e){case 2:r=-1;break;case 3:t=-180;break;case 4:o=-1;break;case 5:t=90,o=-1;break;case 6:t=90;break;case 7:t=90,r=-1;break;case 8:t=-90}return{rotate:t,scaleX:r,scaleY:o}}(u)),l&&(e.exif=function(e){for(var t=h(new Uint8Array(e)),r=t.length,o=[],n=0;n+31?b(o,n):T.createObjectURL(t):o,e.load(a)},u.onabort=function(){e.fail(new Error("Aborted to read the image with FileReader."))},u.onerror=function(){e.fail(new Error("Failed to read the image with FileReader."))},u.onloadend=function(){e.reader=null},s||l?u.readAsArrayBuffer(t):u.readAsDataURL(t)}else this.load({url:T.createObjectURL(t)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var t=this,o=this.file,n=this.image;n.onload=function(){t.draw(r(r({},e),{},{naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}))},n.onabort=function(){t.fail(new Error("Aborted to load the image."))},n.onerror=function(){t.fail(new Error("Failed to load the image."))},c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent)&&(n.crossOrigin="anonymous"),n.alt=o.name,n.src=e.url}},{key:"draw",value:function(e){var t=this,r=e.naturalWidth,o=e.naturalHeight,n=e.rotate,i=void 0===n?0:n,a=e.scaleX,s=void 0===a?1:a,u=e.scaleY,c=void 0===u?1:u,p=this.file,f=this.image,g=this.options,y=document.createElement("canvas"),v=y.getContext("2d"),F=Math.abs(i)%180==90,T=("contain"===g.resize||"cover"===g.resize)&&d(g.width)&&d(g.height),j=Math.max(g.maxWidth,0)||1/0,S=Math.max(g.maxHeight,0)||1/0,P=Math.max(g.minWidth,0)||0,U=Math.max(g.minHeight,0)||0,A=r/o,O=g.width,C=g.height;if(F){var z=[S,j];j=z[0],S=z[1];var x=[U,P];P=x[0],U=x[1];var E=[C,O];O=E[0],C=E[1]}T&&(A=O/C);var D=w({aspectRatio:A,width:j,height:S},"contain");j=D.width,S=D.height;var I=w({aspectRatio:A,width:P,height:U},"cover");if(P=I.width,U=I.height,T){var L=w({aspectRatio:A,width:O,height:C},g.resize);O=L.width,C=L.height}else{var N=w({aspectRatio:A,width:O,height:C}),R=N.width;O=void 0===R?r:R;var M=N.height;C=void 0===M?o:M}var B=-(O=Math.floor(_(Math.min(Math.max(O,P),j))))/2,q=-(C=Math.floor(_(Math.min(Math.max(C,U),S))))/2,$=O,H=C,X=[];if(T){var W,V,K,G,Z=w({aspectRatio:A,width:r,height:o},{contain:"cover",cover:"contain"}[g.resize]);K=Z.width,G=Z.height,W=(r-K)/2,V=(o-G)/2,X.push(W,V,K,G)}if(X.push(B,q,$,H),F){var Y=[C,O];O=Y[0],C=Y[1]}y.width=O,y.height=C,m(g.mimeType)||(g.mimeType=p.type);var Q="transparent";p.size>g.convertSize&&g.convertTypes.indexOf(g.mimeType)>=0&&(g.mimeType="image/jpeg");var J="image/jpeg"===g.mimeType;if(J&&(Q="#fff"),v.fillStyle=Q,v.fillRect(0,0,O,C),g.beforeDraw&&g.beforeDraw.call(this,v,y),!this.aborted&&(v.save(),v.translate(O/2,C/2),v.rotate(i*Math.PI/180),v.scale(s,c),v.drawImage.apply(v,[f].concat(X)),v.restore(),g.drew&&g.drew.call(this,v,y),!this.aborted)){var ee=function(e){if(!t.aborted){var n=function(e){return t.done({naturalWidth:r,naturalHeight:o,result:e})};if(e&&J&&g.retainExif&&t.exif&&t.exif.length>0){var i=function(e){return n(l(b(function(e,t){var r=h(new Uint8Array(e));if(255!==r[2]||224!==r[3])return e;var o=256*r[4]+r[5],n=[255,216].concat(t,r.slice(4+o));return new Uint8Array(n)}(e,t.exif),g.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(i).catch((function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))}));else{var a=new k;t.reader=a,a.onload=function(e){var t=e.target;i(t.result)},a.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},a.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},a.onloadend=function(){t.reader=null},a.readAsArrayBuffer(e)}}else n(e)}};y.toBlob?y.toBlob(ee,g.mimeType,g.quality):ee(l(y.toDataURL(g.mimeType,g.quality)))}}},{key:"done",value:function(e){var t,r,o=e.naturalWidth,n=e.naturalHeight,i=e.result,a=this.file,s=this.image,l=this.options;if(T&&0===s.src.indexOf("blob:")&&T.revokeObjectURL(s.src),i)if(l.strict&&!l.retainExif&&i.size>a.size&&l.mimeType===a.type&&!(l.width>o||l.height>n||l.minWidth>o||l.minHeight>n||l.maxWidthvoid 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(u).length)}function d(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 h=e=>String.fromCharCode.apply(null,e),f="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class m{static from(e,t){return e instanceof this&&e.le===t?e:new m(e,void 0,void 0,t)}constructor(e,t=0,r,o){if("boolean"==typeof o&&(this.le=o),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===r&&(r=e.byteLength-t);let o=new DataView(e,t,r);this._swapDataView(o)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof m){void 0===r&&(r=e.byteLength-t),(t+=e.byteOffset)+r>e.byteOffset+e.byteLength&&d("Creating view outside of available memory in ArrayBuffer");let o=new DataView(e.buffer,t,r);this._swapDataView(o)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else d("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,r=m){return e instanceof DataView||e instanceof m?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||d("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new r(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new m(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 r=this.getUint8Array(e,t),f?f.decode(r):l?Buffer.from(r).toString("utf8"):decodeURIComponent(escape(h(r)));var r}getLatin1String(e=0,t=this.byteLength){let r=this.getUint8Array(e,t);return h(r)}getUnicodeString(e=0,t=this.byteLength){const r=[];for(let o=0;o1e4?j(e,t,"base64"):a&&e.includes("://")?T(e,t,"url",S):a?j(e,t,"fs"):n?T(e,t,"url",S):void d(F);var r}async function T(e,t,r,o){return _.has(r)?j(e,t,r):o?async function(e,t){let r=await t(e);return new m(r)}(e,o):void d(`Parser ${r} is not loaded`)}async function j(e,t,r){let o=new(_.get(r))(e,t);return await o.read(),o}const S=e=>w(e).then((e=>e.arrayBuffer())),P=e=>new Promise(((t,r)=>{let o=new FileReader;o.onloadend=()=>t(o.result||new ArrayBuffer),o.onerror=r,o.readAsArrayBuffer(e)}));class U 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 A(e,t,r){let o=new U;for(let[e,t]of r)o.set(e,t);if(Array.isArray(t))for(let r of t)e.set(r,o);else e.set(t,o);return o}function O(e,t,r){let o,n=e.get(t);for(o of r)n.set(o[0],o[1])}const C=new Map,z=new Map,x=new Map,E=37500,D=37510,I=33723,L=34675,N=34665,R=34853,M=40965,B=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],q=["jfif","xmp","icc","iptc","ihdr"],$=["tiff",...q],H=["ifd0","ifd1","exif","gps","interop"],X=[...$,...H],W=["makerNote","userComment"],V=["translateKeys","translateValues","reviveValues","multiSegment"],K=[...V,"sanitize","mergeOutput","silentErrors"];class G{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Z extends G{get needed(){return this.enabled||this.deps.size>0}constructor(e,r,o,n){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=r,this.parse=this.enabled,this.applyInheritables(n),this.canBeFiltered=H.includes(e),this.canBeFiltered&&(this.dict=C.get(e)),void 0!==o)if(Array.isArray(o))this.parse=this.enabled=!0,this.canBeFiltered&&o.length>0&&this.translateTagSet(o,this.pick);else if("object"==typeof o){if(this.enabled=!0,this.parse=!1!==o.parse,this.canBeFiltered){let{pick:e,skip:t}=o;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(o)}else!0===o||!1===o?this.parse=this.enabled=o:d(`Invalid options argument: ${o}`)}applyInheritables(e){let t,r;for(t of V)r=e[t],void 0!==r&&(this[t]=r)}translateTagSet(e,t){if(this.dict){let r,o,{tagKeys:n,tagValues:i}=this.dict;for(r of e)"string"==typeof r?(o=i.indexOf(r),-1===o&&(o=n.indexOf(Number(r))),-1!==o&&t.add(Number(n[o]))):t.add(r)}else for(let r of e)t.add(r)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,re(this.pick,this.deps)):this.enabled&&this.pick.size>0&&re(this.pick,this.deps)}}var Y={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},Q=new Map;class J extends G{static useCached(e){let t=Q.get(e);return void 0!==t||(t=new this(e),Q.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):d(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=n?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of B)this[e]=Y[e];for(e of K)this[e]=Y[e];for(e of W)this[e]=Y[e];for(e of X)this[e]=new Z(e,Y[e],void 0,this)}setupFromTrue(){let e;for(e of B)this[e]=Y[e];for(e of K)this[e]=Y[e];for(e of W)this[e]=!0;for(e of X)this[e]=new Z(e,!0,void 0,this)}setupFromArray(e){let t;for(t of B)this[t]=Y[t];for(t of K)this[t]=Y[t];for(t of W)this[t]=Y[t];for(t of X)this[t]=new Z(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,H)}setupFromObject(e){let t;for(t of(H.ifd0=H.ifd0||H.image,H.ifd1=H.ifd1||H.thumbnail,Object.assign(this,e),B))this[t]=te(e[t],Y[t]);for(t of K)this[t]=te(e[t],Y[t]);for(t of W)this[t]=te(e[t],Y[t]);for(t of $)this[t]=new Z(t,Y[t],e[t],this);for(t of H)this[t]=new Z(t,Y[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,H,X),!0===e.tiff?this.batchEnableWithBool(H,!0):!1===e.tiff?this.batchEnableWithUserValue(H,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,H):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,H)}batchEnableWithBool(e,t){for(let r of e)this[r].enabled=t}batchEnableWithUserValue(e,t){for(let r of e){let e=t[r];this[r].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,r,o=r){if(e&&e.length){for(let e of o)this[e].enabled=!1;let t=ee(e,r);for(let[e,r]of t)re(this[e].pick,r),this[e].enabled=!0}else if(t&&t.length){let e=ee(t,r);for(let[t,r]of e)re(this[t].skip,r)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:r,iptc:o,icc:n}=this;this.makerNote?t.deps.add(E):t.skip.add(E),this.userComment?t.deps.add(D):t.skip.add(D),r.enabled||e.skip.add(700),o.enabled||e.skip.add(I),n.enabled||e.skip.add(L)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:r,interop:o}=this;o.needed&&(t.deps.add(M),e.deps.add(M)),t.needed&&e.deps.add(N),r.needed&&e.deps.add(R),this.tiff.enabled=H.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of H)this[e].finalizeFilters()}get onlyTiff(){return!q.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of $)this[e].enabled&&!v.has(e)&&g("segment parser",e)}}function ee(e,t){let r,o,n,i,a=[];for(n of t){for(i of(r=C.get(n),o=[],r))(e.includes(i[0])||e.includes(i[1]))&&o.push(i[0]);o.length&&a.push([n,o])}return a}function te(e,t){return void 0!==e?e:void 0!==t?t:void 0}function re(e,t){for(let r of t)e.add(r)}t(J,"default",Y);class oe{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=J.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?k(e,t):n&&!i&&e instanceof HTMLImageElement?k(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new m(e):n&&e instanceof Blob?T(e,t,"blob",P):void d(F)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[r,o]of b)if(o.canHandle(e,t))return this.fileParser=new o(this.options,this.file,this.parsers),e[r]=!0;this.file.close&&this.file.close(),d("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(r=e)?void 0:r;var r}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let r=await t.parse();t.assignToOutput(e,r)}));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,r=v.get("tiff",e);var o;if(t.tiff?o={start:0,type:"tiff"}:t.jpeg&&(o=await this.fileParser.getOrFindSegment("tiff")),void 0===o)return;let n=await this.fileParser.ensureSegmentChunk(o),i=this.parsers.tiff=new r(n,e,t),a=await i.extractThumbnail();return t.close&&t.close(),a}}async function ne(e,t){let r=new oe(t);return await r.read(e),r.parse()}var ie=Object.freeze({__proto__:null,parse:ne,Exifr:oe,fileParsers:b,segmentParsers:v,fileReaders:_,tagKeys:C,tagValues:z,tagRevivers:x,createDictionary:A,extendDictionary:O,fetchUrlAsArrayBuffer:S,readBlobAsArrayBuffer:P,chunkedProps:B,otherSegments:q,segments:$,tiffBlocks:H,segmentsAndBlocks:X,tiffExtractables:W,inheritables:V,allFormatters:K,Options:J});class ae{static findPosition(e,t){let r=e.getUint16(t+2)+2,o="function"==typeof this.headerLength?this.headerLength(e,t,r):this.headerLength,n=t+o,i=r-o;return{offset:t,length:r,headerLength:o,start:n,size:i,end:n+i}}static parse(e,t={}){return new this(e,new J({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof m?e:new m(e)}constructor(e,r={},o){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=o,this.type=this.constructor.type,this.globalOptions=this.options=r,this.localOptions=r[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 r=x.get(t),o=z.get(t),n=C.get(t),i=this.options[t],a=i.reviveValues&&!!r,s=i.translateValues&&!!o,l=i.translateKeys&&!!n,u={};for(let[t,i]of e)a&&r.has(t)?i=r.get(t)(i):s&&o.has(t)&&(i=this.translateValue(i,o.get(t))),l&&n.has(t)&&(t=n.get(t)||t),u[t]=i;return u}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,r){if(this.globalOptions.mergeOutput)return Object.assign(e,r);e[t]?Object.assign(e[t],r):e[t]=r}}function se(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 ue(e,t,r){for(let[o,n]of v)if(n.canHandle(e,t,r))return o}t(ae,"headerLength",4),t(ae,"type",void 0),t(ae,"multiSegment",!1),t(ae,"canHandle",(()=>!1));class ce extends class{constructor(e,r,o){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,r=e.size||65536;if(this.file.chunked)if(this.file.available(t,r))e.chunk=this.file.subarray(t,r);else try{e.chunk=await this.file.readChunk(t,r)}catch(t){d(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+r?e.chunk=this.file.subarray(t,r):void 0===e.size?e.chunk=this.file.subarray(t):d("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=r,this.parsers=o}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let r=new(v.get(e))(t,this.options,this.file);return this.parsers[e]=r}createParsers(e){for(let t of e){let{type:e,chunk:r}=t,o=this.options[e];if(o&&o.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,r)}}}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(v.keyList())):(e=void 0===e?v.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&v.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:r,findAll:o,wanted:n,remaining:i}=this;if(!o&&this.file.chunked&&(o=Array.from(n).some((e=>{let t=v.get(e),r=this.options[e];return t.multiSegment&&r.multiSegment})),o&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,r.byteLength),!this.options.onlyTiff&&r.chunked){let t=!1;for(;i.size>0&&!t&&(r.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:o}=r,n=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>o&&!n?!await r.readNextChunk(e):!await r.readNextChunk(o),void 0===(e=this.findAppSegmentsInRange(e,r.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let r,o,n,i,a,s,{file:l,findAll:u,wanted:c,remaining:d,options:p}=this;for(;ee.multiSegment)))return;let e=function(e,t){let r,o,n,i=new Map;for(let t=0;t{let r=v.get(e,this.options);return r.handleMultiSegments?{type:e,chunk:r.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(ce,"type","jpeg"),b.set("jpeg",ce);const de=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class pe extends ae{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,r=new Map){let{pick:o,skip:n}=this.options[t];o=new Set(o);let i=o.size>0,a=0===n.size,s=this.chunk.getUint16(e);e+=2;for(let l=0;l13)&&d(`Invalid TIFF value type. block: ${r.toUpperCase()}, tag: ${t.toString(16)}, type: ${n}, offset ${e}`),e>o.byteLength&&d(`Invalid TIFF value offset. block: ${r.toUpperCase()}, tag: ${t.toString(16)}, type: ${n}, offset ${e} is outside of chunk size ${o.byteLength}`),1===n)return o.getUint8Array(e,i);if(2===n)return""===(s=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(s=o.getString(e,i)).trim())?void 0:s;var s;if(7===n)return o.getUint8Array(e,i);if(1===i)return this.parseTagValue(n,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}}(n))(i),r=a;for(let o=0;oe.byteLength&&d(`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(N),this.interopOffset=t.get(M),this.gpsOffset=t.get(R),this.xmp=t.get(700),this.iptc=t.get(I),this.icc=t.get(L),this.options.sanitize&&(t.delete(N),t.delete(M),t.delete(R),t.delete(700),t.delete(I),t.delete(L)),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(M)),this.makerNote=e.get(E),this.userComment=e.get(D),this.options.sanitize&&(e.delete(M),e.delete(E),e.delete(D)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let r=e.get(t);r&&1===r.length&&e.set(t,r[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,r,o={};for(t of H)if(e=this[t],!c(e))if(r=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(o,r)}else o[t]=r;return this.makerNote&&(o.makerNote=this.makerNote),this.userComment&&(o.userComment=this.userComment),o}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[r,o]of Object.entries(t))this.assignObjectToOutput(e,r,o)}}function fe(e,t,r,o){var n=e+t/60+r/3600;return"S"!==o&&"W"!==o||(n*=-1),n}t(he,"type","tiff"),t(he,"headerLength",10),v.set("tiff",he);var me=Object.freeze({__proto__:null,default:ie,Exifr:oe,fileParsers:b,segmentParsers:v,fileReaders:_,tagKeys:C,tagValues:z,tagRevivers:x,createDictionary:A,extendDictionary:O,fetchUrlAsArrayBuffer:S,readBlobAsArrayBuffer:P,chunkedProps:B,otherSegments:q,segments:$,tiffBlocks:H,segmentsAndBlocks:X,tiffExtractables:W,inheritables:V,allFormatters:K,Options:J,parse:ne});const ge={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},ye=Object.assign({},ge,{firstChunkSize:4e4,gps:[1,2,3,4]}),be=Object.assign({},ge,{tiff:!1,ifd1:!0,mergeOutput:!1}),ve=Object.assign({},ge,{firstChunkSize:4e4,ifd0:[274]});async function _e(e){let t=new oe(ve);await t.read(e);let r=await t.parse();if(r&&r.ifd0)return r.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 r=t.match(/OS (\d+)_(\d+)/);if(r){let[,t,o]=r,n=Number(t)+.1*Number(o);e.rotateCanvas=n<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,r]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(r)<15}if(t.includes("Chrome/")){let[,r]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(r)<81}else if(t.includes("Firefox/")){let[,r]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(r)<77}}class Fe extends m{constructor(...e){super(...e),t(this,"ranges",new ke),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,r){if(0===e&&0===this.byteLength&&r){let e=new DataView(r.buffer||r,r.byteOffset,r.byteLength);this._swapDataView(e)}else{let r=e+t;if(r>this.byteLength){let{dataView:e}=this._extend(r);this._swapDataView(e)}}}_extend(e){let t;t=l?s.allocUnsafe(e):new Uint8Array(e);let r=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:r}}subarray(e,t,r=!1){return t=t||this._lengthToEnd(e),r&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,r=!1){r&&this._tryExtend(t,e.byteLength,e);let o=super.set(e,t);return this.ranges.add(t,o.byteLength),o}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,r=0){let o=e+t,n=this.list.filter((t=>Te(e,t.offset,o)||Te(e,t.end,o)));if(n.length>0){e=Math.min(e,...n.map((e=>e.offset))),o=Math.max(o,...n.map((e=>e.end))),t=o-e;let r=n.shift();r.offset=e,r.length=t,r.end=o,this.list=this.list.filter((e=>!n.includes(e)))}else this.list.push({offset:e,length:t,end:o})}available(e,t){let r=e+t;return this.list.some((t=>t.offset<=e&&r<=t.end))}}function Te(e,t,r){return e<=t&&t<=r}class je extends Fe{constructor(e,r){super(0),t(this,"chunksRead",0),this.input=e,this.options=r}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,r=await this.readChunk(e,t);return!!r&&r.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'),c='';l===t||s===t||r.isCrossDomain(n)||(c+=''),a&&u.attr("target",a),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(t,r){return t.is("form")?e(t[0].elements).filter(r):t.find(r)},disableFormElements:function(t){r.formElements(t,r.disableSelector).each((function(){r.disableFormElement(e(this))}))},disableFormElement:function(e){var r,o;r=e.is("button")?"html":"val",(o=e.data("disable-with"))!==t&&(e.data("ujs:enable-with",e[r]()),e[r](o)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){r.formElements(t,r.enableSelector).each((function(){r.enableFormElement(e(this))}))},enableFormElement:function(e){var r=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[r](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,o=e.data("confirm"),n=!1;if(!o)return!0;if(r.fire(e,"confirm")){try{n=r.confirm(o)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=r.fire(e,"confirm:complete",[n])}return n&&t},blankInputs:function(t,r,o){var n,i,a,s=e(),l=r||"input,textarea",u=t.find(l),c={};return u.each((function(){(n=e(this)).is("input[type=radio]")?(a=n.attr("name"),c[a]||(0===t.find('input[type=radio]:checked[name="'+a+'"]').length&&(i=t.find('input[type=radio][name="'+a+'"]'),s=s.add(i)),c[a]=a)):(n.is("input[type=checkbox],input[type=radio]")?n.is(":checked"):!!n.val())===o&&(s=s.add(n))})),!!s.length&&s},nonBlankInputs:function(e,t){return r.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var o=e.data("disable-with");o!==t&&(e.data("ujs:enable-with",e.html()),e.html(o)),e.on("click.railsDisable",(function(e){return r.stopEverything(e)})),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.off("click.railsDisable"),e.removeData("ujs:disabled")}},r.fire(o,"rails:attachBindings")&&(e.ajaxPrefilter((function(e,t,o){e.crossDomain||r.CSRFProtection(o)})),e(window).on("pageshow.rails",(function(){e(e.rails.enableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)})),e(e.rails.linkDisableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)}))})),o.on("ajax:complete",r.linkDisableSelector,(function(){r.enableElement(e(this))})),o.on("ajax:complete",r.buttonDisableSelector,(function(){r.enableFormElement(e(this))})),o.on("click.rails",r.linkClickSelector,(function(t){var o=e(this),n=o.data("method"),i=o.data("params"),a=t.metaKey||t.ctrlKey;if(!r.allowAction(o))return r.stopEverything(t);if(!a&&o.is(r.linkDisableSelector)&&r.disableElement(o),r.isRemote(o)){if(a&&(!n||"GET"===n)&&!i)return!0;var s=r.handleRemote(o);return!1===s?r.enableElement(o):s.fail((function(){r.enableElement(o)})),!1}return n?(r.handleMethod(o),!1):void 0})),o.on("click.rails",r.buttonClickSelector,(function(t){var o=e(this);if(!r.allowAction(o)||!r.isRemote(o))return r.stopEverything(t);o.is(r.buttonDisableSelector)&&r.disableFormElement(o);var n=r.handleRemote(o);return!1===n?r.enableFormElement(o):n.fail((function(){r.enableFormElement(o)})),!1})),o.on("change.rails",r.inputChangeSelector,(function(t){var o=e(this);return r.allowAction(o)&&r.isRemote(o)?(r.handleRemote(o),!1):r.stopEverything(t)})),o.on("submit.rails",r.formSubmitSelector,(function(o){var n,i,a=e(this),s=r.isRemote(a);if(!r.allowAction(a))return r.stopEverything(o);if(a.attr("novalidate")===t)if(a.data("ujs:formnovalidate-button")===t){if((n=r.blankInputs(a,r.requiredInputSelector,!1))&&r.fire(a,"ajax:aborted:required",[n]))return r.stopEverything(o)}else a.data("ujs:formnovalidate-button",t);if(s){if(i=r.nonBlankInputs(a,r.fileInputSelector)){setTimeout((function(){r.disableFormElements(a)}),13);var l=r.fire(a,"ajax:aborted:file",[i]);return l||setTimeout((function(){r.enableFormElements(a)}),13),l}return r.handleRemote(a),!1}setTimeout((function(){r.disableFormElements(a)}),13)})),o.on("click.rails",r.formInputClickSelector,(function(t){var o=e(this);if(!r.allowAction(o))return r.stopEverything(t);var n=o.attr("name"),i=n?{name:n,value:o.val()}:null,a=o.closest("form");0===a.length&&(a=e("#"+o.attr("form"))),a.data("ujs:submit-button",i),a.data("ujs:formnovalidate-button",o.attr("formnovalidate")),a.data("ujs:submit-button-formaction",o.attr("formaction")),a.data("ujs:submit-button-formmethod",o.attr("formmethod"))})),o.on("ajax:send.rails",r.formSubmitSelector,(function(t){this===t.target&&r.disableFormElements(e(this))})),o.on("ajax:complete.rails",r.formSubmitSelector,(function(t){this===t.target&&r.enableFormElements(e(this))})),e((function(){r.refreshCSRFTokens()})))};window.jQuery?t(jQuery):e.exports=t}()},72846:function(e){e.exports=/<%=([\s\S]+?)%>/g},51633:function(e,t,r){var o=1/0,n="[object Symbol]",i="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe23",s="\\u20d0-\\u20f0",l="\\ufe0e\\ufe0f",u="["+i+"]",c="["+a+s+"]",d="\\ud83c[\\udffb-\\udfff]",p="[^"+i+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g="(?:"+c+"|"+d+")?",y="["+l+"]?",b=y+g+"(?:"+m+"(?:"+[p,h,f].join("|")+")"+y+g+")*",v="(?:"+[p+c+"?",c,h,f,u].join("|")+")",_=RegExp(d+"(?="+d+")|"+v+b,"g"),w=RegExp("["+m+i+a+s+l+"]"),F="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,T=F||k||Function("return this")();function j(e){return w.test(e)}var S=Object.prototype.toString,P=T.Symbol,U=P?P.prototype:void 0,A=U?U.toString:void 0;function O(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&S.call(e)==n}(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}var C=("toUpperCase",function(e){var t,r,o,n,i=j(e=O(e))?function(e){return j(e)?function(e){return e.match(_)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,a=i?i[0]:e.charAt(0),s=i?(t=i,r=1,n=t.length,o=void 0===o?n:o,!r&&o>=n?t:function(e,t,r){var o=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o=t||r<0||d&&e-u>=i}function _(){var e=f();if(v(e))return w(e);s=setTimeout(_,function(e){var r=t-(e-l);return d?h(r,i-(e-u)):r}(e))}function w(e){return s=void 0,y&&o?b(e):(o=n=void 0,a)}function F(){var e=f(),r=v(e);if(o=arguments,n=this,l=e,r){if(void 0===s)return function(e){return u=e,s=setTimeout(_,t),c?b(e):a}(l);if(d)return s=setTimeout(_,t),b(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=g(t)||0,m(r)&&(c=!!r.leading,i=(d="maxWait"in r)?p(g(r.maxWait)||0,t):i,y="trailing"in r?!!r.trailing:y),F.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=l=n=s=void 0},F.flush=function(){return void 0===s?a:w(f())},F}},4474:function(e,t,r){e=r.nmd(e);var o="__lodash_hash_undefined__",n=1,i=2,a=1/0,s=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",b="[object Promise]",v="[object RegExp]",_="[object Set]",w="[object String]",F="[object Symbol]",k="[object WeakMap]",T="[object ArrayBuffer]",j="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/,U=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[l]=x[u]=x[T]=x[c]=x[j]=x[d]=x[p]=x[h]=x[m]=x[g]=x[y]=x[v]=x[_]=x[w]=x[k]=!1;var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,I=E||D||Function("return this")(),L=t&&!t.nodeType&&t,N=L&&e&&!e.nodeType&&e,R=N&&N.exports===L&&E.process,M=function(){try{return R&&R.binding("util")}catch(e){}}(),B=M&&M.isTypedArray;function q(e,t){for(var r=-1,o=e?e.length:0,n=0,i=[];++r-1},je.prototype.set=function(e,t){var r=this.__data__,o=Ae(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new Te,map:new(de||je),string:new Te}},Se.prototype.delete=function(e){return Re(this,e).delete(e)},Se.prototype.get=function(e){return Re(this,e).get(e)},Se.prototype.has=function(e){return Re(this,e).has(e)},Se.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,o),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.clear=function(){this.__data__=new je},Ue.prototype.delete=function(e){return this.__data__.delete(e)},Ue.prototype.get=function(e){return this.__data__.get(e)},Ue.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof je){var o=r.__data__;if(!de||o.length<199)return o.push([e,t]),this;r=this.__data__=new Se(o)}return r.set(e,t),this};var Oe,Ce=(Oe=function(e,t){return e&&xe(e,t,at)},function(e,t){if(null==e)return e;if(!Je(e))return Oe(e,t);for(var r=e.length,o=-1,n=Object(e);++ou))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&n?new Pe:void 0;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=s}function rt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function nt(e){return"symbol"==typeof e||ot(e)&&oe.call(e)==F}var it=B?function(e){return function(t){return e(t)}}(B):function(e){return ot(e)&&tt(e.length)&&!!x[oe.call(e)]};function at(e){return Je(e)?function(e,t){var r=Qe(e)||Ye(e)?function(e,t){for(var r=-1,o=Array(e);++ru))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&n?new ze:void 0;for(s.set(e,t),s.set(t,e);++p-1},Oe.prototype.set=function(e,t){var r=this.__data__,o=Ee(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Ae,map:new(ge||Oe),string:new Ae}},Ce.prototype.delete=function(e){return Be(this,e).delete(e)},Ce.prototype.get=function(e){return Be(this,e).get(e)},Ce.prototype.has=function(e){return Be(this,e).has(e)},Ce.prototype.set=function(e,t){return Be(this,e).set(e,t),this},ze.prototype.add=ze.prototype.push=function(e){return this.__data__.set(e,o),this},ze.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new Oe},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Oe){var o=r.__data__;if(!ge||o.length<199)return o.push([e,t]),this;r=this.__data__=new Ce(o)}return r.set(e,t),this};var $e=function(e){return se.call(e)};function He(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e-1?o[n?e[i]:i]:void 0});function Je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a),a};return r.cache=new(Je.Cache||Ce),r}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return st(e)&&ot(e)}(e)&&ae.call(e,"callee")&&(!de.call(e,"callee")||se.call(e)==l)}Je.Cache=Ce;var rt=Array.isArray;function ot(e){return null!=e&&it(e.length)&&!nt(e)}function nt(e){var t=at(e)?se.call(e):"";return t==h||t==f}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function lt(e){return"symbol"==typeof e||st(e)&&se.call(e)==F}var ut=W?function(e){return function(t){return e(t)}}(W):function(e){return st(e)&&it(e.length)&&!!L[se.call(e)]};function ct(e){return ot(e)?function(e,t){var r=rt(e)||tt(e)?function(e,t){for(var r=-1,o=Array(e);++ru))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&n?new ze:void 0;for(s.set(e,t),s.set(t,e);++p-1},Oe.prototype.set=function(e,t){var r=this.__data__,o=Ee(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Ae,map:new(ge||Oe),string:new Ae}},Ce.prototype.delete=function(e){return Me(this,e).delete(e)},Ce.prototype.get=function(e){return Me(this,e).get(e)},Ce.prototype.has=function(e){return Me(this,e).has(e)},Ce.prototype.set=function(e,t){return Me(this,e).set(e,t),this},ze.prototype.add=ze.prototype.push=function(e){return this.__data__.set(e,o),this},ze.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new Oe},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Oe){var o=r.__data__;if(!ge||o.length<199)return o.push([e,t]),this;r=this.__data__=new Ce(o)}return r.set(e,t),this};var qe=function(e){return se.call(e)};function $e(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=s}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==typeof e}function it(e){return"symbol"==typeof e||nt(e)&&se.call(e)==F}var at=W?function(e){return function(t){return e(t)}}(W):function(e){return nt(e)&&rt(e.length)&&!!L[se.call(e)]};function st(e){return et(e)?function(e,t){var r=Je(e)||Qe(e)?function(e,t){for(var r=-1,o=Array(e);++r-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var r=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?t.call(e):"";return"[object Function]"==r||"[object GeneratorFunction]"==r}(e)}},62753:function(e){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},35683:function(e,t,r){var o,n=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l="\\ud800-\\udfff",u="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\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",h="["+p+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="\\d+",g="["+u+"]",y="["+c+"]",b="[^"+l+p+m+u+c+d+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",w="["+d+"]",F="(?:"+y+"|"+b+")",k="(?:"+w+"|"+b+")",T="(?:['’](?:d|ll|m|re|s|t|ve))?",j="(?:['’](?:D|LL|M|RE|S|T|VE))?",S="(?:"+f+"|\\ud83c[\\udffb-\\udfff])?",P="[\\ufe0e\\ufe0f]?",U=P+S+"(?:\\u200d(?:"+["[^"+l+"]",v,_].join("|")+")"+P+S+")*",A="(?:"+[g,v,_].join("|")+")"+U,O=RegExp("['’]","g"),C=RegExp(f,"g"),z=RegExp([w+"?"+y+"+"+T+"(?="+[h,w,"$"].join("|")+")",k+"+"+j+"(?="+[h,w+F,"$"].join("|")+")",w+"?"+F+"+"+T,w+"+"+j,m,A].join("|"),"g"),x=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,I=E||D||Function("return this")(),L=(o={"À":"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","ſ":"ss"},function(e){return null==o?void 0:o[e]}),N=Object.prototype.toString,R=I.Symbol,M=R?R.prototype:void 0,B=M?M.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&N.call(e)==i}(e))return B?B.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}(e)}var $,H=($=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,o){for(var n=-1,i=e?e.length:0;++n-1},je.prototype.set=function(e,t){var r=this.__data__,o=Ae(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new Te,map:new(de||je),string:new Te}},Se.prototype.delete=function(e){return Re(this,e).delete(e)},Se.prototype.get=function(e){return Re(this,e).get(e)},Se.prototype.has=function(e){return Re(this,e).has(e)},Se.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,o),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.clear=function(){this.__data__=new je},Ue.prototype.delete=function(e){return this.__data__.delete(e)},Ue.prototype.get=function(e){return this.__data__.get(e)},Ue.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof je){var o=r.__data__;if(!de||o.length<199)return o.push([e,t]),this;r=this.__data__=new Se(o)}return r.set(e,t),this};var Oe,Ce=(Oe=function(e,t){return e&&ze(e,t,at)},function(e,t){if(null==e)return e;if(!Je(e))return Oe(e,t);for(var r=e.length,o=-1,n=Object(e);++ou))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&n?new Pe:void 0;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=s}function rt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function nt(e){return"symbol"==typeof e||ot(e)&&oe.call(e)==F}var it=B?function(e){return function(t){return e(t)}}(B):function(e){return ot(e)&&tt(e.length)&&!!x[oe.call(e)]};function at(e){return Je(e)?function(e,t){var r=Qe(e)||Ye(e)?function(e,t){for(var r=-1,o=Array(e);++r-1},ee.prototype.set=function(e,t){var r=this.__data__,o=ie(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(Z||ee),string:new J}},te.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return de(this,e).get(e)},te.prototype.has=function(e){return de(this,e).has(e)},te.prototype.set=function(e,t){var r=de(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var o=r.__data__;if(!Z||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(o)}return r.set(e,t),this.size=r.size,this};function se(e){return null==e?void 0===e?p:u:X&&X in Object(e)?function(e){var t=x.call(e,X),r=e[X];try{e[X]=void 0;var o=!0}catch(e){}var n=D.call(e);return o&&(t?e[X]=r:delete e[X]),n}(e):function(e){return D.call(e)}(e)}function le(e){return je(e)&&se(e)==i}function ue(e,t,r,o,n){e!==t&&function(e,t,r){for(var o=-1,n=Object(e),i=r(e),a=i.length;a--;){var s=i[++o];if(!1===t(n[s],s,n))break}}(t,(function(i,a){if(n||(n=new re),Te(i))!function(e,t,r,o,n,i,a){var s=me(e,r),l=me(t,r),u=a.get(l);if(u)oe(e,r,u);else{var d,p,h,f,m,g=i?i(s,l,r+"",e,t,a):void 0,y=void 0===g;if(y){var b=ve(l),v=!b&&we(l),_=!b&&!v&&Se(l);g=l,b||v||_?ve(s)?g=s:je(m=s)&&_e(m)?g=function(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function ye(e,t){return e===t||e!=e&&t!=t}var be=le(function(){return arguments}())?le:function(e){return je(e)&&x.call(e,"callee")&&!$.call(e,"callee")},ve=Array.isArray;function _e(e){return null!=e&&ke(e.length)&&!Fe(e)}var we=V||function(){return!1};function Fe(e){if(!Te(e))return!1;var t=se(e);return t==s||t==l||t==a||t==d}function ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Se=P?function(e){return function(t){return e(t)}}(P):function(e){return je(e)&&ke(e.length)&&!!m[se(e)]};function Pe(e){return _e(e)?function(e,t){var r=ve(e),o=!r&&be(e),n=!r&&!o&&we(e),i=!r&&!o&&!n&&Se(e),a=r||o||n||i,s=a?function(e,t){for(var r=-1,o=Array(e);++r1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(n=Ue.length>3&&"function"==typeof n?(o--,n):void 0,i&&function(e,t,r){if(!Te(r))return!1;var o=typeof t;return!!("number"==o?_e(r)&&he(t,r.length):"string"==o&&t in r)&&ye(r[t],e)}(t[0],t[1],i)&&(n=o<3?void 0:n,o=1),e=Object(e);++r-1}function f(e,t){for(var r=-1,o=e?e.length:0,n=Array(o);++r0&&r(s)?t>1?$(s,t-1,r,o,n):m(n,s):o||(n[n.length]=s)}return n}function H(e,t){var r,o,n=e.__data__;return("string"==(o=typeof(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?n["string"==typeof t?"string":"hash"]:n.map}function X(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!te(e)||T&&T in e)return!1;var t=ee(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?U:l;return t.test(function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}N.prototype.clear=function(){this.__data__=L?L(null):{}},N.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},N.prototype.get=function(e){var t=this.__data__;if(L){var r=t[e];return r===o?void 0:r}return S.call(t,e)?t[e]:void 0},N.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:S.call(t,e)},N.prototype.set=function(e,t){return this.__data__[e]=L&&void 0===t?o:t,this},R.prototype.clear=function(){this.__data__=[]},R.prototype.delete=function(e){var t=this.__data__,r=q(t,e);return!(r<0||(r==t.length-1?t.pop():z.call(t,r,1),0))},R.prototype.get=function(e){var t=this.__data__,r=q(t,e);return r<0?void 0:t[r][1]},R.prototype.has=function(e){return q(this.__data__,e)>-1},R.prototype.set=function(e,t){var r=this.__data__,o=q(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new N,map:new(I||R),string:new N}},M.prototype.delete=function(e){return H(this,e).delete(e)},M.prototype.get=function(e){return H(this,e).get(e)},M.prototype.has=function(e){return H(this,e).has(e)},M.prototype.set=function(e,t){return H(this,e).set(e,t),this},B.prototype.add=B.prototype.push=function(e){return this.__data__.set(e,o),this},B.prototype.has=function(e){return this.__data__.has(e)};var W=E?b(E,Object):se,V=E?function(e){for(var t=[];e;)m(t,W(e)),e=O(e);return t}:se;function K(e){return Q(e)||Y(e)||!!(x&&e&&e[x])}function G(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!ee(e)}function ee(e){var t=te(e)?P.call(e):"";return t==a||t==s}function te(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function re(e){return!!e&&"object"==typeof e}function oe(e){return J(e)?function(e,t){var r=Q(e)||Y(e)?function(e,t){for(var r=-1,o=Array(e);++r=200&&(i=y,a=!1,t=new B(t));e:for(;++n0&&r(s)?t>1?b(s,t-1,r,o,n):c(n,s):o||(n[n.length]=s)}return n}function v(e){return w(e)||function(e){return function(e){return F(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?h.call(e):"";return t==i||t==a}(e)}(e)}(e)&&p.call(e,"callee")&&(!m.call(e,"callee")||h.call(e)==n)}(e)||!!(g&&e&&e[g])}function _(e){if("string"==typeof e||function(e){return"symbol"==typeof e||F(e)&&"[object Symbol]"==h.call(e)}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var w=Array.isArray;function F(e){return!!e&&"object"==typeof e}var k,T,j=(k=function(e,t){return null==e?{}:function(e,t){return function(e,t,r){for(var o=-1,n=t.length,i={};++o-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=p(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(o)&&function(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e-1},Se.prototype.set=function(e,t){var r=this.__data__,o=Oe(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new je,map:new(pe||Se),string:new je}},Pe.prototype.delete=function(e){return Me(this,e).delete(e)},Pe.prototype.get=function(e){return Me(this,e).get(e)},Pe.prototype.has=function(e){return Me(this,e).has(e)},Pe.prototype.set=function(e,t){return Me(this,e).set(e,t),this},Ue.prototype.add=Ue.prototype.push=function(e){return this.__data__.set(e,n),this},Ue.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.clear=function(){this.__data__=new Se},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var o=r.__data__;if(!pe||o.length<199)return o.push([e,t]),this;r=this.__data__=new Pe(o)}return r.set(e,t),this};var Ce,ze=(Ce=function(e,t){return e&&Ee(e,t,st)},function(e,t){if(null==e)return e;if(!et(e))return Ce(e,t);for(var r=e.length,o=-1,n=Object(e);++ou))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=n&i?new Ue:void 0;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=l}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==typeof e}function it(e){return"symbol"==typeof e||nt(e)&&ne.call(e)==k}var at=q?function(e){return function(t){return e(t)}}(q):function(e){return nt(e)&&rt(e.length)&&!!E[ne.call(e)]};function st(e){return et(e)?function(e,t){var r=Je(e)||Qe(e)?function(e,t){for(var r=-1,o=Array(e);++r-1},Ae.prototype.set=function(e,t){var r=this.__data__,o=xe(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ue,map:new(me||Ae),string:new Ue}},Oe.prototype.delete=function(e){return We(this,e).delete(e)},Oe.prototype.get=function(e){return We(this,e).get(e)},Oe.prototype.has=function(e){return We(this,e).has(e)},Oe.prototype.set=function(e,t){return We(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,o),this},Ce.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.clear=function(){this.__data__=new Ae},ze.prototype.delete=function(e){return this.__data__.delete(e)},ze.prototype.get=function(e){return this.__data__.get(e)},ze.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var o=r.__data__;if(!me||o.length<199)return o.push([e,t]),this;r=this.__data__=new Oe(o)}return r.set(e,t),this};var Ee,De=(Ee=function(e,t){return e&&Le(e,t,gt)},function(e,t){if(null==e)return e;if(!ut(e))return Ee(e,t);for(var r=e.length,o=-1,n=Object(e);++o0&&r(s)?t>1?Ie(s,t-1,r,o,n):$(n,s):o||(n[n.length]=s)}return n}var Le=function(e,t,r){for(var o=-1,n=Object(e),i=r(e),a=i.length;a--;){var s=i[++o];if(!1===t(n[s],s,n))break}return e};function Ne(e,t){for(var r=0,o=(t=Qe(t,e)?[t]:$e(t)).length;null!=e&&r=s?l:l*("desc"==r[o]?-1:1)}return e.index-t.index}(e,t,r)}));o--;)e[o]=e[o].value;return e}(n)}function $e(e){return lt(e)?e:tt(e)}function He(e,t){if(e!==t){var r=void 0!==e,o=null===e,n=e==e,i=ft(e),a=void 0!==t,s=null===t,l=t==t,u=ft(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||o&&a&&l||!r&&l||!n)return 1;if(!o&&!i&&!u&&eu))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var p=-1,h=!0,f=a&n?new Ce:void 0;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1&&Ye(e,t[0],t[1])?t=[]:r>2&&Ye(t[0],t[1],t[2])&&(t=[t[0]]),qe(e,Ie(t,1),[])}));function it(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a),a};return r.cache=new(it.Cache||Oe),r}function at(e,t){return e===t||e!=e&&t!=t}function st(e){return function(e){return ht(e)&&ut(e)}(e)&&ne.call(e,"callee")&&(!ue.call(e,"callee")||ie.call(e)==l)}it.Cache=Oe;var lt=Array.isArray;function ut(e){return null!=e&&dt(e.length)&&!ct(e)}function ct(e){var t=pt(e)?ie.call(e):"";return t==h||t==f}function dt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ht(e){return!!e&&"object"==typeof e}function ft(e){return"symbol"==typeof e||ht(e)&&ie.call(e)==F}var mt=B?X(B):function(e){return ht(e)&&dt(e.length)&&!!x[ie.call(e)]};function gt(e){return ut(e)?function(e,t){var r=lt(e)||st(e)?function(e,t){for(var r=-1,o=Array(e);++r-1&&e%1==0&&e0){if(++ve>=800)return arguments[0]}else ve=0;return be.apply(void 0,arguments)});function Fe(e,t){return e===t||e!=e&&t!=t}var ke=ce(function(){return arguments}())?ce:function(e){return Ce(e)&&$.call(e,"callee")&&!Y.call(e,"callee")},Te=Array.isArray;function je(e){return null!=e&&Ae(e.length)&&!Ue(e)}var Se=ee||function(){return!1};function Pe(e){if(!Ce(e))return!1;var t=ue(e);return t==l||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Ce(e)||ue(e)!=p)return!1;var t=Z(e);if(null===t)return!0;var r=$.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&q.call(r)==W}(e)}function Ue(e){if(!Oe(e))return!1;var t=ue(e);return t==u||t==c||t==s||t==h}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var ze,xe=x?function(e){return function(t){return e(t)}}(x):function(e){return Ce(e)&&Ae(e.length)&&!!k[ue(e)]},Ee=(ze=function(e,t,r,o){!function(e,t,r,o){var n=!r;r||(r={});for(var i=-1,a=t.length;++i1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(n=ze.length>3&&"function"==typeof n?(o--,n):void 0,i&&ge(t[0],t[1],i)&&(n=o<3?void 0:n,o=1),e=Object(e);++r"']/g,c=RegExp(u.source),d="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),f=(o={"&":"&","<":"<",">":">",'"':""","'":"'"},function(e){return null==o?void 0:o[e]}),m=Object.prototype,g=m.hasOwnProperty,y=m.toString,b=h.Symbol,v=b?b.toStringTag:void 0,_=b?b.prototype:void 0,w=_?_.toString:void 0,F={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:n,variable:"",imports:{_:{escape:function(e){return(e=null==(t=e)?"":k(t))&&c.test(e)?e.replace(u,f):e;var t}}}};function k(e){if("string"==typeof e)return e;if(T(e))return function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r=t||r<0||p&&e-c>=a}function w(){var e=y();if(_(e))return F(e);l=setTimeout(w,function(e){var r=t-(e-u);return p?g(r,a-(e-c)):r}(e))}function F(e){return l=void 0,h&&n?f(e):(n=i=void 0,s)}function k(){var e=y(),r=_(e);if(n=arguments,i=this,u=e,r){if(void 0===l)return function(e){return c=e,l=setTimeout(w,t),d?f(e):s}(u);if(p)return l=setTimeout(w,t),f(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=v(t)||0,b(r)&&(d=!!r.leading,a=(p="maxWait"in r)?m(v(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),k.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=u=i=l=void 0},k.flush=function(){return void 0===l?s:F(y())},k}(e,t,{leading:n,maxWait:t,trailing:i})}},37943:function(e){var t=1/0,r=4294967295,o=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l=Object.prototype.toString,u=Math.min;function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function d(e){return e}e.exports=function(e,p){if((e=function(e){var r=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=i.test(e);return r||a.test(e)?s(e.slice(2),r?2:8):n.test(e)?NaN:+e}(e))===t||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),u=r%1;return r==r?u?r-u:r:0}(e))<1||e>9007199254740991)return[];var h=r,f=u(e,r);e-=r;for(var m=function(e,t){for(var r=-1,o=Array(e);++r-1;);return r}(i,a),l=function(e,t){for(var r=e.length;r--&&T(t,e[r],0)>-1;);return r}(i,a)+1;return function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:function(e,t,r){var o=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o-1}function d(e){return e!=e}function p(e,t){return e.has(t)}function h(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var f,m=Array.prototype,g=Function.prototype,y=Object.prototype,b=u["__core-js_shared__"],v=(f=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",_=g.toString,w=y.hasOwnProperty,F=y.toString,k=RegExp("^"+_.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=m.splice,j=D(u,"Map"),S=D(u,"Set"),P=D(Object,"create");function U(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},A.prototype.set=function(e,t){var r=this.__data__,o=z(r,e);return o<0?r.push([e,t]):r[o][1]=t,this},O.prototype.clear=function(){this.__data__={hash:new U,map:new(j||A),string:new U}},O.prototype.delete=function(e){return E(this,e).delete(e)},O.prototype.get=function(e){return E(this,e).get(e)},O.prototype.has=function(e){return E(this,e).has(e)},O.prototype.set=function(e,t){return E(this,e).set(e,t),this},C.prototype.add=C.prototype.push=function(e){return this.__data__.set(e,o),this},C.prototype.has=function(e){return this.__data__.has(e)};var x=S&&1/h(new S([,-0]))[1]==1/0?function(e){return new S(e)}:function(){};function E(e,t){var r,o,n=e.__data__;return("string"==(o=typeof(r=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==r:null===r)?n["string"==typeof t?"string":"hash"]:n.map}function D(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!I(e)||v&&v in e)return!1;var t=function(e){var t=I(e)?F.call(e):"";return t==n||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?k:a;return t.test(function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,r){var o=-1,n=c,i=e.length,a=!0,s=[],l=s;if(i>=200){var u=x(e);if(u)return h(u);a=!1,n=p,l=new C}else l=s;e:for(;++o=2}return t?r(t.split(";")[0]):r}},44800:function(e){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,r,o,n,i,a,s){var l=function(e){for(var r=t[e]?t[e]:[],o=e.indexOf(":"),n=-1===o?[e]:[e.substring(0,o),e.substring(o+1)],i=Object.keys(t),a=0,s=i.length;a2&&(s.children=arguments.length>3?o.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,n,i,null)}function v(e,t,r,o,a){var s={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=n.vnode&&n.vnode(s),s}function _(){return{current:null}}function w(e){return e.children}function F(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var r;tt&&s.sort(c));S.__r=0}function P(e,t,r,o,n,i,a,s,l,u,c){var d,f,g,y,b,_,F,k,T,j,S=0,P=o&&o.__k||h,A=P.length,z=A,x=t.length;for(r.__k=[],d=0;d0?v(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)&&(y.__=r,y.__b=r.__b+1,-1===(k=C(y,P,F=d+S,z))?g=p:(g=P[k]||p,P[k]=void 0,z--),I(e,y,g,n,i,a,s,l,u,c),b=y.__e,(f=y.ref)&&g.ref!=f&&(g.ref&&R(g.ref,null,y),c.push(f,y.__c||b,y)),null!=b&&(null==_&&(_=b),j=!(T=g===p||null===g.__v)&&k===F,T?-1==k&&S--:k!==F&&(k===F+1?(S++,j=!0):k>F?z>x-F?(S+=k-F,j=!0):S--:S=k(null!=l?1:0))for(;a>=0||s=0){if((l=t[a])&&n==l.key&&i===l.type)return a;a--}if(s2&&(l.children=arguments.length>3?o.call(arguments,2):r),v(e.type,l,n||e.key,i||e.ref,null)}function X(e,t){var r={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,o;return this.getChildContext||(r=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some((function(e){e.__e=!0,j(e)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}o=h.slice,n={__e:function(e,t,r,o){for(var n,i,a;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,o||{}),a=n.__d),a)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return null!=e&&void 0===e.constructor},F.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},r),this.props)),e&&g(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),j(this))},F.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),j(this))},F.prototype.render=w,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,d=0},67429:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var o=p(r(63990)),n=p(r(8237)),i=p(r(75355)),a=p(r(83764)),s=p(r(86314)),l=p(r(58464)),u=p(r(46435)),c=p(r(73990)),d=p(r(18222));function p(e){return e&&e.__esModule?e:{default:e}}},94163:function(e,t){"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,n,i,a){return o((s=o(o(t,e),o(n,a)))<<(l=i)|s>>>32-l,r);var s,l}function i(e,t,r,o,i,a,s){return n(t&r|~t&o,e,t,i,a,s)}function a(e,t,r,o,i,a,s){return n(t&o|r&~o,e,t,i,a,s)}function s(e,t,r,o,i,a,s){return n(t^r^o,e,t,i,a,s)}function l(e,t,r,o,i,a,s){return n(r^(t|~o),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r>5]>>>n%32&255,i=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},70058:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},33319:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)};const o=new Uint8Array(16)},93757:function(e,t){"use strict";function r(e,t,r,o){switch(e){case 0:return t&r^~t&o;case 1:case 3:return t^r^o;case 2:return t&r^t&o^r&o}}function o(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;d=c,c=u,u=o(l,30)>>>0,l=a,a=s}n[0]=n[0]+a>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+u>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+d>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},73990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var o,n=(o=r(46435))&&o.__esModule?o:{default:o};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e,t=0){const r=a(e,t);if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r}},63990:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,n=(o=r(33319))&&o.__esModule?o:{default:o},i=r(73990);let a,s,l=0,u=0;t.default=function(e,t,r){let o=t&&r||0;const c=t||new Array(16);let d=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==p){const t=e.random||(e.rng||n.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:u+1;const m=h-l+(f-u)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,u=f,s=p,h+=122192928e5;const g=(1e4*(268435455&h)+f)%4294967296;c[o++]=g>>>24&255,c[o++]=g>>>16&255,c[o++]=g>>>8&255,c[o++]=255&g;const y=h/4294967296*1e4&268435455;c[o++]=y>>>8&255,c[o++]=255&y,c[o++]=y>>>24&15|16,c[o++]=y>>>16&255,c[o++]=p>>>8|128,c[o++]=255&p;for(let e=0;e<6;++e)c[o+e]=d[e];return t||(0,i.unsafeStringify)(c)}},8237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(17925)),n=i(r(94163));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,o.default)("v3",48,n.default);t.default=a},17925:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function o(e,o,a,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{t===e&&r()}))}function S(e,t,r){var o=this;this.uploaderEvents[t].on(e,(function(){o.uppy.getFile(t)&&r(...arguments)}))}function P(e,t,r){const n=a(this,b)[b](e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise(((t,r)=>{const i=n.formData?function(e,t){const r=new FormData;!function(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach((r=>{e.append(r,t[r])}))}(r,e.meta,t);const o=function(e){return e.data.slice(0,e.data.size,e.meta.type)}(e);return e.name?r.append(t.fieldName,o,e.meta.name):r.append(t.fieldName,o),r}(e,n):(e=>e.data)(e),s=new XMLHttpRequest;this.uploaderEvents[e.id]=new d(this.uppy);const l=new p(n.timeout,(()=>{s.abort(),c.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,t),r(t)})),u=(0,o.nanoid)();s.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[AwsS3/XHRUpload] ${u} started`)})),s.upload.addEventListener("progress",(t=>{this.uppy.log(`[AwsS3/XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),l.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),s.addEventListener("load",(o=>{if(this.uppy.log(`[AwsS3/XHRUpload] ${u} finished`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(o.target.status,s.responseText,s)){const r=n.getResponseData(s.responseText,s),i=r[n.responseUrlFieldName],a={status:o.target.status,body:r,uploadURL:i};return this.uppy.emit("upload-success",e,a),i&&this.uppy.log(`Download ${e.name} from ${i}`),t(e)}const i=n.getResponseData(s.responseText,s),a=g(s,n.getResponseError(s.responseText,s)),d={status:o.target.status,body:i};return this.uppy.emit("upload-error",e,a,d),r(a)})),s.addEventListener("error",(()=>{this.uppy.log(`[AwsS3/XHRUpload] ${u} errored`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=g(s,n.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,t),r(t)})),s.open(n.method.toUpperCase(),n.endpoint,!0),s.withCredentials=Boolean(n.withCredentials),""!==n.responseType&&(s.responseType=n.responseType),Object.keys(n.headers).forEach((e=>{s.setRequestHeader(e,n.headers[e])}));const c=this.requests.run((()=>(s.send(i),()=>{l.done(),s.abort()})),{priority:1});a(this,v)[v]("file-removed",e.id,(()=>{c.abort(),r(new Error("File removed"))})),a(this,_)[_]("cancel-all",e.id,(function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&c.abort(),r(new Error("Upload cancelled"))}))}))}async function U(e){try{if(e.serverToken)return this.connectToServerSocket(e);const t=await a(this,y)[y](e);if(!this.uppy.getState().files[e.id])return;return this.uppy.setFileState(e.id,{serverToken:t}),this.connectToServerSocket(this.uppy.getFile(e.id))}catch(t){throw this.uppy.emit("upload-error",e,t),t}}e.exports=class{constructor(e,t){Object.defineProperty(this,k,{value:U}),Object.defineProperty(this,w,{value:P}),Object.defineProperty(this,_,{value:S}),Object.defineProperty(this,v,{value:j}),Object.defineProperty(this,b,{value:T}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:async e=>{const t=a(this,b)[b](e),r=new(e.remote.providerOptions.provider?n.Provider:n.RequestClient)(this.uppy,e.remote.providerOptions),o=Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta);return e.tus&&Object.assign(t,e.tus),(await r.post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:Object.fromEntries(o.map((t=>[t,e.meta[t]]))),httpMethod:t.method,useFormData:t.formData,headers:t.headers})).token}}),this.uppy=e,this.opts={validateStatus(e){return e>=200&&e<300},...t},this.requests=t[i.internalRateLimitedQueue],this.uploaderEvents=Object.create(null),this.i18n=t.i18n,a(this,y)[y]=this.requests.wrapPromiseFunction(a(this,F)[F],{priority:-1})}uploadFile(e,t,r){const o=this.uppy.getFile(e);if(o.error)throw new Error(o.error);return o.isRemote?a(this,k)[k](o,t,r):a(this,w)[w](o,t,r)}connectToServerSocket(e){return new Promise(((t,r)=>{const o=a(this,b)[b](e),i=e.serverToken,s=c(e.remote.companionUrl);let l;const p=()=>{null==l&&(l=new n.Socket({target:`${s}/api/${i}`}),l.on("progress",(t=>u(this,t,e))),l.on("success",(r=>{const n=o.getResponseData(r.response.responseText,r.response),i=n[o.responseUrlFieldName],a={status:r.response.status,body:n,uploadURL:i,bytesUploaded:r.bytesUploaded};return this.uppy.emit("upload-success",e,a),f.done(),l.close(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),t()})),l.on("error",(t=>{const n=t.response,i=n?o.getResponseError(n.responseText,n):new h(t.error.message,{cause:t.error});this.uppy.emit("upload-error",e,i),f.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)})))};this.uploaderEvents[e.id]=new d(this.uppy);let f=this.requests.run((()=>{var t;return e.isPaused?null==(t=l)||t.send("pause",{}):p(),()=>l.close()}));a(this,v)[v]("file-removed",e.id,(()=>{var r;null==(r=l)||r.send("cancel",{}),f.abort(),t(`upload ${e.id} was removed`)})),a(this,_)[_]("cancel-all",e.id,(function(r){let{reason:o}=void 0===r?{}:r;var n;"user"===o&&(null==(n=l)||n.send("cancel",{}),f.abort()),t(`upload ${e.id} was canceled`)}));const m=()=>{null==l?f.abort():(l.send("pause",{}),f.done()),f=this.requests.run((()=>(e.isPaused||(null==l?p():l.send("resume",{})),()=>l.close())))};a(this,v)[v]("upload-retry",e.id,m),a(this,_)[_]("retry-all",e.id,m)})).catch((t=>(this.uppy.emit("upload-error",e,t),Promise.reject(t))))}}},8021:function(e,t,r){"use strict";var o=r(99628),n=r(53145);let i;function a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function l(e){return"__private_"+s+++"_"+e}const u=r(93521),c=r(21494),d=r(3626),p=r(94926);function h(e,t){const r=e.indexOf(`<${t}>`),o=e.indexOf(``,r);return-1!==r&&-1!==o?e.slice(r+t.length+2,o):""}function f(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}function m(e,t){if(!d(e,t))return;const r=h(e,"Message");return new Error(r)}let g=!1;var y=l("client"),b=l("requests"),v=l("uploader"),_=l("handleUpload"),w=l("setCompanionHeaders");i=Symbol.for("uppy test: getClient");class F extends u{constructor(e,t){super(e,t),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:e=>{const t=Object.create(null);function r(e){var r;const{id:o}=e;null==(r=t[o])||r.abort()}this.uppy.on("file-removed",r),e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("upload-started",t)}));const o=a(this,b)[b].wrapPromiseFunction((e=>this.opts.getUploadParameters(e))),n=e.length;return Promise.allSettled(e.map(((e,r)=>(t[e]=o(this.uppy.getFile(e)),t[e].then((o=>{delete t[e];const i=this.uppy.getFile(e);!function(e,t){if(null==t||"string"!=typeof t.url||"object"!=typeof t.fields&&null!=t.fields)throw new TypeError(`AwsS3: got incorrect result from 'getUploadParameters()' for file '${e.name}', expected an object '{ url, method, fields, headers }' but got '${JSON.stringify(t)}' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`);if(null!=t.method&&!/^p(u|os)t$/i.test(t.method))throw new TypeError(`AwsS3: got incorrect method from 'getUploadParameters()' for file '${e.name}', expected 'put' or 'post' but got '${t.method}' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`)}(i,o);const{method:s="post",url:l,fields:u,headers:c}=o,d={method:s,formData:"post"===s.toLowerCase(),endpoint:l,metaFields:u?Object.keys(u):[]};return c&&(d.headers=c),this.uppy.setFileState(i.id,{meta:{...i.meta,...u},xhrUpload:d}),a(this,v)[v].uploadFile(i.id,r,n)})).catch((r=>{delete t[e];const o=this.uppy.getFile(e);return this.uppy.emit("upload-error",o,r),Promise.reject(r)})))))).finally((()=>{this.uppy.off("file-removed",r)}))}}),Object.defineProperty(this,w,{writable:!0,value:()=>(a(this,y)[y].setCompanionHeaders(this.opts.companionHeaders),Promise.resolve())}),this.type="uploader",this.id=this.opts.id||"AwsS3",this.title="AWS S3",this.defaultLocale=p;const r={timeout:3e4,limit:0,metaFields:[],getUploadParameters:this.getUploadParameters.bind(this),companionHeaders:{}};this.opts={...r,...t},this.i18nInit(),a(this,y)[y]=new n.RequestClient(e,t),a(this,b)[b]=new o.RateLimitedQueue(this.opts.limit)}[i](){return a(this,y)[y]}get client(){return a(this,y)[y]}set client(e){a(this,y)[y]=e}getUploadParameters(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");const t=e.meta.name,{type:r}=e.meta,o=Object.fromEntries(this.opts.metaFields.filter((t=>null!=e.meta[t])).map((t=>[`metadata[${t}]`,e.meta[t].toString()]))),n=new URLSearchParams({filename:t,type:r,...o});return a(this,y)[y].get(`s3/params?${n}`).then(f)}install(){const{uppy:e}=this;e.addPreProcessor(a(this,w)[w]),e.addUploader(a(this,_)[_]);const t={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout,[o.internalRateLimitedQueue]:a(this,b)[b],responseType:"text",getResponseData:this.opts.getResponseData||function(t,r){return d(t,r)?{location:(o=r.responseURL,n=h(t,"Location"),new URL(n,o||void 0).toString()),bucket:h(t,"Bucket"),key:h(t,"Key"),etag:h(t,"ETag")}:"POST"===this.method.toUpperCase()?(g||(e.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),g=!0),{location:null}):r.responseURL?{location:r.responseURL.replace(/\?.*$/,"")}:{location:null};var o,n},getResponseError:m};t.i18n=this.i18n,a(this,v)[v]=new c(e,t)}uninstall(){this.uppy.removePreProcessor(a(this,w)[w]),this.uppy.removeUploader(a(this,_)[_])}}F.VERSION="2.2.4",e.exports=F},3626:function(e){"use strict";e.exports=function(e,t){const r=t.headers?t.headers["content-type"]:t.getResponseHeader("Content-Type");if("string"==typeof r){const t=(o=r,o.replace(/;.*$/,"")).toLowerCase();if("application/xml"===t||"text/xml"===t)return!0;if("text/html"===t&&/^<\?xml /.test(e))return!0}var o;return!1}},94926:function(e){"use strict";e.exports={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}}},73370:function(e){"use strict";class t extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}e.exports=t},74125:function(e,t,r){"use strict";var o=r(45421);const n=r(45189);e.exports=class extends n{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,r]=e;const o={};return r&&(o["uppy-auth-token"]=r),this.companionKeysParams&&(o["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...o}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});const t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!("string"==typeof r||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||o}}},45189:function(e,t,r){"use strict";let o;function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var i=0;function a(e){return"__private_"+i+++"_"+e}const s=r(10104),l=r(8391),u=r(73370);async function c(e){if(401===e.status)throw new u;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;r=e.message?`${r} message: ${e.message}`:r,r=e.requestId?`${r} request-Id: ${e.requestId}`:r}finally{throw new Error(r)}}return t}var d=a("companionHeaders"),p=a("getPostResponseFunc"),h=a("getUrl"),f=a("errorHandler");o=Symbol.for("uppy test: getCompanionHeaders");class m{constructor(e,t){Object.defineProperty(this,f,{value:y}),Object.defineProperty(this,h,{value:g}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1,n(this,d)[d]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){n(this,d)[d]=e}[o](){return n(this,d)[d]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){return Promise.resolve({...m.defaultHeaders,...n(this,d)[d]})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==t[r]&&this.uppy.setState({companion:{...t,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(n(this,h)[h](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,r]=e;return Object.keys(r).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete r[e])})),r}))}get(e,t){return this.preflightAndHeaders(e).then((t=>s(n(this,h)[h](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(n(this,p)[p](t)).then(c).catch(n(this,f)[f]("get",e))}post(e,t,r){const o="post";return this.preflightAndHeaders(e).then((r=>s(n(this,h)[h](e),{method:o,headers:r,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(n(this,p)[p](r)).then(c).catch(n(this,f)[f](o,e))}delete(e,t,r){const o="delete";return this.preflightAndHeaders(e).then((r=>s(`${this.hostname}/${e}`,{method:o,headers:r,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(n(this,p)[p](r)).then(c).catch(n(this,f)[f](o,e))}}function g(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function y(e,t){return r=>{var o;return null!=(o=r)&&o.isAuthError||(r=new l(`Could not ${e} ${n(this,h)[h](t)}`,{cause:r})),Promise.reject(r)}}m.VERSION="2.2.2",m.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${m.VERSION}`},e.exports=m},51863:function(e,t,r){"use strict";const o=r(45189);e.exports=class extends o{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t?`&${t}`:""}`)}}},20773:function(e,t,r){"use strict";let o,n;function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var a=0;function s(e){return"__private_"+a+++"_"+e}const l=r(44800);var u=s("queued"),c=s("emitter"),d=s("isOpen"),p=s("socket"),h=s("handleMessage");o=Symbol.for("uppy test: getSocket"),n=Symbol.for("uppy test: getQueued"),e.exports=class{constructor(e){Object.defineProperty(this,u,{writable:!0,value:[]}),Object.defineProperty(this,c,{writable:!0,value:l()}),Object.defineProperty(this,d,{writable:!0,value:!1}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return i(this,d)[d]}[o](){return i(this,p)[p]}[n](){return i(this,u)[u]}open(){i(this,p)[p]=new WebSocket(this.opts.target),i(this,p)[p].onopen=()=>{for(i(this,d)[d]=!0;i(this,u)[u].length>0&&i(this,d)[d];){const e=i(this,u)[u].shift();this.send(e.action,e.payload)}},i(this,p)[p].onclose=()=>{i(this,d)[d]=!1},i(this,p)[p].onmessage=i(this,h)[h]}close(){var e;null==(e=i(this,p)[p])||e.close()}send(e,t){i(this,d)[d]?i(this,p)[p].send(JSON.stringify({action:e,payload:t})):i(this,u)[u].push({action:e,payload:t})}on(e,t){i(this,c)[c].on(e,t)}emit(e,t){i(this,c)[c].emit(e,t)}once(e,t){i(this,c)[c].once(e,t)}}},53145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.SearchProvider=t.RequestClient=t.Provider=void 0;const o=r(45189);t.RequestClient=o;const n=r(74125);t.Provider=n;const i=r(51863);t.SearchProvider=i;const a=r(20773);t.Socket=a},45421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},t.removeItem=function(e){return new Promise((t=>{localStorage.removeItem(e),t()}))},t.setItem=function(e,t){return new Promise((r=>{localStorage.setItem(e,t),r()}))}},33139:function(e,t,r){"use strict";var o=r(17841),n=r(99628);function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var a=0;function s(e){return"__private_"+a+++"_"+e}const l=r(79655),u=r(85158),c=r(7035),d=r(29992);var p=s("RateLimitedQueue");class h extends o.BasePlugin{constructor(e,t){super(e,t),Object.defineProperty(this,p,{writable:!0,value:void 0}),this.id=this.opts.id||"Compressor",this.type="modifier",this.defaultLocale=d,this.opts={quality:.6,limit:10,...t},i(this,p)[p]=new n.RateLimitedQueue(this.opts.limit),this.i18nInit(),this.prepareUpload=this.prepareUpload.bind(this),this.compress=this.compress.bind(this)}compress(e){return new Promise(((t,r)=>{new c(e,{...this.opts,success:t,error:r})}))}async prepareUpload(e){let t=0;const r=i(this,p)[p].wrapPromiseFunction((async e=>{try{const r=await this.compress(e.data),o=e.data.size-r.size;this.uppy.log(`[Image Compressor] Image ${e.id} compressed by ${u(o)}`),t+=o;const{name:n,type:i,size:a}=r,{extension:s}=l(n);this.uppy.setFileState(e.id,{name:n,extension:s,type:i,size:a,data:r}),this.uppy.setFileMeta(e.id,{name:n,type:i})}catch(t){this.uppy.log(`[Image Compressor] Failed to compress ${e.id}:`,"warning"),this.uppy.log(t,"warning")}})),o=e.map((e=>{const t=this.uppy.getFile(e);return this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("compressingImages")}),t.isRemote?Promise.resolve():(t.data.type||(t.data=t.data.slice(0,t.data.size,t.type)),t.type.startsWith("image/")?r(t):Promise.resolve())}));await Promise.all(o),this.uppy.emit("compressor:complete"),t>1024&&this.uppy.info(this.i18n("compressedX",{size:u(t)}),"info");for(const t of e){const e=this.uppy.getFile(t);this.uppy.emit("preprocess-complete",e)}}install(){this.uppy.addPreProcessor(this.prepareUpload)}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}}e.exports=h},29992:function(e){"use strict";e.exports={strings:{compressingImages:"Compressing images...",compressedX:"Saved %{size} by compressing images"}}},93521:function(e,t,r){"use strict";const o=r(53149);e.exports=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 o([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(){}}},59001:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=t.RestrictionError=t.Restricter=void 0;const o=r(11512),n=r(24193);t.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class i extends Error{constructor(){super(...arguments),this.isRestriction=!0}}t.RestrictionError=i,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}}),t.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:r,minFileSize:a,maxTotalFileSize:s,maxNumberOfFiles:l,allowedFileTypes:u}=this.getOpts().restrictions;if(l&&t.filter((e=>!e.isGhost)).length+1>l)throw new i(`${this.i18n("youCanOnlyUploadX",{smart_count:l})}`);if(u&&!u.some((t=>t.includes("/")?!!e.type&&n(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const e=u.join(", ");throw new i(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(s&&null!=e.size&&t.reduce(((e,t)=>e+t.size),e.size)>s)throw new i(this.i18n("exceedsSize",{size:o(s),file:e.name}));if(r&&null!=e.size&&e.size>r)throw new i(this.i18n("exceedsSize",{size:o(r),file:e.name}));if(a&&null!=e.size&&e.size(t=null,e(...r))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,o.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,o.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||l(t)||"ltr",this.onMount(),this.el}let a;if("object"==typeof e&&e instanceof d)a=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(a=e)}))}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let u=`Invalid target option given to ${r}.`;throw u+="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