@bigbinary/neeto-editor 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +353 -0
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -37,7 +37,7 @@ return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,s=n.algo,a=r.create(
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- GC.exports=YC;var NM=GC.exports,AM={exports:{}},jM={},LM="function"==typeof Symbol&&Symbol.for,IM=LM?Symbol.for("react.element"):60103,zM=LM?Symbol.for("react.portal"):60106,RM=LM?Symbol.for("react.fragment"):60107,FM=LM?Symbol.for("react.strict_mode"):60108,BM=LM?Symbol.for("react.profiler"):60114,PM=LM?Symbol.for("react.provider"):60109,UM=LM?Symbol.for("react.context"):60110,HM=LM?Symbol.for("react.async_mode"):60111,$M=LM?Symbol.for("react.concurrent_mode"):60111,WM=LM?Symbol.for("react.forward_ref"):60112,qM=LM?Symbol.for("react.suspense"):60113,VM=LM?Symbol.for("react.suspense_list"):60120,KM=LM?Symbol.for("react.memo"):60115,GM=LM?Symbol.for("react.lazy"):60116,YM=LM?Symbol.for("react.block"):60121,QM=LM?Symbol.for("react.fundamental"):60117,ZM=LM?Symbol.for("react.responder"):60118,JM=LM?Symbol.for("react.scope"):60119;function XM(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IM:switch(e=e.type){case HM:case $M:case RM:case BM:case FM:case qM:return e;default:switch(e=e&&e.$$typeof){case UM:case WM:case GM:case KM:case PM:return e;default:return t}}case zM:return t}}}function eD(e){return XM(e)===$M}function tD(){}function nD(){}jM.AsyncMode=HM,jM.ConcurrentMode=$M,jM.ContextConsumer=UM,jM.ContextProvider=PM,jM.Element=IM,jM.ForwardRef=WM,jM.Fragment=RM,jM.Lazy=GM,jM.Memo=KM,jM.Portal=zM,jM.Profiler=BM,jM.StrictMode=FM,jM.Suspense=qM,jM.isAsyncMode=function(e){return eD(e)||XM(e)===HM},jM.isConcurrentMode=eD,jM.isContextConsumer=function(e){return XM(e)===UM},jM.isContextProvider=function(e){return XM(e)===PM},jM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IM},jM.isForwardRef=function(e){return XM(e)===WM},jM.isFragment=function(e){return XM(e)===RM},jM.isLazy=function(e){return XM(e)===GM},jM.isMemo=function(e){return XM(e)===KM},jM.isPortal=function(e){return XM(e)===zM},jM.isProfiler=function(e){return XM(e)===BM},jM.isStrictMode=function(e){return XM(e)===FM},jM.isSuspense=function(e){return XM(e)===qM},jM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===RM||e===$M||e===BM||e===FM||e===qM||e===VM||"object"==typeof e&&null!==e&&(e.$$typeof===GM||e.$$typeof===KM||e.$$typeof===PM||e.$$typeof===UM||e.$$typeof===WM||e.$$typeof===QM||e.$$typeof===ZM||e.$$typeof===JM||e.$$typeof===YM)},jM.typeOf=XM,Function.call.bind(Object.prototype.hasOwnProperty),nD.resetWarningCache=tD,AM.exports=function(){function e(e,t,n,i,r,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:nD,resetWarningCache:tD};return n.PropTypes=n,n}();var iD=AM.exports;iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var rD=["size","color","strokeWidth"];function oD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,rD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M20.667 20.125H3.33301M20.667 14.708H3.33301M20.667 9.292H16.334M20.667 3.875H16.334M9.29201 6.042H12C12.299 6.042 12.542 6.285 12.542 6.584V8.75C12.542 9.049 12.299 9.292 12 9.292H9.83301C9.53401 9.292 9.29101 9.049 9.29101 8.75L9.29201 6.042ZM9.29201 6.042C9.29201 3.875 9.69801 3.515 10.917 2.792M3.33301 6.042H6.04101C6.34001 6.042 6.58301 6.285 6.58301 6.584V8.75C6.58301 9.049 6.34001 9.292 6.04101 9.292H3.87501C3.57601 9.292 3.33301 9.049 3.33301 8.75V6.042ZM3.33301 6.042C3.33301 3.875 3.73901 3.515 4.95801 2.792",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}oD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},oD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var sD=["size","color","strokeWidth"];function aD(e){var t=e.size,n=e.color;e.strokeWidth;var i=KC(e,sD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),NM.createElement("path",{d:"M9.28906 19.8281H9.77344V18.5234H9.45312C8.39062 18.5234 7.96875 18.0469 7.96875 16.8516V14.4688C7.96875 13.3438 7.35156 12.7266 6.14062 12.6016V12.3906C7.35156 12.2656 7.96875 11.6484 7.96875 10.5156V8.16406C7.96875 6.96875 8.39062 6.49219 9.45312 6.49219H9.77344V5.1875H9.28906C7.27344 5.1875 6.36719 6.0625 6.36719 7.96094V9.99219C6.36719 11.2031 5.91406 11.625 4.60156 11.625V13.3594C5.91406 13.3672 6.36719 13.7891 6.36719 15V17.0469C6.36719 18.9531 7.28125 19.8281 9.28906 19.8281ZM14.4766 19.8281C16.4922 19.8281 17.3984 18.9531 17.3984 17.0469V15C17.3984 13.7891 17.8594 13.3672 19.1641 13.3594V11.625C17.8594 11.625 17.3984 11.2031 17.3984 9.99219V7.96094C17.3984 6.0625 16.4922 5.1875 14.4766 5.1875H13.9922V6.49219H14.3203C15.3828 6.49219 15.7969 6.96875 15.7969 8.16406V10.5156C15.7969 11.6484 16.4141 12.2656 17.6328 12.3906V12.6016C16.4141 12.7266 15.7969 13.3438 15.7969 14.4688V16.8516C15.7969 18.0469 15.375 18.5234 14.3203 18.5234H13.9922V19.8281H14.4766Z",fill:n}))}aD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},aD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var lD=["size","color","strokeWidth"];function cD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,lD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4338)"},NM.createElement("rect",{x:"3",y:"11.3335",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4338",fill:n},NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4338)",strokeWidth:"3"}),NM.createElement("line",{x1:"9",y1:"9.61914",x2:"9",y2:"17.1191",stroke:n,strokeWidth:i}),NM.createElement("line",{x1:"9",y1:"2.86914",x2:"9",y2:"6.61914",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4338"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}cD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},cD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var uD=["size","color","strokeWidth"];function pD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,uD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M6 6L18 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 6L6 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}pD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},pD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var dD=["size","color","strokeWidth"];function hD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,dD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M13.78 4L10.22 20M18 8L22 12L18 16M6 16L2 12L6 8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}hD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},hD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var fD=["size","color","strokeWidth"];function mD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,fD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15.5414 21H8.45857C7.89171 21 7.34573 20.786 6.92981 20.4009C6.51389 20.0157 6.25868 19.4878 6.2152 18.9226L5.25 6.375H18.75L17.7848 18.9226C17.7413 19.4878 17.4861 20.0157 17.0702 20.4009C16.6543 20.786 16.1083 21 15.5414 21V21Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M20 6.375H4",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.1875 3H14.8125C15.1109 3 15.397 3.11853 15.608 3.3295C15.819 3.54048 15.9375 3.82663 15.9375 4.125V6.375H8.0625V4.125C8.0625 3.82663 8.18103 3.54048 8.392 3.3295C8.60298 3.11853 8.88913 3 9.1875 3V3Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M10 17H14",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}mD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},mD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var gD=["size","color","strokeWidth"];function bD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,gD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M6 9L12 15L18 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}bD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},bD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var vD=["size","color","strokeWidth"];function yD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,vD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 21H12C10.22 21 8.47991 20.4722 6.99987 19.4832C5.51983 18.4943 4.36628 17.0887 3.68509 15.4442C3.0039 13.7996 2.82567 11.99 3.17294 10.2442C3.5202 8.49836 4.37737 6.89472 5.63604 5.63604C6.89472 4.37737 8.49836 3.5202 10.2442 3.17294C11.99 2.82567 13.7996 3.0039 15.4442 3.68509C17.0887 4.36628 18.4943 5.51983 19.4832 6.99987C20.4722 8.47991 21 10.22 21 12V13.5C21 14.163 20.7366 14.7989 20.2678 15.2678C19.7989 15.7366 19.163 16 18.5 16C17.837 16 17.2011 15.7366 16.7322 15.2678C16.2634 14.7989 16 14.163 16 13.5V12C16 10.9391 15.5786 9.92172 14.8284 9.17158C14.0783 8.42143 13.0609 8 12 8V8C11.2089 8 10.4355 8.2346 9.77772 8.67413C9.11993 9.11365 8.60724 9.73837 8.30449 10.4693C8.00174 11.2002 7.92252 12.0044 8.07686 12.7804C8.2312 13.5563 8.61217 14.269 9.17158 14.8284C9.73099 15.3878 10.4437 15.7688 11.2196 15.9231C11.9956 16.0775 12.7998 15.9983 13.5307 15.6955C14.2616 15.3928 14.8864 14.8801 15.3259 14.2223C15.7654 13.5645 16 12.7911 16 12",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}yD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},yD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var xD=["size","color","strokeWidth"];function wD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,xD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("rect",{x:"4.75",y:"2.75",width:"14.5",height:"18.5",rx:"3.25",stroke:n,strokeWidth:i}),NM.createElement("rect",{x:"14.75",y:"2.75",width:"4.5",height:"5.5",rx:"1.25",fill:n,stroke:n,strokeWidth:i}),NM.createElement("line",{x1:"7.75",y1:"11.25",x2:"14.25",y2:"11.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),NM.createElement("line",{x1:"7.75",y1:"14.25",x2:"12.25",y2:"14.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),NM.createElement("line",{x1:"7.75",y1:"17.25",x2:"14.25",y2:"17.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}))}wD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},wD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var _D=["size","color","strokeWidth"];function kD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,_D);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M10.523 20H6V15.477C6 15.0134 6.18428 14.5684 6.51226 14.2407L17.5294 4.00237C18.211 3.31947 19.3171 3.31841 20 4L20.0024 4.00237L21.5 5.527C22.1829 6.20859 22.184 7.31473 21.5024 7.99763L21.5 8L11.759 19.488C11.431 19.8156 10.9865 19.9997 10.523 20Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M2 20H3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9 12L13.5 16.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}kD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},kD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var ED=["size","color","strokeWidth"];function CD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,ED);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M20.9998 9.99999V17C20.9998 19.2 19.1998 21 16.9998 21H6.99979L6.98979 20.999C4.77979 20.989 2.98979 19.199 2.98979 16.989V6.98899C2.97979 4.77899 4.77979 2.97899 6.97979 2.97899H12.9798",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M3 13L4.29 11.7H4.28C5.22 10.75 6.74 10.75 7.68 11.69L11.97 15.98",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M7.00293 21L13.2929 14.7V14.69C14.2329 13.74 15.7529 13.74 16.6929 14.69L20.6229 18.62",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M17.9995 3L15.4995 5.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M20.5 5.5L18 3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 3V8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}CD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},CD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var MD=["size","color","strokeWidth"];function DD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,MD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4040)"},NM.createElement("rect",{x:"4.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4040",fill:n},NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4040)",strokeWidth:"3"}),NM.createElement("line",{x1:"2.25",y1:"2.97607",x2:"2.25",y2:"17.1189",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4040"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}DD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},DD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var OD=["size","color","strokeWidth"];function TD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,OD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17.7166 12.3594L19.4466 10.6294C21.1392 8.9873 21.1801 6.284 19.538 4.59141C17.8959 2.89882 15.1926 2.85789 13.5 4.5C13.4691 4.53001 13.4386 4.56048 13.4086 4.59141L10.0109 7.951C8.34355 9.61717 8.3426 12.3195 10.0088 13.9869L10.0109 13.989L9.9999 14C10.3445 14.3381 10.7447 14.6144 11.1829 14.817",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12.806 9.193C13.2443 9.39593 13.6445 9.67262 13.989 10.011C15.6564 11.6772 15.6573 14.3795 13.9912 16.0469L13.989 16.049L10.8082 19.268C9.11565 20.9101 6.41235 20.8692 4.77024 19.1766C3.16318 17.5201 3.16318 14.8865 4.77024 13.23L6.50024 11.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}TD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},TD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var SD=["size","color","strokeWidth"];function ND(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,SD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 5H20",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12 19H20M12 12H20H12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 14C7.10457 14 8 13.1046 8 12C8 10.8954 7.10457 10 6 10C4.89543 10 4 10.8954 4 12C4 13.1046 4.89543 14 6 14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 21C7.10457 21 8 20.1046 8 19C8 17.8954 7.10457 17 6 17C4.89543 17 4 17.8954 4 19C4 20.1046 4.89543 21 6 21Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ND.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ND.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var AD=["size","color","strokeWidth"];function jD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,AD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M11 4H20M11.15 9H20M5.25 9V4L4 5.25M11 14H20M11.15 19H20M4 15C4 14.7348 4.10536 14.4804 4.29289 14.2929C4.48043 14.1054 4.73478 14 5 14H5.61448C5.87234 14 6.12365 14.0811 6.33284 14.2319C6.54202 14.3827 6.69846 14.5955 6.78 14.8401C6.84709 15.0414 6.86091 15.2566 6.82013 15.4648C6.77935 15.673 6.68534 15.8671 6.54727 16.0282L4 19H7M4 9H6.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}jD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},jD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var LD=["size","color","strokeWidth"];function ID(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,LD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15 4H9C6.23858 4 4 6.23858 4 9V15C4 17.7614 6.23858 20 9 20H15C17.7614 20 20 17.7614 20 15V9C20 6.23858 17.7614 4 15 4Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.58398 10.0019C9.58399 9.82496 9.63095 9.65117 9.72008 9.4983C9.80921 9.34542 9.9373 9.21894 10.0913 9.13175C10.2453 9.04457 10.4196 8.9998 10.5966 9.00203C10.7735 9.00426 10.9467 9.05341 11.0985 9.14444L14.4292 11.1429C14.5773 11.2318 14.6998 11.3574 14.7849 11.5077C14.87 11.658 14.9147 11.8277 14.9147 12.0004C14.9147 12.1731 14.87 12.3428 14.7849 12.4931C14.6998 12.6433 14.5773 12.769 14.4292 12.8579L11.0985 14.8564C10.9467 14.9474 10.7735 14.9966 10.5966 14.9988C10.4196 15.001 10.2453 14.9563 10.0913 14.8691C9.9373 14.7819 9.80921 14.6554 9.72008 14.5025C9.63095 14.3497 9.58399 14.1759 9.58398 13.9989V10.0019Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ID.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ID.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var zD=["size","color","strokeWidth"];function RD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,zD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C17.4477 11 17 11.4477 17 12C17 12.5523 17.4477 13 18 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 13C6.55228 13 7 12.5523 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}RD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},RD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var FD=["size","color","strokeWidth"];function BD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,FD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 12H7",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}BD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},BD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var PD=["size","color","strokeWidth"];function UD(e){var t=e.size,n=e.color;e.strokeWidth;var i=KC(e,PD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),NM.createElement("path",{d:"M10 2.25C8.48079 2.25 7.25 3.48079 7.25 5V6.25H6C4.48079 6.25 3.25 7.48079 3.25 9V19C3.25 20.5192 4.48079 21.75 6 21.75H14C15.5192 21.75 16.75 20.5192 16.75 19V17.75H18C19.5192 17.75 20.75 16.5192 20.75 15V5C20.75 3.48079 19.5192 2.25 18 2.25H10ZM16.75 16.25H18C18.6908 16.25 19.25 15.6908 19.25 15V5C19.25 4.30921 18.6908 3.75 18 3.75H10C9.30921 3.75 8.75 4.30921 8.75 5V6.25H14C15.5192 6.25 16.75 7.48079 16.75 9V16.25ZM8 7.75H6C5.30921 7.75 4.75 8.30921 4.75 9V19C4.75 19.6908 5.30921 20.25 6 20.25H14C14.6908 20.25 15.25 19.6908 15.25 19V17V9C15.25 8.30921 14.6908 7.75 14 7.75H8ZM8 12.25C7.58579 12.25 7.25 12.5858 7.25 13C7.25 13.4142 7.58579 13.75 8 13.75H12C12.4142 13.75 12.75 13.4142 12.75 13C12.75 12.5858 12.4142 12.25 12 12.25H8ZM8 15.25C7.58579 15.25 7.25 15.5858 7.25 16C7.25 16.4142 7.58579 16.75 8 16.75H12C12.4142 16.75 12.75 16.4142 12.75 16C12.75 15.5858 12.4142 15.25 12 15.25H8Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}UD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},UD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var HD=["size","color","strokeWidth"];function $D(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,HD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M13 4.5H20M13 9.5H20M4 14.5H20M4 19.5H20M9 9.5L6.5 4.5L4 9.5M4.5 8.5H6.5H8.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}$D.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},$D.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var WD=["size","color","strokeWidth"];function qD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,WD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M14 13.5H19C19.552 13.5 20 13.948 20 14.5V18.5C20 19.052 19.552 19.5 19 19.5H15C14.448 19.5 14 19.052 14 18.5V13.5ZM14 13.5C14 7.5 15 6.5 18 4.5M4 13.5H9C9.552 13.5 10 13.948 10 14.5V18.5C10 19.052 9.552 19.5 9 19.5H5C4.448 19.5 4 19.052 4 18.5V13.5ZM4 13.5C4 7.5 5 6.5 8 4.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}qD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},qD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var VD=["size","color","strokeWidth"];function KD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,VD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12.0001 6.36841H17.5264",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12.0001 6.36841V6.36841C8.51201 6.36841 5.68434 9.19608 5.68434 12.6842C5.68434 16.1723 8.51201 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.1579 4L17.5264 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.1579 8.73683L17.5264 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}KD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},KD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var GD=["size","color","strokeWidth"];function YD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,GD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4017)"},NM.createElement("rect",{x:"1.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4017",fill:n},NM.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4017)",strokeWidth:"3"}),NM.createElement("line",{x1:"15.75",y1:"2.97607",x2:"15.75",y2:"17.1189",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4017"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}YD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},YD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var QD=["size","color","strokeWidth"];function ZD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,QD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 3C7.037 3 3 7.037 3 12C3 16.963 7.037 21 12 21C16.963 21 21 16.962 21 12C21 7.038 16.962 3 12 3Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.5006 15.688C15.5006 15.688 14.1876 17 12.0006 17C9.81263 17 8.50063 15.688 8.50063 15.688M15.3286 9.5C15.1906 9.5 15.0786 9.612 15.0796 9.75C15.0796 9.888 15.1916 10 15.3296 10C15.4676 10 15.5796 9.888 15.5796 9.75C15.5796 9.612 15.4676 9.5 15.3286 9.5ZM8.63963 9.5C8.50163 9.5 8.38963 9.612 8.39063 9.75C8.39063 9.888 8.50263 10 8.64063 10C8.77863 10 8.89063 9.888 8.89063 9.75C8.89063 9.612 8.77863 9.5 8.63963 9.5Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ZD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ZD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var JD=["size","color","strokeWidth"];function XD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,JD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M7 6H12.875C13.6706 6 14.4337 6.31607 14.9963 6.87868C15.5589 7.44129 15.875 8.20435 15.875 9V9C15.875 9.79565 15.5589 10.5587 14.9963 11.1213C14.4337 11.6839 13.6706 12 12.875 12H7V6ZM7 12H14C14.7956 12 15.5587 12.3161 16.1213 12.8787C16.6839 13.4413 17 14.2044 17 15V15C17 15.7956 16.6839 16.5587 16.1213 17.1213C15.5587 17.6839 14.7956 18 14 18H7V12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}XD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},XD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var eO=["size","color","strokeWidth"];function tO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,eO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M8 18H14C14.7956 18 15.5587 17.6839 16.1213 17.1213C16.6839 16.5587 17 15.7956 17 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M19 12H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M16 6H11C10.2044 6 9.44129 6.31607 8.87868 6.87868C8.31607 7.44129 8 8.20435 8 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}tO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},tO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var nO=["size","color","strokeWidth"];function iO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,nO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M5 6V18M13 6V18M5 12H13M18.5 18V13L17.25 14.25M20 18H17",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}iO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},iO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var rO=["size","color","strokeWidth"];function oO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,rO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 14C17 13.7348 17.1054 13.4804 17.2929 13.2929C17.4804 13.1054 17.7348 13 18 13H18.6145C18.8723 13 19.1237 13.0811 19.3329 13.2319C19.542 13.3827 19.6985 13.5955 19.78 13.8401C19.8471 14.0414 19.8609 14.2566 19.8202 14.4648C19.7794 14.673 19.6854 14.8671 19.5473 15.0281L17 18H20M5 6V18M13 6V18M5 12H13",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}oO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},oO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var sO=["size","color","strokeWidth"];function aO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,sO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M10 6H17M13.5 6L10.5 18L13.5 6ZM14 18H7H14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}aO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},aO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var lO=["size","color","strokeWidth"];function cO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,lO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_861:2152)"},NM.createElement("path",{d:"M15.315 15.014L12 8.01398L8.68401 15.013",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.347 13.613H14.65",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 21.014H6C4.343 21.014 3 19.671 3 18.014V6.01398C3 4.35698 4.343 3.01398 6 3.01398H18C19.657 3.01398 21 4.35698 21 6.01398V18.014C21 19.671 19.657 21.014 18 21.014Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_861:2152"},NM.createElement("rect",{width:"24",height:"24",fill:n}))))}cO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},cO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var uO=["size","color","strokeWidth"];function pO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,uO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15 5V11.6667C15 12.5507 14.6313 13.3986 13.9749 14.0237C13.3185 14.6488 12.4283 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8 5V11.6667C8 12.5507 8.36875 13.3986 9.02513 14.0237C9.6815 14.6488 10.5717 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M19 18.5H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}pO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},pO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var dO=["size","color","strokeWidth"];function hO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,dO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M5.68433 12.6842V12.6842C5.68433 16.1723 8.512 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842C18.3159 9.19608 15.4882 6.36841 12.0001 6.36841H6.4738",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8.8423 4L6.47388 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8.8423 8.73683L6.47388 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}hO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},hO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var fO=["size","color","strokeWidth"];function mO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,fO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15.375 13.097L19.17 16.151C19.906 16.744 21 16.22 21 15.275V8.725C21 7.78 19.906 7.256 19.17 7.849L15.375 10.903M13.125 17.75H5.25C4.007 17.75 3 16.743 3 15.5V8.5C3 7.257 4.007 6.25 5.25 6.25H13.125C14.368 6.25 15.375 7.257 15.375 8.5V15.5C15.375 16.743 14.368 17.75 13.125 17.75Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}mO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},mO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);const gO=e=>{const t=["B","KB","MB","GB"];let n=0;for(;e>=1024&&n<t.length;)e/=1024,++n;return`${e.toFixed(1)} ${t[n]}`},bO=e=>{let{align:n,updateAttributes:i,deleteNode:r}=e;const o=[{Icon:DD,alignPos:"left",optionName:"Align left"},{Icon:cD,alignPos:"center",optionName:"Align Center"},{Icon:YD,alignPos:"right",optionName:"Align right"},{Icon:mD,optionName:"Delete"}];return t.createElement(m,{buttonProps:{className:"neeto-editor__image-menu-btn"},buttonSize:"small",buttonStyle:"secondary",className:"neeto-editor__image-menu",icon:RD,position:"top"},o.map((e=>{let{Icon:o,optionName:s,alignPos:a}=e;return t.createElement(g,{icon:()=>t.createElement(o,{size:18}),key:s,style:a===n?"secondary":"text",tooltipProps:{content:Fe(s),position:"top"},onClick:()=>(e=>e?i({align:e}):r())(a)})})))},vO=e=>{var n;let{node:i,editor:r,getPos:o,updateAttributes:a,deleteNode:l}=e;const c=s(null),{alt:u,src:p,figheight:d,figwidth:h,align:f}=i.attrs,{view:m}=r;let g=d,b=h;const v=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(ju,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(bO,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(qC,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:b},onResizeStop:(e,t,n)=>{g=n.offsetHeight,b=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(o(),void 0,{...i.attrs,figheight:g,figwidth:b,height:g,width:b})),r.commands.focus()}},t.createElement("img",He({},i.attrs,{alt:v,src:p}))),t.createElement(Au,{as:"figcaption",className:Pu({"is-empty":Le(v)})})))},yO=pl.create({name:"image",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("alt")}},figheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("figheight")}},figwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("figwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure",contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:i,src:r,figheight:o,figwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",this.options.HTMLAttributes,["div",a,["img",na(n,{draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>zu(vO),addCommands(){return{setFigure:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),xO=async(e,t)=>{const n=new EC({file:e,url:t}),{blob_url:i}=await n.create();return i};var wO=e=>{let{uploadEndpoint:t}=e;return yO.extend({addProseMirrorPlugins:()=>[new pi({props:{handleDOMEvents:{paste(e,n){var i,r;const{schema:o,selection:{$anchor:{pos:s}}}=e.state;if(!(null===(i=n.clipboardData)||void 0===i||null===(r=i.files)||void 0===r?void 0:r.length))return;const a=Array.from(n.clipboardData.files).filter((e=>/image/i.test(e.type)));Le(a)||(n.preventDefault(),a.forEach((async n=>{const i=o.nodes.image.create({src:await xO(n,t)}),r=e.state.tr.insert(s,i);e.dispatch(r)})))}}}})]})},_O=pl.create({name:"figcaption",selectable:!1,draggable:!1,parseHTML:()=>[{tag:"figcaption"}]});const kO=e=>{let{onSubmit:t,shortcuts:n}=e;return xa.create({name:"keyboard-shortcuts",addKeyboardShortcuts(){return{"Mod-Enter":()=>(null==t||t(this.editor.getHTML()),this.editor.commands.blur(),!0),...n}}})};var EO=e=>{let{onSubmit:t,shortcuts:n}=e;return kO({onSubmit:t,shortcuts:n})};const CO=new fi("mention"),MO=pl.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n;return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:CO,command:({editor:e,range:t,props:n})=>{var i,r;const o=e.view.state.selection.$to.nodeAfter;(null===(i=null==o?void 0:o.text)||void 0===i?void 0:i.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),null===(r=window.getSelection())||void 0===r||r.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),i=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(i)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",na({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((({tr:e,state:t})=>{let n=!1;const{selection:i}=t,{empty:r,anchor:o}=i;return!!r&&(t.doc.nodesBetween(o-1,o,((t,i)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",i,i+t.nodeSize),!1})),n)}))}},addProseMirrorPlugins(){return[ev({editor:this.editor,...this.options.suggestion})]}}),DO=e=>{let{wrapperRef:t,index:n}=e;if(!t.current||n>=t.current.children.length)return;const i=8,r=t.current,o=r.children[n],s=o.clientHeight+i;let a=r.scrollTop;o.offsetTop+s>a+r.clientHeight?a=o.offsetTop-r.clientHeight+s:a>o.offsetTop&&(a=o.offsetTop-i),t.current.scrollTop=a};class OO extends t.Component{constructor(e){super(e),iv(this,"selectItem",(e=>{const{items:t,command:n}=this.props,i=t[e];i&&n({label:i.name,id:i.key})})),iv(this,"upHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+e.length-1)%e.length}}))})),iv(this,"downHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+1)%e.length}}))})),iv(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),iv(this,"onKeyDown",(e=>{let{event:t}=e;const n={ArrowUp:this.upHandler,ArrowDown:this.downHandler,Enter:this.enterHandler};return!!Object.prototype.hasOwnProperty.call(n,t.key)&&(n[t.key](),!0)})),this.state={selectedIndex:0},this.mentionRef=t.createRef()}componentDidUpdate(e){const{items:t}=this.props;t!==e.items&&this.setState({selectedIndex:0}),DO({wrapperRef:this.mentionRef,index:this.state.selectedIndex})}render(){const{selectedIndex:e}=this.state,{items:n}=this.props;return Le(n)?t.createElement("div",{className:"neeto-editor-mentions__wrapper"},t.createElement("p",{className:"neeto-editor-mentions__item"},"No Results")):t.createElement("div",{className:"neeto-editor-mentions__wrapper","data-cy":"neeto-editor-mention-list",ref:this.mentionRef},n.map(((n,i)=>{let{key:r,name:o,imageUrl:s}=n;return t.createElement("button",{"data-cy":`neeto-editor-mention-list-${o}`,key:r,type:"button",className:Pu("neeto-editor-mentions__item",{active:i===e}),onClick:()=>this.selectItem(i)},t.createElement(b,{user:{name:o,imageUrl:s}}),t.createElement("p",null,o))})))}}const TO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort(((e,t)=>e.name.localeCompare(t.name)))},SO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=TO(e);return e=>{let{query:n}=e;return t.filter((e=>{let{name:t}=e;return t.toLocaleLowerCase().includes(n.toLocaleLowerCase())}))}},NO={render:()=>{let e,t;return{onStart:n=>{e=new Lu(OO,{props:n,editor:n.editor}),t=wu("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var i;return"Escape"===n.event.key?(t[0].hide(),!0):null===(i=e.ref)||void 0===i?void 0:i.onKeyDown(n)},onExit(){t[0].destroy(),e.destroy()}}}},AO=MO.extend({addCommands(){return{setMention:e=>{let{id:t,label:n}=e;return e=>{let{chain:i}=e;i().focus().insertContent([{type:this.name,attrs:{id:t,label:n}},{type:"text",text:" "}]).run()}}}}});var jO=e=>{let{suggestion:t={},...n}=e;return AO.configure({...n,suggestion:{...NO,...t}})};const LO=xa.create({name:"placeholder",addOptions:()=>({excludeNodeTypes:["variable","codeBlock"],emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!1,includeChildren:!1}),addProseMirrorPlugins(){return[new pi({props:{decorations:e=>{let{doc:t,selection:n}=e;const i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];return i?(t.descendants(((e,t)=>{const n=r>=t&&r<=t+e.nodeSize,i=!e.isLeaf&&!e.childCount,s=this.options.excludeNodeTypes.includes(e.type.name);if((n||!this.options.showOnlyCurrent)&&!s&&i){const n=[this.options.emptyNodeClass];this.editor.isEmpty&&n.push(this.options.emptyEditorClass);const i=Qo.node(t,t+e.nodeSize,{class:n.join(" "),"data-placeholder":this.options.placeholder});o.push(i)}return this.options.includeChildren})),Xo.create(t,o)):null}}})]}});var IO={exports:{}};
40
+ GC.exports=YC;var NM=GC.exports,AM={exports:{}},jM={},LM="function"==typeof Symbol&&Symbol.for,IM=LM?Symbol.for("react.element"):60103,zM=LM?Symbol.for("react.portal"):60106,RM=LM?Symbol.for("react.fragment"):60107,FM=LM?Symbol.for("react.strict_mode"):60108,BM=LM?Symbol.for("react.profiler"):60114,PM=LM?Symbol.for("react.provider"):60109,UM=LM?Symbol.for("react.context"):60110,HM=LM?Symbol.for("react.async_mode"):60111,$M=LM?Symbol.for("react.concurrent_mode"):60111,WM=LM?Symbol.for("react.forward_ref"):60112,qM=LM?Symbol.for("react.suspense"):60113,VM=LM?Symbol.for("react.suspense_list"):60120,KM=LM?Symbol.for("react.memo"):60115,GM=LM?Symbol.for("react.lazy"):60116,YM=LM?Symbol.for("react.block"):60121,QM=LM?Symbol.for("react.fundamental"):60117,ZM=LM?Symbol.for("react.responder"):60118,JM=LM?Symbol.for("react.scope"):60119;function XM(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case IM:switch(e=e.type){case HM:case $M:case RM:case BM:case FM:case qM:return e;default:switch(e=e&&e.$$typeof){case UM:case WM:case GM:case KM:case PM:return e;default:return t}}case zM:return t}}}function eD(e){return XM(e)===$M}function tD(){}function nD(){}jM.AsyncMode=HM,jM.ConcurrentMode=$M,jM.ContextConsumer=UM,jM.ContextProvider=PM,jM.Element=IM,jM.ForwardRef=WM,jM.Fragment=RM,jM.Lazy=GM,jM.Memo=KM,jM.Portal=zM,jM.Profiler=BM,jM.StrictMode=FM,jM.Suspense=qM,jM.isAsyncMode=function(e){return eD(e)||XM(e)===HM},jM.isConcurrentMode=eD,jM.isContextConsumer=function(e){return XM(e)===UM},jM.isContextProvider=function(e){return XM(e)===PM},jM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===IM},jM.isForwardRef=function(e){return XM(e)===WM},jM.isFragment=function(e){return XM(e)===RM},jM.isLazy=function(e){return XM(e)===GM},jM.isMemo=function(e){return XM(e)===KM},jM.isPortal=function(e){return XM(e)===zM},jM.isProfiler=function(e){return XM(e)===BM},jM.isStrictMode=function(e){return XM(e)===FM},jM.isSuspense=function(e){return XM(e)===qM},jM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===RM||e===$M||e===BM||e===FM||e===qM||e===VM||"object"==typeof e&&null!==e&&(e.$$typeof===GM||e.$$typeof===KM||e.$$typeof===PM||e.$$typeof===UM||e.$$typeof===WM||e.$$typeof===QM||e.$$typeof===ZM||e.$$typeof===JM||e.$$typeof===YM)},jM.typeOf=XM,Function.call.bind(Object.prototype.hasOwnProperty),nD.resetWarningCache=tD,AM.exports=function(){function e(e,t,n,i,r,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:nD,resetWarningCache:tD};return n.PropTypes=n,n}();var iD=AM.exports;iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var rD=["size","color","strokeWidth"];function oD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,rD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M20.667 20.125H3.33301M20.667 14.708H3.33301M20.667 9.292H16.334M20.667 3.875H16.334M9.29201 6.042H12C12.299 6.042 12.542 6.285 12.542 6.584V8.75C12.542 9.049 12.299 9.292 12 9.292H9.83301C9.53401 9.292 9.29101 9.049 9.29101 8.75L9.29201 6.042ZM9.29201 6.042C9.29201 3.875 9.69801 3.515 10.917 2.792M3.33301 6.042H6.04101C6.34001 6.042 6.58301 6.285 6.58301 6.584V8.75C6.58301 9.049 6.34001 9.292 6.04101 9.292H3.87501C3.57601 9.292 3.33301 9.049 3.33301 8.75V6.042ZM3.33301 6.042C3.33301 3.875 3.73901 3.515 4.95801 2.792",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}oD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},oD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var sD=["size","color","strokeWidth"];function aD(e){var t=e.size,n=e.color;e.strokeWidth;var i=KC(e,sD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),NM.createElement("path",{d:"M9.28906 19.8281H9.77344V18.5234H9.45312C8.39062 18.5234 7.96875 18.0469 7.96875 16.8516V14.4688C7.96875 13.3438 7.35156 12.7266 6.14062 12.6016V12.3906C7.35156 12.2656 7.96875 11.6484 7.96875 10.5156V8.16406C7.96875 6.96875 8.39062 6.49219 9.45312 6.49219H9.77344V5.1875H9.28906C7.27344 5.1875 6.36719 6.0625 6.36719 7.96094V9.99219C6.36719 11.2031 5.91406 11.625 4.60156 11.625V13.3594C5.91406 13.3672 6.36719 13.7891 6.36719 15V17.0469C6.36719 18.9531 7.28125 19.8281 9.28906 19.8281ZM14.4766 19.8281C16.4922 19.8281 17.3984 18.9531 17.3984 17.0469V15C17.3984 13.7891 17.8594 13.3672 19.1641 13.3594V11.625C17.8594 11.625 17.3984 11.2031 17.3984 9.99219V7.96094C17.3984 6.0625 16.4922 5.1875 14.4766 5.1875H13.9922V6.49219H14.3203C15.3828 6.49219 15.7969 6.96875 15.7969 8.16406V10.5156C15.7969 11.6484 16.4141 12.2656 17.6328 12.3906V12.6016C16.4141 12.7266 15.7969 13.3438 15.7969 14.4688V16.8516C15.7969 18.0469 15.375 18.5234 14.3203 18.5234H13.9922V19.8281H14.4766Z",fill:n}))}aD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},aD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var lD=["size","color","strokeWidth"];function cD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,lD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4338)"},NM.createElement("rect",{x:"3",y:"11.3335",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4338",fill:n},NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4338)",strokeWidth:"3"}),NM.createElement("line",{x1:"9",y1:"9.61914",x2:"9",y2:"17.1191",stroke:n,strokeWidth:i}),NM.createElement("line",{x1:"9",y1:"2.86914",x2:"9",y2:"6.61914",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4338"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}cD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},cD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var uD=["size","color","strokeWidth"];function pD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,uD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M6 6L18 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 6L6 18",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}pD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},pD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var dD=["size","color","strokeWidth"];function hD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,dD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M13.78 4L10.22 20M18 8L22 12L18 16M6 16L2 12L6 8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}hD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},hD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var fD=["size","color","strokeWidth"];function mD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,fD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15.5414 21H8.45857C7.89171 21 7.34573 20.786 6.92981 20.4009C6.51389 20.0157 6.25868 19.4878 6.2152 18.9226L5.25 6.375H18.75L17.7848 18.9226C17.7413 19.4878 17.4861 20.0157 17.0702 20.4009C16.6543 20.786 16.1083 21 15.5414 21V21Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M20 6.375H4",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.1875 3H14.8125C15.1109 3 15.397 3.11853 15.608 3.3295C15.819 3.54048 15.9375 3.82663 15.9375 4.125V6.375H8.0625V4.125C8.0625 3.82663 8.18103 3.54048 8.392 3.3295C8.60298 3.11853 8.88913 3 9.1875 3V3Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M10 17H14",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}mD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},mD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var gD=["size","color","strokeWidth"];function bD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,gD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M6 9L12 15L18 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}bD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},bD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var vD=["size","color","strokeWidth"];function yD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,vD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 21H12C10.22 21 8.47991 20.4722 6.99987 19.4832C5.51983 18.4943 4.36628 17.0887 3.68509 15.4442C3.0039 13.7996 2.82567 11.99 3.17294 10.2442C3.5202 8.49836 4.37737 6.89472 5.63604 5.63604C6.89472 4.37737 8.49836 3.5202 10.2442 3.17294C11.99 2.82567 13.7996 3.0039 15.4442 3.68509C17.0887 4.36628 18.4943 5.51983 19.4832 6.99987C20.4722 8.47991 21 10.22 21 12V13.5C21 14.163 20.7366 14.7989 20.2678 15.2678C19.7989 15.7366 19.163 16 18.5 16C17.837 16 17.2011 15.7366 16.7322 15.2678C16.2634 14.7989 16 14.163 16 13.5V12C16 10.9391 15.5786 9.92172 14.8284 9.17158C14.0783 8.42143 13.0609 8 12 8V8C11.2089 8 10.4355 8.2346 9.77772 8.67413C9.11993 9.11365 8.60724 9.73837 8.30449 10.4693C8.00174 11.2002 7.92252 12.0044 8.07686 12.7804C8.2312 13.5563 8.61217 14.269 9.17158 14.8284C9.73099 15.3878 10.4437 15.7688 11.2196 15.9231C11.9956 16.0775 12.7998 15.9983 13.5307 15.6955C14.2616 15.3928 14.8864 14.8801 15.3259 14.2223C15.7654 13.5645 16 12.7911 16 12",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}yD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},yD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var xD=["size","color","strokeWidth"];function wD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,xD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("rect",{x:"4.75",y:"2.75",width:"14.5",height:"18.5",rx:"3.25",stroke:n,strokeWidth:i}),NM.createElement("rect",{x:"14.75",y:"2.75",width:"4.5",height:"5.5",rx:"1.25",fill:n,stroke:n,strokeWidth:i}),NM.createElement("line",{x1:"7.75",y1:"11.25",x2:"14.25",y2:"11.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),NM.createElement("line",{x1:"7.75",y1:"14.25",x2:"12.25",y2:"14.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}),NM.createElement("line",{x1:"7.75",y1:"17.25",x2:"14.25",y2:"17.25",stroke:n,strokeWidth:i,strokeLinecap:"round"}))}wD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},wD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var _D=["size","color","strokeWidth"];function kD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,_D);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M10.523 20H6V15.477C6 15.0134 6.18428 14.5684 6.51226 14.2407L17.5294 4.00237C18.211 3.31947 19.3171 3.31841 20 4L20.0024 4.00237L21.5 5.527C22.1829 6.20859 22.184 7.31473 21.5024 7.99763L21.5 8L11.759 19.488C11.431 19.8156 10.9865 19.9997 10.523 20Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M2 20H3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9 12L13.5 16.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}kD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},kD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var ED=["size","color","strokeWidth"];function CD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,ED);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M20.9998 9.99999V17C20.9998 19.2 19.1998 21 16.9998 21H6.99979L6.98979 20.999C4.77979 20.989 2.98979 19.199 2.98979 16.989V6.98899C2.97979 4.77899 4.77979 2.97899 6.97979 2.97899H12.9798",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M3 13L4.29 11.7H4.28C5.22 10.75 6.74 10.75 7.68 11.69L11.97 15.98",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M7.00293 21L13.2929 14.7V14.69C14.2329 13.74 15.7529 13.74 16.6929 14.69L20.6229 18.62",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M17.9995 3L15.4995 5.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M20.5 5.5L18 3",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 3V8",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}CD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},CD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var MD=["size","color","strokeWidth"];function DD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,MD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4040)"},NM.createElement("rect",{x:"4.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4040",fill:n},NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.5",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4040)",strokeWidth:"3"}),NM.createElement("line",{x1:"2.25",y1:"2.97607",x2:"2.25",y2:"17.1189",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4040"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}DD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},DD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var OD=["size","color","strokeWidth"];function TD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,OD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17.7166 12.3594L19.4466 10.6294C21.1392 8.9873 21.1801 6.284 19.538 4.59141C17.8959 2.89882 15.1926 2.85789 13.5 4.5C13.4691 4.53001 13.4386 4.56048 13.4086 4.59141L10.0109 7.951C8.34355 9.61717 8.3426 12.3195 10.0088 13.9869L10.0109 13.989L9.9999 14C10.3445 14.3381 10.7447 14.6144 11.1829 14.817",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12.806 9.193C13.2443 9.39593 13.6445 9.67262 13.989 10.011C15.6564 11.6772 15.6573 14.3795 13.9912 16.0469L13.989 16.049L10.8082 19.268C9.11565 20.9101 6.41235 20.8692 4.77024 19.1766C3.16318 17.5201 3.16318 14.8865 4.77024 13.23L6.50024 11.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}TD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},TD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var SD=["size","color","strokeWidth"];function ND(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,SD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 5H20",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12 19H20M12 12H20H12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 14C7.10457 14 8 13.1046 8 12C8 10.8954 7.10457 10 6 10C4.89543 10 4 10.8954 4 12C4 13.1046 4.89543 14 6 14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 21C7.10457 21 8 20.1046 8 19C8 17.8954 7.10457 17 6 17C4.89543 17 4 17.8954 4 19C4 20.1046 4.89543 21 6 21Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ND.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ND.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var AD=["size","color","strokeWidth"];function jD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,AD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M11 4H20M11.15 9H20M5.25 9V4L4 5.25M11 14H20M11.15 19H20M4 15C4 14.7348 4.10536 14.4804 4.29289 14.2929C4.48043 14.1054 4.73478 14 5 14H5.61448C5.87234 14 6.12365 14.0811 6.33284 14.2319C6.54202 14.3827 6.69846 14.5955 6.78 14.8401C6.84709 15.0414 6.86091 15.2566 6.82013 15.4648C6.77935 15.673 6.68534 15.8671 6.54727 16.0282L4 19H7M4 9H6.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}jD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},jD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var LD=["size","color","strokeWidth"];function ID(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,LD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15 4H9C6.23858 4 4 6.23858 4 9V15C4 17.7614 6.23858 20 9 20H15C17.7614 20 20 17.7614 20 15V9C20 6.23858 17.7614 4 15 4Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.58398 10.0019C9.58399 9.82496 9.63095 9.65117 9.72008 9.4983C9.80921 9.34542 9.9373 9.21894 10.0913 9.13175C10.2453 9.04457 10.4196 8.9998 10.5966 9.00203C10.7735 9.00426 10.9467 9.05341 11.0985 9.14444L14.4292 11.1429C14.5773 11.2318 14.6998 11.3574 14.7849 11.5077C14.87 11.658 14.9147 11.8277 14.9147 12.0004C14.9147 12.1731 14.87 12.3428 14.7849 12.4931C14.6998 12.6433 14.5773 12.769 14.4292 12.8579L11.0985 14.8564C10.9467 14.9474 10.7735 14.9966 10.5966 14.9988C10.4196 15.001 10.2453 14.9563 10.0913 14.8691C9.9373 14.7819 9.80921 14.6554 9.72008 14.5025C9.63095 14.3497 9.58399 14.1759 9.58398 13.9989V10.0019Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ID.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ID.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var zD=["size","color","strokeWidth"];function RD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,zD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 13C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11C17.4477 11 17 11.4477 17 12C17 12.5523 17.4477 13 18 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M6 13C6.55228 13 7 12.5523 7 12C7 11.4477 6.55228 11 6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13Z",fill:n,stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}RD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},RD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var FD=["size","color","strokeWidth"];function BD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,FD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 12H7",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}BD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},BD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var PD=["size","color","strokeWidth"];function UD(e){var t=e.size,n=e.color;e.strokeWidth;var i=KC(e,PD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},i),NM.createElement("path",{d:"M10 2.25C8.48079 2.25 7.25 3.48079 7.25 5V6.25H6C4.48079 6.25 3.25 7.48079 3.25 9V19C3.25 20.5192 4.48079 21.75 6 21.75H14C15.5192 21.75 16.75 20.5192 16.75 19V17.75H18C19.5192 17.75 20.75 16.5192 20.75 15V5C20.75 3.48079 19.5192 2.25 18 2.25H10ZM16.75 16.25H18C18.6908 16.25 19.25 15.6908 19.25 15V5C19.25 4.30921 18.6908 3.75 18 3.75H10C9.30921 3.75 8.75 4.30921 8.75 5V6.25H14C15.5192 6.25 16.75 7.48079 16.75 9V16.25ZM8 7.75H6C5.30921 7.75 4.75 8.30921 4.75 9V19C4.75 19.6908 5.30921 20.25 6 20.25H14C14.6908 20.25 15.25 19.6908 15.25 19V17V9C15.25 8.30921 14.6908 7.75 14 7.75H8ZM8 12.25C7.58579 12.25 7.25 12.5858 7.25 13C7.25 13.4142 7.58579 13.75 8 13.75H12C12.4142 13.75 12.75 13.4142 12.75 13C12.75 12.5858 12.4142 12.25 12 12.25H8ZM8 15.25C7.58579 15.25 7.25 15.5858 7.25 16C7.25 16.4142 7.58579 16.75 8 16.75H12C12.4142 16.75 12.75 16.4142 12.75 16C12.75 15.5858 12.4142 15.25 12 15.25H8Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}UD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},UD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var HD=["size","color","strokeWidth"];function $D(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,HD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M13 4.5H20M13 9.5H20M4 14.5H20M4 19.5H20M9 9.5L6.5 4.5L4 9.5M4.5 8.5H6.5H8.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}$D.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},$D.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var WD=["size","color","strokeWidth"];function qD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,WD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M14 13.5H19C19.552 13.5 20 13.948 20 14.5V18.5C20 19.052 19.552 19.5 19 19.5H15C14.448 19.5 14 19.052 14 18.5V13.5ZM14 13.5C14 7.5 15 6.5 18 4.5M4 13.5H9C9.552 13.5 10 13.948 10 14.5V18.5C10 19.052 9.552 19.5 9 19.5H5C4.448 19.5 4 19.052 4 18.5V13.5ZM4 13.5C4 7.5 5 6.5 8 4.5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}qD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},qD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var VD=["size","color","strokeWidth"];function KD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,VD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12.0001 6.36841H17.5264",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M12.0001 6.36841V6.36841C8.51201 6.36841 5.68434 9.19608 5.68434 12.6842C5.68434 16.1723 8.51201 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.1579 4L17.5264 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.1579 8.73683L17.5264 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}KD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},KD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var GD=["size","color","strokeWidth"];function YD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,GD);return NM.createElement("svg",VC({viewBox:"0 0 18 19",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_1047_4017)"},NM.createElement("rect",{x:"1.5",y:"11.333",width:"11.5714",height:"3.85714",rx:"1",fill:n}),NM.createElement("mask",{id:"path-2-inside-1_1047_4017",fill:n},NM.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1"})),NM.createElement("rect",{x:"4.07129",y:"6.19043",width:"9",height:"3.85714",rx:"1",stroke:n,mask:"url(#path-2-inside-1_1047_4017)",strokeWidth:"3"}),NM.createElement("line",{x1:"15.75",y1:"2.97607",x2:"15.75",y2:"17.1189",stroke:n,strokeWidth:i})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_1047_4017"},NM.createElement("rect",{width:"18",height:"18",fill:n,transform:"translate(0 0.619141)"}))))}YD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},YD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var QD=["size","color","strokeWidth"];function ZD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,QD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M12 3C7.037 3 3 7.037 3 12C3 16.963 7.037 21 12 21C16.963 21 21 16.962 21 12C21 7.038 16.962 3 12 3Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M15.5006 15.688C15.5006 15.688 14.1876 17 12.0006 17C9.81263 17 8.50063 15.688 8.50063 15.688M15.3286 9.5C15.1906 9.5 15.0786 9.612 15.0796 9.75C15.0796 9.888 15.1916 10 15.3296 10C15.4676 10 15.5796 9.888 15.5796 9.75C15.5796 9.612 15.4676 9.5 15.3286 9.5ZM8.63963 9.5C8.50163 9.5 8.38963 9.612 8.39063 9.75C8.39063 9.888 8.50263 10 8.64063 10C8.77863 10 8.89063 9.888 8.89063 9.75C8.89063 9.612 8.77863 9.5 8.63963 9.5Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}ZD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},ZD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var JD=["size","color","strokeWidth"];function XD(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,JD);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M7 6H12.875C13.6706 6 14.4337 6.31607 14.9963 6.87868C15.5589 7.44129 15.875 8.20435 15.875 9V9C15.875 9.79565 15.5589 10.5587 14.9963 11.1213C14.4337 11.6839 13.6706 12 12.875 12H7V6ZM7 12H14C14.7956 12 15.5587 12.3161 16.1213 12.8787C16.6839 13.4413 17 14.2044 17 15V15C17 15.7956 16.6839 16.5587 16.1213 17.1213C15.5587 17.6839 14.7956 18 14 18H7V12Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}XD.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},XD.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var eO=["size","color","strokeWidth"];function tO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,eO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M8 18H14C14.7956 18 15.5587 17.6839 16.1213 17.1213C16.6839 16.5587 17 15.7956 17 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M19 12H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M16 6H11C10.2044 6 9.44129 6.31607 8.87868 6.87868C8.31607 7.44129 8 8.20435 8 9",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}tO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},tO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var nO=["size","color","strokeWidth"];function iO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,nO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M5 6V18M13 6V18M5 12H13M18.5 18V13L17.25 14.25M20 18H17",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}iO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},iO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var rO=["size","color","strokeWidth"];function oO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,rO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M17 14C17 13.7348 17.1054 13.4804 17.2929 13.2929C17.4804 13.1054 17.7348 13 18 13H18.6145C18.8723 13 19.1237 13.0811 19.3329 13.2319C19.542 13.3827 19.6985 13.5955 19.78 13.8401C19.8471 14.0414 19.8609 14.2566 19.8202 14.4648C19.7794 14.673 19.6854 14.8671 19.5473 15.0281L17 18H20M5 6V18M13 6V18M5 12H13",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}oO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},oO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var sO=["size","color","strokeWidth"];function aO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,sO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M10 6H17M13.5 6L10.5 18L13.5 6ZM14 18H7H14Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}aO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},aO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var lO=["size","color","strokeWidth"];function cO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,lO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("g",{clipPath:"url(#clip0_861:2152)"},NM.createElement("path",{d:"M15.315 15.014L12 8.01398L8.68401 15.013",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M9.347 13.613H14.65",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M18 21.014H6C4.343 21.014 3 19.671 3 18.014V6.01398C3 4.35698 4.343 3.01398 6 3.01398H18C19.657 3.01398 21 4.35698 21 6.01398V18.014C21 19.671 19.657 21.014 18 21.014Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})),NM.createElement("defs",null,NM.createElement("clipPath",{id:"clip0_861:2152"},NM.createElement("rect",{width:"24",height:"24",fill:n}))))}cO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},cO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var uO=["size","color","strokeWidth"];function pO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,uO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15 5V11.6667C15 12.5507 14.6313 13.3986 13.9749 14.0237C13.3185 14.6488 12.4283 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8 5V11.6667C8 12.5507 8.36875 13.3986 9.02513 14.0237C9.6815 14.6488 10.5717 15 11.5 15V15",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M19 18.5H5",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}pO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},pO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])};var dO=["size","color","strokeWidth"];function hO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,dO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M5.68433 12.6842V12.6842C5.68433 16.1723 8.512 19 12.0001 19C15.4882 19 18.3159 16.1723 18.3159 12.6842C18.3159 9.19608 15.4882 6.36841 12.0001 6.36841H6.4738",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8.8423 4L6.47388 6.36842",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),NM.createElement("path",{d:"M8.8423 8.73683L6.47388 6.36841",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}hO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},hO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);var fO=["size","color","strokeWidth"];function mO(e){var t=e.size,n=e.color,i=e.strokeWidth,r=KC(e,fO);return NM.createElement("svg",VC({viewBox:"0 0 24 24",fill:"none",height:t,width:t},r),NM.createElement("path",{d:"M15.375 13.097L19.17 16.151C19.906 16.744 21 16.22 21 15.275V8.725C21 7.78 19.906 7.256 19.17 7.849L15.375 10.903M13.125 17.75H5.25C4.007 17.75 3 16.743 3 15.5V8.5C3 7.257 4.007 6.25 5.25 6.25H13.125C14.368 6.25 15.375 7.257 15.375 8.5V15.5C15.375 16.743 14.368 17.75 13.125 17.75Z",stroke:n,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}))}mO.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},mO.propTypes={color:iD.string,size:iD.oneOfType([iD.string,iD.number]),strokeWidth:iD.oneOfType([iD.string,iD.number])},iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]),iD.string,iD.oneOfType([iD.string,iD.number]),iD.oneOfType([iD.string,iD.number]);const gO=e=>{const t=["B","KB","MB","GB"];let n=0;for(;e>=1024&&n<t.length;)e/=1024,++n;return`${e.toFixed(1)} ${t[n]}`},bO=e=>{let{align:n,updateAttributes:i,deleteNode:r}=e;const o=[{Icon:DD,alignPos:"left",optionName:"Align left"},{Icon:cD,alignPos:"center",optionName:"Align Center"},{Icon:YD,alignPos:"right",optionName:"Align right"},{Icon:mD,optionName:"Delete"}];return t.createElement(m,{buttonProps:{className:"neeto-editor__image-menu-btn"},buttonSize:"small",buttonStyle:"secondary",className:"neeto-editor__image-menu",icon:RD,position:"top"},o.map((e=>{let{Icon:o,optionName:s,alignPos:a}=e;return t.createElement(g,{icon:o,key:s,style:a===n?"secondary":"text",tooltipProps:{content:Fe(s),position:"top"},onClick:()=>(e=>e?i({align:e}):r())(a)})})))},vO=e=>{var n;let{node:i,editor:r,getPos:o,updateAttributes:a,deleteNode:l}=e;const c=s(null),{alt:u,src:p,figheight:d,figwidth:h,align:f}=i.attrs,{view:m}=r;let g=d,b=h;const v=c.current?null===(n=c.current.querySelector("figcaption>div"))||void 0===n?void 0:n.textContent:u;return t.createElement(ju,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},t.createElement("figure",{ref:c},t.createElement(bO,{align:f,deleteNode:l,updateAttributes:a}),t.createElement(qC,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:b},onResizeStop:(e,t,n)=>{g=n.offsetHeight,b=n.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(o(),void 0,{...i.attrs,figheight:g,figwidth:b,height:g,width:b})),r.commands.focus()}},t.createElement("img",He({},i.attrs,{alt:v,src:p}))),t.createElement(Au,{as:"figcaption",className:Pu({"is-empty":Le(v)})})))},yO=pl.create({name:"image",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("alt")}},figheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("figheight")}},figwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("figwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure",contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:i,src:r,figheight:o,figwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:r,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${i}`},["figure",this.options.HTMLAttributes,["div",a,["img",na(n,{draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>zu(vO),addCommands(){return{setFigure:e=>{let{caption:t,...n}=e;return e=>{let{chain:i}=e;return i().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:i,selection:r}=t,o=i.resolve(r.to).end();return n.setTextSelection(o)})).run()}}}}}),xO=async(e,t)=>{const n=new EC({file:e,url:t}),{blob_url:i}=await n.create();return i};var wO=e=>{let{uploadEndpoint:t}=e;return yO.extend({addProseMirrorPlugins:()=>[new pi({props:{handleDOMEvents:{paste(e,n){var i,r;const{schema:o,selection:{$anchor:{pos:s}}}=e.state;if(!(null===(i=n.clipboardData)||void 0===i||null===(r=i.files)||void 0===r?void 0:r.length))return;const a=Array.from(n.clipboardData.files).filter((e=>/image/i.test(e.type)));Le(a)||(n.preventDefault(),a.forEach((async n=>{const i=o.nodes.image.create({src:await xO(n,t)}),r=e.state.tr.insert(s,i);e.dispatch(r)})))}}}})]})},_O=pl.create({name:"figcaption",selectable:!1,draggable:!1,parseHTML:()=>[{tag:"figcaption"}]});const kO=e=>{let{onSubmit:t,shortcuts:n}=e;return xa.create({name:"keyboard-shortcuts",addKeyboardShortcuts(){return{"Mod-Enter":()=>(null==t||t(this.editor.getHTML()),this.editor.commands.blur(),!0),...n}}})};var EO=e=>{let{onSubmit:t,shortcuts:n}=e;return kO({onSubmit:t,shortcuts:n})};const CO=new fi("mention"),MO=pl.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n;return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:CO,command:({editor:e,range:t,props:n})=>{var i,r;const o=e.view.state.selection.$to.nodeAfter;(null===(i=null==o?void 0:o.text)||void 0===i?void 0:i.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),null===(r=window.getSelection())||void 0===r||r.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),i=e.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(i)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",na({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((({tr:e,state:t})=>{let n=!1;const{selection:i}=t,{empty:r,anchor:o}=i;return!!r&&(t.doc.nodesBetween(o-1,o,((t,i)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",i,i+t.nodeSize),!1})),n)}))}},addProseMirrorPlugins(){return[ev({editor:this.editor,...this.options.suggestion})]}}),DO=e=>{let{wrapperRef:t,index:n}=e;if(!t.current||n>=t.current.children.length)return;const i=8,r=t.current,o=r.children[n],s=o.clientHeight+i;let a=r.scrollTop;o.offsetTop+s>a+r.clientHeight?a=o.offsetTop-r.clientHeight+s:a>o.offsetTop&&(a=o.offsetTop-i),t.current.scrollTop=a};class OO extends t.Component{constructor(e){super(e),iv(this,"selectItem",(e=>{const{items:t,command:n}=this.props,i=t[e];i&&n({label:i.name,id:i.key})})),iv(this,"upHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+e.length-1)%e.length}}))})),iv(this,"downHandler",(()=>{const{items:e}=this.props;this.setState((t=>{const{selectedIndex:n}=t;return{selectedIndex:(n+1)%e.length}}))})),iv(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),iv(this,"onKeyDown",(e=>{let{event:t}=e;const n={ArrowUp:this.upHandler,ArrowDown:this.downHandler,Enter:this.enterHandler};return!!Object.prototype.hasOwnProperty.call(n,t.key)&&(n[t.key](),!0)})),this.state={selectedIndex:0},this.mentionRef=t.createRef()}componentDidUpdate(e){const{items:t}=this.props;t!==e.items&&this.setState({selectedIndex:0}),DO({wrapperRef:this.mentionRef,index:this.state.selectedIndex})}render(){const{selectedIndex:e}=this.state,{items:n}=this.props;return Le(n)?t.createElement("div",{className:"neeto-editor-mentions__wrapper"},t.createElement("p",{className:"neeto-editor-mentions__item"},"No Results")):t.createElement("div",{className:"neeto-editor-mentions__wrapper","data-cy":"neeto-editor-mention-list",ref:this.mentionRef},n.map(((n,i)=>{let{key:r,name:o,imageUrl:s}=n;return t.createElement("button",{"data-cy":`neeto-editor-mention-list-${o}`,key:r,type:"button",className:Pu("neeto-editor-mentions__item",{active:i===e}),onClick:()=>this.selectItem(i)},t.createElement(b,{user:{name:o,imageUrl:s}}),t.createElement("p",null,o))})))}}const TO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort(((e,t)=>e.name.localeCompare(t.name)))},SO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=TO(e);return e=>{let{query:n}=e;return t.filter((e=>{let{name:t}=e;return t.toLocaleLowerCase().includes(n.toLocaleLowerCase())}))}},NO={render:()=>{let e,t;return{onStart:n=>{e=new Lu(OO,{props:n,editor:n.editor}),t=wu("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var i;return"Escape"===n.event.key?(t[0].hide(),!0):null===(i=e.ref)||void 0===i?void 0:i.onKeyDown(n)},onExit(){t[0].destroy(),e.destroy()}}}},AO=MO.extend({addCommands(){return{setMention:e=>{let{id:t,label:n}=e;return e=>{let{chain:i}=e;i().focus().insertContent([{type:this.name,attrs:{id:t,label:n}},{type:"text",text:" "}]).run()}}}}});var jO=e=>{let{suggestion:t={},...n}=e;return AO.configure({...n,suggestion:{...NO,...t}})};const LO=xa.create({name:"placeholder",addOptions:()=>({excludeNodeTypes:["variable","codeBlock"],emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!1,includeChildren:!1}),addProseMirrorPlugins(){return[new pi({props:{decorations:e=>{let{doc:t,selection:n}=e;const i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=n,o=[];return i?(t.descendants(((e,t)=>{const n=r>=t&&r<=t+e.nodeSize,i=!e.isLeaf&&!e.childCount,s=this.options.excludeNodeTypes.includes(e.type.name);if((n||!this.options.showOnlyCurrent)&&!s&&i){const n=[this.options.emptyNodeClass];this.editor.isEmpty&&n.push(this.options.emptyEditorClass);const i=Qo.node(t,t+e.nodeSize,{class:n.join(" "),"data-placeholder":this.options.placeholder});o.push(i)}return this.options.includeChildren})),Xo.create(t,o)):null}}})]}});var IO={exports:{}};
41
41
  /**
42
42
  * @license
43
43
  * Lodash <https://lodash.com/>
@@ -56,5 +56,5 @@ GC.exports=YC;var NM=GC.exports,AM={exports:{}},jM={},LM="function"==typeof Symb
56
56
  * @param {string} phrase that needs interpolation, with placeholders
57
57
  * @param {object} options with values that will be used to replace placeholders
58
58
  * @returns {any[]} interpolated
59
- */function aS(e,t){const n=/\$/g,i="$$$$";let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,i)),r=sS(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var lS=rS("apply");function cS(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var uS=class{constructor(e){Object.defineProperty(this,lS,{value:cS}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(nS(this,lS)[lS],this):nS(this,lS)[lS](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!oS(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return aS(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return aS(n,t)}},pS="Expected a function",dS=0/0,hS="[object Symbol]",fS=/^\s+|\s+$/g,mS=/^[-+]0x[0-9a-f]+$/i,gS=/^0b[01]+$/i,bS=/^0o[0-7]+$/i,vS=parseInt,yS="object"==typeof R&&R&&R.Object===Object&&R,xS="object"==typeof self&&self&&self.Object===Object&&self,wS=yS||xS||Function("return this")(),_S=Object.prototype.toString,kS=Math.max,ES=Math.min,CS=function(){return wS.Date.now()};function MS(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(pS);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=CS();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?ES(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=CS(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=OS(t)||0,DS(n)&&(u=!!n.leading,o=(p="maxWait"in n)?kS(OS(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(CS())},v}function DS(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function OS(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&_S.call(e)==hS}(e))return dS;if(DS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=DS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fS,"");var n=gS.test(e);return n||bS.test(e)?vS(e.slice(2),n?2:8):mS.test(e)?dS:+e}var TS=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(pS);return DS(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),MS(e,t,{leading:i,maxWait:t,trailing:r})};var SS=0;function NS(e){return"__private_"+SS+++"_"+e}var AS=NS("publish");class jS{constructor(){Object.defineProperty(this,AS,{value:LS}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,AS)[AS](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function LS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}jS.VERSION="2.1.1";var IS=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}};const zS=IS,RS={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function FS(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var BS=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${FS(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${FS(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t};var PS=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[i,r]=n.split(".");return i=parseInt(i,10),r=parseInt(r,10),i<15||15===i&&r<15063||(i>18||18===i&&r>=18218)};var US=KT,HS=PT,$S=GT;let WS,qS;function VS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var KS=0;function GS(e){return"__private_"+KS+++"_"+e}const YS=uS,QS=function(){var e={},t=e._fns={};return e.emit=function(e,n,i,r,o,s,a){var l=function(e){var n=t[e]?t[e]:[],i=e.indexOf(":"),r=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var l=o[s];if("*"===l&&(n=n.concat(t[l])),2===r.length&&r[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var i=0,r=t.length;for(;i<r&&t[i];i++)t[i].event=e,t[i].apply(t[i],n)}(e,l,[n,i,r,o,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function i(){n.apply(this,arguments),e.off(t,i)}))},e.off=function(e,t){var n=[];if(e&&t)for(var i=this._fns[e],r=0,o=i?i.length:0;r<o;r++)i[r]!==t&&n.push(i[r]);n.length?this._fns[e]=n:delete this._fns[e]},e},ZS=TS,JS=function(){return new jS},XS=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=zS(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in RS?RS[n]:"application/octet-stream"},eN=IS,tN=BS,nN=PS,iN=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"},rN={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var oN=GS("plugins"),sN=GS("restricter"),aN=GS("storeUnsubscribe"),lN=GS("emitter"),cN=GS("preProcessors"),uN=GS("uploaders"),pN=GS("postProcessors"),dN=GS("informAndEmit"),hN=GS("checkRequiredMetaFieldsOnFile"),fN=GS("checkRequiredMetaFields"),mN=GS("assertNewUploadAllowed"),gN=GS("checkAndCreateFileStateObject"),bN=GS("startIfAutoProceed"),vN=GS("addListeners"),yN=GS("updateOnlineStatus"),xN=GS("createUpload"),wN=GS("getUpload"),_N=GS("removeUpload"),kN=GS("runUpload");WS=Symbol.for("uppy test: getPlugins"),qS=Symbol.for("uppy test: createUpload");class EN{constructor(e){Object.defineProperty(this,kN,{value:IN}),Object.defineProperty(this,_N,{value:LN}),Object.defineProperty(this,wN,{value:jN}),Object.defineProperty(this,xN,{value:AN}),Object.defineProperty(this,vN,{value:NN}),Object.defineProperty(this,bN,{value:SN}),Object.defineProperty(this,gN,{value:TN}),Object.defineProperty(this,mN,{value:ON}),Object.defineProperty(this,fN,{value:DN}),Object.defineProperty(this,hN,{value:MN}),Object.defineProperty(this,dN,{value:CN}),Object.defineProperty(this,oN,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sN,{writable:!0,value:void 0}),Object.defineProperty(this,aN,{writable:!0,value:void 0}),Object.defineProperty(this,lN,{writable:!0,value:QS()}),Object.defineProperty(this,cN,{writable:!0,value:new Set}),Object.defineProperty(this,uN,{writable:!0,value:new Set}),Object.defineProperty(this,pN,{writable:!0,value:new Set}),Object.defineProperty(this,yN,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=rN;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:$S.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:JS(),logger:HS.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=HS.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=ZS(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:nN(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),VS(this,sN)[sN]=new $S.Restricter((()=>this.opts),this.i18n),VS(this,aN)[aN]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),VS(this,vN)[vN]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];VS(this,lN)[lN].emit(e,...n)}on(e,t){return VS(this,lN)[lN].on(e,t),this}once(e,t){return VS(this,lN)[lN].once(e,t),this}off(e,t){return VS(this,lN)[lN].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new YS([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((i=>{const r={...t[i]};r.progress={...r.progress,...e},n[i]=r})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){VS(this,cN)[cN].add(e)}removePreProcessor(e){return VS(this,cN)[cN].delete(e)}addPostProcessor(e){VS(this,pN)[pN].add(e)}removePostProcessor(e){return VS(this,pN)[pN].delete(e)}addUploader(e){VS(this,uN)[uN].add(e)}removeUploader(e){return VS(this,uN)[uN].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...n[e].meta,...t};n[e]={...n[e],meta:i},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),i=Object.values(e),r=i.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=i.filter((e=>!e.progress.uploadStarted)),s=i.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=i.filter((e=>e.progress.uploadStarted)),l=i.filter((e=>e.isPaused)),c=i.filter((e=>e.progress.uploadComplete)),u=i.filter((e=>e.error)),p=r.filter((e=>!e.isPaused)),d=i.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:r,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===i.length&&0===d.length,isAllErrored:!!n&&u.length===i.length,isAllPaused:0!==r.length&&l.length===r.length,isUploadInProgress:r.length>0,isSomeGhost:i.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return VS(this,sN)[sN].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){VS(this,mN)[mN](e);const{files:t}=this.getState();let n=VS(this,gN)[gN](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),VS(this,bN)[bN](),n.id}addFiles(e){VS(this,mN)[mN]();const t={...this.getState().files},n=[],i=[];for(let r=0;r<e.length;r++)try{let i=VS(this,gN)[gN](t,e[r]);t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e[r].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),t[i.id]=i,n.push(i)}catch(e){e.isRestriction||i.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&VS(this,bN)[bN](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:n,currentUploads:i}=this.getState(),r={...n},o={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{n[e]&&(s[e]=n[e],delete r[e])})),Object.keys(o).forEach((e=>{const t=i[e].fileIDs.filter(a);0!==t.length?o[e]={...i[e],fileIDs:t}:delete o[e]}));const l={currentUploads:o,files:r};0===Object.keys(r).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=VS(this,xN)[xN](t,{forceAllowNewUpload:!0});return VS(this,kN)[kN](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=VS(this,xN)[xN]([e],{forceAllowNewUpload:!0});return VS(this,kN)[kN](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,i=n.reduce(((e,t)=>e+t.progress.percentage),0),r=Math.round(i/t*100);return void this.setState({totalProgress:r})}let i=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const r=i/t.length;i+=r*n.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),n.forEach((e=>{o+=r*(e.progress.percentage||0)/100}));let s=0===i?0:Math.round(o/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}.`+" Please verify that the plugin was imported and spelled correctly.")}const n=new e(this,t),i=n.id;if(!i)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const r=this.getPlugin(i);if(r){const e=`Already found a plugin named '${r.id}'. `+`Tried to use: '${i}'.\n`+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),n.type in VS(this,oN)[oN]?VS(this,oN)[oN][n.type].push(n):VS(this,oN)[oN][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(VS(this,oN)[oN])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[WS](e){return VS(this,oN)[oN][e]}iteratePlugins(e){Object.values(VS(this,oN)[oN]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=VS(this,oN)[oN][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),VS(this,aN)[aN](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",VS(this,yN)[yN]),window.removeEventListener("offline",VS(this,yN)[yN]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?VS(this,kN)[kN](e):(VS(this,_N)[_N](e),Promise.reject(new Error("Nonexistent upload")))}[qS](){return VS(this,xN)[xN](...arguments)}addResultData(e,t){if(!VS(this,wN)[wN](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),i={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:i}})}upload(){var e;null!=(e=VS(this,oN)[oN].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>VS(this,sN)[sN].validateMinNumberOfFiles(t))).catch((e=>{throw VS(this,dN)[dN](e),e})).then((()=>{if(!VS(this,fN)[fN](t))throw new $S.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),i=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||i.push(t.id)}));const r=VS(this,xN)[xN](i);return VS(this,kN)[kN](r)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function CN(e,t){const{message:n,details:i=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:i},"error",this.opts.infoTimeout),this.log(`${n} ${i}`.trim(),"error")}function MN(e){const{missingFields:t,error:n}=VS(this,sN)[sN].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function DN(e){let t=!0;for(const n of Object.values(e))VS(this,hN)[hN](n)||(t=!1);return t}function ON(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new $S.RestrictionError(this.i18n("noMoreFilesAllowed"));throw VS(this,dN)[dN](t,e),t}}function TN(e,t){const n=XS(t),i=iN(n,t),r=eN(i).extension,o=Boolean(t.isRemote),s=tN({...t,type:n});if(this.checkIfFileAlreadyExists(s)){const e=new $S.RestrictionError(this.i18n("noDuplicates",{fileName:i}));throw VS(this,dN)[dN](e,t),e}const a=t.meta||{};a.name=i,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:s,name:i,extension:r||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new $S.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));VS(this,sN)[sN].validate(c,t)}catch(e){throw VS(this,dN)[dN](e,c),e}return c}function SN(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function NN(){const e=(e,t,n)=>{let i=e.message||"Unknown error";e.details&&(i+=` ${e.details}`),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:n})};this.on("error",e),this.on("upload-error",((t,n,i)=>{if(e(n,t,i),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),VS(this,dN)[dN](e)}else VS(this,dN)[dN](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:VS(this,pN)[pN].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&VS(this,hN)[hN](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",VS(this,yN)[yN]),window.addEventListener("offline",VS(this,yN)[yN]),setTimeout(VS(this,yN)[yN],3e3))}function AN(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,US.nanoid)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[o]:{fileIDs:e,step:0,result:{}}}}),o}function jN(e){const{currentUploads:t}=this.getState();return t[e]}function LN(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function IN(e){let{currentUploads:t}=this.getState(),n=t[e];const i=n.step||0,r=[...VS(this,cN)[cN],...VS(this,uN)[uN],...VS(this,pN)[pN]];try{for(let o=i;o<r.length&&n;o++){const i=r[o],s={...n,step:o};this.setState({currentUploads:{...t,[e]:s}}),await i(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw VS(this,_N)[_N](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const i=n.fileIDs.map((e=>this.getFile(e))),r=i.filter((e=>!e.error)),o=i.filter((e=>e.error));await this.addResultData(e,{successful:r,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),VS(this,_N)[_N](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}EN.VERSION="2.3.1";var zN,RN,FN,BN,PN,UN,HN,$N=EN,WN={},qN={},VN=[],KN=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function GN(e,t){for(var n in t)e[n]=t[n];return e}function YN(e){var t=e.parentNode;t&&t.removeChild(e)}function QN(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?zN.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return ZN(e,s,i,r,null)}function ZN(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++FN:r};return null==r&&null!=RN.vnode&&RN.vnode(o),o}function JN(e){return e.children}function XN(e,t){this.props=e,this.context=t}function eA(e,t){if(null==t)return e.__?eA(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?eA(e):null}function tA(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return tA(e)}}function nA(e){(!e.__d&&(e.__d=!0)&&PN.push(e)&&!iA.__r++||UN!==RN.debounceRendering)&&((UN=RN.debounceRendering)||setTimeout)(iA)}function iA(){for(var e;iA.__r=PN.length;)e=PN.sort((function(e,t){return e.__v.__b-t.__v.__b})),PN=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=GN({},r)).__v=r.__v+1,pA(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?eA(r):o,r.__h),dA(n,r),r.__e!=o&&tA(r)))}))}function rA(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,b=i&&i.__k||VN,v=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?ZN(null,h,null,null,h):Array.isArray(h)?ZN(JN,{children:h},null,null,null):h.__b>0?ZN(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=b[u])||d&&h.key==d.key&&h.type===d.type)b[u]=void 0;else for(p=0;p<v;p++){if((d=b[p])&&h.key==d.key&&h.type===d.type){b[p]=void 0;break}d=null}pA(e,h,d=d||qN,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=oA(h,l,e):l=sA(e,h,d,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=eA(d))}for(n.__e=m,u=v;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=eA(i,u+1)),mA(b[u],b[u]));if(g)for(u=0;u<g.length;u++)fA(g[u],g[++u],g[++u])}function oA(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?oA(i,t,n):sA(n,i,i,r,i.__e,t));return t}function sA(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function aA(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||KN.test(t)?n:n+"px"}function lA(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||aA(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||aA(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?uA:cA,o):e.removeEventListener(t,o?uA:cA,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function cA(e){this.l[e.type+!1](RN.event?RN.event(e):e)}function uA(e){this.l[e.type+!0](RN.event?RN.event(e):e)}function pA(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,b,v,y,x,w,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=RN.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,b=(c=_.contextType)&&i[c.__c],v=c?b?b.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(g,v):(t.__c=u=new XN(g,v),u.constructor=_,u.render=gA),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=v,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=GN({},u.__s)),GN(u.__s,_.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,v),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}if(u.context=v,u.props=g,u.__v=t,u.__P=e,y=RN.__r,x=0,"prototype"in _&&_.prototype.render)u.state=u.__s,u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context);else do{u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(i=GN(GN({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),w=null!=c&&c.type===JN&&null==c.key?c.props.children:c,rA(e,Array.isArray(w)?w:[w],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=hA(n.__e,t,n,i,r,o,s,l);(c=RN.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),RN.__e(e,t,n)}}function dA(e,t){RN.__c&&RN.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){RN.__e(e,t.__v)}}))}function hA(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&zN.call(e.childNodes),c=(p=n.props||qN).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||lA(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||lA(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,rA(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&eA(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&YN(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==p.value)&&lA(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&lA(e,"checked",f,p.checked,!1))}return e}function fA(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){RN.__e(e,n)}}function mA(e,t,n){var i,r;if(RN.unmount&&RN.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||fA(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){RN.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&mA(i[r],t,"function"!=typeof e.type);n||null==e.__e||YN(e.__e),e.__=e.__e=e.__d=void 0}function gA(e,t,n){return this.constructor(e,n)}function bA(e,t,n){var i,r,o;RN.__&&RN.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],pA(t,e=(!i&&n||t).__k=QN(JN,null,[e]),r||qN,qN,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?zN.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),dA(o,e)}zN=VN.slice,RN={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},FN=0,BN=function(e){return null!=e&&void 0===e.constructor},XN.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=GN({},this.state),"function"==typeof e&&(e=e(GN({},n),this.props)),e&&GN(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),nA(this))},XN.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nA(this))},XN.prototype.render=JN,PN=[],iA.__r=0,HN=0,WN.Component=XN,WN.Fragment=JN,WN.cloneElement=function(e,t,n){var i,r,o,s=GN({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?zN.call(arguments,2):n),ZN(e.type,s,i||e.key,r||e.ref,null)},WN.createContext=function(e,t){var n={__c:t="__cC"+HN++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(nA)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},WN.createElement=QN,WN.createRef=function(){return{current:null}},WN.h=QN,WN.hydrate=function e(t,n){bA(t,n,e)},WN.isValidElement=BN,WN.options=RN,WN.render=bA,WN.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n};var vA=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE};const yA=vA;var xA=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):yA(e)?e:null};var wA=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};const _A=uS;var kA=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 _A([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(){}},EA=WN;function CA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var MA=0;function DA(e){return"__private_"+MA+++"_"+e}const OA=xA,TA=wA,SA=kA;var NA=DA("updateUI");class AA extends SA{constructor(){super(...arguments),Object.defineProperty(this,NA,{writable:!0,value:void 0})}mount(e,t){const n=t.id,i=OA(e);if(i){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),CA(this,NA)[NA]=function(e){let t=null,n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=r,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,EA.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,EA.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||TA(t)||"ltr",this.onMount(),this.el}let r;if("object"==typeof e&&e instanceof AA)r=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(r=e)}))}if(r)return this.uppy.log(`Installing ${n} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. "+"Please check that you're not specifying a React Component instead of a plugin. "+"If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: "+"run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. "+"Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. "+"(see https://github.com/transloadit/uppy/issues/1042)\n\n"+"If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=CA(this,NA))[NA])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var jA=AA;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=PT;e.exports=$N;const i=jA;t.UIPlugin=i;const r=kA;t.BasePlugin=r;const o=$N;t.Uppy=o;const s=jA,a=kA;o.Uppy=o,o.UIPlugin=s,o.BasePlugin=a,o.debugLogger=n.debugLogger}(BT,BT.exports);var LA=F(BT.exports),IA={exports:{}},zA={},RA=Array.from,FA=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];var BA=function(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e};Object.defineProperty(zA,"__esModule",{value:!0}),zA.forInline=function(e,t,n){null===t||WA(e,t,n)},zA.forModal=WA;const PA=RA,UA=FA,HA=BA;function $A(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function WA(e,t,n){const i=HA(n,t),r=PA(i.querySelectorAll(UA)),o=r.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(i)?$A(e,r):e.shiftKey&&0===o?function(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,r):e.shiftKey||o!==r.length-1||$A(e,r)}var qA={exports:{}};var VA=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)};var KA=function(e){return e.bytesTotal-e.bytesUploaded},GA={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},YA={};const QA=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}};var ZA=function(e){const t=QA(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`};Object.defineProperty(YA,"__esModule",{value:!0}),YA.CancelBtn=function(e){const{i18n:t,uppy:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,JA.h)("g",{fill:"none",fillRule:"evenodd"},(0,JA.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,JA.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},YA.DoneBtn=function(e){const{i18n:t,doneButtonHandler:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))},YA.LoadingSpinner=oj,YA.PauseResumeButton=function(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:o}=e,s=n(t?"resume":"pause");return(0,JA.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:r?t?o.resumeAll():o.pauseAll():o.cancelAll()},"data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,JA.h)("g",{fill:"none",fillRule:"evenodd"},(0,JA.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,JA.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},YA.ProgressBarComplete=function(e){const{i18n:t}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,JA.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},YA.ProgressBarError=function(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,JA.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),(0,JA.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${n("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),(0,JA.h)(aj,{i18n:n,complete:i,numUploads:r})))},YA.ProgressBarProcessing=function(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,o=Math.round(100*n),s=`·`;return(0,JA.h)("div",{className:"uppy-StatusBar-content"},(0,JA.h)(oj,null),"determinate"===i?`${o}% ${s} `:"",r)},YA.ProgressBarUploading=function(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:o,isAllComplete:s,isAllPaused:a,newFiles:l,numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,startUpload:f}=e,m=l&&o;if(!o||s)return null;const g=t(a?"paused":"uploading");return(0,JA.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},a?null:(0,JA.h)(oj,null),(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},n?`${g}: ${i}%`:g),a||m||!r?null:n?(0,JA.h)(cj,{numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,i18n:t}):(0,JA.h)(aj,{i18n:t,complete:u,numUploads:c}),m?(0,JA.h)(lj,{i18n:t,newFiles:l,startUpload:f}):null))},YA.ProgressDetails=sj,YA.RetryBtn=function(e){const{i18n:t,uppy:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll(),"data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,JA.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},YA.UploadBtn=function(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:o,isSomeGhost:s,startUpload:a}=e,l=XA("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===nj.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=r(t&&n&&!i?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,JA.h)("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:a,disabled:s,"data-uppy-super-focusable":!0},c)};var JA=WN;const XA=Bu.exports,ej=YT,tj=ZA,nj=GA,ij=`·`,rj=()=>` ${ij} `;function oj(){return(0,JA.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,JA.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function sj(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:o,i18n:s}=e,a=t>1;return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},a&&s("filesUploadedOfTotal",{complete:n,smart_count:t}),(0,JA.h)("span",{className:"uppy-StatusBar-additionalInfo"},a&&rj(),s("dataUploadedOfTotal",{complete:ej(i),total:ej(r)}),rj(),s("xTimeLeft",{time:tj(o)})))}function aj(e){const{i18n:t,complete:n,numUploads:i}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function lj(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=XA("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),(0,JA.h)("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}const cj=TS(sj,500,{leading:!0,trailing:!0});var uj=WN,pj=YA;const dj=Bu.exports,hj=GA,fj=function(e){const t=[];let n,i;for(const{progress:r}of Object.values(e)){const{preprocess:e,postprocess:o}=r;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,n)=>e+n/t.length),0)}},{STATE_ERROR:mj,STATE_WAITING:gj,STATE_PREPROCESSING:bj,STATE_UPLOADING:vj,STATE_POSTPROCESSING:yj,STATE_COMPLETE:xj}=hj;var wj=function(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:o,error:s,hideUploadButton:a,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:u,recoveredState:p,uploadState:d,totalProgress:h,files:f,supportsUploadProgress:m,hideAfterFinish:g,isSomeGhost:b,doneButtonHandler:v,isUploadStarted:y,i18n:x,startUpload:w,uppy:_,isAllComplete:k,showProgressDetails:E,numUploads:C,complete:M,totalSize:D,totalETA:O,totalUploadedSize:T}=e,S=function(){switch(d){case yj:case bj:{const e=fj(f);return"determinate"===e.mode?100*e.value:h}case mj:return null;case vj:return m?h:null;default:return h}}(),N=function(){if(p)return!1;switch(d){case gj:return a||0===t;case xj:return g;default:return!1}}(),A=null!=S?S:100,j=!s&&t&&!i&&!r&&n&&!a,L=!c&&d!==gj&&d!==xj,I=o&&!l&&d===vj,z=s&&!k&&!u,R=v&&d===xj,F=dj("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case yj:case bj:{const{mode:e}=fj(f);return"indeterminate"===e}case vj:return!m;default:return!1}}()}),B=dj("uppy-StatusBar",`is-${d}`,{"has-ghosts":b});return(0,uj.h)("div",{className:B,"aria-hidden":N},(0,uj.h)("div",{className:F,style:{width:`${A}%`},role:"progressbar","aria-label":`${A}%`,"aria-valuetext":`${A}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":S}),(()=>{switch(d){case bj:case yj:return(0,uj.h)(pj.ProgressBarProcessing,{progress:fj(f)});case xj:return(0,uj.h)(pj.ProgressBarComplete,{i18n:x});case mj:return(0,uj.h)(pj.ProgressBarError,{error:s,i18n:x,numUploads:C,complete:M});case vj:return(0,uj.h)(pj.ProgressBarUploading,{i18n:x,supportsUploadProgress:m,totalProgress:h,showProgressDetails:E,isUploadStarted:y,isAllComplete:k,isAllPaused:r,newFiles:t,numUploads:C,complete:M,totalUploadedSize:T,totalSize:D,totalETA:O,startUpload:w});default:return null}})(),(0,uj.h)("div",{className:"uppy-StatusBar-actions"},p||j?(0,uj.h)(pj.UploadBtn,{newFiles:t,isUploadStarted:y,recoveredState:p,i18n:x,isSomeGhost:b,startUpload:w,uploadState:d}):null,z?(0,uj.h)(pj.RetryBtn,{i18n:x,uppy:_}):null,I?(0,uj.h)(pj.PauseResumeButton,{isAllPaused:r,i18n:x,isAllComplete:k,resumableUploads:o,uppy:_}):null,L?(0,uj.h)(pj.CancelBtn,{i18n:x,uppy:_}):null,R?(0,uj.h)(pj.DoneBtn,{i18n:x,doneButtonHandler:v}):null))},_j=BT.exports;const kj=VA,Ej=KA,Cj=wA,Mj=GA,Dj=wj,Oj={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Tj(e){const t=function(e){let t=0;return e.forEach((e=>{t+=kj(e.progress)})),t}(e);if(0===t)return 0;const n=e.reduce(((e,t)=>e+Ej(t.progress)),0);return Math.round(n/t*10)/10}function Sj(e,t,n,i){if(e&&!t)return Mj.STATE_ERROR;if(t)return Mj.STATE_COMPLETE;if(n)return Mj.STATE_WAITING;let r=Mj.STATE_WAITING;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return Mj.STATE_UPLOADING;t.preprocess&&r!==Mj.STATE_UPLOADING&&(r=Mj.STATE_PREPROCESSING),t.postprocess&&r!==Mj.STATE_UPLOADING&&r!==Mj.STATE_PREPROCESSING&&(r=Mj.STATE_POSTPROCESSING)}return r}class Nj extends _j.UIPlugin{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=Oj;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:n,allowNewUpload:i,totalProgress:r,error:o,recoveredState:s}=e,{newFiles:a,startedFiles:l,completeFiles:c,inProgressNotPausedFiles:u,isUploadStarted:p,isAllComplete:d,isAllErrored:h,isAllPaused:f,isUploadInProgress:m,isSomeGhost:g}=this.uppy.getObjectOfFilesPerState(),b=s?Object.values(n):a,v=Tj(u),y=!!t.resumableUploads,x=!1!==t.uploadProgress;let w=0,_=0;return l.forEach((e=>{w+=e.progress.bytesTotal||0,_+=e.progress.bytesUploaded||0})),Dj({error:o,uploadState:Sj(o,d,s,e.files||{}),allowNewUpload:i,totalProgress:r,totalSize:w,totalUploadedSize:_,isAllComplete:!1,isAllPaused:f,isAllErrored:h,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:g,recoveredState:s,complete:c.length,newFiles:b.length,numUploads:l.length,totalETA:v,files:n,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:y,supportsUploadProgress:x,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;Cj(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Nj.VERSION="2.2.2",qA.exports=Nj;var Aj={exports:{}},jj=WN;const Lj=300;class Ij extends jj.Component{constructor(){super(...arguments),this.ref=(0,jj.createRef)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,Lj)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,Lj)}render(){const{children:e}=this.props;return(0,jj.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}var zj=Ij,Rj=WN;function Fj(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=n=>{e.refs[t]=n})}function Bj(e){const t={};for(let o=0;o<e.length;o++)if(null!=e[o]){t[(n=e[o],i=o.toString(36),r=void 0,null!=(r=null==n?void 0:n.key)?r:i)]=e[o]}var n,i,r;return t}function Pj(e,t){e=e||{},t=t||{};const n=n=>t.hasOwnProperty(n)?t[n]:e[n],i={};let r=[];for(const n in e)t.hasOwnProperty(n)?r.length&&(i[n]=r,r=[]):r.push(n);const o={};for(const e in t){if(i.hasOwnProperty(e))for(let t=0;t<i[e].length;t++){const r=i[e][t];o[i[e][t]]=n(r)}o[e]=n(e)}for(let e=0;e<r.length;e++)o[r[e]]=n(r[e]);return o}class Uj extends Rj.Component{constructor(e,t){super(e,t),this.refs={},this.state={children:Bj((0,Rj.toChildArray)((0,Rj.toChildArray)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=Bj((0,Rj.toChildArray)(e.children)||[]),n=this.state.children;let i;for(i in this.setState((e=>({children:Pj(e.children,t)}))),t)if(t.hasOwnProperty(i)){const e=n&&n.hasOwnProperty(i);t[i]&&e&&this.currentlyTransitioningKeys[i]?(this.keysToEnter.push(i),this.keysToAbortLeave.push(i)):!t[i]||e||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(i in n)if(n.hasOwnProperty(i)){const e=t&&t.hasOwnProperty(i);!n[i]||e||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{const t=(i={},r=this.state.children,Object.assign(i,r));delete t[e],this.setState({children:t})}var i,r}render(e,t){let{childFactory:n,transitionLeave:i,transitionName:r,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:a,transitionEnterTimeout:l,transitionAppearTimeout:c,component:u,...p}=e,{children:d}=t;const h=[];for(const e in d)if(d.hasOwnProperty(e)){const t=d[e];if(t){const i=Fj(this,e),r=(0,Rj.cloneElement)(n(t),{ref:i,key:e});h.push(r)}}return(0,Rj.h)(u,p,h)}}Uj.defaultProps={component:"span",childFactory:e=>e};var Hj=WN,$j=BT.exports;const Wj=zj,qj=Uj;class Vj extends $j.UIPlugin{constructor(e,t){super(e,t),this.render=e=>(0,Hj.h)("div",{className:"uppy uppy-Informer"},(0,Hj.h)(qj,null,e.info.map((e=>(0,Hj.h)(Wj,{key:e.message},(0,Hj.h)("p",{role:"alert"},e.message," ",e.details&&(0,Hj.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}Vj.VERSION="2.1.1",Aj.exports=Vj;var Kj={exports:{}};!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n="undefined"!=typeof self?self:R;const i="undefined"!=typeof navigator,r=i&&"undefined"==typeof HTMLImageElement,o=!(void 0===R||"undefined"==typeof process||!process.versions||!process.versions.node),s=n.Buffer,a=!!s,l=e=>void 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(l).length)}function u(e){let t=new Error(e);throw delete t.stack,t}function p(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const d=e=>String.fromCharCode.apply(null,e),h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class f{static from(e,t){return e instanceof this&&e.le===t?e:new f(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof f){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&u("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else u("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=f){return e instanceof DataView||e instanceof f?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||u("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new f(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return n=this.getUint8Array(e,t),h?h.decode(n):a?Buffer.from(n).toString("utf8"):decodeURIComponent(escape(d(n)));var n}getLatin1String(e=0,t=this.byteLength){let n=this.getUint8Array(e,t);return d(n)}getUnicodeString(e=0,t=this.byteLength){const n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return d(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function m(e,t){u(`${e} '${t}' was not loaded, try using full build of exifr.`)}class g extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||m(this.kind,e),t&&(e in t||function(e,t){u(`Unknown ${e} '${t}'.`)}(this.kind,e),t[e].enabled||m(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var b=new g("file parser"),v=new g("segment parser"),y=new g("file reader");let x=n.fetch;const w="Invalid input argument";function _(e,t){return(n=e).startsWith("data:")||n.length>1e4?E(e,t,"base64"):o&&e.includes("://")?k(e,t,"url",C):o?E(e,t,"fs"):i?k(e,t,"url",C):void u(w);var n}async function k(e,t,n,i){return y.has(n)?E(e,t,n):i?async function(e,t){let n=await t(e);return new f(n)}(e,i):void u(`Parser ${n} is not loaded`)}async function E(e,t,n){let i=new(y.get(n))(e,t);return await i.read(),i}const C=e=>x(e).then((e=>e.arrayBuffer())),M=e=>new Promise(((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}));class D 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 O(e,t,n){let i=new D;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function T(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}const S=new Map,N=new Map,A=new Map,j=37500,L=37510,I=33723,z=34675,F=34665,B=34853,P=40965,U=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],H=["jfif","xmp","icc","iptc","ihdr"],$=["tiff",...H],W=["ifd0","ifd1","exif","gps","interop"],q=[...$,...W],V=["makerNote","userComment"],K=["translateKeys","translateValues","reviveValues","multiSegment"],G=[...K,"sanitize","mergeOutput","silentErrors"];class Y{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Q extends Y{get needed(){return this.enabled||this.deps.size>0}constructor(e,n,i,r){if(super(),t(this,"enabled",!1),t(this,"skip",new Set),t(this,"pick",new Set),t(this,"deps",new Set),t(this,"translateKeys",!1),t(this,"translateValues",!1),t(this,"reviveValues",!1),this.key=e,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=W.includes(e),this.canBeFiltered&&(this.dict=S.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:u(`Invalid options argument: ${i}`)}applyInheritables(e){let t,n;for(t of K)n=e[t],void 0!==n&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(i=o.indexOf(n),-1===i&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,ne(this.pick,this.deps)):this.enabled&&this.pick.size>0&&ne(this.pick,this.deps)}}var Z={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},J=new Map;class X extends Y{static useCached(e){let t=J.get(e);return void 0!==t||(t=new this(e),J.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):u(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=i?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=Z[e];for(e of q)this[e]=new Q(e,Z[e],void 0,this)}setupFromTrue(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=!0;for(e of q)this[e]=new Q(e,!0,void 0,this)}setupFromArray(e){let t;for(t of U)this[t]=Z[t];for(t of G)this[t]=Z[t];for(t of V)this[t]=Z[t];for(t of q)this[t]=new Q(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,W)}setupFromObject(e){let t;for(t of(W.ifd0=W.ifd0||W.image,W.ifd1=W.ifd1||W.thumbnail,Object.assign(this,e),U))this[t]=te(e[t],Z[t]);for(t of G)this[t]=te(e[t],Z[t]);for(t of V)this[t]=te(e[t],Z[t]);for(t of $)this[t]=new Q(t,Z[t],e[t],this);for(t of W)this[t]=new Q(t,Z[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,W,q),!0===e.tiff?this.batchEnableWithBool(W,!0):!1===e.tiff?this.batchEnableWithUserValue(W,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,W):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,W)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;let t=ee(e,n);for(let[e,n]of t)ne(this[e].pick,n),this[e].enabled=!0}else if(t&&t.length){let e=ee(t,n);for(let[t,n]of e)ne(this[t].skip,n)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(j):t.skip.add(j),this.userComment?t.deps.add(L):t.skip.add(L),n.enabled||e.skip.add(700),i.enabled||e.skip.add(I),r.enabled||e.skip.add(z)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;i.needed&&(t.deps.add(P),e.deps.add(P)),t.needed&&e.deps.add(F),n.needed&&e.deps.add(B),this.tiff.enabled=W.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of W)this[e].finalizeFilters()}get onlyTiff(){return!H.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of $)this[e].enabled&&!v.has(e)&&m("segment parser",e)}}function ee(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=S.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function te(e,t){return void 0!==e?e:void 0!==t?t:void 0}function ne(e,t){for(let n of t)e.add(n)}t(X,"default",Z);class ie{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=X.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?_(e,t):i&&!r&&e instanceof HTMLImageElement?_(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new f(e):i&&e instanceof Blob?k(e,t,"blob",M):void u(w)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of b)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),u("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),c(n=e)?void 0:n;var n}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let n=await t.parse();t.assignToOutput(e,n)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,n=v.get("tiff",e);var i;if(t.tiff?i={start:0,type:"tiff"}:t.jpeg&&(i=await this.fileParser.getOrFindSegment("tiff")),void 0===i)return;let r=await this.fileParser.ensureSegmentChunk(i),o=this.parsers.tiff=new n(r,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function re(e,t){let n=new ie(t);return await n.read(e),n.parse()}var oe=Object.freeze({__proto__:null,parse:re,Exifr:ie,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:O,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X});class se{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new X({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof f?e:new f(e)}constructor(e,n={},i){t(this,"errors",[]),t(this,"raw",new Map),t(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=A.get(t),i=N.get(t),r=S.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,c={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),c[t]=o;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}function ae(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function le(e){return e>=224&&e<=239}function ce(e,t,n){for(let[i,r]of v)if(r.canHandle(e,t,n))return i}t(se,"headerLength",4),t(se,"type",void 0),t(se,"multiSegment",!1),t(se,"canHandle",(()=>!1));class ue extends class{constructor(e,n,i){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){u(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):u("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=n,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(v.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(...e){super(...e),t(this,"appSegments",[]),t(this,"jpegSegments",[]),t(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(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:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some((e=>{let t=v.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment})),i&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:c,wanted:u,remaining:p,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(n=l.getUint8(e+1),le(n)){if(i=l.getUint16(e+2),r=ce(l,e,i),r&&u.has(r)&&(o=v.get(r),s=o.findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!c&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(r)):p.delete(r),0===p.size)))break;d.recordUnknownSegments&&(s=se.findPosition(l,e),s.marker=n,this.unknownSegments.push(s)),e+=i+1}else if(ae(n)){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)n=e[s],i=n[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map((([e,t])=>{let n=v.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}t(ue,"type","jpeg"),b.set("jpeg",ue);const pe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class de extends se{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t];i=new Set(i);let o=i.size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=pe[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&u(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&u(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return""===(a=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(a=i.getString(e,o)).trim())?void 0:a;var a;if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o),n=s;for(let i=0;i<o;i++)t[i]=this.parseTagValue(r,e),e+=n;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:u(`Invalid tiff type ${e}`)}}}class he extends de{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&u("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&u(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,p(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(F),this.interopOffset=t.get(P),this.gpsOffset=t.get(B),this.xmp=t.get(700),this.iptc=t.get(I),this.icc=t.get(z),this.options.sanitize&&(t.delete(F),t.delete(P),t.delete(B),t.delete(700),t.delete(I),t.delete(z)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,p(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(P)),this.makerNote=e.get(j),this.userComment=e.get(L),this.options.sanitize&&(e.delete(P),e.delete(j),e.delete(L)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",fe(...e.get(2),e.get(1))),e.set("longitude",fe(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of W)if(e=this[t],!c(e))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function fe(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}t(he,"type","tiff"),t(he,"headerLength",10),v.set("tiff",he);var me=Object.freeze({__proto__:null,default:oe,Exifr:ie,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:O,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X,parse:re});const ge={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},be=Object.assign({},ge,{firstChunkSize:4e4,gps:[1,2,3,4]}),ve=Object.assign({},ge,{tiff:!1,ifd1:!0,mergeOutput:!1}),ye=Object.assign({},ge,{firstChunkSize:4e4,ifd0:[274]});async function xe(e){let t=new ie(ye);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const we=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){let t=navigator.userAgent;if(t.includes("iPad")||t.includes("iPhone")){let n=t.match(/OS (\d+)_(\d+)/);if(n){let[,t,i]=n,r=Number(t)+.1*Number(i);e.rotateCanvas=r<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,n]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<15}if(t.includes("Chrome/")){let[,n]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<81}else if(t.includes("Firefox/")){let[,n]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<77}}class _e extends f{constructor(...e){super(...e),t(this,"ranges",new ke),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t;t=a?s.allocUnsafe(e):new Uint8Array(e);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class ke{constructor(){t(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter((t=>Ee(e,t.offset,i)||Ee(e,t.end,i)));if(r.length>0){e=Math.min(e,...r.map((e=>e.offset))),i=Math.max(i,...r.map((e=>e.end))),t=i-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((e=>!r.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some((t=>t.offset<=e&&n<=t.end))}}function Ee(e,t,n){return e<=t&&t<=n}class Ce extends _e{constructor(e,n){super(0),t(this,"chunksRead",0),this.input=e,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}y.set("blob",class extends Ce{async readWhole(){this.chunked=!1;let e=await M(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await M(i);return this.set(r,e,!0)}}),e.Exifr=ie,e.Options=X,e.allFormatters=G,e.chunkedProps=U,e.createDictionary=O,e.default=me,e.extendDictionary=T,e.fetchUrlAsArrayBuffer=C,e.fileParsers=b,e.fileReaders=y,e.gps=async function(e){let t=new ie(be);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}},e.gpsOnlyOptions=be,e.inheritables=K,e.orientation=xe,e.orientationOnlyOptions=ye,e.otherSegments=H,e.parse=re,e.readBlobAsArrayBuffer=M,e.rotation=async function(t){let n=await xe(t);return Object.assign({canvas:e.rotateCanvas,css:e.rotateCss},we[n])},e.rotations=we,e.segmentParsers=v,e.segments=$,e.segmentsAndBlocks=q,e.tagKeys=S,e.tagRevivers=A,e.tagValues=N,e.thumbnail=async function(e){let t=new ie(ve);await t.read(e);let n=await t.extractThumbnail();return n&&a?s.from(n):n},e.thumbnailOnlyOptions=ve,e.thumbnailUrl=async function(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}},e.tiffBlocks=W,e.tiffExtractables=V,Object.defineProperty(e,"__esModule",{value:!0})}(Kj.exports);const Gj=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;var Yj=function(e,t,n){var i,r;const o=Gj.exec(e),s=null!=(i=null!=(r=t.mimeType)?r:null==o?void 0:o[1])?i:"plain/text";let a;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);a=[t]}else a=[decodeURIComponent(o[3])];return n?new File(a,t.name||"",{type:s}):new Blob(a,{type:s})};var Qj=BT.exports,Zj=Kj.exports;const Jj=Yj,Xj=function(e){return e.startsWith("blob:")},eL=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)},tL={strings:{generatingThumbnails:"Generating thumbnails..."}};class nL extends Qj.UIPlugin{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&eL(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&Xj(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!Xj(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=tL;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,n){const i=URL.createObjectURL(e.data),r=new Promise(((e,t)=>{const n=new Image;n.src=i,n.addEventListener("load",(()=>{URL.revokeObjectURL(i),e(n)})),n.addEventListener("error",(e=>{URL.revokeObjectURL(i),t(e.error||new Error("Could not create thumbnail"))}))})),o=(0,Zj.rotation)(e.data).catch((()=>1));return Promise.all([r,o]).then((e=>{let[i,r]=e;const o=this.getProportionalDimensions(i,t,n,r.deg),s=this.rotateImage(i,r),a=this.resizeImage(s,o.width,o.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,n,i){let r=e.width/e.height;return 90!==i&&270!==i||(r=e.height/e.width),null!=t?{width:t,height:Math.round(t/r)}:null!=n?{width:Math.round(n*r),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/r)}}resizeImage(e,t,n){let i=this.protect(e),r=Math.ceil(Math.log2(i.width/t));r<1&&(r=1);let o=t*2**(r-1),s=n*2**(r-1);const a=2;for(;r--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),i=e,o=Math.round(o/a),s=Math.round(s/a)}return i}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return eL(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}nL.VERSION="2.2.2";var iL=nL;nL.prototype.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((i=>{e.toBlob(i,t,n)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>Jj(e.toDataURL(t,n),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))},nL.prototype.protect=function(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),o=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,o=Math.round(r/t)),o>i&&(o=i,r=Math.round(t*o)),e.width>r){const t=document.createElement("canvas");return t.width=r,t.height=o,t.getContext("2d").drawImage(e,0,0,r,o),t}return e},nL.prototype.rotateImage=function(e,t){let n=e.width,i=e.height;90!==t.deg&&270!==t.deg||(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const o=r.getContext("2d");return o.translate(n/2,i/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r};const rL=vA;var oL=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&rL(e)?[e]:null};var sL=function e(t,n,i,r){let{onSuccess:o}=r;t.readEntries((r=>{const s=[...n,...r];r.length?queueMicrotask((()=>{e(t,s,i,{onSuccess:o})})):o(s)}),(e=>{i(e),o(n)}))};const aL=sL;function lL(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),i=await new Promise((e=>{aL(n,[],t,{onSuccess:n=>e(n.map((e=>lL(e,t))))})}));yield*i}}}async function*cL(e,t){if("file"===e.kind){const n=await e.getFile();null!==n&&(n.relativePath=t?`${t}/${e.name}`:null,yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*cL(n,`${t}/${e.name}`)}const uL=RA;const pL=async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{var n;return{lastResortFile:e.getAsFile(),entry:null!=(n=await(null==e.getAsFileSystemHandle?void 0:e.getAsFileSystemHandle()))?n:lL(e.webkitGetAsEntry(),t)}})));for(const{lastResortFile:e,entry:i}of n)if(null!=i)try{yield*cL(i,"")}catch(n){e?yield e:t(n)}},dL=function(e){const t=uL(e.files);return Promise.resolve(t)};var hL=async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const i of pL(e,n))t.push(i);return t}catch{return dL(e)}},fL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mL(e,t){return e===t||!(!fL(e)||!fL(t))}function gL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!mL(e[n],t[n]))return!1;return!0}var bL=Object.freeze({__proto__:null,default:function(e,t){var n;void 0===t&&(t=gL);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}}}),vL=B(bL),yL="Expected a function",xL=0/0,wL="[object Symbol]",_L=/^\s+|\s+$/g,kL=/^[-+]0x[0-9a-f]+$/i,EL=/^0b[01]+$/i,CL=/^0o[0-7]+$/i,ML=parseInt,DL="object"==typeof R&&R&&R.Object===Object&&R,OL="object"==typeof self&&self&&self.Object===Object&&self,TL=DL||OL||Function("return this")(),SL=Object.prototype.toString,NL=Math.max,AL=Math.min,jL=function(){return TL.Date.now()};function LL(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function IL(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&SL.call(e)==wL}(e))return xL;if(LL(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=LL(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_L,"");var n=EL.test(e);return n||CL.test(e)?ML(e.slice(2),n?2:8):kL.test(e)?xL:+e}var zL=function(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(yL);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=jL();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?AL(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=jL(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=IL(t)||0,LL(n)&&(u=!!n.leading,o=(p="maxWait"in n)?NL(IL(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(jL())},v};const RL=zL,FL=FA,BL=BA;var PL=function(){let e=!1;return RL(((t,n)=>{const i=BL(t,n),r=i.contains(document.activeElement);if(r&&e)return;const o=i.querySelector("[data-uppy-super-focusable]");if(!r||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=i.querySelector(FL);null==t||t.focus({preventScroll:!0}),e=!1}}),260)};var UL=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)},HL=WN;var $L=function(e){const t={color:"#838999",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,HL.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,HL.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return"text"===n?{color:"#5a5e69",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}:"image"===n?{color:"#686de0",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,HL.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,HL.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,HL.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===n?{color:"#068dbb",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}:"video"===n?{color:"#19af67",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}:"application"===n&&"pdf"===i?{color:"#e25149",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}:"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)?{color:"#00C469",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t},WL=WN;const qL=$L;var VL=function(e){const{file:t}=e;if(t.preview)return(0,WL.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=qL(t.type);return(0,WL.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,WL.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),(0,WL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,WL.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))},KL=WN;var GL=function(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>((e,t)=>{const n=t.filter((t=>t.id===e));return n[0].name})(e,r))).join(", ");return(0,KL.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,KL.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))},YL=WN;const QL=VL,ZL=GL,JL=$L;var XL=WN;function eI(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 tI(e){return(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":eI(e),title:eI(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 nI(e){let{children:t}=e;return(0,XL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function iI(e){let{progress:t}=e;const n=2*Math.PI*15;return(0,XL.h)("g",null,(0,XL.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,XL.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}const rI="...";var oI=WN;const sI=YT,aI=function(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=rI.length+1)return`${e.slice(0,t-1)}…`;const n=t-rI.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+rI+e.slice(-r)},lI=GL,cI=e=>{let{file:t,onClick:n}=e;return t.error?(0,oI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};var uI=WN;const pI=function(e,t){return t||(t="Copy the URL below"),new Promise((n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch(e){return document.body.removeChild(i),r()}}))};function dI(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:o,onClick:s}=e;return!n&&i&&i.length>0||!n&&r(t)?(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,uI.h)("g",{fillRule:"evenodd"},(0,uI.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,uI.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,uI.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function hI(e){let{i18n:t,onClick:n,file:i}=e;return(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,uI.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,uI.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function fI(e){const{i18n:t}=e;return(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{pI(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,uI.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}var mI=function(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:a,i18n:l,toggleFileCard:c,openFileEditor:u}=e;return(0,uI.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,uI.h)(dI,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,n.id):u(n)}}),s&&n.uploadURL?(0,uI.h)(fI,{file:n,uppy:t,i18n:l}):null,a?(0,uI.h)(hI,{i18n:l,file:n,uppy:t,onClick:()=>e.uppy.removeFile(n.id,"removed-by-user")}):null)},gI=WN;const bI=Bu.exports,vI=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0},yI=function(e){return(0,YL.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:JL(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&(0,YL.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},(0,YL.h)("span",{hidden:!0},e.file.meta.name)),(0,YL.h)(QL,{file:e.file}),(0,YL.h)(ZL,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},xI=function(e){return e.file.progress.uploadStarted?e.isUploaded?(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,XL.h)(nI,null,(0,XL.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,XL.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,XL.h)(tI,e,(0,XL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,XL.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,XL.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,XL.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,XL.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,XL.h)(tI,e,(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage}),e.file.isPaused?(0,XL.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,XL.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,XL.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,XL.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage})))):(0,XL.h)(tI,e,(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage}),(0,XL.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null},wI=function(e){const{file:t}=e;return(0,oI.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,oI.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:n}=e.file.meta;return(0,oI.h)("div",{className:"uppy-Dashboard-Item-name",title:n},aI(n,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,oI.h)(cI,{file:e.file,onClick:()=>alert(e.file.error)})),(0,oI.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:n}=e.file.remote,i=`·`;return t?(0,oI.h)("div",{className:"uppy-Dashboard-Item-author"},(0,oI.h)("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},aI(t.name,13)),n?(0,oI.h)(oI.Fragment,null,` ${i} `,n,` ${i} `):null):null})(e),(e=>e.file.size&&(0,oI.h)("div",{className:"uppy-Dashboard-Item-statusSize"},sI(e.file.size)))(e),(e=>e.file.isGhost&&(0,oI.h)("span",null," • ",(0,oI.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,oI.h)(lI,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},_I=mI;class kI extends gI.Component{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!vI(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,i=e.progress.uploadStarted||t,r=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let a=(this.props.individualCancellation||!r)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(a=!0);const l=bI({"uppy-Dashboard-Item":!0,"is-inprogress":r&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,gI.h)("div",{className:l,id:`uppy_${e.id}`,role:this.props.role},(0,gI.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,gI.h)(yI,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,gI.h)(xI,{uppy:this.props.uppy,file:e,error:o,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,gI.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,gI.h)(wI,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,gI.h)(_I,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:a,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:i,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}var EI=kI,CI=WN;function MI(){return MI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},MI.apply(this,arguments)}const DI={position:"relative",width:"100%",minHeight:"100%"},OI={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class TI extends CI.Component{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:n,renderRow:i,overscanCount:r=10,...o}=e;const{offset:s,height:a}=this.state;let l=Math.floor(s/n),c=Math.floor(a/n);r&&(l=Math.max(0,l-l%r),c+=r);const u=l+c+4,p=t.slice(l,u),d={...DI,height:t.length*n},h={...OI,top:l*n};return(0,CI.h)("div",MI({onScroll:this.handleScroll},o),(0,CI.h)("div",{role:"presentation",style:d},(0,CI.h)("div",{role:"presentation",style:h},p.map(i))))}}var SI=WN;function NI(){return NI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},NI.apply(this,arguments)}const AI=Bu.exports,jI=EI,LI=TI;var II=WN;let zI;zI=Symbol.for("uppy test: disable unused locale key warning");class RI extends II.Component{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,II.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>(0,II.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,II.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,II.h)("g",{fill:"none",fillRule:"evenodd"},(0,II.h)("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),(0,II.h)("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),(0,II.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const n=this.props.acquirers.length;return(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===n},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),n=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,r=i.charAt(0).toUpperCase()+i.slice(1);return(0,II.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${r}`,{browseFiles:t,browseFolders:n,browse:t}):this.props.i18nArray(`dropPaste${r}`,{browseFiles:t,browseFolders:n,browse:t}))},this.renderAcquirer=e=>(0,II.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),(0,II.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const n=[...e],i=n.splice(e.length-2,e.length);return(0,II.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),n.map((e=>this.renderAcquirer(e))),(0,II.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))}}[zI](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,II.h)("span",null,(0,II.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,II.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,II.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,II.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return(0,II.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),(0,II.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,II.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}var FI=RI,BI=WN;const PI=Bu.exports,UI=FI;var HI=e=>(0,BI.h)("div",{className:PI("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},(0,BI.h)("div",{className:"uppy-DashboardContent-bar"},(0,BI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,BI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,BI.h)(UI,e));var $I=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()},WI=WN;const qI=Bu.exports,VI=$I;var KI=function(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:o,uppy:s}=e;return(0,WI.h)("div",{className:qI("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:VI,onDragLeave:VI,onDrop:VI,onPaste:VI},(0,WI.h)("div",{className:"uppy-DashboardContent-bar"},(0,WI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),(0,WI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),(0,WI.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))},GI=WN;const YI=Bu.exports;var QI=function(e){const t=e.files[e.fileCardFor];return(0,GI.h)("div",{className:YI("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,GI.h)("div",{className:"uppy-DashboardContent-bar"},(0,GI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,GI.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,GI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),(0,GI.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,GI.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},ZI=WN;const JI="error",XI="waiting",ez="preprocessing",tz="uploading",nz="postprocessing",iz="complete",rz="paused";function oz(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:a,processingFiles:l}=e;const c=function(e,t,n,i){if(void 0===i&&(i={}),e)return JI;if(t)return iz;if(n)return rz;let r=XI;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return tz;t.preprocess&&r!==tz&&(r=ez),t.postprocess&&r!==tz&&r!==ez&&(r=nz)}return r}(r,i,o,t);switch(c){case"uploading":return n("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:a.length});case"complete":return n("uploadComplete")}}var sz=function(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:a}=e;return a&&r&&(a=e.totalFileCount<e.maxNumberOfFiles),(0,ZI.h)("div",{className:"uppy-DashboardContent-bar"},n||i?(0,ZI.h)("div",null):(0,ZI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,ZI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,ZI.h)(oz,e)),a?(0,ZI.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,ZI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,ZI.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,ZI.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,ZI.h)("div",null))},az=WN,lz=KT;const cz=Bu.exports,uz=$L,pz=$I,dz=VL;class hz extends az.Component{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((n=>{let{formState:i}=n;return{formState:{...i,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{const e=this.props.files[this.props.fileCardFor];this.props.uppy.emit("file-editor:cancel",e),this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const n=`uppy-Dashboard-FileCard-input-${e.id}`,i=this.props.requiredMetaFields.includes(e.id);return(0,az.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,az.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:n},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:i,form:this.form.id},az.h):(0,az.h)("input",{className:t.text,id:n,form:this.form.id,type:e.type||"text",required:i,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],n=this.getMetaFields()||[],i={};n.forEach((e=>{i[e.id]=t.meta[e.id]||""})),this.state={formState:i},this.form.id=(0,lz.nanoid)()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return(0,az.h)("div",{className:cz("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:pz,onDragLeave:pz,onDrop:pz,onPaste:pz},(0,az.h)("div",{className:"uppy-DashboardContent-bar"},(0,az.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:(0,az.h)("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),(0,az.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,az.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:uz(e.type).color}},(0,az.h)(dz,{file:e}),t&&(0,az.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,az.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),(0,az.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}var fz=hz,mz=WN;const gz=Bu.exports,bz="uppy-transition-slideDownUp",vz=250;class yz extends mz.Component{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,n=(0,mz.toChildArray)(e.children)[0];if(t===n)return null;const i={cachedChildren:n};n&&!t&&(i.className=`${bz}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${bz}-enter ${bz}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),vz)}))),t&&!n&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=`${bz}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${bz}-leave ${bz}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),vz)}))),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,mz.cloneElement)(e,{className:gz(t,e.props.className)}):null}}var xz=WN;function wz(){return wz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wz.apply(this,arguments)}const _z=Bu.exports,kz=UL,Ez=e=>{const t=0===e.totalFileCount,n=AI("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),i=1===e.itemsPerRow?71:200,r={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},o=Object.keys(e.files);e.recoveredState&&o.sort(((t,n)=>e.files[n].isGhost-e.files[t].isGhost));const s=function(e,t){const n=[];let i=[];return e.forEach((e=>{i.length<t?i.push(e):(n.push(i),i=[e])})),i.length&&n.push(i),n}(o,e.itemsPerRow);return(0,SI.h)(LI,{class:n,role:"list",data:s,renderRow:t=>(0,SI.h)("div",{role:"presentation",key:t[0]},t.map((t=>(0,SI.h)(jI,NI({key:t,uppy:e.uppy},r,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:i})},Cz=FI,Mz=HI,Dz=KI,Oz=QI,Tz=sz,Sz=fz,Nz=yz,Az=900,jz=700,Lz=576,Iz=400;var zz=WN,Rz=BT.exports,Fz=KT,Bz=zA;function Pz(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uz=0;function Hz(e){return"__private_"+Uz+++"_"+e}const $z=qA.exports,Wz=Aj.exports,qz=iL,Vz=oL,Kz=RA,Gz=hL,Yz=vL,Qz=FA,Zz=PL,Jz=function(e){const t=0===e.totalFileCount,n=e.containerWidth>Lz,i=_z({"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>Lz,"uppy-size--lg":e.containerWidth>jz,"uppy-size--xl":e.containerWidth>Az,"uppy-size--height-md":e.containerHeight>Iz,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let r=1;e.containerWidth>Az?r=5:e.containerWidth>jz?r=4:e.containerWidth>Lz&&(r=3);const o=e.showSelectedFiles&&!t,s=e.recoveredState?Object.keys(e.recoveredState.files).length:null,a=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null;return(0,xz.h)("div",{className:i,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&kz(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,xz.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,xz.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,xz.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,xz.h)("span",{"aria-hidden":"true"},"×")),(0,xz.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,xz.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),o&&(0,xz.h)(Tz,e),s&&(0,xz.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,xz.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,xz.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,xz.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,xz.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,xz.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,xz.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,xz.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},a>0?e.i18n("recoveredXFiles",{smart_count:a}):e.i18n("recoveredAllFiles"))),o?(0,xz.h)(Ez,wz({},e,{itemsPerRow:r})):(0,xz.h)(Cz,wz({},e,{isSizeMD:n})),(0,xz.h)(Nz,null,e.showAddFilesPanel?(0,xz.h)(Mz,wz({key:"AddFiles"},e,{isSizeMD:n})):null),(0,xz.h)(Nz,null,e.fileCardFor?(0,xz.h)(Sz,wz({key:"FileCard"},e)):null),(0,xz.h)(Nz,null,e.activePickerPanel?(0,xz.h)(Dz,wz({key:"Picker"},e)):null),(0,xz.h)(Nz,null,e.showFileEditor?(0,xz.h)(Oz,wz({key:"Editor"},e)):null),(0,xz.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))))},Xz={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}."}}},eR=Yz.default||Yz,tR=9,nR=27;function iR(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}function rR(){return(0,zz.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,zz.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var oR=Hz("openFileEditorWhenFilesAdded"),sR=Hz("attachRenderFunctionToTarget"),aR=Hz("isTargetSupported"),lR=Hz("getAcquirers"),cR=Hz("getProgressIndicators"),uR=Hz("getEditors");class pR extends Rz.UIPlugin{constructor(e,t){var n;super(e,t),n=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,n=e.title||t,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"editor"!==i){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const r={id:t,name:n,type:i},o=this.getPluginState().targets.slice();return o.push(r),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),n=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:n,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return Pz(this,uR)[uR](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),n=Pz(this,uR)[uR](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();Pz(this,uR)[uR](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=iR();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:i,isClosing:r}=n.getPluginState();if(i||r)return;const{promise:o,resolve:s}=iR();if(n.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),n.opts.animateOpenClose){n.setPluginState({isClosing:!0});const e=()=>{n.setPluginState({isHidden:!0,isClosing:!1}),n.superFocus.cancel(),n.savedActiveElement.focus(),n.el.removeEventListener("animationend",e,!1),s()};n.el.addEventListener("animationend",e,!1)}else n.setPluginState({isHidden:!0}),n.superFocus.cancel(),n.savedActiveElement.focus(),s();var a;(document.removeEventListener("keydown",n.handleKeyDownInModal),t)&&(n.opts.browserBackButtonClose&&null!=(a=history.state)&&a[n.modalName]&&history.back());return n.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log(`[Dashboard] Dark mode is ${t?"on":"off"}`),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const n=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",n):this.uppy.emit("dashboard:file-edit-complete",n),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:n,height:i}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${n} / ${i}`,"debug"),this.setPluginState({containerWidth:n,containerHeight:i,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=Kz(this.el.querySelectorAll(Qz));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{e.keyCode===nR&&this.requestCloseModal(e),e.keyCode===tR&&Bz.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=Kz(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=Kz(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,n;e.preventDefault(),e.stopPropagation();const i=(()=>{let t=!0;return this.uppy.iteratePlugins((n=>{null!=n.canHandleRootDrop&&n.canHandleRootDrop(e)&&(t=!0)})),t})(),r=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!i&&!r||this.opts.disabled||this.opts.disableLocalFiles&&(r||!i)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)},this.handleDragLeave=e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let i=!1;const r=await Gz(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),i||(this.uppy.info(e.message,"error"),i=!0)}});r.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(r)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{e.keyCode===tR&&Bz.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,oR,{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=Vz(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",Pz(this,oR)[oR])},this.removeEvents=()=>{const e=Vz(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",Pz(this,oR)[oR])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=0===this.uppy.getState().info.length,i=!this.opts.inline;n&&(i||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,sR,{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,aR,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,lR,{writable:!0,value:eR((e=>e.filter((e=>"acquirer"===e.type&&Pz(this,aR)[aR](e))).map(Pz(this,sR)[sR])))}),Object.defineProperty(this,cR,{writable:!0,value:eR((e=>e.filter((e=>"progressindicator"===e.type)).map(Pz(this,sR)[sR])))}),Object.defineProperty(this,uR,{writable:!0,value:eR((e=>e.filter((e=>"editor"===e.type)).map(Pz(this,sR)[sR])))}),this.render=e=>{const t=this.getPluginState(),{files:n,capabilities:i,allowNewUpload:r}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m}=this.uppy.getObjectOfFilesPerState(),g=Pz(this,lR)[lR](t.targets),b=Pz(this,cR)[cR](t.targets),v=Pz(this,uR)[uR](t.targets);let y;return y="auto"===this.opts.theme?i.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),Jz({state:e,isHidden:t.isHidden,files:n,newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m,totalFileCount:Object.keys(n).length,totalProgress:e.totalProgress,allowNewUpload:r,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:b,editors:v,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:n,allowMultipleUploadBatches:i}=this.uppy.opts;(n||i)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:r}=this.opts;r&&this.mount(r,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use($z,{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(Wz,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(qz,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log(`[Dashboard] Dark mode is ${o?"on":"off"}`),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${(0,Fz.nanoid)()}`,this.defaultLocale=Xz;const i={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:rR,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...i,...t},this.i18nInit(),this.superFocus=Zz(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}pR.VERSION="2.4.3",IA.exports=pR;const dR=nx.exports,hR=BT.exports.Uppy,fR=dR.instanceOf(hR).isRequired,mR=dR.arrayOf(dR.string),gR=dR.shape({strings:dR.object,pluralize:dR.func}),bR=dR.shape({id:dR.string.isRequired,name:dR.string.isRequired,placeholder:dR.string}),vR=dR.oneOfType([dR.arrayOf(bR),dR.func]),yR=dR.oneOfType([dR.string,dR.number]);var xR={uppy:fR,locale:gR,dashboard:{uppy:fR,inline:dR.bool,plugins:mR,width:yR,height:yR,showProgressDetails:dR.bool,hideUploadButton:dR.bool,hideProgressAfterFinish:dR.bool,note:dR.string,metaFields:vR,proudlyDisplayPoweredByUppy:dR.bool,disableStatusBar:dR.bool,disableInformer:dR.bool,disableThumbnailGenerator:dR.bool,thumbnailWidth:dR.number,locale:gR}};const wR=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_R=/^(aria-|data-)/;var kR=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return _R.test(t)||wR.includes(t)})));var ER=function(e,t){return Object.keys(e.props).some((n=>!((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(e.validProps,n)&&e.props[n]!==t[n]))};const CR=t,MR=IA.exports,DR=xR.dashboard,OR=kR,TR=ER,SR=CR.createElement;class NR extends CR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(TR(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(MR,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=OR(this.props),SR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}NR.propTypes=DR,NR.defaultProps={inline:!0};const AR=t,jR=nx.exports,LR=IA.exports,IR=xR.dashboard,zR=kR,RR=ER,FR=AR.createElement;class BR extends AR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(RR(this,e)){const e={...this.props,onRequestCloseModal:this.props.onRequestClose};delete e.uppy,this.plugin.setOptions(e)}e.open&&!this.props.open?this.plugin.closeModal():!e.open&&this.props.open&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DashboardModal",...this.props,onRequestCloseModal:this.props.onRequestClose};t.target||(t.target=this.container),delete t.uppy,e.use(LR,t),this.plugin=e.getPlugin(t.id),this.props.open&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=zR(this.props),FR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}BR.propTypes={target:"undefined"!=typeof window?jR.instanceOf(window.HTMLElement):jR.any,open:jR.bool,onRequestClose:jR.func,closeModalOnClickOutside:jR.bool,disablePageScrollWhenModalOpen:jR.bool,...IR};var PR={exports:{}},UR=BT.exports,HR=WN;const $R=RA,WR=UL,qR=hL,VR={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class KR extends UR.UIPlugin{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const i=await qR(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});i.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=VR;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=WR(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=$R(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,n;e.preventDefault(),e.stopPropagation();const{types:i}=e.dataTransfer,r=i.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!r||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)}handleDragLeave(e){var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,HR.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,HR.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,HR.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,HR.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,HR.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,HR.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e=`uppy-u-reset\n uppy-DragDrop-container\n ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n `,t={width:this.opts.width,height:this.opts.height};return(0,HR.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,HR.h)("div",{className:"uppy-DragDrop-inner"},KR.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}KR.VERSION="2.1.2";const GR=t,YR=PR.exports=KR,QR=xR,ZR=kR,JR=ER,XR=GR.createElement;class eF extends GR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(JR(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DragDrop",...this.props,target:this.container};delete t.uppy,e.use(YR,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=ZR(this.props),XR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}eF.propTypes={uppy:QR.uppy,locale:QR.locale},eF.defaultProps={};var tF=eF,nF={exports:{}},iF=WN,rF=BT.exports;class oF extends rF.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,iF.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},(0,iF.h)("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),(0,iF.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}oF.VERSION="2.1.2",nF.exports=oF;const sF=t,aF=nx.exports,lF=nF.exports,cF=xR.uppy,uF=kR,pF=ER,dF=sF.createElement;class hF extends sF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(pF(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:ProgressBar",...this.props,target:this.container};delete t.uppy,e.use(lF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=uF(this.props),dF("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}hF.propTypes={uppy:cF,fixed:aF.bool,hideAfterFinish:aF.bool},hF.defaultProps={};const fF=t,mF=nx.exports,gF=qA.exports,bF=xR.uppy,vF=kR,yF=ER,xF=fF.createElement;class wF extends fF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(yF(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:StatusBar",...this.props,target:this.container};delete t.uppy,e.use(gF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=vF(this.props),xF("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}wF.propTypes={uppy:bF,hideAfterFinish:mF.bool,showProgressDetails:mF.bool},wF.defaultProps={};var _F={exports:{}},kF=BT.exports,EF=WN;const CF=RA,MF={strings:{chooseFiles:"Choose files"}};class DF extends kF.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=MF;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=CF(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,EF.h)("div",{className:"uppy-FileInput-container"},(0,EF.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,EF.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}DF.VERSION="2.1.2",_F.exports=DF;const OF=nx.exports,TF=t,SF=_F.exports,NF=xR,AF=TF.createElement;class jF extends TF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:FileInput",...this.props,target:this.container};delete t.uppy,e.use(SF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return AF("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}jF.propTypes={uppy:NF.uppy,locale:NF.locale,pretty:OF.bool,inputName:OF.string},jF.defaultProps={};const{useEffect:LF,useRef:IF}=t,zF=BT.exports.Uppy;class RF extends BT.exports.BasePlugin{constructor(e,t){super(e,t),iv(this,"upload",(e=>{if(Le(e))return Promise.resolve();const t=e.map((e=>this.uploadFile(this.uppy.getFile(e))));return Promise.all(t)})),iv(this,"uploadFile",(async e=>{this.uppy.on("file-removed",(n=>{n.id===e.id&&t.abort()})),this.uppy.on("upload-cancel",(n=>{n===e.id&&t.abort()})),this.uppy.on("cancel-all",(()=>t.abort()));const t=new EC({file:e.data,url:this.opts.directUploadUrl,progress:t=>{t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total,progress:Math.round(t.loaded/t.total*100)})}});try{const n=await t.create();return this.uppy.setFileState(e.id,{response:{status:"success"}}),this.uppy.emit("upload-success",e,n),e}catch(t){throw this.uppy.setFileState(e.id,{response:{status:"error"}}),this.uppy.emit("upload-error",e,t),t}})),this.type="uploader",this.id=t.id||"ActiveStorageUpload",this.title=t.title||"Active Storage Upload"}install(){this.uppy.addUploader(this.upload)}uninstall(){this.uppy.removeUploader(this.upload)}}const FF=e=>{var n;let{uppy:i}=e;const[s,a]=r(0);o((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(n=i.getFiles()[0])||void 0===n?void 0:n.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(g,{icon:pD,size:"small",style:"text",onClick:()=>i.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},BF=e=>{let{isImage:n,endpoint:i,onSuccess:o}=e;const[s,a]=r(!1),[l,c]=r(""),u=n?IT:zT,p=function(e){if("function"!=typeof e)throw new TypeError("useUppy: expected a function that returns a new Uppy instance");const t=IF(void 0);if(void 0===t.current&&(t.current=e(),!(t.current instanceof zF)))throw new TypeError(`useUppy: factory function must return an Uppy instance, got ${typeof t.current}`);return LF((()=>()=>{t.current.close({reason:"unmount"}),t.current=void 0}),[t]),t.current}((()=>new LA({...u,onBeforeFileAdded:e=>{const{maxFileSize:t,allowedFileTypes:n}=u.restrictions;return e.size>t?(c(`File size is too large. Max size is ${gO(u.restrictions.maxFileSize)}.`),!1):!!n.includes(`.${e.extension}`)||(c(`File type is not permitted. Allowed file types are: ${n.join(", ")}.`),!1)}}).use(RF,{directUploadUrl:i,...RT}).on("upload",(()=>a(!0))).on("upload-success",((e,t)=>{let{blob_url:n}=t;return o(n)})).on("cancel-all",(()=>a(!1))).on("complete",(()=>a(!1)))));return s?t.createElement(FF,{uppy:p}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(tF,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:p,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${gO(u.restrictions.maxFileSize)}`}),l&&t.createElement("p",{className:"ne-media-uploader__dnd--error"},l))},PF=e=>{let{isImage:n,url:i,editor:o,onClose:s,alt:a=""}=e;const[l,c]=r(a||""),[u,p]=r(!1),d=()=>{n?o.chain().focus().setFigure({src:i,caption:l,alt:l}).run():o.chain().focus().setVideo({src:i,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,n?t.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(v,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(g,{disabled:u,label:"Done",onClick:d}),t.createElement(g,{label:"Cancel",style:"text",onClick:s})))};var UF={},HF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function i(e,t){return t._once=!0,n(e,t),this}function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return HF({},e,{on:n,once:i,off:r,emit:o})},WF=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),v={all:function(){return k(b.children)},new:function(){return k(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[M,D,O],x=[T,S,N,A],w=$F({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function C(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function M(){i=C()}function D(){r=-1===i?m[m.length-1]:m[i]}function O(){s=E(r.columns)}function T(){p=v[t?"new":"all"]()}function S(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function N(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function A(){b.style.position="relative",b.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",b.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==C()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),qF=B(WF),VF={exports:{}},KF={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(nx.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(KF,KF.exports),VF.exports=KF.exports,Object.defineProperty(UF,"__esModule",{value:!0});var GF,YF,QF=UF.default=void 0,ZF=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),JF=t,XF=iB(JF),eB=iB(nx.exports),tB=iB(qF),nB=iB(VF.exports);function iB(e){return e&&e.__esModule?e:{default:e}}function rB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var sB=(YF=GF=function(e){function t(){var e,n,i;rB(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=oB(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,tB.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},oB(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,JF.Component),ZF(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return XF.default.createElement(nB.default,r,XF.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),GF.propTypes={children:eB.default.arrayOf(eB.default.element).isRequired,className:eB.default.string,initialLoad:eB.default.bool,pack:eB.default.bool,packed:eB.default.string,position:eB.default.bool,sizes:eB.default.array,style:eB.default.object},GF.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},YF);QF=UF.default=sB;const aB=e=>{let{onSubmit:n,unsplashApiKey:i}=e;const a=s(null),[l,c]=r(""),[u,p]=r(!1),[d,h]=r([]),[m,g]=r(1),[b,y]=r(!0),[x,w]=r(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,i]=r(e);return o((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),n}(l||"latest");o((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return Tk.get(Hu,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:i}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...d,...n]),g(e+1),y(e<r)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!x&&Be(d)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(QF,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:b,loadMore:()=>{!x&&b&&m>1&&k(m)},loader:t.createElement(f,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.map(((e,i)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${i}`,key:i},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${i}`},t.createElement("img",{src:e.urls.regular,onClick:()=>n(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!b&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},lB=e=>{let{buttonLabel:n="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=r(""),[c,u]=r("");return t.createElement("div",{className:Pu("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(g,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:n,onClick:e=>{e.preventDefault(),Wu.test(a)?o(a):u("Please enter a valid url")}}))},cB=e=>{let{mediaUploader:n,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=r("local"),[u,p]=r(""),d=n.image||n.video;let h=a?FT:FT.slice(0,2);n.video&&(h=[]);const f=()=>{i(),p(""),c("local")};return t.createElement(y,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!IO.exports.isEmpty(h)&&t.createElement(x,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(x.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(PF,{editor:o,isImage:n.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement(BF,{endpoint:s,isImage:n.image,onSuccess:p}),"link"===l&&t.createElement(lB,{placeholder:"Paste the link here...",buttonLabel:n.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(aB,{unsplashApiKey:a,onSubmit:p})))))};var uB=[],pB=[];function dB(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=uB.indexOf(o);-1===s&&(s=uB.push(o)-1,pB[s]={}),n=pB[s]&&pB[s][i]?pB[s][i]:pB[s][i]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}dB(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const hB=e=>{let{editor:n,handleClose:i,handleAnimateInvalidLink:s}=e;const[a,l]=r("");o((()=>{l(n.getAttributes("link").href||"")}),[]);const c=()=>{Wu.test(a)?(n.chain().focus().setLink({href:a}).run(),i()):Be(a)?(n.chain().focus().unsetLink().run(),i()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(g,{"data-cy":"neeto-editor-link-cancel-button",icon:()=>t.createElement(pD,{size:16}),style:"icon",onClick:()=>{a?(l(""),n.chain().focus().unsetLink().run()):i()}}))};var fB=Q,mB=ae((function(e,t){var n=e<0?t.length+e:e;return fB(t)?t.charAt(n):t[n]})),gB=aT,bB=mB,vB=ae((function(e,t){if(null!=t)return gB(e)?bB(e,t):t[e]})),yB=vB;const xB=16,wB="#2F3941",_B="#68737D",kB=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(w,r,t.createElement("button",He({disabled:a,type:"button",className:Pu("neeto-editor-menu__item",{active:i})},BO(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:xB,color:s||(i?wB:_B)})))};kB.propTypes={icon:nx.exports.oneOfType([nx.exports.element,nx.exports.func]),iconActive:nx.exports.bool,onClick:nx.exports.func,tooltipProps:nx.exports.object};const EB=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(kB,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:Fe(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},CB=e=>{let{editor:n,mentions:i}=e;const r=TO(i),{Menu:o,MenuItem:s}=m;return Le(r)?null:t.createElement(m,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:()=>t.createElement(yD,{size:18}),strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(b,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(_,{style:"body2"},r))}))))},MB=e=>{let{editor:n}=e;return t.createElement(m,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:()=>t.createElement(ZD,{size:18}),position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(Nk,{editor:n}))},DB=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var OB=H((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const TB=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],SB=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:XD,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:aO,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:pO,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:tO,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:kD,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:qD,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:hD,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:ND,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:jD,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:wD,command:()=>{},active:!1,optionName:"attachments"},{Icon:CD,command:()=>t(vT("image",!0)),optionName:"image-upload"},{Icon:ID,command:()=>t(vT("video",!0)),optionName:"video-upload"}],right:[{Icon:hO,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:KD,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return OB(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},NB=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(g,He({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:()=>t.createElement(n,{size:18}),key:o,style:r?"secondary":"text",tooltipProps:{content:Fe(o),position:"bottom"},onClick:i},BO(s)))},AB=e=>{let{editor:t,commands:n}=e;const{to:i}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:i,to:i}})}}}))},jB=e=>{let{editor:n,options:i,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=r(!1),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),h=(e=>{var t;return(null===(t=e.find(yB("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=i.includes(Uu.EMOJI),m=i.includes(Uu.LINK),{font:g,block:b,list:v}=SB({editor:n,options:i,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(hB,{editor:n,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(ZO,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(bD,{size:14}))),t.createElement(DB,null),g.map(EB),t.createElement(DB,null),b.map(EB),f&&t.createElement(MB,{editor:n,theme:"dark"}),t.createElement(DB,null),v.map(EB),t.createElement(DB,null),m&&EB({Icon:TD,command:()=>l(!0),active:n.isActive("link"),optionName:"link",highlight:!1}),t.createElement(CB,{editor:n,mentions:o,menuType:"bubble"}))},LB=e=>{let{editor:n,options:i,mentions:o=[],setMediaUploader:s}=e;const[a,l]=r(!1),[c,u]=r(!1),p=n&&n.view.state.selection.node,d=p&&"image"===p.type.name,h=[Uu.BOLD,Uu.ITALIC,Uu.UNDERLINE,Uu.STRIKETHROUGH,Uu.LINK],f=Be(i.filter((e=>h.includes(e))));return!n||!d&&f?null:t.createElement("div",null,t.createElement(Cu,{editor:n,className:Pu("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:jc,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(jB,{editor:n,isLinkOptionActive:c,mentions:o,options:i,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:IB,MenuItem:zB}=m,RB=e=>{var n;let{editor:i}=e;const r=(null===(n=TB.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(m,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(IB,null,TB.map((e=>{let{label:n,value:r}=e;return t.createElement(zB.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:FB}=m,BB=e=>{let{editor:n}=e;const[i,o]=r(""),[s,a]=r(""),[l,c]=r(!1),u=n.isActive("link"),p=()=>c(!1),d=()=>{Wu.test(s)?(n.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(m,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:()=>t.createElement(TD,{size:18}),isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(FB,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(g,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(g,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{n.chain().focus().unsetLink().run(),p()}})))},{Menu:PB}=m,UB=e=>{let{editor:n,variables:i}=e;return Le(i)?null:t.createElement(m,{buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:()=>t.createElement(aD,{size:18}),strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(PB,null,t.createElement(MT,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},HB=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=SB({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(Uu.EMOJI),b=i.includes(Uu.LINK),v=AB({editor:n,commands:a});return t.createElement("div",{className:Pu("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(RB,{editor:n}),u.map(NB),p.map(NB),g&&t.createElement(MB,{editor:n}),d.map(NB),b&&t.createElement(BB,{editor:n}),h.map(NB),t.createElement(CB,{editor:n,mentions:r}),v.map(NB),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(NB))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(UB,{editor:n,variables:o})))},$B=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(w,He({disabled:!s,onClick:()=>i()},s),t.createElement("button",He({className:Pu("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},WB={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},qB=e=>{let{icon:n,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=r(!1);return t.createElement(ZO,He({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[WB],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:Pu("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement($B,He({icon:n,onClick:l},c))))},VB=e=>{let{editor:n,optionName:i}=e;const[o,s]=r(!1);return t.createElement(qB,{className:"ne-headless__emoji",icon:ZD,isOpen:o,buttonProps:{tooltipProps:{content:Fe(i),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(Nk,{editor:n}))},KB=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===Uu.EMOJI?t.createElement(VB,{editor:n,optionName:i}):t.createElement($B,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:Fe(i),delay:[500],position:"bottom"},onClick:r})},GB=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:XD,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:aO,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:pO,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:tO,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:kD,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:qD,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:hD,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:ND,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:jD,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:CD,command:()=>t(vT("image",!0)),optionName:"image-upload"},{Icon:ID,command:()=>t(vT("video",!0)),optionName:"video-upload"},{Icon:ZD,command:()=>{},optionName:"emoji"},{Icon:hO,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:KD,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},YB=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s}=e;if(!n)return null;const a=[...GB({editor:n,options:i,setMediaUploader:r}),...AB({editor:n,commands:o})];return t.createElement("div",{className:"ne-headless"},a.map((e=>t.createElement(KB,He({editor:n,key:e.optionName},e)))),s)},QB=e=>{const[n,i]=r({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=$u,editorSecrets:u={}}=e,p={fixed:HB,bubble:LB,headless:YB,none:()=>t.createElement("div",null)}[o],d=Le(a)?[...Qu,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,He({},e,{options:d,setMediaUploader:i})),t.createElement(cB,{editor:l,mediaUploader:n,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>i({image:!1,video:!1})}))},ZB=e=>{let{rows:t}=e;return`min-height: ${t*Xu+2*(Zu+Ju)}px;`},JB=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=gt.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Ve.fromArray(n);return Je.maxOpen(i)},XB=(e,n)=>{let{initialValue:i="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=Qu,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:b=$u,onChange:v=Pe,onFocus:y=Pe,onBlur:x=Pe,onSubmit:w=Pe,variables:_=[],mentions:E=[],placeholder:C,extensions:M=[],editorSecrets:D={},rows:O=6,isCharacterCountActive:T=!1,keyboardShortcuts:S=[],error:N=null,config:A={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!C,[F,B]=r({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=op(p,Qb);let f=[up,cp.configure(h.code),Bd.configure(h.underline),fp.configure(h.highlight),Yb.configure(h.codeBlock),_O.configure(h.figCaption),Jb.configure(h.embeds),Fd.configure(h.link),Fk.configure(h.emojiSuggestion),jk.configure(h.emojiPicker),Zb.configure(h.customCommands),sp.configure(h.characterCount),pp.configure(h.focus),LT,wO({uploadEndpoint:u}),Kh.configure(h.starterKit),EO({onSubmit:l,shortcuts:c}),LO.configure(op({placeholder:t},h.placeholder))];return o&&f.push(CT({options:s,addonCommands:a,setMediaUploader:d})),Le(i)||f.push(jO({suggestion:{items:SO(i)}})),Le(r)||f.push(AT({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:C,extensions:M,mentions:E,variables:_,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:S,uploadEndpoint:b,config:A,setMediaUploader:B});(e=>{let{initialValue:t}=e;o((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&Be(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:i});const U=Pu("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=Ru({extensions:P,content:i,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:ZB({rows:O})},clipboardTextParser:JB},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=$n.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return v(t.getHTML())},onFocus:y,onBlur:x});return u(n,(()=>({editor:H}))),ws.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:Pu({[m]:m})},a&&t.createElement(k,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(Yu,{error:N,isFixedMenuActive:L},t.createElement(ep,{editor:H,isActive:T},t.createElement(QB,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:D,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:b,variables:_}),t.createElement(Tu,He({editor:H},j)),t.createElement(cB,{editor:H,mediaUploader:F,unsplashApiKey:D.unsplash,uploadEndpoint:b,onClose:()=>B({image:!1,video:!1})}))));var $};var eP=t.forwardRef(XB);dB('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 0.2em 0.4em;\n font-size: 85%;\n border-radius: 6px;\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const tP=(e,n)=>{let{name:i,...r}=e;return t.createElement(I,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(eP,He({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var nP=a(tP);
59
+ */function aS(e,t){const n=/\$/g,i="$$$$";let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,i)),r=sS(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var lS=rS("apply");function cS(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var uS=class{constructor(e){Object.defineProperty(this,lS,{value:cS}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(nS(this,lS)[lS],this):nS(this,lS)[lS](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!oS(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return aS(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return aS(n,t)}},pS="Expected a function",dS=0/0,hS="[object Symbol]",fS=/^\s+|\s+$/g,mS=/^[-+]0x[0-9a-f]+$/i,gS=/^0b[01]+$/i,bS=/^0o[0-7]+$/i,vS=parseInt,yS="object"==typeof R&&R&&R.Object===Object&&R,xS="object"==typeof self&&self&&self.Object===Object&&self,wS=yS||xS||Function("return this")(),_S=Object.prototype.toString,kS=Math.max,ES=Math.min,CS=function(){return wS.Date.now()};function MS(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(pS);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=CS();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?ES(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=CS(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=OS(t)||0,DS(n)&&(u=!!n.leading,o=(p="maxWait"in n)?kS(OS(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(CS())},v}function DS(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function OS(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&_S.call(e)==hS}(e))return dS;if(DS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=DS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fS,"");var n=gS.test(e);return n||bS.test(e)?vS(e.slice(2),n?2:8):mS.test(e)?dS:+e}var TS=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(pS);return DS(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),MS(e,t,{leading:i,maxWait:t,trailing:r})};var SS=0;function NS(e){return"__private_"+SS+++"_"+e}var AS=NS("publish");class jS{constructor(){Object.defineProperty(this,AS,{value:LS}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,AS)[AS](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function LS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}jS.VERSION="2.1.1";var IS=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}};const zS=IS,RS={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function FS(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var BS=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${FS(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${FS(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t};var PS=function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[i,r]=n.split(".");return i=parseInt(i,10),r=parseInt(r,10),i<15||15===i&&r<15063||(i>18||18===i&&r>=18218)};var US=KT,HS=PT,$S=GT;let WS,qS;function VS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var KS=0;function GS(e){return"__private_"+KS+++"_"+e}const YS=uS,QS=function(){var e={},t=e._fns={};return e.emit=function(e,n,i,r,o,s,a){var l=function(e){var n=t[e]?t[e]:[],i=e.indexOf(":"),r=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],o=Object.keys(t),s=0,a=o.length;for(;s<a;s++){var l=o[s];if("*"===l&&(n=n.concat(t[l])),2===r.length&&r[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){var i=0,r=t.length;for(;i<r&&t[i];i++)t[i].event=e,t[i].apply(t[i],n)}(e,l,[n,i,r,o,s,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function i(){n.apply(this,arguments),e.off(t,i)}))},e.off=function(e,t){var n=[];if(e&&t)for(var i=this._fns[e],r=0,o=i?i.length:0;r<o;r++)i[r]!==t&&n.push(i[r]);n.length?this._fns[e]=n:delete this._fns[e]},e},ZS=TS,JS=function(){return new jS},XS=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=zS(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in RS?RS[n]:"application/octet-stream"},eN=IS,tN=BS,nN=PS,iN=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"},rN={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var oN=GS("plugins"),sN=GS("restricter"),aN=GS("storeUnsubscribe"),lN=GS("emitter"),cN=GS("preProcessors"),uN=GS("uploaders"),pN=GS("postProcessors"),dN=GS("informAndEmit"),hN=GS("checkRequiredMetaFieldsOnFile"),fN=GS("checkRequiredMetaFields"),mN=GS("assertNewUploadAllowed"),gN=GS("checkAndCreateFileStateObject"),bN=GS("startIfAutoProceed"),vN=GS("addListeners"),yN=GS("updateOnlineStatus"),xN=GS("createUpload"),wN=GS("getUpload"),_N=GS("removeUpload"),kN=GS("runUpload");WS=Symbol.for("uppy test: getPlugins"),qS=Symbol.for("uppy test: createUpload");class EN{constructor(e){Object.defineProperty(this,kN,{value:IN}),Object.defineProperty(this,_N,{value:LN}),Object.defineProperty(this,wN,{value:jN}),Object.defineProperty(this,xN,{value:AN}),Object.defineProperty(this,vN,{value:NN}),Object.defineProperty(this,bN,{value:SN}),Object.defineProperty(this,gN,{value:TN}),Object.defineProperty(this,mN,{value:ON}),Object.defineProperty(this,fN,{value:DN}),Object.defineProperty(this,hN,{value:MN}),Object.defineProperty(this,dN,{value:CN}),Object.defineProperty(this,oN,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sN,{writable:!0,value:void 0}),Object.defineProperty(this,aN,{writable:!0,value:void 0}),Object.defineProperty(this,lN,{writable:!0,value:QS()}),Object.defineProperty(this,cN,{writable:!0,value:new Set}),Object.defineProperty(this,uN,{writable:!0,value:new Set}),Object.defineProperty(this,pN,{writable:!0,value:new Set}),Object.defineProperty(this,yN,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=rN;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:$S.defaultOptions,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:JS(),logger:HS.justErrorsLogger,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=HS.debugLogger),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=ZS(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:nN(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),VS(this,sN)[sN]=new $S.Restricter((()=>this.opts),this.i18n),VS(this,aN)[aN]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),VS(this,vN)[vN]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];VS(this,lN)[lN].emit(e,...n)}on(e,t){return VS(this,lN)[lN].on(e,t),this}once(e,t){return VS(this,lN)[lN].once(e,t),this}off(e,t){return VS(this,lN)[lN].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new YS([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((i=>{const r={...t[i]};r.progress={...r.progress,...e},n[i]=r})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){VS(this,cN)[cN].add(e)}removePreProcessor(e){return VS(this,cN)[cN].delete(e)}addPostProcessor(e){VS(this,pN)[pN].add(e)}removePostProcessor(e){return VS(this,pN)[pN].delete(e)}addUploader(e){VS(this,uN)[uN].add(e)}removeUploader(e){return VS(this,uN)[uN].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...n[e].meta,...t};n[e]={...n[e],meta:i},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),i=Object.values(e),r=i.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=i.filter((e=>!e.progress.uploadStarted)),s=i.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=i.filter((e=>e.progress.uploadStarted)),l=i.filter((e=>e.isPaused)),c=i.filter((e=>e.progress.uploadComplete)),u=i.filter((e=>e.error)),p=r.filter((e=>!e.isPaused)),d=i.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:r,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===i.length&&0===d.length,isAllErrored:!!n&&u.length===i.length,isAllPaused:0!==r.length&&l.length===r.length,isUploadInProgress:r.length>0,isSomeGhost:i.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{return VS(this,sN)[sN].validate(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){VS(this,mN)[mN](e);const{files:t}=this.getState();let n=VS(this,gN)[gN](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),VS(this,bN)[bN](),n.id}addFiles(e){VS(this,mN)[mN]();const t={...this.getState().files},n=[],i=[];for(let r=0;r<e.length;r++)try{let i=VS(this,gN)[gN](t,e[r]);t[i.id]&&t[i.id].isGhost&&(i={...t[i.id],data:e[r].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${i.name}, ${i.id}`)),t[i.id]=i,n.push(i)}catch(e){e.isRestriction||i.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&VS(this,bN)[bN](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:n,currentUploads:i}=this.getState(),r={...n},o={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{n[e]&&(s[e]=n[e],delete r[e])})),Object.keys(o).forEach((e=>{const t=i[e].fileIDs.filter(a);0!==t.length?o[e]={...i[e],fileIDs:t}:delete o[e]}));const l={currentUploads:o,files:r};0===Object.keys(r).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=VS(this,xN)[xN](t,{forceAllowNewUpload:!0});return VS(this,kN)[kN](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=VS(this,xN)[xN]([e],{forceAllowNewUpload:!0});return VS(this,kN)[kN](t)}reset(){this.cancelAll(...arguments)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,i=n.reduce(((e,t)=>e+t.progress.percentage),0),r=Math.round(i/t*100);return void this.setState({totalProgress:r})}let i=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const r=i/t.length;i+=r*n.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),n.forEach((e=>{o+=r*(e.progress.percentage||0)/100}));let s=0===i?0:Math.round(o/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}.`+" Please verify that the plugin was imported and spelled correctly.")}const n=new e(this,t),i=n.id;if(!i)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const r=this.getPlugin(i);if(r){const e=`Already found a plugin named '${r.id}'. `+`Tried to use: '${i}'.\n`+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),n.type in VS(this,oN)[oN]?VS(this,oN)[oN][n.type].push(n):VS(this,oN)[oN][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(VS(this,oN)[oN])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[WS](e){return VS(this,oN)[oN][e]}iteratePlugins(e){Object.values(VS(this,oN)[oN]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=VS(this,oN)[oN][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),VS(this,aN)[aN](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",VS(this,yN)[yN]),window.removeEventListener("offline",VS(this,yN)[yN]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?VS(this,kN)[kN](e):(VS(this,_N)[_N](e),Promise.reject(new Error("Nonexistent upload")))}[qS](){return VS(this,xN)[xN](...arguments)}addResultData(e,t){if(!VS(this,wN)[wN](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),i={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:i}})}upload(){var e;null!=(e=VS(this,oN)[oN].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>VS(this,sN)[sN].validateMinNumberOfFiles(t))).catch((e=>{throw VS(this,dN)[dN](e),e})).then((()=>{if(!VS(this,fN)[fN](t))throw new $S.RestrictionError(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),i=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||i.push(t.id)}));const r=VS(this,xN)[xN](i);return VS(this,kN)[kN](r)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function CN(e,t){const{message:n,details:i=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:i},"error",this.opts.infoTimeout),this.log(`${n} ${i}`.trim(),"error")}function MN(e){const{missingFields:t,error:n}=VS(this,sN)[sN].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function DN(e){let t=!0;for(const n of Object.values(e))VS(this,hN)[hN](n)||(t=!1);return t}function ON(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new $S.RestrictionError(this.i18n("noMoreFilesAllowed"));throw VS(this,dN)[dN](t,e),t}}function TN(e,t){const n=XS(t),i=iN(n,t),r=eN(i).extension,o=Boolean(t.isRemote),s=tN({...t,type:n});if(this.checkIfFileAlreadyExists(s)){const e=new $S.RestrictionError(this.i18n("noDuplicates",{fileName:i}));throw VS(this,dN)[dN](e,t),e}const a=t.meta||{};a.name=i,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:s,name:i,extension:r||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new $S.RestrictionError("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));VS(this,sN)[sN].validate(c,t)}catch(e){throw VS(this,dN)[dN](e,c),e}return c}function SN(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function NN(){const e=(e,t,n)=>{let i=e.message||"Unknown error";e.details&&(i+=` ${e.details}`),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:n})};this.on("error",e),this.on("upload-error",((t,n,i)=>{if(e(n,t,i),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),VS(this,dN)[dN](e)}else VS(this,dN)[dN](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:VS(this,pN)[pN].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&VS(this,hN)[hN](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",VS(this,yN)[yN]),window.addEventListener("offline",VS(this,yN)[yN]),setTimeout(VS(this,yN)[yN],3e3))}function AN(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:i,currentUploads:r}=this.getState();if(!i&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,US.nanoid)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[o]:{fileIDs:e,step:0,result:{}}}}),o}function jN(e){const{currentUploads:t}=this.getState();return t[e]}function LN(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function IN(e){let{currentUploads:t}=this.getState(),n=t[e];const i=n.step||0,r=[...VS(this,cN)[cN],...VS(this,uN)[uN],...VS(this,pN)[pN]];try{for(let o=i;o<r.length&&n;o++){const i=r[o],s={...n,step:o};this.setState({currentUploads:{...t,[e]:s}}),await i(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw VS(this,_N)[_N](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const i=n.fileIDs.map((e=>this.getFile(e))),r=i.filter((e=>!e.error)),o=i.filter((e=>e.error));await this.addResultData(e,{successful:r,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),VS(this,_N)[_N](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}EN.VERSION="2.3.1";var zN,RN,FN,BN,PN,UN,HN,$N=EN,WN={},qN={},VN=[],KN=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function GN(e,t){for(var n in t)e[n]=t[n];return e}function YN(e){var t=e.parentNode;t&&t.removeChild(e)}function QN(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?zN.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return ZN(e,s,i,r,null)}function ZN(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++FN:r};return null==r&&null!=RN.vnode&&RN.vnode(o),o}function JN(e){return e.children}function XN(e,t){this.props=e,this.context=t}function eA(e,t){if(null==t)return e.__?eA(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?eA(e):null}function tA(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return tA(e)}}function nA(e){(!e.__d&&(e.__d=!0)&&PN.push(e)&&!iA.__r++||UN!==RN.debounceRendering)&&((UN=RN.debounceRendering)||setTimeout)(iA)}function iA(){for(var e;iA.__r=PN.length;)e=PN.sort((function(e,t){return e.__v.__b-t.__v.__b})),PN=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=GN({},r)).__v=r.__v+1,pA(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?eA(r):o,r.__h),dA(n,r),r.__e!=o&&tA(r)))}))}function rA(e,t,n,i,r,o,s,a,l,c){var u,p,d,h,f,m,g,b=i&&i.__k||VN,v=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?ZN(null,h,null,null,h):Array.isArray(h)?ZN(JN,{children:h},null,null,null):h.__b>0?ZN(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=b[u])||d&&h.key==d.key&&h.type===d.type)b[u]=void 0;else for(p=0;p<v;p++){if((d=b[p])&&h.key==d.key&&h.type===d.type){b[p]=void 0;break}d=null}pA(e,h,d=d||qN,r,o,s,a,l,c),f=h.__e,(p=h.ref)&&d.ref!=p&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(p,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=oA(h,l,e):l=sA(e,h,d,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=eA(d))}for(n.__e=m,u=v;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=eA(i,u+1)),mA(b[u],b[u]));if(g)for(u=0;u<g.length;u++)fA(g[u],g[++u],g[++u])}function oA(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?oA(i,t,n):sA(n,i,i,r,i.__e,t));return t}function sA(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function aA(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||KN.test(t)?n:n+"px"}function lA(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||aA(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||aA(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?uA:cA,o):e.removeEventListener(t,o?uA:cA,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function cA(e){this.l[e.type+!1](RN.event?RN.event(e):e)}function uA(e){this.l[e.type+!0](RN.event?RN.event(e):e)}function pA(e,t,n,i,r,o,s,a,l){var c,u,p,d,h,f,m,g,b,v,y,x,w,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=RN.__b)&&c(t);try{e:if("function"==typeof _){if(g=t.props,b=(c=_.contextType)&&i[c.__c],v=c?b?b.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(g,v):(t.__c=u=new XN(g,v),u.constructor=_,u.render=gA),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=v,u.__n=i,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=GN({},u.__s)),GN(u.__s,_.getDerivedStateFromProps(g,u.__s))),d=u.props,h=u.state,p)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&g!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,v)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,v),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,h,f)}))}if(u.context=v,u.props=g,u.__v=t,u.__P=e,y=RN.__r,x=0,"prototype"in _&&_.prototype.render)u.state=u.__s,u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context);else do{u.__d=!1,y&&y(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(i=GN(GN({},i),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(d,h)),w=null!=c&&c.type===JN&&null==c.key?c.props.children:c,rA(e,Array.isArray(w)?w:[w],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=hA(n.__e,t,n,i,r,o,s,l);(c=RN.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),RN.__e(e,t,n)}}function dA(e,t){RN.__c&&RN.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){RN.__e(e,t.__v)}}))}function hA(e,t,n,i,r,o,s,a){var l,c,u,p=n.props,d=t.props,h=t.type,f=0;if("svg"===h&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,a=!1}if(null===h)p===d||a&&e.data===d||(e.data=d);else{if(o=o&&zN.call(e.childNodes),c=(p=n.props||qN).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!a){if(null!=o)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||lA(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||lA(e,o,t[o],n[o],i)}(e,d,p,r,a),u)t.__k=[];else if(f=t.props.children,rA(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&eA(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&YN(o[f]);a||("value"in d&&void 0!==(f=d.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==p.value)&&lA(e,"value",f,p.value,!1),"checked"in d&&void 0!==(f=d.checked)&&f!==e.checked&&lA(e,"checked",f,p.checked,!1))}return e}function fA(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){RN.__e(e,n)}}function mA(e,t,n){var i,r;if(RN.unmount&&RN.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||fA(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){RN.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&mA(i[r],t,"function"!=typeof e.type);n||null==e.__e||YN(e.__e),e.__=e.__e=e.__d=void 0}function gA(e,t,n){return this.constructor(e,n)}function bA(e,t,n){var i,r,o;RN.__&&RN.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],pA(t,e=(!i&&n||t).__k=QN(JN,null,[e]),r||qN,qN,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?zN.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),dA(o,e)}zN=VN.slice,RN={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},FN=0,BN=function(e){return null!=e&&void 0===e.constructor},XN.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=GN({},this.state),"function"==typeof e&&(e=e(GN({},n),this.props)),e&&GN(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),nA(this))},XN.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nA(this))},XN.prototype.render=JN,PN=[],iA.__r=0,HN=0,WN.Component=XN,WN.Fragment=JN,WN.cloneElement=function(e,t,n){var i,r,o,s=GN({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?zN.call(arguments,2):n),ZN(e.type,s,i||e.key,r||e.ref,null)},WN.createContext=function(e,t){var n={__c:t="__cC"+HN++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(nA)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},WN.createElement=QN,WN.createRef=function(){return{current:null}},WN.h=QN,WN.hydrate=function e(t,n){bA(t,n,e)},WN.isValidElement=BN,WN.options=RN,WN.render=bA,WN.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n};var vA=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE};const yA=vA;var xA=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):yA(e)?e:null};var wA=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};const _A=uS;var kA=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 _A([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(){}},EA=WN;function CA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var MA=0;function DA(e){return"__private_"+MA+++"_"+e}const OA=xA,TA=wA,SA=kA;var NA=DA("updateUI");class AA extends SA{constructor(){super(...arguments),Object.defineProperty(this,NA,{writable:!0,value:void 0})}mount(e,t){const n=t.id,i=OA(e);if(i){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),CA(this,NA)[NA]=function(e){let t=null,n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return n=r,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&((0,EA.render)(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),(0,EA.render)(this.render(this.uppy.getState()),t),this.el=t,i.appendChild(t),t.dir=this.opts.direction||TA(t)||"ltr",this.onMount(),this.el}let r;if("object"==typeof e&&e instanceof AA)r=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{e instanceof t&&(r=e)}))}if(r)return this.uppy.log(`Installing ${n} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. "+"Please check that you're not specifying a React Component instead of a plugin. "+"If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: "+"run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. "+"Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. "+"(see https://github.com/transloadit/uppy/issues/1042)\n\n"+"If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=CA(this,NA))[NA])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var jA=AA;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Uppy=t.UIPlugin=t.BasePlugin=void 0,Object.defineProperty(t,"debugLogger",{enumerable:!0,get:function(){return n.debugLogger}});var n=PT;e.exports=$N;const i=jA;t.UIPlugin=i;const r=kA;t.BasePlugin=r;const o=$N;t.Uppy=o;const s=jA,a=kA;o.Uppy=o,o.UIPlugin=s,o.BasePlugin=a,o.debugLogger=n.debugLogger}(BT,BT.exports);var LA=F(BT.exports),IA={exports:{}},zA={},RA=Array.from,FA=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];var BA=function(e,t){if(t){const n=e.querySelector(`[data-uppy-paneltype="${t}"]`);if(n)return n}return e};Object.defineProperty(zA,"__esModule",{value:!0}),zA.forInline=function(e,t,n){null===t||WA(e,t,n)},zA.forModal=WA;const PA=RA,UA=FA,HA=BA;function $A(e,t){const n=t[0];n&&(n.focus(),e.preventDefault())}function WA(e,t,n){const i=HA(n,t),r=PA(i.querySelectorAll(UA)),o=r.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(i)?$A(e,r):e.shiftKey&&0===o?function(e,t){const n=t[t.length-1];n&&(n.focus(),e.preventDefault())}(e,r):e.shiftKey||o!==r.length-1||$A(e,r)}var qA={exports:{}};var VA=function(e){if(!e.bytesUploaded)return 0;const t=Date.now()-e.uploadStarted;return e.bytesUploaded/(t/1e3)};var KA=function(e){return e.bytesTotal-e.bytesUploaded},GA={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},YA={};const QA=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}};var ZA=function(e){const t=QA(e);return`${0===t.hours?"":`${t.hours}h`}${0===t.minutes?"":`${0===t.hours?t.minutes:` ${t.minutes.toString(10).padStart(2,"0")}`}m`}${0!==t.hours?"":`${0===t.minutes?t.seconds:` ${t.seconds.toString(10).padStart(2,"0")}`}s`}`};Object.defineProperty(YA,"__esModule",{value:!0}),YA.CancelBtn=function(e){const{i18n:t,uppy:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>n.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,JA.h)("g",{fill:"none",fillRule:"evenodd"},(0,JA.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,JA.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},YA.DoneBtn=function(e){const{i18n:t,doneButtonHandler:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:n,"data-uppy-super-focusable":!0},t("done"))},YA.LoadingSpinner=oj,YA.PauseResumeButton=function(e){const{isAllPaused:t,i18n:n,isAllComplete:i,resumableUploads:r,uppy:o}=e,s=n(t?"resume":"pause");return(0,JA.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:r?t?o.resumeAll():o.pauseAll():o.cancelAll()},"data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,JA.h)("g",{fill:"none",fillRule:"evenodd"},(0,JA.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,JA.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},YA.ProgressBarComplete=function(e){const{i18n:t}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,JA.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},YA.ProgressBarError=function(e){const{error:t,i18n:n,complete:i,numUploads:r}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-content",title:n("uploadFailed")},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,JA.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},n("uploadFailed"),(0,JA.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":n("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${n("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),(0,JA.h)(aj,{i18n:n,complete:i,numUploads:r})))},YA.ProgressBarProcessing=function(e){const{progress:t}=e,{value:n,mode:i,message:r}=t,o=Math.round(100*n),s=`·`;return(0,JA.h)("div",{className:"uppy-StatusBar-content"},(0,JA.h)(oj,null),"determinate"===i?`${o}% ${s} `:"",r)},YA.ProgressBarUploading=function(e){const{i18n:t,supportsUploadProgress:n,totalProgress:i,showProgressDetails:r,isUploadStarted:o,isAllComplete:s,isAllPaused:a,newFiles:l,numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,startUpload:f}=e,m=l&&o;if(!o||s)return null;const g=t(a?"paused":"uploading");return(0,JA.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},a?null:(0,JA.h)(oj,null),(0,JA.h)("div",{className:"uppy-StatusBar-status"},(0,JA.h)("div",{className:"uppy-StatusBar-statusPrimary"},n?`${g}: ${i}%`:g),a||m||!r?null:n?(0,JA.h)(cj,{numUploads:c,complete:u,totalUploadedSize:p,totalSize:d,totalETA:h,i18n:t}):(0,JA.h)(aj,{i18n:t,complete:u,numUploads:c}),m?(0,JA.h)(lj,{i18n:t,newFiles:l,startUpload:f}):null))},YA.ProgressDetails=sj,YA.RetryBtn=function(e){const{i18n:t,uppy:n}=e;return(0,JA.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>n.retryAll(),"data-uppy-super-focusable":!0},(0,JA.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,JA.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},YA.UploadBtn=function(e){const{newFiles:t,isUploadStarted:n,recoveredState:i,i18n:r,uploadState:o,isSomeGhost:s,startUpload:a}=e,l=XA("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===nj.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=r(t&&n&&!i?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,JA.h)("button",{type:"button",className:l,"aria-label":r("uploadXFiles",{smart_count:t}),onClick:a,disabled:s,"data-uppy-super-focusable":!0},c)};var JA=WN;const XA=Bu.exports,ej=YT,tj=ZA,nj=GA,ij=`·`,rj=()=>` ${ij} `;function oj(){return(0,JA.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,JA.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function sj(e){const{numUploads:t,complete:n,totalUploadedSize:i,totalSize:r,totalETA:o,i18n:s}=e,a=t>1;return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},a&&s("filesUploadedOfTotal",{complete:n,smart_count:t}),(0,JA.h)("span",{className:"uppy-StatusBar-additionalInfo"},a&&rj(),s("dataUploadedOfTotal",{complete:ej(i),total:ej(r)}),rj(),s("xTimeLeft",{time:tj(o)})))}function aj(e){const{i18n:t,complete:n,numUploads:i}=e;return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:n,smart_count:i}))}function lj(e){const{i18n:t,newFiles:n,startUpload:i}=e,r=XA("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,JA.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:n})),(0,JA.h)("button",{type:"button",className:r,"aria-label":t("uploadXFiles",{smart_count:n}),onClick:i},t("upload")))}const cj=TS(sj,500,{leading:!0,trailing:!0});var uj=WN,pj=YA;const dj=Bu.exports,hj=GA,fj=function(e){const t=[];let n,i;for(const{progress:r}of Object.values(e)){const{preprocess:e,postprocess:o}=r;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,n)=>e+n/t.length),0)}},{STATE_ERROR:mj,STATE_WAITING:gj,STATE_PREPROCESSING:bj,STATE_UPLOADING:vj,STATE_POSTPROCESSING:yj,STATE_COMPLETE:xj}=hj;var wj=function(e){const{newFiles:t,allowNewUpload:n,isUploadInProgress:i,isAllPaused:r,resumableUploads:o,error:s,hideUploadButton:a,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:u,recoveredState:p,uploadState:d,totalProgress:h,files:f,supportsUploadProgress:m,hideAfterFinish:g,isSomeGhost:b,doneButtonHandler:v,isUploadStarted:y,i18n:x,startUpload:w,uppy:_,isAllComplete:k,showProgressDetails:E,numUploads:C,complete:M,totalSize:D,totalETA:O,totalUploadedSize:T}=e,S=function(){switch(d){case yj:case bj:{const e=fj(f);return"determinate"===e.mode?100*e.value:h}case mj:return null;case vj:return m?h:null;default:return h}}(),N=function(){if(p)return!1;switch(d){case gj:return a||0===t;case xj:return g;default:return!1}}(),A=null!=S?S:100,j=!s&&t&&!i&&!r&&n&&!a,L=!c&&d!==gj&&d!==xj,I=o&&!l&&d===vj,z=s&&!k&&!u,R=v&&d===xj,F=dj("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case yj:case bj:{const{mode:e}=fj(f);return"indeterminate"===e}case vj:return!m;default:return!1}}()}),B=dj("uppy-StatusBar",`is-${d}`,{"has-ghosts":b});return(0,uj.h)("div",{className:B,"aria-hidden":N},(0,uj.h)("div",{className:F,style:{width:`${A}%`},role:"progressbar","aria-label":`${A}%`,"aria-valuetext":`${A}%`,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":S}),(()=>{switch(d){case bj:case yj:return(0,uj.h)(pj.ProgressBarProcessing,{progress:fj(f)});case xj:return(0,uj.h)(pj.ProgressBarComplete,{i18n:x});case mj:return(0,uj.h)(pj.ProgressBarError,{error:s,i18n:x,numUploads:C,complete:M});case vj:return(0,uj.h)(pj.ProgressBarUploading,{i18n:x,supportsUploadProgress:m,totalProgress:h,showProgressDetails:E,isUploadStarted:y,isAllComplete:k,isAllPaused:r,newFiles:t,numUploads:C,complete:M,totalUploadedSize:T,totalSize:D,totalETA:O,startUpload:w});default:return null}})(),(0,uj.h)("div",{className:"uppy-StatusBar-actions"},p||j?(0,uj.h)(pj.UploadBtn,{newFiles:t,isUploadStarted:y,recoveredState:p,i18n:x,isSomeGhost:b,startUpload:w,uploadState:d}):null,z?(0,uj.h)(pj.RetryBtn,{i18n:x,uppy:_}):null,I?(0,uj.h)(pj.PauseResumeButton,{isAllPaused:r,i18n:x,isAllComplete:k,resumableUploads:o,uppy:_}):null,L?(0,uj.h)(pj.CancelBtn,{i18n:x,uppy:_}):null,R?(0,uj.h)(pj.DoneBtn,{i18n:x,doneButtonHandler:v}):null))},_j=BT.exports;const kj=VA,Ej=KA,Cj=wA,Mj=GA,Dj=wj,Oj={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function Tj(e){const t=function(e){let t=0;return e.forEach((e=>{t+=kj(e.progress)})),t}(e);if(0===t)return 0;const n=e.reduce(((e,t)=>e+Ej(t.progress)),0);return Math.round(n/t*10)/10}function Sj(e,t,n,i){if(e&&!t)return Mj.STATE_ERROR;if(t)return Mj.STATE_COMPLETE;if(n)return Mj.STATE_WAITING;let r=Mj.STATE_WAITING;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return Mj.STATE_UPLOADING;t.preprocess&&r!==Mj.STATE_UPLOADING&&(r=Mj.STATE_PREPROCESSING),t.postprocess&&r!==Mj.STATE_UPLOADING&&r!==Mj.STATE_PREPROCESSING&&(r=Mj.STATE_POSTPROCESSING)}return r}class Nj extends _j.UIPlugin{constructor(e,t){super(e,t),this.startUpload=()=>{const{recoveredState:e}=this.uppy.getState();if(!e)return this.uppy.upload().catch((()=>{}));this.uppy.emit("restore-confirmed")},this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=Oj;this.opts={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null,...t},this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:n,allowNewUpload:i,totalProgress:r,error:o,recoveredState:s}=e,{newFiles:a,startedFiles:l,completeFiles:c,inProgressNotPausedFiles:u,isUploadStarted:p,isAllComplete:d,isAllErrored:h,isAllPaused:f,isUploadInProgress:m,isSomeGhost:g}=this.uppy.getObjectOfFilesPerState(),b=s?Object.values(n):a,v=Tj(u),y=!!t.resumableUploads,x=!1!==t.uploadProgress;let w=0,_=0;return l.forEach((e=>{w+=e.progress.bytesTotal||0,_+=e.progress.bytesUploaded||0})),Dj({error:o,uploadState:Sj(o,d,s,e.files||{}),allowNewUpload:i,totalProgress:r,totalSize:w,totalUploadedSize:_,isAllComplete:!1,isAllPaused:f,isAllErrored:h,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:g,recoveredState:s,complete:c.length,newFiles:b.length,numUploads:l.length,totalETA:v,files:n,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:y,supportsUploadProgress:x,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;Cj(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Nj.VERSION="2.2.2",qA.exports=Nj;var Aj={exports:{}},jj=WN;const Lj=300;class Ij extends jj.Component{constructor(){super(...arguments),this.ref=(0,jj.createRef)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,Lj)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,Lj)}render(){const{children:e}=this.props;return(0,jj.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}var zj=Ij,Rj=WN;function Fj(e,t){const n=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return n[t]||(n[t]=n=>{e.refs[t]=n})}function Bj(e){const t={};for(let o=0;o<e.length;o++)if(null!=e[o]){t[(n=e[o],i=o.toString(36),r=void 0,null!=(r=null==n?void 0:n.key)?r:i)]=e[o]}var n,i,r;return t}function Pj(e,t){e=e||{},t=t||{};const n=n=>t.hasOwnProperty(n)?t[n]:e[n],i={};let r=[];for(const n in e)t.hasOwnProperty(n)?r.length&&(i[n]=r,r=[]):r.push(n);const o={};for(const e in t){if(i.hasOwnProperty(e))for(let t=0;t<i[e].length;t++){const r=i[e][t];o[i[e][t]]=n(r)}o[e]=n(e)}for(let e=0;e<r.length;e++)o[r[e]]=n(r[e]);return o}class Uj extends Rj.Component{constructor(e,t){super(e,t),this.refs={},this.state={children:Bj((0,Rj.toChildArray)((0,Rj.toChildArray)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=Bj((0,Rj.toChildArray)(e.children)||[]),n=this.state.children;let i;for(i in this.setState((e=>({children:Pj(e.children,t)}))),t)if(t.hasOwnProperty(i)){const e=n&&n.hasOwnProperty(i);t[i]&&e&&this.currentlyTransitioningKeys[i]?(this.keysToEnter.push(i),this.keysToAbortLeave.push(i)):!t[i]||e||this.currentlyTransitioningKeys[i]||this.keysToEnter.push(i)}for(i in n)if(n.hasOwnProperty(i)){const e=t&&t.hasOwnProperty(i);!n[i]||e||this.currentlyTransitioningKeys[i]||this.keysToLeave.push(i)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);n&&n.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const n=Bj((0,Rj.toChildArray)(this.props.children)||[]);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{const t=(i={},r=this.state.children,Object.assign(i,r));delete t[e],this.setState({children:t})}var i,r}render(e,t){let{childFactory:n,transitionLeave:i,transitionName:r,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:a,transitionEnterTimeout:l,transitionAppearTimeout:c,component:u,...p}=e,{children:d}=t;const h=[];for(const e in d)if(d.hasOwnProperty(e)){const t=d[e];if(t){const i=Fj(this,e),r=(0,Rj.cloneElement)(n(t),{ref:i,key:e});h.push(r)}}return(0,Rj.h)(u,p,h)}}Uj.defaultProps={component:"span",childFactory:e=>e};var Hj=WN,$j=BT.exports;const Wj=zj,qj=Uj;class Vj extends $j.UIPlugin{constructor(e,t){super(e,t),this.render=e=>(0,Hj.h)("div",{className:"uppy uppy-Informer"},(0,Hj.h)(qj,null,e.info.map((e=>(0,Hj.h)(Wj,{key:e.message},(0,Hj.h)("p",{role:"alert"},e.message," ",e.details&&(0,Hj.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert(`${e.message} \n\n ${e.details}`)},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer";this.opts={...t}}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}Vj.VERSION="2.1.1",Aj.exports=Vj;var Kj={exports:{}};!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n="undefined"!=typeof self?self:R;const i="undefined"!=typeof navigator,r=i&&"undefined"==typeof HTMLImageElement,o=!(void 0===R||"undefined"==typeof process||!process.versions||!process.versions.node),s=n.Buffer,a=!!s,l=e=>void 0!==e;function c(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(l).length)}function u(e){let t=new Error(e);throw delete t.stack,t}function p(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const d=e=>String.fromCharCode.apply(null,e),h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class f{static from(e,t){return e instanceof this&&e.le===t?e:new f(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof f){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&u("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else u("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=f){return e instanceof DataView||e instanceof f?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||u("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new f(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return n=this.getUint8Array(e,t),h?h.decode(n):a?Buffer.from(n).toString("utf8"):decodeURIComponent(escape(d(n)));var n}getLatin1String(e=0,t=this.byteLength){let n=this.getUint8Array(e,t);return d(n)}getUnicodeString(e=0,t=this.byteLength){const n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return d(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function m(e,t){u(`${e} '${t}' was not loaded, try using full build of exifr.`)}class g extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||m(this.kind,e),t&&(e in t||function(e,t){u(`Unknown ${e} '${t}'.`)}(this.kind,e),t[e].enabled||m(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var b=new g("file parser"),v=new g("segment parser"),y=new g("file reader");let x=n.fetch;const w="Invalid input argument";function _(e,t){return(n=e).startsWith("data:")||n.length>1e4?E(e,t,"base64"):o&&e.includes("://")?k(e,t,"url",C):o?E(e,t,"fs"):i?k(e,t,"url",C):void u(w);var n}async function k(e,t,n,i){return y.has(n)?E(e,t,n):i?async function(e,t){let n=await t(e);return new f(n)}(e,i):void u(`Parser ${n} is not loaded`)}async function E(e,t,n){let i=new(y.get(n))(e,t);return await i.read(),i}const C=e=>x(e).then((e=>e.arrayBuffer())),M=e=>new Promise(((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)}));class D 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 O(e,t,n){let i=new D;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function T(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}const S=new Map,N=new Map,A=new Map,j=37500,L=37510,I=33723,z=34675,F=34665,B=34853,P=40965,U=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],H=["jfif","xmp","icc","iptc","ihdr"],$=["tiff",...H],W=["ifd0","ifd1","exif","gps","interop"],q=[...$,...W],V=["makerNote","userComment"],K=["translateKeys","translateValues","reviveValues","multiSegment"],G=[...K,"sanitize","mergeOutput","silentErrors"];class Y{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Q extends Y{get needed(){return this.enabled||this.deps.size>0}constructor(e,n,i,r){if(super(),t(this,"enabled",!1),t(this,"skip",new Set),t(this,"pick",new Set),t(this,"deps",new Set),t(this,"translateKeys",!1),t(this,"translateValues",!1),t(this,"reviveValues",!1),this.key=e,this.enabled=n,this.parse=this.enabled,this.applyInheritables(r),this.canBeFiltered=W.includes(e),this.canBeFiltered&&(this.dict=S.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:u(`Invalid options argument: ${i}`)}applyInheritables(e){let t,n;for(t of K)n=e[t],void 0!==n&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(i=o.indexOf(n),-1===i&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,ne(this.pick,this.deps)):this.enabled&&this.pick.size>0&&ne(this.pick,this.deps)}}var Z={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},J=new Map;class X extends Y{static useCached(e){let t=J.get(e);return void 0!==t||(t=new this(e),J.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):u(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=i?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=Z[e];for(e of q)this[e]=new Q(e,Z[e],void 0,this)}setupFromTrue(){let e;for(e of U)this[e]=Z[e];for(e of G)this[e]=Z[e];for(e of V)this[e]=!0;for(e of q)this[e]=new Q(e,!0,void 0,this)}setupFromArray(e){let t;for(t of U)this[t]=Z[t];for(t of G)this[t]=Z[t];for(t of V)this[t]=Z[t];for(t of q)this[t]=new Q(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,W)}setupFromObject(e){let t;for(t of(W.ifd0=W.ifd0||W.image,W.ifd1=W.ifd1||W.thumbnail,Object.assign(this,e),U))this[t]=te(e[t],Z[t]);for(t of G)this[t]=te(e[t],Z[t]);for(t of V)this[t]=te(e[t],Z[t]);for(t of $)this[t]=new Q(t,Z[t],e[t],this);for(t of W)this[t]=new Q(t,Z[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,W,q),!0===e.tiff?this.batchEnableWithBool(W,!0):!1===e.tiff?this.batchEnableWithUserValue(W,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,W):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,W)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;let t=ee(e,n);for(let[e,n]of t)ne(this[e].pick,n),this[e].enabled=!0}else if(t&&t.length){let e=ee(t,n);for(let[t,n]of e)ne(this[t].skip,n)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(j):t.skip.add(j),this.userComment?t.deps.add(L):t.skip.add(L),n.enabled||e.skip.add(700),i.enabled||e.skip.add(I),r.enabled||e.skip.add(z)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;i.needed&&(t.deps.add(P),e.deps.add(P)),t.needed&&e.deps.add(F),n.needed&&e.deps.add(B),this.tiff.enabled=W.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let e of W)this[e].finalizeFilters()}get onlyTiff(){return!H.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of $)this[e].enabled&&!v.has(e)&&m("segment parser",e)}}function ee(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=S.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function te(e,t){return void 0!==e?e:void 0!==t?t:void 0}function ne(e,t){for(let n of t)e.add(n)}t(X,"default",Z);class ie{constructor(e){t(this,"parsers",{}),t(this,"output",{}),t(this,"errors",[]),t(this,"pushToErrors",(e=>this.errors.push(e))),this.options=X.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?_(e,t):i&&!r&&e instanceof HTMLImageElement?_(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new f(e):i&&e instanceof Blob?k(e,t,"blob",M):void u(w)}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of b)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),u("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),c(n=e)?void 0:n;var n}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let n=await t.parse();t.assignToOutput(e,n)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,n=v.get("tiff",e);var i;if(t.tiff?i={start:0,type:"tiff"}:t.jpeg&&(i=await this.fileParser.getOrFindSegment("tiff")),void 0===i)return;let r=await this.fileParser.ensureSegmentChunk(i),o=this.parsers.tiff=new n(r,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function re(e,t){let n=new ie(t);return await n.read(e),n.parse()}var oe=Object.freeze({__proto__:null,parse:re,Exifr:ie,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:O,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X});class se{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new X({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof f?e:new f(e)}constructor(e,n={},i){t(this,"errors",[]),t(this,"raw",new Map),t(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=n,this.localOptions=n[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=A.get(t),i=N.get(t),r=S.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,c={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),c[t]=o;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}function ae(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function le(e){return e>=224&&e<=239}function ce(e,t,n){for(let[i,r]of v)if(r.canHandle(e,t,n))return i}t(se,"headerLength",4),t(se,"type",void 0),t(se,"multiSegment",!1),t(se,"canHandle",(()=>!1));class ue extends class{constructor(e,n,i){t(this,"errors",[]),t(this,"ensureSegmentChunk",(async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){u(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):u("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=n,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(v.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(...e){super(...e),t(this,"appSegments",[]),t(this,"jpegSegments",[]),t(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(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:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some((e=>{let t=v.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment})),i&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:c,wanted:u,remaining:p,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(n=l.getUint8(e+1),le(n)){if(i=l.getUint16(e+2),r=ce(l,e,i),r&&u.has(r)&&(o=v.get(r),s=o.findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!c&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||p.delete(r)):p.delete(r),0===p.size)))break;d.recordUnknownSegments&&(s=se.findPosition(l,e),s.marker=n,this.unknownSegments.push(s)),e+=i+1}else if(ae(n)){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)n=e[s],i=n[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map((([e,t])=>{let n=v.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}t(ue,"type","jpeg"),b.set("jpeg",ue);const pe=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class de extends se{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t];i=new Set(i);let o=i.size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=pe[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&u(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&u(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return""===(a=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(a=i.getString(e,o)).trim())?void 0:a;var a;if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o),n=s;for(let i=0;i<o;i++)t[i]=this.parseTagValue(r,e),e+=n;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:u(`Invalid tiff type ${e}`)}}}class he extends de{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&u("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&u(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,p(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(F),this.interopOffset=t.get(P),this.gpsOffset=t.get(B),this.xmp=t.get(700),this.iptc=t.get(I),this.icc=t.get(z),this.options.sanitize&&(t.delete(F),t.delete(P),t.delete(B),t.delete(700),t.delete(I),t.delete(z)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,p(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(P)),this.makerNote=e.get(j),this.userComment=e.get(L),this.options.sanitize&&(e.delete(P),e.delete(j),e.delete(L)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",fe(...e.get(2),e.get(1))),e.set("longitude",fe(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of W)if(e=this[t],!c(e))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function fe(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}t(he,"type","tiff"),t(he,"headerLength",10),v.set("tiff",he);var me=Object.freeze({__proto__:null,default:oe,Exifr:ie,fileParsers:b,segmentParsers:v,fileReaders:y,tagKeys:S,tagValues:N,tagRevivers:A,createDictionary:O,extendDictionary:T,fetchUrlAsArrayBuffer:C,readBlobAsArrayBuffer:M,chunkedProps:U,otherSegments:H,segments:$,tiffBlocks:W,segmentsAndBlocks:q,tiffExtractables:V,inheritables:K,allFormatters:G,Options:X,parse:re});const ge={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},be=Object.assign({},ge,{firstChunkSize:4e4,gps:[1,2,3,4]}),ve=Object.assign({},ge,{tiff:!1,ifd1:!0,mergeOutput:!1}),ye=Object.assign({},ge,{firstChunkSize:4e4,ifd0:[274]});async function xe(e){let t=new ie(ye);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}const we=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});if(e.rotateCanvas=!0,e.rotateCss=!0,"object"==typeof navigator){let t=navigator.userAgent;if(t.includes("iPad")||t.includes("iPhone")){let n=t.match(/OS (\d+)_(\d+)/);if(n){let[,t,i]=n,r=Number(t)+.1*Number(i);e.rotateCanvas=r<13.4,e.rotateCss=!1}}else if(t.includes("OS X 10")){let[,n]=t.match(/OS X 10[_.](\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<15}if(t.includes("Chrome/")){let[,n]=t.match(/Chrome\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<81}else if(t.includes("Firefox/")){let[,n]=t.match(/Firefox\/(\d+)/);e.rotateCanvas=e.rotateCss=Number(n)<77}}class _e extends f{constructor(...e){super(...e),t(this,"ranges",new ke),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t;t=a?s.allocUnsafe(e):new Uint8Array(e);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class ke{constructor(){t(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter((t=>Ee(e,t.offset,i)||Ee(e,t.end,i)));if(r.length>0){e=Math.min(e,...r.map((e=>e.offset))),i=Math.max(i,...r.map((e=>e.end))),t=i-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter((e=>!r.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some((t=>t.offset<=e&&n<=t.end))}}function Ee(e,t,n){return e<=t&&t<=n}class Ce extends _e{constructor(e,n){super(0),t(this,"chunksRead",0),this.input=e,this.options=n}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}y.set("blob",class extends Ce{async readWhole(){this.chunked=!1;let e=await M(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await M(i);return this.set(r,e,!0)}}),e.Exifr=ie,e.Options=X,e.allFormatters=G,e.chunkedProps=U,e.createDictionary=O,e.default=me,e.extendDictionary=T,e.fetchUrlAsArrayBuffer=C,e.fileParsers=b,e.fileReaders=y,e.gps=async function(e){let t=new ie(be);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}},e.gpsOnlyOptions=be,e.inheritables=K,e.orientation=xe,e.orientationOnlyOptions=ye,e.otherSegments=H,e.parse=re,e.readBlobAsArrayBuffer=M,e.rotation=async function(t){let n=await xe(t);return Object.assign({canvas:e.rotateCanvas,css:e.rotateCss},we[n])},e.rotations=we,e.segmentParsers=v,e.segments=$,e.segmentsAndBlocks=q,e.tagKeys=S,e.tagRevivers=A,e.tagValues=N,e.thumbnail=async function(e){let t=new ie(ve);await t.read(e);let n=await t.extractThumbnail();return n&&a?s.from(n):n},e.thumbnailOnlyOptions=ve,e.thumbnailUrl=async function(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}},e.tiffBlocks=W,e.tiffExtractables=V,Object.defineProperty(e,"__esModule",{value:!0})}(Kj.exports);const Gj=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;var Yj=function(e,t,n){var i,r;const o=Gj.exec(e),s=null!=(i=null!=(r=t.mimeType)?r:null==o?void 0:o[1])?i:"plain/text";let a;if(null!=o[2]){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);a=[t]}else a=[decodeURIComponent(o[3])];return n?new File(a,t.name||"",{type:s}):new Blob(a,{type:s})};var Qj=BT.exports,Zj=Kj.exports;const Jj=Yj,Xj=function(e){return e.startsWith("blob:")},eL=function(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)},tL={strings:{generatingThumbnails:"Generating thumbnails..."}};class nL extends Qj.UIPlugin{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&eL(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&Xj(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!Xj(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=tL;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,n){const i=URL.createObjectURL(e.data),r=new Promise(((e,t)=>{const n=new Image;n.src=i,n.addEventListener("load",(()=>{URL.revokeObjectURL(i),e(n)})),n.addEventListener("error",(e=>{URL.revokeObjectURL(i),t(e.error||new Error("Could not create thumbnail"))}))})),o=(0,Zj.rotation)(e.data).catch((()=>1));return Promise.all([r,o]).then((e=>{let[i,r]=e;const o=this.getProportionalDimensions(i,t,n,r.deg),s=this.rotateImage(i,r),a=this.resizeImage(s,o.width,o.height);return this.canvasToBlob(a,this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,n,i){let r=e.width/e.height;return 90!==i&&270!==i||(r=e.height/e.width),null!=t?{width:t,height:Math.round(t/r)}:null!=n?{width:Math.round(n*r),height:n}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/r)}}resizeImage(e,t,n){let i=this.protect(e),r=Math.ceil(Math.log2(i.width/t));r<1&&(r=1);let o=t*2**(r-1),s=n*2**(r-1);const a=2;for(;r--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),i=e,o=Math.round(o/a),s=Math.round(s/a)}return i}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return eL(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`,"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}nL.VERSION="2.2.2";var iL=nL;nL.prototype.canvasToBlob=function(e,t,n){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((i=>{e.toBlob(i,t,n)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>Jj(e.toDataURL(t,n),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))},nL.prototype.protect=function(e){const t=e.width/e.height,n=5e6,i=4096;let r=Math.floor(Math.sqrt(n*t)),o=Math.floor(n/Math.sqrt(n*t));if(r>i&&(r=i,o=Math.round(r/t)),o>i&&(o=i,r=Math.round(t*o)),e.width>r){const t=document.createElement("canvas");return t.width=r,t.height=o,t.getContext("2d").drawImage(e,0,0,r,o),t}return e},nL.prototype.rotateImage=function(e,t){let n=e.width,i=e.height;90!==t.deg&&270!==t.deg||(n=e.height,i=e.width);const r=document.createElement("canvas");r.width=n,r.height=i;const o=r.getContext("2d");return o.translate(n/2,i/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),r};const rL=vA;var oL=function(e){if("string"==typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"==typeof e&&rL(e)?[e]:null};var sL=function e(t,n,i,r){let{onSuccess:o}=r;t.readEntries((r=>{const s=[...n,...r];r.length?queueMicrotask((()=>{e(t,s,i,{onSuccess:o})})):o(s)}),(e=>{i(e),o(n)}))};const aL=sL;function lL(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),i=await new Promise((e=>{aL(n,[],t,{onSuccess:n=>e(n.map((e=>lL(e,t))))})}));yield*i}}}async function*cL(e,t){if("file"===e.kind){const n=await e.getFile();null!==n&&(n.relativePath=t?`${t}/${e.name}`:null,yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*cL(n,`${t}/${e.name}`)}const uL=RA;const pL=async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{var n;return{lastResortFile:e.getAsFile(),entry:null!=(n=await(null==e.getAsFileSystemHandle?void 0:e.getAsFileSystemHandle()))?n:lL(e.webkitGetAsEntry(),t)}})));for(const{lastResortFile:e,entry:i}of n)if(null!=i)try{yield*cL(i,"")}catch(n){e?yield e:t(n)}},dL=function(e){const t=uL(e.files);return Promise.resolve(t)};var hL=async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const i of pL(e,n))t.push(i);return t}catch{return dL(e)}},fL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mL(e,t){return e===t||!(!fL(e)||!fL(t))}function gL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!mL(e[n],t[n]))return!1;return!0}var bL=Object.freeze({__proto__:null,default:function(e,t){var n;void 0===t&&(t=gL);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}}}),vL=B(bL),yL="Expected a function",xL=0/0,wL="[object Symbol]",_L=/^\s+|\s+$/g,kL=/^[-+]0x[0-9a-f]+$/i,EL=/^0b[01]+$/i,CL=/^0o[0-7]+$/i,ML=parseInt,DL="object"==typeof R&&R&&R.Object===Object&&R,OL="object"==typeof self&&self&&self.Object===Object&&self,TL=DL||OL||Function("return this")(),SL=Object.prototype.toString,NL=Math.max,AL=Math.min,jL=function(){return TL.Date.now()};function LL(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function IL(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&SL.call(e)==wL}(e))return xL;if(LL(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=LL(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_L,"");var n=EL.test(e);return n||CL.test(e)?ML(e.slice(2),n?2:8):kL.test(e)?xL:+e}var zL=function(e,t,n){var i,r,o,s,a,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError(yL);function h(t){var n=i,o=r;return i=r=void 0,c=t,s=e.apply(o,n)}function f(e){return c=e,a=setTimeout(g,t),u?h(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=o}function g(){var e=jL();if(m(e))return b(e);a=setTimeout(g,function(e){var n=t-(e-l);return p?AL(n,o-(e-c)):n}(e))}function b(e){return a=void 0,d&&i?h(e):(i=r=void 0,s)}function v(){var e=jL(),n=m(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(p)return a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=IL(t)||0,LL(n)&&(u=!!n.leading,o=(p="maxWait"in n)?NL(IL(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},v.flush=function(){return void 0===a?s:b(jL())},v};const RL=zL,FL=FA,BL=BA;var PL=function(){let e=!1;return RL(((t,n)=>{const i=BL(t,n),r=i.contains(document.activeElement);if(r&&e)return;const o=i.querySelector("[data-uppy-super-focusable]");if(!r||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=i.querySelector(FL);null==t||t.focus({preventScroll:!0}),e=!1}}),260)};var UL=function(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)},HL=WN;var $L=function(e){const t={color:"#838999",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,HL.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,HL.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const n=e.split("/")[0],i=e.split("/")[1];return"text"===n?{color:"#5a5e69",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))}:"image"===n?{color:"#686de0",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,HL.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,HL.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,HL.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))}:"audio"===n?{color:"#068dbb",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))}:"video"===n?{color:"#19af67",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))}:"application"===n&&"pdf"===i?{color:"#e25149",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))}:"application"===n&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(i)?{color:"#00C469",icon:(0,HL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,HL.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t},WL=WN;const qL=$L;var VL=function(e){const{file:t}=e;if(t.preview)return(0,WL.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:n,icon:i}=qL(t.type);return(0,WL.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,WL.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:n}},i),(0,WL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,WL.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))},KL=WN;var GL=function(e){const{file:t,toggleFileCard:n,i18n:i,metaFields:r}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>((e,t)=>{const n=t.filter((t=>t.id===e));return n[0].name})(e,r))).join(", ");return(0,KL.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},i("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,KL.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>n(!0,t.id)},i("editFile")))},YL=WN;const QL=VL,ZL=GL,JL=$L;var XL=WN;function eI(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 tI(e){return(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":eI(e),title:eI(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 nI(e){let{children:t}=e;return(0,XL.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function iI(e){let{progress:t}=e;const n=2*Math.PI*15;return(0,XL.h)("g",null,(0,XL.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,XL.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":n,"stroke-dashoffset":n-n/100*t}))}const rI="...";var oI=WN;const sI=YT,aI=function(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=rI.length+1)return`${e.slice(0,t-1)}…`;const n=t-rI.length,i=Math.ceil(n/2),r=Math.floor(n/2);return e.slice(0,i)+rI+e.slice(-r)},lI=GL,cI=e=>{let{file:t,onClick:n}=e;return t.error?(0,oI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:n,type:"button"},"?"):null};var uI=WN;const pI=function(e,t){return t||(t="Copy the URL below"),new Promise((n=>{const i=document.createElement("textarea");i.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),i.value=e,document.body.appendChild(i),i.select();const r=()=>{document.body.removeChild(i),window.prompt(t,e),n()};try{return document.execCommand("copy")?(document.body.removeChild(i),n()):r()}catch(e){return document.body.removeChild(i),r()}}))};function dI(e){let{file:t,uploadInProgressOrComplete:n,metaFields:i,canEditFile:r,i18n:o,onClick:s}=e;return!n&&i&&i.length>0||!n&&r(t)?(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,uI.h)("g",{fillRule:"evenodd"},(0,uI.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,uI.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,uI.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function hI(e){let{i18n:t,onClick:n,file:i}=e;return(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:i.meta.name}),title:t("removeFile",{file:i.meta.name}),onClick:()=>n()},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,uI.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,uI.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}function fI(e){const{i18n:t}=e;return(0,uI.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>((e,t)=>{pI(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))})(t,e)},(0,uI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,uI.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}var mI=function(e){const{uppy:t,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:a,i18n:l,toggleFileCard:c,openFileEditor:u}=e;return(0,uI.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,uI.h)(dI,{i18n:l,file:n,uploadInProgressOrComplete:i,canEditFile:r,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,n.id):u(n)}}),s&&n.uploadURL?(0,uI.h)(fI,{file:n,uppy:t,i18n:l}):null,a?(0,uI.h)(hI,{i18n:l,file:n,uppy:t,onClick:()=>e.uppy.removeFile(n.id,"removed-by-user")}):null)},gI=WN;const bI=Bu.exports,vI=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0},yI=function(e){return(0,YL.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:JL(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&(0,YL.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},(0,YL.h)("span",{hidden:!0},e.file.meta.name)),(0,YL.h)(QL,{file:e.file}),(0,YL.h)(ZL,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},xI=function(e){return e.file.progress.uploadStarted?e.isUploaded?(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,XL.h)(nI,null,(0,XL.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,XL.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,XL.h)(tI,e,(0,XL.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,XL.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,XL.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,XL.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,XL.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,XL.h)(tI,e,(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage}),e.file.isPaused?(0,XL.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,XL.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,XL.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,XL.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,XL.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,XL.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage})))):(0,XL.h)(tI,e,(0,XL.h)(nI,null,(0,XL.h)(iI,{progress:e.file.progress.percentage}),(0,XL.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null},wI=function(e){const{file:t}=e;return(0,oI.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,oI.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:n}=e.file.meta;return(0,oI.h)("div",{className:"uppy-Dashboard-Item-name",title:n},aI(n,e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,oI.h)(cI,{file:e.file,onClick:()=>alert(e.file.error)})),(0,oI.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{const{author:t}=e.file.meta,{providerName:n}=e.file.remote,i=`·`;return t?(0,oI.h)("div",{className:"uppy-Dashboard-Item-author"},(0,oI.h)("a",{href:`${t.url}?utm_source=Companion&utm_medium=referral`,target:"_blank",rel:"noopener noreferrer"},aI(t.name,13)),n?(0,oI.h)(oI.Fragment,null,` ${i} `,n,` ${i} `):null):null})(e),(e=>e.file.size&&(0,oI.h)("div",{className:"uppy-Dashboard-Item-statusSize"},sI(e.file.size)))(e),(e=>e.file.isGhost&&(0,oI.h)("span",null," • ",(0,oI.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,oI.h)(lI,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))},_I=mI;class kI extends gI.Component{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!vI(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,n=e.progress.uploadComplete&&!t&&!e.error,i=e.progress.uploadStarted||t,r=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let a=(this.props.individualCancellation||!r)&&!n;n&&this.props.showRemoveButtonAfterComplete&&(a=!0);const l=bI({"uppy-Dashboard-Item":!0,"is-inprogress":r&&!this.props.recoveredState,"is-processing":t,"is-complete":n,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,gI.h)("div",{className:l,id:`uppy_${e.id}`,role:this.props.role},(0,gI.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,gI.h)(yI,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,gI.h)(xI,{uppy:this.props.uppy,file:e,error:o,isUploaded:n,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,gI.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,gI.h)(wI,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,gI.h)(_I,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:a,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:i,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}var EI=kI,CI=WN;function MI(){return MI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},MI.apply(this,arguments)}const DI={position:"relative",width:"100%",minHeight:"100%"},OI={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class TI extends CI.Component{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:n,renderRow:i,overscanCount:r=10,...o}=e;const{offset:s,height:a}=this.state;let l=Math.floor(s/n),c=Math.floor(a/n);r&&(l=Math.max(0,l-l%r),c+=r);const u=l+c+4,p=t.slice(l,u),d={...DI,height:t.length*n},h={...OI,top:l*n};return(0,CI.h)("div",MI({onScroll:this.handleScroll},o),(0,CI.h)("div",{role:"presentation",style:d},(0,CI.h)("div",{role:"presentation",style:h},p.map(i))))}}var SI=WN;function NI(){return NI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},NI.apply(this,arguments)}const AI=Bu.exports,jI=EI,LI=TI;var II=WN;let zI;zI=Symbol.for("uppy test: disable unused locale key warning");class RI extends II.Component{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,II.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>(0,II.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,II.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,II.h)("g",{fill:"none",fillRule:"evenodd"},(0,II.h)("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),(0,II.h)("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),(0,II.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const n=this.props.acquirers.length;return(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===n},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),n=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,r=i.charAt(0).toUpperCase()+i.slice(1);return(0,II.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray(`dropPasteImport${r}`,{browseFiles:t,browseFolders:n,browse:t}):this.props.i18nArray(`dropPaste${r}`,{browseFiles:t,browseFolders:n,browse:t}))},this.renderAcquirer=e=>(0,II.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,II.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":`uppy-DashboardContent-panel--${e.id}`,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),(0,II.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const n=[...e],i=n.splice(e.length-2,e.length);return(0,II.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),n.map((e=>this.renderAcquirer(e))),(0,II.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))}}[zI](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,II.h)("span",null,(0,II.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,II.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,II.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,II.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return(0,II.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),(0,II.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,II.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}var FI=RI,BI=WN;const PI=Bu.exports,UI=FI;var HI=e=>(0,BI.h)("div",{className:PI("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},(0,BI.h)("div",{className:"uppy-DashboardContent-bar"},(0,BI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,BI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,BI.h)(UI,e));var $I=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()},WI=WN;const qI=Bu.exports,VI=$I;var KI=function(e){let{activePickerPanel:t,className:n,hideAllPanels:i,i18n:r,state:o,uppy:s}=e;return(0,WI.h)("div",{className:qI("uppy-DashboardContent-panel",n),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:`uppy-DashboardContent-panel--${t.id}`,onDragOver:VI,onDragLeave:VI,onDrop:VI,onPaste:VI},(0,WI.h)("div",{className:"uppy-DashboardContent-bar"},(0,WI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},r("importFrom",{name:t.name})),(0,WI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:i},r("cancel"))),(0,WI.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))},GI=WN;const YI=Bu.exports;var QI=function(e){const t=e.files[e.fileCardFor];return(0,GI.h)("div",{className:YI("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,GI.h)("div",{className:"uppy-DashboardContent-bar"},(0,GI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,GI.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,GI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:e.hideAllPanels},e.i18n("cancel")),(0,GI.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,GI.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},ZI=WN;const JI="error",XI="waiting",ez="preprocessing",tz="uploading",nz="postprocessing",iz="complete",rz="paused";function oz(e){let{files:t,i18n:n,isAllComplete:i,isAllErrored:r,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:a,processingFiles:l}=e;const c=function(e,t,n,i){if(void 0===i&&(i={}),e)return JI;if(t)return iz;if(n)return rz;let r=XI;const o=Object.keys(i);for(let e=0;e<o.length;e++){const{progress:t}=i[o[e]];if(t.uploadStarted&&!t.uploadComplete)return tz;t.preprocess&&r!==tz&&(r=ez),t.postprocess&&r!==tz&&r!==ez&&(r=nz)}return r}(r,i,o,t);switch(c){case"uploading":return n("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return n("processingXFiles",{smart_count:l.length});case"paused":return n("uploadPaused");case"waiting":return n("xFilesSelected",{smart_count:a.length});case"complete":return n("uploadComplete")}}var sz=function(e){const{i18n:t,isAllComplete:n,hideCancelButton:i,maxNumberOfFiles:r,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:a}=e;return a&&r&&(a=e.totalFileCount<e.maxNumberOfFiles),(0,ZI.h)("div",{className:"uppy-DashboardContent-bar"},n||i?(0,ZI.h)("div",null):(0,ZI.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,ZI.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,ZI.h)(oz,e)),a?(0,ZI.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,ZI.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,ZI.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,ZI.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,ZI.h)("div",null))},az=WN,lz=KT;const cz=Bu.exports,uz=$L,pz=$I,dz=VL;class hz extends az.Component{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState((n=>{let{formState:i}=n;return{formState:{...i,[t]:e}}}))},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{const e=this.props.files[this.props.fileCardFor];this.props.uppy.emit("file-editor:cancel",e),this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map((e=>{const n=`uppy-Dashboard-FileCard-input-${e.id}`,i=this.props.requiredMetaFields.includes(e.id);return(0,az.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,az.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:n},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:i,form:this.form.id},az.h):(0,az.h)("input",{className:t.text,id:n,form:this.form.id,type:e.type||"text",required:i,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))};const t=this.props.files[this.props.fileCardFor],n=this.getMetaFields()||[],i={};n.forEach((e=>{i[e.id]=t.meta[e.id]||""})),this.state={formState:i},this.form.id=(0,lz.nanoid)()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return(0,az.h)("div",{className:cz("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:pz,onDragLeave:pz,onDrop:pz,onPaste:pz},(0,az.h)("div",{className:"uppy-DashboardContent-bar"},(0,az.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:(0,az.h)("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),(0,az.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,az.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:uz(e.type).color}},(0,az.h)(dz,{file:e}),t&&(0,az.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),(0,az.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,az.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),(0,az.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}var fz=hz,mz=WN;const gz=Bu.exports,bz="uppy-transition-slideDownUp",vz=250;class yz extends mz.Component{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,n=(0,mz.toChildArray)(e.children)[0];if(t===n)return null;const i={cachedChildren:n};n&&!t&&(i.className=`${bz}-enter`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${bz}-enter ${bz}-enter-active`}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),vz)}))),t&&!n&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=`${bz}-leave`,cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:`${bz}-leave ${bz}-leave-active`}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),vz)}))),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,mz.cloneElement)(e,{className:gz(t,e.props.className)}):null}}var xz=WN;function wz(){return wz=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wz.apply(this,arguments)}const _z=Bu.exports,kz=UL,Ez=e=>{const t=0===e.totalFileCount,n=AI("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),i=1===e.itemsPerRow?71:200,r={id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,recoveredState:e.recoveredState,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail},o=Object.keys(e.files);e.recoveredState&&o.sort(((t,n)=>e.files[n].isGhost-e.files[t].isGhost));const s=function(e,t){const n=[];let i=[];return e.forEach((e=>{i.length<t?i.push(e):(n.push(i),i=[e])})),i.length&&n.push(i),n}(o,e.itemsPerRow);return(0,SI.h)(LI,{class:n,role:"list",data:s,renderRow:t=>(0,SI.h)("div",{role:"presentation",key:t[0]},t.map((t=>(0,SI.h)(jI,NI({key:t,uppy:e.uppy},r,{role:"listitem",openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,file:e.files[t]}))))),rowHeight:i})},Cz=FI,Mz=HI,Dz=KI,Oz=QI,Tz=sz,Sz=fz,Nz=yz,Az=900,jz=700,Lz=576,Iz=400;var zz=WN,Rz=BT.exports,Fz=KT,Bz=zA;function Pz(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uz=0;function Hz(e){return"__private_"+Uz+++"_"+e}const $z=qA.exports,Wz=Aj.exports,qz=iL,Vz=oL,Kz=RA,Gz=hL,Yz=vL,Qz=FA,Zz=PL,Jz=function(e){const t=0===e.totalFileCount,n=e.containerWidth>Lz,i=_z({"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>Lz,"uppy-size--lg":e.containerWidth>jz,"uppy-size--xl":e.containerWidth>Az,"uppy-size--height-md":e.containerHeight>Iz,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let r=1;e.containerWidth>Az?r=5:e.containerWidth>jz?r=4:e.containerWidth>Lz&&(r=3);const o=e.showSelectedFiles&&!t,s=e.recoveredState?Object.keys(e.recoveredState.files).length:null,a=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null;return(0,xz.h)("div",{className:i,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&kz(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,xz.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,xz.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,xz.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,xz.h)("span",{"aria-hidden":"true"},"×")),(0,xz.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,xz.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),o&&(0,xz.h)(Tz,e),s&&(0,xz.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,xz.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,xz.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,xz.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,xz.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,xz.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,xz.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,xz.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},a>0?e.i18n("recoveredXFiles",{smart_count:a}):e.i18n("recoveredAllFiles"))),o?(0,xz.h)(Ez,wz({},e,{itemsPerRow:r})):(0,xz.h)(Cz,wz({},e,{isSizeMD:n})),(0,xz.h)(Nz,null,e.showAddFilesPanel?(0,xz.h)(Mz,wz({key:"AddFiles"},e,{isSizeMD:n})):null),(0,xz.h)(Nz,null,e.fileCardFor?(0,xz.h)(Sz,wz({key:"FileCard"},e)):null),(0,xz.h)(Nz,null,e.activePickerPanel?(0,xz.h)(Dz,wz({key:"Picker"},e)):null),(0,xz.h)(Nz,null,e.showFileEditor?(0,xz.h)(Oz,wz({key:"Editor"},e)):null),(0,xz.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))))},Xz={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}."}}},eR=Yz.default||Yz,tR=9,nR=27;function iR(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}function rR(){return(0,zz.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,zz.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var oR=Hz("openFileEditorWhenFilesAdded"),sR=Hz("attachRenderFunctionToTarget"),aR=Hz("isTargetSupported"),lR=Hz("getAcquirers"),cR=Hz("getProgressIndicators"),uR=Hz("getEditors");class pR extends Rz.UIPlugin{constructor(e,t){var n;super(e,t),n=this,this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,n=e.title||t,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"editor"!==i){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const r={id:t,name:n,type:i},o=this.getPluginState().targets.slice();return o.push(r),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||this.setPluginState(t)},this.showPanel=e=>{const{targets:t}=this.getPluginState(),n=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:n,activeOverlayType:"PickerPanel"})},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return Pz(this,uR)[uR](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),n=Pz(this,uR)[uR](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),n.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();Pz(this,uR)[uR](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.hideAllPanels()},this.openModal=()=>{const{promise:e,resolve:t}=iR();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:i,isClosing:r}=n.getPluginState();if(i||r)return;const{promise:o,resolve:s}=iR();if(n.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),n.opts.animateOpenClose){n.setPluginState({isClosing:!0});const e=()=>{n.setPluginState({isHidden:!0,isClosing:!1}),n.superFocus.cancel(),n.savedActiveElement.focus(),n.el.removeEventListener("animationend",e,!1),s()};n.el.addEventListener("animationend",e,!1)}else n.setPluginState({isHidden:!0}),n.superFocus.cancel(),n.savedActiveElement.focus(),s();var a;(document.removeEventListener("keydown",n.handleKeyDownInModal),t)&&(n.opts.browserBackButtonClose&&null!=(a=history.state)&&a[n.modalName]&&history.back());return n.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log(`[Dashboard] Dark mode is ${t?"on":"off"}`),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const n=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",n):this.uppy.emit("dashboard:file-edit-complete",n),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:n,height:i}=t.contentRect;this.uppy.log(`[Dashboard] resized: ${n} / ${i}`,"debug"),this.setPluginState({containerWidth:n,containerHeight:i,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout","debug"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableAllFocusableElements=e=>{const t=Kz(this.el.querySelectorAll(Qz));e?t.forEach((e=>{const t=e.getAttribute("tabindex");t&&(e.dataset.inertTabindex=t),e.setAttribute("tabindex","-1")})):t.forEach((e=>{"inertTabindex"in e.dataset?e.setAttribute("tabindex",e.dataset.inertTabindex):e.removeAttribute("tabindex")})),this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{e.keyCode===nR&&this.requestCloseModal(e),e.keyCode===tR&&Bz.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=Kz(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=Kz(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,n;e.preventDefault(),e.stopPropagation();const i=(()=>{let t=!0;return this.uppy.iteratePlugins((n=>{null!=n.canHandleRootDrop&&n.canHandleRootDrop(e)&&(t=!0)})),t})(),r=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!i&&!r||this.opts.disabled||this.opts.disableLocalFiles&&(r||!i)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)},this.handleDragLeave=e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let i=!1;const r=await Gz(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),i||(this.uppy.info(e.message,"error"),i=!0)}});r.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(r)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{e.keyCode===tR&&Bz.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,oR,{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=Vz(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",Pz(this,oR)[oR])},this.removeEvents=()=>{const e=Vz(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",Pz(this,oR)[oR])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,n=0===this.uppy.getState().info.length,i=!this.opts.inline;n&&(i||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableAllFocusableElements(!1),this.superFocusOnEachUpdate()):this.disableAllFocusableElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,sR,{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,aR,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,lR,{writable:!0,value:eR((e=>e.filter((e=>"acquirer"===e.type&&Pz(this,aR)[aR](e))).map(Pz(this,sR)[sR])))}),Object.defineProperty(this,cR,{writable:!0,value:eR((e=>e.filter((e=>"progressindicator"===e.type)).map(Pz(this,sR)[sR])))}),Object.defineProperty(this,uR,{writable:!0,value:eR((e=>e.filter((e=>"editor"===e.type)).map(Pz(this,sR)[sR])))}),this.render=e=>{const t=this.getPluginState(),{files:n,capabilities:i,allowNewUpload:r}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m}=this.uppy.getObjectOfFilesPerState(),g=Pz(this,lR)[lR](t.targets),b=Pz(this,cR)[cR](t.targets),v=Pz(this,uR)[uR](t.targets);let y;return y="auto"===this.opts.theme?i.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)),Jz({state:e,isHidden:t.isHidden,files:n,newFiles:o,uploadStartedFiles:s,completeFiles:a,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:u,processingFiles:p,isUploadStarted:d,isAllComplete:h,isAllErrored:f,isAllPaused:m,totalFileCount:Object.keys(n).length,totalProgress:e.totalProgress,allowNewUpload:r,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,disableAllFocusableElements:this.disableAllFocusableElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:b,editors:v,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:i.resumableUploads||!1,individualCancellation:i.individualCancellation,isMobileDevice:i.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},this.discoverProviderPlugins=()=>{this.uppy.iteratePlugins((e=>{e&&!e.target&&e.opts&&e.opts.target===this.constructor&&this.addTarget(e)}))},this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:n,allowMultipleUploadBatches:i}=this.uppy.opts;(n||i)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:r}=this.opts;r&&this.mount(r,this);(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.mount(this,t)})),this.opts.disableStatusBar||this.uppy.use($z,{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(Wz,{id:`${this.id}:Informer`,target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(qz,{id:`${this.id}:ThumbnailGenerator`,thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log(`[Dashboard] Dark mode is ${o?"on":"off"}`),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),this.discoverProviderPlugins(),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin(`${this.id}:Informer`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin(`${this.id}:StatusBar`);e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName=`uppy-Dashboard-${(0,Fz.nanoid)()}`,this.defaultLocale=Xz;const i={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:rR,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.reset(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...i,...t},this.i18nInit(),this.superFocus=Zz(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}pR.VERSION="2.4.3",IA.exports=pR;const dR=nx.exports,hR=BT.exports.Uppy,fR=dR.instanceOf(hR).isRequired,mR=dR.arrayOf(dR.string),gR=dR.shape({strings:dR.object,pluralize:dR.func}),bR=dR.shape({id:dR.string.isRequired,name:dR.string.isRequired,placeholder:dR.string}),vR=dR.oneOfType([dR.arrayOf(bR),dR.func]),yR=dR.oneOfType([dR.string,dR.number]);var xR={uppy:fR,locale:gR,dashboard:{uppy:fR,inline:dR.bool,plugins:mR,width:yR,height:yR,showProgressDetails:dR.bool,hideUploadButton:dR.bool,hideProgressAfterFinish:dR.bool,note:dR.string,metaFields:vR,proudlyDisplayPoweredByUppy:dR.bool,disableStatusBar:dR.bool,disableInformer:dR.bool,disableThumbnailGenerator:dR.bool,thumbnailWidth:dR.number,locale:gR}};const wR=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_R=/^(aria-|data-)/;var kR=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return _R.test(t)||wR.includes(t)})));var ER=function(e,t){return Object.keys(e.props).some((n=>!((e,t)=>Object.prototype.hasOwnProperty.call(e,t))(e.validProps,n)&&e.props[n]!==t[n]))};const CR=t,MR=IA.exports,DR=xR.dashboard,OR=kR,TR=ER,SR=CR.createElement;class NR extends CR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(TR(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(MR,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=OR(this.props),SR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}NR.propTypes=DR,NR.defaultProps={inline:!0};const AR=t,jR=nx.exports,LR=IA.exports,IR=xR.dashboard,zR=kR,RR=ER,FR=AR.createElement;class BR extends AR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(RR(this,e)){const e={...this.props,onRequestCloseModal:this.props.onRequestClose};delete e.uppy,this.plugin.setOptions(e)}e.open&&!this.props.open?this.plugin.closeModal():!e.open&&this.props.open&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DashboardModal",...this.props,onRequestCloseModal:this.props.onRequestClose};t.target||(t.target=this.container),delete t.uppy,e.use(LR,t),this.plugin=e.getPlugin(t.id),this.props.open&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=zR(this.props),FR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}BR.propTypes={target:"undefined"!=typeof window?jR.instanceOf(window.HTMLElement):jR.any,open:jR.bool,onRequestClose:jR.func,closeModalOnClickOutside:jR.bool,disablePageScrollWhenModalOpen:jR.bool,...IR};var PR={exports:{}},UR=BT.exports,HR=WN;const $R=RA,WR=UL,qR=hL,VR={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class KR extends UR.UIPlugin{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const i=await qR(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});i.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=VR;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=WR(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}onInputChange(e){const t=$R(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,n;e.preventDefault(),e.stopPropagation();const{types:i}=e.dataTransfer,r=i.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!r||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e)}handleDragLeave(e){var t,n;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,HR.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,HR.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,HR.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,HR.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,HR.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,HR.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e=`uppy-u-reset\n uppy-DragDrop-container\n ${this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":""}\n ${this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":""}\n `,t={width:this.opts.width,height:this.opts.height};return(0,HR.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,HR.h)("div",{className:"uppy-DragDrop-inner"},KR.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}KR.VERSION="2.1.2";const GR=t,YR=PR.exports=KR,QR=xR,ZR=kR,JR=ER,XR=GR.createElement;class eF extends GR.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(JR(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:DragDrop",...this.props,target:this.container};delete t.uppy,e.use(YR,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=ZR(this.props),XR("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}eF.propTypes={uppy:QR.uppy,locale:QR.locale},eF.defaultProps={};var tF=eF,nF={exports:{}},iF=WN,rF=BT.exports;class oF extends rF.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,n=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,iF.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":n},(0,iF.h)("div",{className:"uppy-ProgressBar-inner",style:{width:`${t}%`}}),(0,iF.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}oF.VERSION="2.1.2",nF.exports=oF;const sF=t,aF=nx.exports,lF=nF.exports,cF=xR.uppy,uF=kR,pF=ER,dF=sF.createElement;class hF extends sF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(pF(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:ProgressBar",...this.props,target:this.container};delete t.uppy,e.use(lF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=uF(this.props),dF("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}hF.propTypes={uppy:cF,fixed:aF.bool,hideAfterFinish:aF.bool},hF.defaultProps={};const fF=t,mF=nx.exports,gF=qA.exports,bF=xR.uppy,vF=kR,yF=ER,xF=fF.createElement;class wF extends fF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(yF(this,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:StatusBar",...this.props,target:this.container};delete t.uppy,e.use(gF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return this.validProps=vF(this.props),xF("div",{className:"uppy-Container",ref:e=>{this.container=e},...this.validProps})}}wF.propTypes={uppy:bF,hideAfterFinish:mF.bool,showProgressDetails:mF.bool},wF.defaultProps={};var _F={exports:{}},kF=BT.exports,EF=WN;const CF=RA,MF={strings:{chooseFiles:"Choose files"}};class DF extends kF.UIPlugin{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=MF;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=CF(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,EF.h)("div",{className:"uppy-FileInput-container"},(0,EF.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,EF.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}DF.VERSION="2.1.2",_F.exports=DF;const OF=nx.exports,TF=t,SF=_F.exports,NF=xR,AF=TF.createElement;class jF extends TF.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:FileInput",...this.props,target:this.container};delete t.uppy,e.use(SF,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return AF("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}jF.propTypes={uppy:NF.uppy,locale:NF.locale,pretty:OF.bool,inputName:OF.string},jF.defaultProps={};const{useEffect:LF,useRef:IF}=t,zF=BT.exports.Uppy;class RF extends BT.exports.BasePlugin{constructor(e,t){super(e,t),iv(this,"upload",(e=>{if(Le(e))return Promise.resolve();const t=e.map((e=>this.uploadFile(this.uppy.getFile(e))));return Promise.all(t)})),iv(this,"uploadFile",(async e=>{this.uppy.on("file-removed",(n=>{n.id===e.id&&t.abort()})),this.uppy.on("upload-cancel",(n=>{n===e.id&&t.abort()})),this.uppy.on("cancel-all",(()=>t.abort()));const t=new EC({file:e.data,url:this.opts.directUploadUrl,progress:t=>{t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total,progress:Math.round(t.loaded/t.total*100)})}});try{const n=await t.create();return this.uppy.setFileState(e.id,{response:{status:"success"}}),this.uppy.emit("upload-success",e,n),e}catch(t){throw this.uppy.setFileState(e.id,{response:{status:"error"}}),this.uppy.emit("upload-error",e,t),t}})),this.type="uploader",this.id=t.id||"ActiveStorageUpload",this.title=t.title||"Active Storage Upload"}install(){this.uppy.addUploader(this.upload)}uninstall(){this.uppy.removeUploader(this.upload)}}const FF=e=>{var n;let{uppy:i}=e;const[s,a]=r(0);o((()=>{i.on("upload-progress",((e,t)=>{let{progress:n}=t;return a(n)}))}),[i]);const l=`${s}%`;return t.createElement("div",{className:"ne-media-uploader__progress"},t.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),t.createElement("p",{className:"ne-media-uploader__progress-file"},null===(n=i.getFiles()[0])||void 0===n?void 0:n.name),t.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},t.createElement("div",{className:"neeto-editor-progress-bar__percent"},t.createElement("p",null,l),t.createElement(g,{icon:pD,size:"small",style:"text",onClick:()=>i.cancelAll()})),t.createElement("div",{className:"neeto-editor-progress-bar__indicator"},t.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:l}}))))},BF=e=>{let{isImage:n,endpoint:i,onSuccess:o}=e;const[s,a]=r(!1),[l,c]=r(""),u=n?IT:zT,p=function(e){if("function"!=typeof e)throw new TypeError("useUppy: expected a function that returns a new Uppy instance");const t=IF(void 0);if(void 0===t.current&&(t.current=e(),!(t.current instanceof zF)))throw new TypeError(`useUppy: factory function must return an Uppy instance, got ${typeof t.current}`);return LF((()=>()=>{t.current.close({reason:"unmount"}),t.current=void 0}),[t]),t.current}((()=>new LA({...u,onBeforeFileAdded:e=>{const{maxFileSize:t,allowedFileTypes:n}=u.restrictions;return e.size>t?(c(`File size is too large. Max size is ${gO(u.restrictions.maxFileSize)}.`),!1):!!n.includes(`.${e.extension}`)||(c(`File type is not permitted. Allowed file types are: ${n.join(", ")}.`),!1)}}).use(RF,{directUploadUrl:i,...RT}).on("upload",(()=>a(!0))).on("upload-success",((e,t)=>{let{blob_url:n}=t;return o(n)})).on("cancel-all",(()=>a(!1))).on("complete",(()=>a(!1)))));return s?t.createElement(FF,{uppy:p}):t.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},t.createElement(tF,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:p,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${gO(u.restrictions.maxFileSize)}`}),l&&t.createElement("p",{className:"ne-media-uploader__dnd--error"},l))},PF=e=>{let{isImage:n,url:i,editor:o,onClose:s,alt:a=""}=e;const[l,c]=r(a||""),[u,p]=r(!1),d=()=>{n?o.chain().focus().setFigure({src:i,caption:l,alt:l}).run():o.chain().focus().setVideo({src:i,caption:l,alt:l}).run(),s()};return t.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},u?t.createElement("div",{className:"ne-media-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected media cannot be displayed. Please try again.")):t.createElement(t.Fragment,null,n?t.createElement("img",{loading:"lazy",src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}):t.createElement("video",{src:i,onError:e=>{let{currentTarget:t}=e;p(!0),t.onerror=null}}),t.createElement(v,{autoFocus:!0,label:"Caption",placeholder:"Enter a caption",value:l,onChange:e=>c(e.target.value)})),t.createElement("div",{className:"ne-media-editor__footer"},t.createElement(g,{disabled:u,label:"Done",onClick:d}),t.createElement(g,{label:"Cancel",style:"text",onClick:s})))};var UF={},HF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function i(e,t){return t._once=!0,n(e,t),this}function r(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&r(e,t),t.apply(n,o)})),this}return HF({},e,{on:n,once:i,off:r,emit:o})},WF=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,i=void 0,r=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),v={all:function(){return k(b.children)},new:function(){return k(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},y=[M,D,O],x=[T,S,N,A],w=$F({pack:I,update:z,resize:R});return w;function _(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function C(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function M(){i=C()}function D(){r=-1===i?m[m.length-1]:m[i]}function O(){s=E(r.columns)}function T(){p=v[t?"new":"all"]()}function S(){0!==p.length&&(d=p.map((function(e){return e.clientWidth})),h=p.map((function(e){return e.clientHeight})))}function N(){p.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*d[t]+o*r.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=d[t],u=h[t],c&&u&&(s[o]+=u+r.gutter)}))}function A(){b.style.position="relative",b.style.width=r.columns*c+(r.columns-1)*r.gutter+"px",b.style.height=Math.max.apply(Math,s)-r.gutter+"px"}function j(){n||(window.requestAnimationFrame(L),n=!0)}function L(){i!==C()&&(I(),w.emit("resize",r)),n=!1}function I(){return t=!1,_(y.concat(x)),w.emit("pack")}function z(){return t=!0,_(x),w.emit("update")}function R(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",j),w}}}),qF=B(WF),VF={exports:{}},KF={exports:{}};!function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=t,o=a(r),s=a(nx.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;i=this.props.isReverse?o:this.calculateOffset(e,o)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,r=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return r&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(i,c,u)}}]),t}(r.Component);l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},n.default=l,e.exports=n["default"]}(KF,KF.exports),VF.exports=KF.exports,Object.defineProperty(UF,"__esModule",{value:!0});var GF,YF,QF=UF.default=void 0,ZF=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),JF=t,XF=iB(JF),eB=iB(nx.exports),tB=iB(qF),nB=iB(VF.exports);function iB(e){return e&&e.__esModule?e:{default:e}}function rB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var sB=(YF=GF=function(e){function t(){var e,n,i;rB(this,t);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=oB(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),i.setContainerRef=function(e){i.masonryContainer=e},i.forcePack=function(){i.masonryContainer&&i.state.instance.pack()},i.forceUpdate=function(){i.masonryContainer&&i.state.instance.update()},i.createNewInstance=function(){var e=i.props,t=e.packed,n=e.sizes,r=e.children,o=e.position,s=(0,tB.default)({container:i.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),r.length>0&&s.pack(),i.setState((function(){return{instance:s}}))},oB(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,JF.Component),ZF(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.style;e.pack,e.packed,e.position,e.sizes;var r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return XF.default.createElement(nB.default,r,XF.default.createElement("div",{ref:this.setContainerRef,className:n,style:i},t))}}]),t}(),GF.propTypes={children:eB.default.arrayOf(eB.default.element).isRequired,className:eB.default.string,initialLoad:eB.default.bool,pack:eB.default.bool,packed:eB.default.string,position:eB.default.bool,sizes:eB.default.array,style:eB.default.object},GF.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},YF);QF=UF.default=sB;const aB=e=>{let{onSubmit:n,unsplashApiKey:i}=e;const a=s(null),[l,c]=r(""),[u,p]=r(!1),[d,h]=r([]),[m,g]=r(1),[b,y]=r(!0),[x,w]=r(!1),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,i]=r(e);return o((()=>{const n=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(n)}}),[e]),n}(l||"latest");o((()=>{k(1)}),[_]);const k=async e=>{try{w(!0),p(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:i}=e;return Tk.get(Hu,{headers:{Authorization:`Client-ID ${i}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:_,apiKey:i}),{data:{results:n,total_pages:r}}=t;h(1===e?n:[...d,...n]),g(e+1),y(e<r)}catch{p(!0)}finally{w(!1)}};return t.createElement("div",{className:"neeto-editor-unsplash-wrapper"},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:l,onChange:e=>{let{target:{value:t}}=e;c(t)}}),u&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!u&&!x&&Be(d)&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!u&&t.createElement("div",{className:"neeto-editor-unsplash-container"},t.createElement(QF,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:b,loadMore:()=>{!x&&b&&m>1&&k(m)},loader:t.createElement(f,null),ref:a,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},d&&d.map(((e,i)=>t.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${i}`,key:i},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},t.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${i}`},t.createElement("img",{src:e.urls.regular,onClick:()=>n(e.urls.small)}),t.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!b&&t.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},lB=e=>{let{buttonLabel:n="Submit",placeholder:i,onSubmit:o,className:s}=e;const[a,l]=r(""),[c,u]=r("");return t.createElement("div",{className:Pu("neeto-editor-url-form__wrapper",{[s]:s})},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:c,name:"url",placeholder:i,value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)},onFocus:()=>u("")}),t.createElement(g,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!a,label:n,onClick:e=>{e.preventDefault(),Wu.test(a)?o(a):u("Please enter a valid url")}}))},cB=e=>{let{mediaUploader:n,onClose:i,editor:o,uploadEndpoint:s,unsplashApiKey:a}=e;const[l,c]=r("local"),[u,p]=r(""),d=n.image||n.video;let h=a?FT:FT.slice(0,2);n.video&&(h=[]);const f=()=>{i(),p(""),c("local")};return t.createElement(y,{closeButton:!1,isOpen:d,onClose:f},t.createElement("div",{className:"ne-media-uploader"},!IO.exports.isEmpty(h)&&t.createElement(x,null,h.map((e=>{let{key:n,title:i}=e;return t.createElement(x.Item,{active:l===n,key:n,onClick:()=>c(n)},i)}))),t.createElement("div",{className:"ne-media-uploader__content"},u?t.createElement(PF,{editor:o,isImage:n.image,url:u,onClose:f}):t.createElement(t.Fragment,null,"local"===l&&t.createElement(BF,{endpoint:s,isImage:n.image,onSuccess:p}),"link"===l&&t.createElement(lB,{placeholder:"Paste the link here...",buttonLabel:n.image?"Upload image":"Upload video",onSubmit:p}),"unsplash"===l&&t.createElement(aB,{unsplashApiKey:a,onSubmit:p})))))};var uB=[],pB=[];function dB(e,t){if(e&&"undefined"!=typeof document){var n,i=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var s=uB.indexOf(o);-1===s&&(s=uB.push(o)-1,pB[s]={}),n=pB[s]&&pB[s][i]?pB[s][i]:pB[s][i]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),r=0;r<n.length;r++)e.setAttribute(n[r],t.attributes[n[r]]);var s="prepend"===i?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}dB(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const hB=e=>{let{editor:n,handleClose:i,handleAnimateInvalidLink:s}=e;const[a,l]=r("");o((()=>{l(n.getAttributes("link").href||"")}),[]);const c=()=>{Wu.test(a)?(n.chain().focus().setLink({href:a}).run(),i()):Be(a)?(n.chain().focus().unsetLink().run(),i()):(l(""),s())};return t.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?i():"Enter"===e.key&&c()}},t.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:a,onChange:e=>{let{target:{value:t}}=e;return l(t)}}),t.createElement(g,{"data-cy":"neeto-editor-link-cancel-button",icon:pD,size:"small",style:"icon",onClick:()=>{a?(l(""),n.chain().focus().unsetLink().run()):i()}}))};var fB=Q,mB=ae((function(e,t){var n=e<0?t.length+e:e;return fB(t)?t.charAt(n):t[n]})),gB=aT,bB=mB,vB=ae((function(e,t){if(null!=t)return gB(e)?bB(e,t):t[e]})),yB=vB;const xB=16,wB="#2F3941",_B="#68737D",kB=e=>{let{icon:n,iconActive:i=!1,tooltipProps:r,highlight:o=!1,color:s,disabled:a,label:l,...c}=e;return t.createElement(w,r,t.createElement("button",He({disabled:a,type:"button",className:Pu("neeto-editor-menu__item",{active:i})},BO(o),c),l&&t.createElement("p",null,l),n&&t.createElement(n,{size:xB,color:s||(i?wB:_B)})))};kB.propTypes={icon:nx.exports.oneOfType([nx.exports.element,nx.exports.func]),iconActive:nx.exports.bool,onClick:nx.exports.func,tooltipProps:nx.exports.object};const EB=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s}=e;return t.createElement(kB,{color:"white","data-cy":`neeto-editor-bubble-menu-${o}-option`,highlight:s,icon:n,iconActive:r,key:o,tooltipProps:{content:Fe(o),position:"bottom",theme:"dark",delay:[500]},onClick:i})},CB=e=>{let{editor:n,mentions:i}=e;const r=TO(i),{Menu:o,MenuItem:s}=m;return Le(r)?null:t.createElement(m,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:yD,strategy:"fixed",buttonProps:{tooltipProps:{content:"Mention",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(o,null,r.map((e=>{let{key:i,name:r,imageUrl:o}=e;return t.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${i}`,key:i,onClick:()=>n.commands.setMention({id:i,label:r})},t.createElement(b,{size:"small",user:{name:r,imageUrl:o}}),t.createElement(_,{style:"body2"},r))}))))},MB=e=>{let{editor:n}=e;return t.createElement(m,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:ZD,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:"Emoji",position:"bottom"},className:"neeto-editor-fixed-menu__item"}},t.createElement(Nk,{editor:n}))},DB=()=>t.createElement("span",{className:"neeto-editor-fixed-menu__separator"},t.createElement("span",null),t.createElement("span",null));var OB=H((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const TB=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],SB=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>({font:[{Icon:XD,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:aO,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:pO,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:tO,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:kD,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:qD,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:hD,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"}],list:[{Icon:ND,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:jD,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}],misc:[{Icon:wD,command:()=>{},active:!1,optionName:"attachments"},{Icon:CD,command:()=>t(vT("image",!0)),optionName:"image-upload"},{Icon:ID,command:()=>t(vT("video",!0)),optionName:"video-upload"}],right:[{Icon:hO,command:()=>e.chain().focus().undo().run(),active:!1,disabled:!e.can().undo(),optionName:"undo"},{Icon:KD,command:()=>e.chain().focus().redo().run(),active:!1,disabled:!e.can().redo(),optionName:"redo"}]}))(t,i);return OB(["font","block","list","misc","right"].map((e=>[e,r[e].filter((e=>n.includes(e.optionName)))])))},NB=e=>{let{Icon:n,command:i,active:r,optionName:o,highlight:s,disabled:a}=e;return t.createElement(g,He({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${o}-option`,disabled:a,icon:n,key:o,style:r?"secondary":"text",tooltipProps:{content:Fe(o),position:"bottom"},onClick:i},BO(s)))},AB=e=>{let{editor:t,commands:n}=e;const{to:i}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:i,to:i}})}}}))},jB=e=>{let{editor:n,options:i,mentions:o,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l,setMediaUploader:c}=e;const[u,p]=r(!1),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),h=(e=>{var t;return(null===(t=e.find(yB("active")))||void 0===t?void 0:t.optionName)||"Text"})(d),f=i.includes(Uu.EMOJI),m=i.includes(Uu.LINK),{font:g,block:b,list:v}=SB({editor:n,options:i,setMediaUploader:c}),y=()=>{s(!0),setTimeout((()=>{s(!1)}),1e3)},x=()=>p(!1);return a?t.createElement(hB,{editor:n,handleAnimateInvalidLink:y,handleClose:()=>l(!1)}):t.createElement(t.Fragment,null,t.createElement(ZO,{interactive:!0,arrow:!1,placement:"bottom",visible:u,content:t.createElement("div",{className:"neeto-editor-bubble-menu__dropdown"},d.map((e=>{let{optionName:n,command:i}=e;return t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-item",key:n,type:"button",onClick:()=>{i(),x()}},n)}))),onClickOutside:x},t.createElement("button",{className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target",type:"button",onClick:()=>p((e=>!e))},h,t.createElement(bD,{size:14}))),t.createElement(DB,null),g.map(EB),t.createElement(DB,null),b.map(EB),f&&t.createElement(MB,{editor:n,theme:"dark"}),t.createElement(DB,null),v.map(EB),t.createElement(DB,null),m&&EB({Icon:TD,command:()=>l(!0),active:n.isActive("link"),optionName:"link",highlight:!1}),t.createElement(CB,{editor:n,mentions:o,menuType:"bubble"}))},LB=e=>{let{editor:n,options:i,mentions:o=[],setMediaUploader:s}=e;const[a,l]=r(!1),[c,u]=r(!1),p=n&&n.view.state.selection.node,d=p&&"image"===p.type.name,h=[Uu.BOLD,Uu.ITALIC,Uu.UNDERLINE,Uu.STRIKETHROUGH,Uu.LINK],f=Be(i.filter((e=>h.includes(e))));return!n||!d&&f?null:t.createElement("div",null,t.createElement(Cu,{editor:n,className:Pu("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":a}),tippyOptions:{arrow:jc,zIndex:99999,onHide:()=>u(!1),theme:"neeto-editor-bubble-menu",maxWidth:500}},t.createElement(jB,{editor:n,isLinkOptionActive:c,mentions:o,options:i,setIsInvalidLink:l,setIsLinkOptionActive:u,setMediaUploader:s})))},{Menu:IB,MenuItem:zB}=m,RB=e=>{var n;let{editor:i}=e;const r=(null===(n=TB.find((e=>{let{value:t}=e;return n=t,i.isActive("heading",{level:n});var n})))||void 0===n?void 0:n.label)||"Paragraph";return t.createElement(m,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:r,placement:"bottom-start",buttonProps:{tooltipProps:{content:"Font size",position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},t.createElement(IB,null,TB.map((e=>{let{label:n,value:r}=e;return t.createElement(zB.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${n}`,key:r,onClick:()=>{return(e=r)?i.chain().focus().toggleHeading({level:e}).run():i.chain().focus().setNode("paragraph").run();var e}},n)}))))},{Menu:FB}=m,BB=e=>{let{editor:n}=e;const[i,o]=r(""),[s,a]=r(""),[l,c]=r(!1),u=n.isActive("link"),p=()=>c(!1),d=()=>{Wu.test(s)?(n.chain().focus().setLink({href:s}).run(),p()):o("Please enter a valid url")};return t.createElement(m,{buttonStyle:u?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:TD,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:"Link",position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>c((e=>!e)),onClose:p},t.createElement(FB,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?p():"Enter"===e.key&&d()}},t.createElement(v,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:"Paste URL",value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),t.createElement(g,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:"Link",onClick:d}),u&&t.createElement(g,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:"Unlink",onClick:()=>{n.chain().focus().unsetLink().run(),p()}})))},{Menu:PB}=m,UB=e=>{let{editor:n,variables:i}=e;return Le(i)?null:t.createElement(m,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:aD,strategy:"fixed",buttonProps:{tooltipProps:{content:"Variables",position:"bottom"}}},t.createElement(PB,null,t.createElement(MT,{variables:i,onClickVariable:e=>{const{category_key:t,key:i}=e,r=t?`${t}.${i}`:i;n.chain().focus().setVariable({label:r}).run()}})))},HB=e=>{let{editor:n,options:i,mentions:r=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:c}=e;if(!n)return null;const{font:u,block:p,list:d,misc:h,right:f}=SB({editor:n,options:i,setMediaUploader:s}),m=i.filter((e=>e.match(/^h[1-6]$/))).length>0,g=i.includes(Uu.EMOJI),b=i.includes(Uu.LINK),v=AB({editor:n,commands:a});return t.createElement("div",{className:Pu("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[c]:c})},t.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},m&&t.createElement(RB,{editor:n}),u.map(NB),p.map(NB),g&&t.createElement(MB,{editor:n}),d.map(NB),b&&t.createElement(BB,{editor:n}),h.map(NB),t.createElement(CB,{editor:n,mentions:r}),v.map(NB),t.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},f.map(NB))),t.createElement("div",{className:"neeto-editor-fixed-menu__variables"},t.createElement(UB,{editor:n,variables:o})))},$B=e=>{let{icon:n=null,onClick:i=(()=>{}),disabled:r=!1,className:o,tooltipProps:s,...a}=e;const l=n;return t.createElement(w,He({disabled:!s,onClick:()=>i()},s),t.createElement("button",He({className:Pu("ne-headless-btn",{[o]:o}),disabled:r,type:"button",onClick:i},a),n&&t.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},WB={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:i}}=e;function r(e){"escape"===e.key.toLowerCase()&&n&&(i(),t())}return{onShow(){document.addEventListener("keydown",r)},onHide(){document.removeEventListener("keydown",r)}}}},qB=e=>{let{icon:n,isOpen:i,onClose:o=(()=>{}),children:s,className:a,onClick:l,buttonProps:c={},...u}=e;const[p,d]=r(!1);return t.createElement(ZO,He({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[WB],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:i,className:Pu("ne-headless-dropdown",{[a]:a}),content:p&&t.createElement("div",{className:"ne-headless-dropdown__popup"},s),onClickOutside:o,onClose:o,onHidden:()=>d(!1),onMount:()=>d(!0)},u),t.createElement("span",null,t.createElement($B,He({icon:n,onClick:l},c))))},VB=e=>{let{editor:n,optionName:i}=e;const[o,s]=r(!1);return t.createElement(qB,{className:"ne-headless__emoji",icon:ZD,isOpen:o,buttonProps:{tooltipProps:{content:Fe(i),delay:[500],position:"bottom"}},onClick:()=>s((e=>!e)),onClose:()=>s(!1)},t.createElement(Nk,{editor:n}))},KB=e=>{let{editor:n,optionName:i,command:r,disabled:o,Icon:s,active:a}=e;return i===Uu.EMOJI?t.createElement(VB,{editor:n,optionName:i}):t.createElement($B,{className:a?"ne-headless-btn--active":"",disabled:o,icon:s,tooltipProps:{content:Fe(i),delay:[500],position:"bottom"},onClick:r})},GB=e=>{let{editor:t,options:n,setMediaUploader:i}=e;const r=((e,t)=>[{Icon:XD,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:aO,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:pO,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:tO,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:kD,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"},{Icon:qD,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote"},{Icon:hD,command:()=>e.chain().focus().toggleCode().run(),active:e.isActive("code"),optionName:"code"},{Icon:ND,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list"},{Icon:jD,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list"},{Icon:File,command:()=>{},optionName:"attachments"},{Icon:CD,command:()=>t(vT("image",!0)),optionName:"image-upload"},{Icon:ID,command:()=>t(vT("video",!0)),optionName:"video-upload"},{Icon:ZD,command:()=>{},optionName:"emoji"},{Icon:hO,command:()=>e.chain().focus().undo().run(),disabled:!e.can().undo(),optionName:"undo"},{Icon:KD,command:()=>e.chain().focus().redo().run(),disabled:!e.can().redo(),optionName:"redo"}])(t,i);return n.map((e=>r.find((t=>{let{optionName:n}=t;return n===e})))).filter(Boolean)},YB=e=>{let{editor:n,options:i,setMediaUploader:r,addonCommands:o=[],children:s}=e;if(!n)return null;const a=[...GB({editor:n,options:i,setMediaUploader:r}),...AB({editor:n,commands:o})];return t.createElement("div",{className:"ne-headless"},a.map((e=>t.createElement(KB,He({editor:n,key:e.optionName},e)))),s)},QB=e=>{const[n,i]=r({image:!1,video:!1}),{menuType:o="fixed",addons:s=[],options:a=[],editor:l,uploadEndpoint:c=$u,editorSecrets:u={}}=e,p={fixed:HB,bubble:LB,headless:YB,none:()=>t.createElement("div",null)}[o],d=Le(a)?[...Qu,...s]:a;return t.createElement(t.Fragment,null,t.createElement(p,He({},e,{options:d,setMediaUploader:i})),t.createElement(cB,{editor:l,mediaUploader:n,unsplashApiKey:u.unsplash,uploadEndpoint:c,onClose:()=>i({image:!1,video:!1})}))},ZB=e=>{let{rows:t}=e;return`min-height: ${t*Xu+2*(Zu+Ju)}px;`},JB=(e,t)=>{const n=[];e.split(/\n/).forEach((e=>{const i={type:"paragraph"};e.length>0&&(i.content=[{type:"text",text:e}]);const r=gt.fromJSON(t.doc.type.schema,i);n.push(r)}));const i=Ve.fromArray(n);return Je.maxOpen(i)},XB=(e,n)=>{let{initialValue:i="",menuType:s="fixed",label:a="",required:l=!1,autoFocus:c=!1,hideSlashCommands:p=!1,defaults:d=Qu,addons:h=[],addonCommands:f=[],className:m,contentClassName:g,uploadEndpoint:b=$u,onChange:v=Pe,onFocus:y=Pe,onBlur:x=Pe,onSubmit:w=Pe,variables:_=[],mentions:E=[],placeholder:C,extensions:M=[],editorSecrets:D={},rows:O=6,isCharacterCountActive:T=!1,keyboardShortcuts:S=[],error:N=null,config:A={},...j}=e;const L="fixed"===s,I="bubble"===s,z=!p,R=!!C,[F,B]=r({image:!1,video:!1}),P=(e=>{let{placeholder:t,extensions:n,mentions:i,variables:r,isSlashCommandsActive:o,options:s,addonCommands:a,onSubmit:l,keyboardShortcuts:c,uploadEndpoint:u,config:p,setMediaUploader:d}=e;const h=op(p,Qb);let f=[up,cp.configure(h.code),Bd.configure(h.underline),fp.configure(h.highlight),Yb.configure(h.codeBlock),_O.configure(h.figCaption),Jb.configure(h.embeds),Fd.configure(h.link),Fk.configure(h.emojiSuggestion),jk.configure(h.emojiPicker),Zb.configure(h.customCommands),sp.configure(h.characterCount),pp.configure(h.focus),LT,wO({uploadEndpoint:u}),Kh.configure(h.starterKit),EO({onSubmit:l,shortcuts:c}),LO.configure(op({placeholder:t},h.placeholder))];return o&&f.push(CT({options:s,addonCommands:a,setMediaUploader:d})),Le(i)||f.push(jO({suggestion:{items:SO(i)}})),Le(r)||f.push(AT({suggestion:{items:()=>r}})),f=f.concat(n),f})({placeholder:C,extensions:M,mentions:E,variables:_,isSlashCommandsActive:z,options:[...d,...h],addonCommands:f,onSubmit:w,keyboardShortcuts:S,uploadEndpoint:b,config:A,setMediaUploader:B});(e=>{let{initialValue:t}=e;o((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&Be(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:i});const U=Pu("neeto-editor",{"slash-active":z&&!R,"fixed-menu-active border":L,"bubble-menu-active":I,"placeholder-active":R,[g]:g}),H=Ru({extensions:P,content:i,injectCSS:!1,autofocus:c&&"end",editorProps:{attributes:{class:U,style:ZB({rows:O})},clipboardTextParser:JB},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!c&&(e=>{const{state:t,view:n}=e,i=$n.atEnd(t.doc),r=t.tr;r.setSelection(i),n.dispatch(r)})(t)},onUpdate:e=>{let{editor:t}=e;return v(t.getHTML())},onFocus:y,onBlur:x});return u(n,(()=>({editor:H}))),ws.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},t.createElement("div",{className:Pu({[m]:m})},a&&t.createElement(k,{className:"neeto-ui-mb-2","data-cy":`${$=a,$.toString().toLowerCase().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}-editor-label`,required:l},a),t.createElement(Yu,{error:N,isFixedMenuActive:L},t.createElement(ep,{editor:H,isActive:T},t.createElement(QB,{addonCommands:f,addons:h,defaults:d,editor:H,editorSecrets:D,isIndependant:!1,mentions:E,menuType:s,uploadEndpoint:b,variables:_}),t.createElement(Tu,He({editor:H},j)),t.createElement(cB,{editor:H,mediaUploader:F,unsplashApiKey:D.unsplash,uploadEndpoint:b,onClose:()=>B({image:!1,video:!1})}))));var $};var eP=t.forwardRef(XB);dB('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 0.2em 0.4em;\n font-size: 85%;\n border-radius: 6px;\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-menu__item:hover, .neeto-editor-bubble-menu .neeto-editor-menu__item:active, .neeto-editor-bubble-menu .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const tP=(e,n)=>{let{name:i,...r}=e;return t.createElement(I,{name:i},(e=>{let{field:o,form:s,meta:a}=e;return t.createElement(eP,He({error:a.touched?a.error:"",initialValue:o.value,ref:n,onBlur:()=>s.setFieldTouched(i,!0),onChange:e=>s.setFieldValue(i,e)},r))}))};var nP=a(tP);
60
60
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function iP(e){return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iP(e)}function rP(e,t){return rP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rP(e,t)}function oP(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function sP(e,t,n){return sP=oP()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&rP(r,n.prototype),r},sP.apply(null,arguments)}function aP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var cP=Object.hasOwnProperty,uP=Object.setPrototypeOf,pP=Object.isFrozen,dP=Object.getPrototypeOf,hP=Object.getOwnPropertyDescriptor,fP=Object.freeze,mP=Object.seal,gP=Object.create,bP="undefined"!=typeof Reflect&&Reflect,vP=bP.apply,yP=bP.construct;vP||(vP=function(e,t,n){return e.apply(t,n)}),fP||(fP=function(e){return e}),mP||(mP=function(e){return e}),yP||(yP=function(e,t){return sP(e,aP(t))});var xP,wP=NP(Array.prototype.forEach),_P=NP(Array.prototype.pop),kP=NP(Array.prototype.push),EP=NP(String.prototype.toLowerCase),CP=NP(String.prototype.match),MP=NP(String.prototype.replace),DP=NP(String.prototype.indexOf),OP=NP(String.prototype.trim),TP=NP(RegExp.prototype.test),SP=(xP=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yP(xP,t)});function NP(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return vP(e,t,i)}}function AP(e,t,n){n=n||EP,uP&&uP(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(pP(t)||(t[i]=o),r=o)}e[r]=!0}return e}function jP(e){var t,n=gP(null);for(t in e)vP(cP,e,[t])&&(n[t]=e[t]);return n}function LP(e,t){for(;null!==e;){var n=hP(e,t);if(n){if(n.get)return NP(n.get);if("function"==typeof n.value)return NP(n.value)}e=dP(e)}return function(e){return console.warn("fallback value for",e),null}}var IP=fP(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zP=fP(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),RP=fP(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),FP=fP(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),BP=fP(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),PP=fP(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),UP=fP(["#text"]),HP=fP(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$P=fP(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),WP=fP(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qP=fP(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VP=mP(/\{\{[\w\W]*|[\w\W]*\}\}/gm),KP=mP(/<%[\w\W]*|[\w\W]*%>/gm),GP=mP(/^data-[\-\w.\u00B7-\uFFFF]/),YP=mP(/^aria-[\-\w]+$/),QP=mP(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ZP=mP(/^(?:\w+script|data):/i),JP=mP(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),XP=mP(/^html$/i),eU=function(){return"undefined"==typeof window?null:window},tU=function(e,t){if("object"!==iP(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var nU=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eU(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,p=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=LP(m,"cloneNode"),b=LP(m,"nextSibling"),v=LP(m,"childNodes"),y=LP(m,"parentNode");if("function"==typeof s){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var w=tU(f,i),_=w?w.createHTML(""):"",k=r,E=k.implementation,C=k.createNodeIterator,M=k.createDocumentFragment,D=k.getElementsByTagName,O=i.importNode,T={};try{T=jP(r).documentMode?r.documentMode:{}}catch(e){}var S={};n.isSupported="function"==typeof y&&E&&void 0!==E.createHTMLDocument&&9!==T;var N,A,j=VP,L=KP,I=GP,z=YP,R=ZP,F=JP,B=QP,P=null,U=AP({},[].concat(aP(IP),aP(zP),aP(RP),aP(BP),aP(UP))),H=null,$=AP({},[].concat(aP(HP),aP($P),aP(WP),aP(qP))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,V=null,K=!0,G=!0,Y=!1,Q=!1,Z=!1,J=!1,X=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=AP({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pe=null,de=AP({},["audio","video","img","source","image","track"]),he=null,fe=AP({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",ve=be,ye=!1,xe=["application/xhtml+xml","text/html"],we="text/html",_e=null,ke=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(e){_e&&_e===e||(e&&"object"===iP(e)||(e={}),e=jP(e),N=N=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?we:e.PARSER_MEDIA_TYPE,A="application/xhtml+xml"===N?function(e){return e}:EP,P="ALLOWED_TAGS"in e?AP({},e.ALLOWED_TAGS,A):U,H="ALLOWED_ATTR"in e?AP({},e.ALLOWED_ATTR,A):$,he="ADD_URI_SAFE_ATTR"in e?AP(jP(fe),e.ADD_URI_SAFE_ATTR,A):fe,pe="ADD_DATA_URI_TAGS"in e?AP(jP(de),e.ADD_DATA_URI_TAGS,A):de,ce="FORBID_CONTENTS"in e?AP({},e.FORBID_CONTENTS,A):ue,q="FORBID_TAGS"in e?AP({},e.FORBID_TAGS,A):{},V="FORBID_ATTR"in e?AP({},e.FORBID_ATTR,A):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,ve=e.NAMESPACE||be,e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(P=AP({},aP(UP)),H=[],!0===le.html&&(AP(P,IP),AP(H,HP)),!0===le.svg&&(AP(P,zP),AP(H,$P),AP(H,qP)),!0===le.svgFilters&&(AP(P,RP),AP(H,$P),AP(H,qP)),!0===le.mathMl&&(AP(P,BP),AP(H,WP),AP(H,qP))),e.ADD_TAGS&&(P===U&&(P=jP(P)),AP(P,e.ADD_TAGS,A)),e.ADD_ATTR&&(H===$&&(H=jP(H)),AP(H,e.ADD_ATTR,A)),e.ADD_URI_SAFE_ATTR&&AP(he,e.ADD_URI_SAFE_ATTR,A),e.FORBID_CONTENTS&&(ce===ue&&(ce=jP(ce)),AP(ce,e.FORBID_CONTENTS,A)),se&&(P["#text"]=!0),Z&&AP(P,["html","head","body"]),P.table&&(AP(P,["tbody"]),delete q.tbody),fP&&fP(e),_e=e)},Me=AP({},["mi","mo","mn","ms","mtext"]),De=AP({},["foreignobject","desc","title","annotation-xml"]),Oe=AP({},["title","style","font","a","script"]),Te=AP({},zP);AP(Te,RP),AP(Te,FP);var Se=AP({},BP);AP(Se,PP);var Ne=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var n=EP(e.tagName),i=EP(t.tagName);return e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===i||Me[i]):Boolean(Te[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&De[i]:Boolean(Se[n]):e.namespaceURI===be&&(!(t.namespaceURI===ge&&!De[i])&&(!(t.namespaceURI===me&&!Me[i])&&(!Se[n]&&(Oe[n]||!Te[n]))))},Ae=function(e){kP(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},je=function(e,t){try{kP(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){kP(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Ae(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var i=CP(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(ve===be)try{t=(new h).parseFromString(o,N)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),ve===be?D.call(t,Z?"html":"body")[0]:Z?t.documentElement:s},Ie=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Re=function(e){return"object"===iP(a)?e instanceof a:e&&"object"===iP(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Fe=function(e,t,i){S[e]&&wP(S[e],(function(e){e.call(n,t,i,_e)}))},Be=function(e){var t;if(Fe("beforeSanitizeElements",e,null),ze(e))return Ae(e),!0;if(TP(/[\u0080-\uFFFF]/,e.nodeName))return Ae(e),!0;var i=A(e.nodeName);if(Fe("uponSanitizeElement",e,{tagName:i,allowedTags:P}),e.hasChildNodes()&&!Re(e.firstElementChild)&&(!Re(e.content)||!Re(e.content.firstElementChild))&&TP(/<[/\w]/g,e.innerHTML)&&TP(/<[/\w]/g,e.textContent))return Ae(e),!0;if("select"===i&&TP(/<template/i,e.innerHTML))return Ae(e),!0;if(!P[i]||q[i]){if(!q[i]&&Ue(i)){if(W.tagNameCheck instanceof RegExp&&TP(W.tagNameCheck,i))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(i))return!1}if(se&&!ce[i]){var r=y(e)||e.parentNode,o=v(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),b(e))}return Ae(e),!0}return e instanceof l&&!Ne(e)?(Ae(e),!0):"noscript"!==i&&"noembed"!==i||!TP(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=MP(t,j," "),t=MP(t,L," "),e.textContent!==t&&(kP(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe("afterSanitizeElements",e,null),!1):(Ae(e),!0)},Pe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if(G&&!V[t]&&TP(I,t));else if(K&&TP(z,t));else if(!H[t]||V[t]){if(!(Ue(e)&&(W.tagNameCheck instanceof RegExp&&TP(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&TP(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&TP(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(TP(B,MP(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==DP(n,"data:")||!pe[e]){if(Y&&!TP(R,MP(n,F,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,i,r,o;Fe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(i="value"===c?t.value:OP(t.value),r=A(c),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(je(c,e),a.keepAttr))if(TP(/\/>/i,i))je(c,e);else{Q&&(i=MP(i,j," "),i=MP(i,L," "));var p=A(e.nodeName);if(Pe(p,r,i)){if(!re||"id"!==r&&"name"!==r||(je(c,e),i=oe+i),w&&"object"===iP(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(p,r)){case"TrustedHTML":i=w.createHTML(i);break;case"TrustedScriptURL":i=w.createScriptURL(i)}try{u?e.setAttributeNS(u,c,i):e.setAttribute(c,i),_P(n.removed)}catch(e){}}}}Fe("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,i=Ie(t);for(Fe("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Fe("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&e(n.content),He(n));Fe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var r,s,l,c,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw SP("toString is not a function");if("string"!=typeof(e=e.toString()))throw SP("dirty is not a string, aborting")}if(!n.isSupported){if("object"===iP(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Re(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Ce(p),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var d=A(e.nodeName);if(!P[d]||q[d])throw SP("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(r=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(!(r=Le(e)))return ee?null:ne?_:""}r&&X&&Ae(r.firstChild);for(var h=Ie(ae?e:r);l=h.nextNode();)3===l.nodeType&&l===c||Be(l)||(l.content instanceof o&&$e(l.content),He(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=M.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return H.shadowroot&&(u=O.call(i,u,!0)),u}var f=Z?r.outerHTML:r.innerHTML;return Z&&P["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&TP(XP,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),Q&&(f=MP(f,j," "),f=MP(f,L," ")),w&&ne?w.createHTML(f):f},n.setConfig=function(e){Ce(e),J=!0},n.clearConfig=function(){_e=null,J=!1},n.isValidAttribute=function(e,t,n){_e||Ce({});var i=A(e),r=A(t);return Pe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(S[e]=S[e]||[],kP(S[e],t))},n.removeHook=function(e){if(S[e])return _P(S[e])},n.removeHooks=function(e){S[e]&&(S[e]=[])},n.removeAllHooks=function(){S={}},n}();const iU="neeto-editor-content",rU={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder"]},oU=/<pre><code>([\S\s]*?)<\/code><\/pre>/gim,sU=e=>{if(e.tagName){const n=e.children?e.children.map(sU):null;return t.createElement(e.tagName,e.properties,n)}return e.value},aU=e=>{let{content:n="",className:i,...r}=e;const o=(e=>e.replace(oU,((e,t)=>{const n=Kb.highlightAuto(t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).children.map(sU);return`<pre><code>${z(n)}</code></pre>`})))(n),s=nU.sanitize;return t.createElement("div",He({"data-cy":"neeto-editor-content",className:Pu(iU,{[i]:i}),dangerouslySetInnerHTML:{__html:s(o,rU)}},r))};export{eP as Editor,aU as EditorContent,nP as FormikEditor,QB as Menu,Ue as isEditorEmpty};