(()=>{var __webpack_modules__={8679:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var reactIs=__webpack_require__(9864),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){objectPrototype&&(inheritedComponent=getPrototypeOf(sourceComponent))&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist);for(var inheritedComponent,keys=getOwnPropertyNames(sourceComponent),targetStatics=(getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent))),getStatics(targetComponent)),sourceStatics=getStatics(sourceComponent),i=0;i{var isarray=__webpack_require__(6173),PATH_REGEXP=(module.exports=pathToRegexp,module.exports.parse=parse,module.exports.compile=function(str,options){return tokensToFunction(parse(str,options),options)},module.exports.tokensToFunction=tokensToFunction,module.exports.tokensToRegExp=tokensToRegExp,new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g"));function parse(str,options){for(var tokens=[],key=0,index=0,path="",defaultDelimiter=options&&options.delimiter||"/";null!=(res=PATH_REGEXP.exec(str));){var capture,group,modifier,asterisk,res,m=res[0],escaped=res[1],offset=res.index;path+=str.slice(index,offset),index=offset+m.length,escaped?path+=escaped[1]:(offset=str[index],m=res[2],escaped=res[3],capture=res[4],group=res[5],modifier=res[6],asterisk=res[7],offset=(path&&(tokens.push(path),path=""),null!=m&&null!=offset&&offset!==m),res=res[2]||defaultDelimiter,tokens.push({name:escaped||key++,prefix:m||"",delimiter:res,optional:"?"===modifier||"*"===modifier,repeat:"+"===modifier||"*"===modifier,partial:offset,asterisk:!!asterisk,pattern:(escaped=capture||group)?escaped.replace(/([=!:$\/()])/g,"\\$1"):asterisk?".*":"[^"+escapeString(res)+"]+?"}))}return index{module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},2703:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ReactPropTypesSecret=__webpack_require__(414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret)throw(secret=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")).name="Invariant Violation",secret}function getShim(){return shim}var ReactPropTypes={array:shim.isRequired=shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ReactPropTypes.PropTypes=ReactPropTypes}},5697:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__(2703)()},414:module=>{"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(__unused_webpack_module,exports)=>{"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l,exports.ConcurrentMode=m,exports.ContextConsumer=k,exports.ContextProvider=h,exports.Element=c,exports.ForwardRef=n,exports.Fragment=e,exports.Lazy=t,exports.Memo=r,exports.Portal=d,exports.Profiler=g,exports.StrictMode=f,exports.Suspense=p,exports.isAsyncMode=function(a){return A(a)||z(a)===l},exports.isConcurrentMode=A,exports.isContextConsumer=function(a){return z(a)===k},exports.isContextProvider=function(a){return z(a)===h},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===c},exports.isForwardRef=function(a){return z(a)===n},exports.isFragment=function(a){return z(a)===e},exports.isLazy=function(a){return z(a)===t},exports.isMemo=function(a){return z(a)===r},exports.isPortal=function(a){return z(a)===d},exports.isProfiler=function(a){return z(a)===g},exports.isStrictMode=function(a){return z(a)===f},exports.isSuspense=function(a){return z(a)===p},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"==typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)},exports.typeOf=z},9864:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(9921)}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];return void 0!==cachedModule||(cachedModule=__webpack_module_cache__[moduleId]={exports:{}},__webpack_modules__[moduleId](cachedModule,cachedModule.exports,__webpack_require__)),cachedModule.exports}__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop);(()=>{"use strict";const external_wp_element_namespaceObject=window.wp.element;var external_wp_apiFetch_namespaceObject=window.wp.apiFetch,external_wp_apiFetch_default=__webpack_require__.n(external_wp_apiFetch_namespaceObject);function set_rating(ev){ev.target.parentElement.innerText=(0,external_wp_i18n_namespaceObject.__)("Thanks :)","blockart"),external_wp_apiFetch_default()({path:"wp/v2/settings",method:"PUT",body:JSON.stringify({_blockart_admin_footer_text_rated:!0})}).then(function(){var el=document.getElementById("footer-left");null!==el&&(el.innerText=(0,external_wp_i18n_namespaceObject.__)("Thank you for creating with BlockArt.","blockart"))}).catch(function(e){console.warn(e)})}const external_wp_i18n_namespaceObject=window.wp.i18n;function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o})(o,p)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),_setPrototypeOf(subClass.prototype.constructor=subClass,superClass)}const external_React_namespaceObject=window.React;var external_React_default=__webpack_require__.n(external_React_namespaceObject);function extends_extends(){return(extends_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iprops.limit&&isNotAnUpdate?instance.queue.push({toastContent:toastContent,toastProps:toastProps,staleId:staleId}):isNum(delay)&&0=left&&drag.x<=_drag$boundingRect&&drag.y>=top&&drag.y<=bottom?pauseToast:playToast)())}function playToast(){setIsRunning(!0)}function pauseToast(){setIsRunning(!1)}function onDragMove(e){var toast=toastRef.current;drag.canDrag&&toast&&(drag.didMove=!0,isRunning&&pauseToast(),drag.x=getX(e),drag.y=getY(e),"x"===props.draggableDirection?drag.delta=drag.x-drag.start:drag.delta=drag.y-drag.start,drag.start!==drag.x&&(drag.canCloseOnClick=!1),toast.style.transform="translate"+props.draggableDirection+"("+drag.delta+"px)",toast.style.opacity=""+(1-Math.abs(drag.delta/drag.removalDistance)))}function onDragEnd(){document.removeEventListener("mousemove",onDragMove),document.removeEventListener("mouseup",onDragEnd),document.removeEventListener("touchmove",onDragMove),document.removeEventListener("touchend",onDragEnd);var toast=toastRef.current;drag.canDrag&&drag.didMove&&toast&&(drag.canDrag=!1,Math.abs(drag.delta)>drag.removalDistance?(setPreventExitTransition(!0),props.closeToast()):(toast.style.transition="transform 0.2s, opacity 0.2s",toast.style.transform="translate"+props.draggableDirection+"(0)",toast.style.opacity="1"))}(0,external_React_namespaceObject.useEffect)(function(){syncProps.current=props}),(0,external_React_namespaceObject.useEffect)(function(){return toastRef.current&&toastRef.current.addEventListener("d",playToast,{once:!0}),isFn(props.onOpen)&&props.onOpen((0,external_React_namespaceObject.isValidElement)(props.children)&&props.children.props),function(){var props=syncProps.current;isFn(props.onClose)&&props.onClose((0,external_React_namespaceObject.isValidElement)(props.children)&&props.children.props)}},[]),(0,external_React_namespaceObject.useEffect)(function(){props.pauseOnFocusLoss&&(document.hasFocus()||pauseToast(),window.addEventListener("focus",playToast),window.addEventListener("blur",pauseToast));return function(){props.pauseOnFocusLoss&&(window.removeEventListener("focus",playToast),window.removeEventListener("blur",pauseToast))}},[props.pauseOnFocusLoss]);var eventHandlers={onMouseDown:onDragStart,onTouchStart:onDragStart,onMouseUp:onDragTransitionEnd,onTouchEnd:onDragTransitionEnd};return _useState&&pauseOnHover&&(eventHandlers.onMouseEnter=pauseToast,eventHandlers.onMouseLeave=playToast),closeOnClick&&(eventHandlers.onClick=function(e){onClick&&onClick(e),drag.canCloseOnClick&&closeToast()}),{playToast:playToast,pauseToast:pauseToast,isRunning:isRunning,preventExitTransition:preventExitTransition,toastRef:toastRef,eventHandlers:eventHandlers}}function CloseButton(_ref){var closeToast=_ref.closeToast,theme=_ref.theme,_ref=_ref.ariaLabel,_ref=void 0===_ref?"close":_ref;return(0,external_React_namespaceObject.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+theme,type:"button",onClick:function(e){e.stopPropagation(),closeToast(e)},"aria-label":_ref},(0,external_React_namespaceObject.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,external_React_namespaceObject.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ProgressBar(_ref){var delay=_ref.delay,isRunning=_ref.isRunning,closeToast=_ref.closeToast,type=_ref.type,hide=_ref.hide,className=_ref.className,userStyle=_ref.style,controlledProgress=_ref.controlledProgress,progress=_ref.progress,rtl=_ref.rtl,isIn=_ref.isIn,_ref=_ref.theme,userStyle=react_toastify_esm_extends({},userStyle,{animationDuration:delay+"ms",animationPlayState:isRunning?"running":"paused",opacity:hide?0:1}),isRunning=(controlledProgress&&(userStyle.transform="scaleX("+progress+")"),clsx_m("Toastify__progress-bar",controlledProgress?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+_ref,"Toastify__progress-bar--"+type,((delay={})["Toastify__progress-bar--rtl"]=rtl,delay))),_ref=isFn(className)?className({rtl:rtl,type:type,defaultClassName:isRunning}):clsx_m(isRunning,className),rtl=((delay={})[controlledProgress&&1<=progress?"onTransitionEnd":"onAnimationEnd"]=controlledProgress&&progress<1?null:function(){isIn&&closeToast()},delay);return(0,external_React_namespaceObject.createElement)("div",Object.assign({role:"progressbar","aria-hidden":hide?"true":"false","aria-label":"notification timer",className:_ref,style:userStyle},rtl))}ProgressBar.defaultProps={type:TYPE.DEFAULT,hide:!1};function Svg(_ref){var theme=_ref.theme,type=_ref.type,_ref=react_toastify_esm_objectWithoutPropertiesLoose(_ref,_excluded$1);return(0,external_React_namespaceObject.createElement)("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===theme?"currentColor":"var(--toastify-icon-color-"+type+")"},_ref))}var _excluded$1=["theme","type"];function Toast(props){var isRunning=(_useToast=useToast(props)).isRunning,preventExitTransition=_useToast.preventExitTransition,toastRef=_useToast.toastRef,_useToast=_useToast.eventHandlers,closeButton=props.closeButton,children=props.children,autoClose=props.autoClose,onClick=props.onClick,type=props.type,hideProgressBar=props.hideProgressBar,closeToast=props.closeToast,Transition=props.transition,position=props.position,className=props.className,style=props.style,bodyClassName=props.bodyClassName,bodyStyle=props.bodyStyle,progressClassName=props.progressClassName,progressStyle=props.progressStyle,updateId=props.updateId,role=props.role,progress=props.progress,rtl=props.rtl,toastId=props.toastId,deleteToast=props.deleteToast,isIn=props.isIn,isLoading=props.isLoading,icon=props.icon,theme=props.theme,props=clsx_m("Toastify__toast","Toastify__toast-theme--"+theme,"Toastify__toast--"+type,((props={})["Toastify__toast--rtl"]=rtl,props)),props=isFn(className)?className({rtl:rtl,position:position,type:type,defaultClassName:props}):clsx_m(props,className),className=!!progress,maybeIcon=Icons[type],iconProps={theme:theme,type:type},maybeIcon=maybeIcon&&maybeIcon(iconProps);return!1===icon?maybeIcon=void 0:isFn(icon)?maybeIcon=icon(iconProps):(0,external_React_namespaceObject.isValidElement)(icon)?maybeIcon=(0,external_React_namespaceObject.cloneElement)(icon,iconProps):isStr(icon)?maybeIcon=icon:isLoading&&(maybeIcon=Icons.spinner()),(0,external_React_namespaceObject.createElement)(Transition,{isIn:isIn,done:deleteToast,position:position,preventExitTransition:preventExitTransition,nodeRef:toastRef},(0,external_React_namespaceObject.createElement)("div",Object.assign({id:toastId,onClick:onClick,className:props},_useToast,{style:style,ref:toastRef}),(0,external_React_namespaceObject.createElement)("div",Object.assign({},isIn&&{role:role},{className:isFn(bodyClassName)?bodyClassName({type:type}):clsx_m("Toastify__toast-body",bodyClassName),style:bodyStyle}),maybeIcon&&(0,external_React_namespaceObject.createElement)("div",{className:clsx_m("Toastify__toast-icon",((iconProps={})["Toastify--animate-icon Toastify__zoom-enter"]=!isLoading,iconProps))},maybeIcon),(0,external_React_namespaceObject.createElement)("div",null,children)),function(closeButton){var props;if(closeButton)return props={closeToast:closeToast,type:type,theme:theme},isFn(closeButton)?closeButton(props):(0,external_React_namespaceObject.isValidElement)(closeButton)?(0,external_React_namespaceObject.cloneElement)(closeButton,props):void 0}(closeButton),(autoClose||className)&&(0,external_React_namespaceObject.createElement)(ProgressBar,Object.assign({},updateId&&!className?{key:"pb-"+updateId}:{},{rtl:rtl,theme:theme,delay:autoClose,isRunning:isRunning,isIn:isIn,closeToast:closeToast,hide:hideProgressBar,type:type,style:progressStyle,className:progressClassName,controlledProgress:className,progress:progress}))))}var latestInstance,containerDomNode,containerConfig,Icons={info:function(props){return(0,external_React_namespaceObject.createElement)(Svg,Object.assign({},props),(0,external_React_namespaceObject.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(props){return(0,external_React_namespaceObject.createElement)(Svg,Object.assign({},props),(0,external_React_namespaceObject.createElement)("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(props){return(0,external_React_namespaceObject.createElement)(Svg,Object.assign({},props),(0,external_React_namespaceObject.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(props){return(0,external_React_namespaceObject.createElement)(Svg,Object.assign({},props),(0,external_React_namespaceObject.createElement)("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,external_React_namespaceObject.createElement)("div",{className:"Toastify__spinner"})}},Slide=cssTransition({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),ToastContainer=function(props){var _useToastContainer=useToastContainer(props),getToastToRender=_useToastContainer.getToastToRender,containerRef=_useToastContainer.containerRef,isToastActive=_useToastContainer.isToastActive,className=props.className,style=props.style,rtl=props.rtl,_useToastContainer=props.containerId;return(0,external_React_namespaceObject.createElement)("div",{ref:containerRef,className:"Toastify",id:_useToastContainer},getToastToRender(function(position,toastList){var containerStyle=toastList.length?react_toastify_esm_extends({},style):react_toastify_esm_extends({},style,{pointerEvents:"none"});return(0,external_React_namespaceObject.createElement)("div",{className:function(position){var _cx=clsx_m("Toastify__toast-container","Toastify__toast-container--"+position,((_cx={})["Toastify__toast-container--rtl"]=rtl,_cx));return isFn(className)?className({position:position,rtl:rtl,defaultClassName:_cx}):clsx_m(_cx,parseClassName(className))}(position),style:containerStyle,key:"container-"+position},toastList.map(function(_ref){var content=_ref.content,_ref=_ref.props;return(0,external_React_namespaceObject.createElement)(Toast,Object.assign({},_ref,{isIn:isToastActive(_ref.toastId),key:"toast-"+_ref.key,closeButton:!0===_ref.closeButton?CloseButton:_ref.closeButton}),content)}))}))},containers=(ToastContainer.defaultProps={position:external_wp_apiFetch_namespaceObject.TOP_RIGHT,transition:cssTransition({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:CloseButton,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"},new Map),queue=[],lazy=!1;function generateToastId(){return Math.random().toString(36).substring(2,9)}function dispatchToast(content,options){return 0