15 lines
462 KiB
JavaScript
15 lines
462 KiB
JavaScript
(()=>{var e={370(e,t,n){"use strict";var r=n(9798);function o(){var e={},t=0,n=0,r=0;return{add:function(o,a){a||(a=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(a),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],a=0;a<o.length;a++)(0,o[a])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),a=r.getOption(e,"auto",!0);a&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var i,s=o(),l=!1;function c(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function u(){i=setTimeout(c,0)}return{add:function(e,t){!l&&a&&n&&0===s.size()&&u(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),i&&(clearTimeout(i),i=null),e?u():c())}}}},9798(e){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}},1804(e,t,n){"use strict";var r=n(5228),o={};function a(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var i="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;y.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(i)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==i){var c=n[s],p=r.hasOwnProperty(s);if(d(p,s),u.hasOwnProperty(s))u[s](e,c);else{var h=l.hasOwnProperty(s);if("function"!=typeof c||h||p||!1===n.autobind)if(p){var m=l[s];a(h&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,s),"DEFINE_MANY_MERGED"===m?r[s]=f(r[s],c):"DEFINE_MANY"===m&&(r[s]=g(r[s],c))}else r[s]=c;else o.push(s,c),r[s]=c}}}}function h(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return h(o,n),h(o,r),o}}function g(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var b={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},k=function(){};return r(k.prototype,e.prototype,y),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=m(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=i||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new k,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},2306(e,t,n){"use strict";var r=n(1609),o=n(1804);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},9786(e,t,n){var r,o;!function(a,i){"use strict";void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},4581(e){"use strict";var t=e.exports={};t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},t.isLegacyOpera=function(){return!!window.opera}},4660(e){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},6057(e,t,n){"use strict";var r=n(4581);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function a(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function i(e){return o(e).object}return{makeDetectable:function(e,i,s){s||(s=i,i=e,e=null),(e=e||{}).debug,r.isIE(8)?s(i):function(i,s){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(i),d=i.offsetWidth,p=i.offsetHeight;function h(){function n(){if("static"===u.position){i.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,o){var a=r[o];"auto"!==a&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(a)&&(t.warn("An element that is positioned static has style."+o+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,i,u,"top"),n(t,i,u,"right"),n(t,i,u,"bottom"),n(t,i,u,"left")}}""!==u.position&&(n(),c=!0);var a=document.createElement("object");a.style.cssText=l,a.tabIndex=-1,a.type="text/html",a.setAttribute("aria-hidden","true"),a.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(i)}))},r.isIE()||(a.data="about:blank"),o(i)&&(i.appendChild(a),o(i).object=a,r.isIE()&&(a.data="about:blank"))}o(i).startSize={width:d,height:p},n?n.add(h):h()}(i,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var a=i(e);if(!a)throw new Error("Element is not detectable by this strategy.");a.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=i(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},7055(e,t,n){"use strict";var r=n(4660).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,a=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var i=function(){var e=document.createElement("div");e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),s="erd_scroll_detection_container";function l(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",o=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",a+="."+o+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",a+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(a+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function c(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function d(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function h(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,d){function f(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(a.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function g(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function b(){if(f("storeStyle invoked."),o(l)){var e=m();o(l).style=e}else f("Aborting because element has been uninstalled")}function v(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function y(){return 2*i.width+1}function k(){return 2*i.height+1}function E(e){return e+10+y()}function _(e){return e+10+k()}function w(e,t,n){var r=p(e),o=h(e),a=E(t),i=_(n),s=function(e){return 2*e+y()}(t),l=function(e){return 2*e+k()}(n);r.scrollLeft=a,r.scrollTop=i,o.scrollLeft=s,o.scrollTop=l}function C(){var e=o(l).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e);var t=function(){o(l).onRendered&&o(l).onRendered()};u(e,"animationstart",t),o(l).onAnimationStart=t}return e}function S(){if(f("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,l,n,"top"),r(t,l,n,"right"),r(t,l,n,"bottom"),r(t,l,n,"left")}}();var n=o(l).container;n||(n=C());var r,a,d,p,h=i.width,g=i.height,m=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),b=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+h))?r+"px":"0"),"top: "+(a=(a=-(1+g))?a+"px":"0"),"right: "+(p=(p=-h)?p+"px":"0"),"bottom: "+(d=(d=-g)?d+"px":"0")])),v=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),k=c(["position: absolute","left: 0","top: 0"]),E=c(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div"),x=document.createElement("div"),O=document.createElement("div"),T=document.createElement("div");_.dir="ltr",_.style.cssText=m,_.className=s,w.className=s,w.style.cssText=b,S.style.cssText=v,x.style.cssText=k,O.style.cssText=y,T.style.cssText=E,S.appendChild(x),O.appendChild(T),w.appendChild(S),w.appendChild(O),_.appendChild(w),n.appendChild(_),u(S,"scroll",I),u(O,"scroll",R),o(l).onExpandScroll=I,o(l).onShrinkScroll=R}else f("Aborting because element has been uninstalled");function I(){var e=o(l);e&&e.onExpand?e.onExpand():f("Aborting expand scroll handler: element has been uninstalled")}function R(){var e=o(l);e&&e.onShrink?e.onShrink():f("Aborting shrink scroll handler: element has been uninstalled")}}function x(){function i(t,n,r){var o=function(e){return p(e).childNodes[0]}(t),a=E(n),i=_(r);o.style.setProperty("width",a+"px",e.important?"important":""),o.style.setProperty("height",i+"px",e.important?"important":"")}function s(r){var s=l.offsetWidth,u=l.offsetHeight,d=s!==o(l).lastWidth||u!==o(l).lastHeight;f("Storing current size",s,u),v(l,s,u),n.add(0,(function(){if(d)if(o(l))if(c()){if(e.debug){var n=l.offsetWidth,r=l.offsetHeight;n===s&&r===u||t.warn(a.get(l),"Scroll: Size changed before updating detector elements.")}i(l,s,u)}else f("Aborting because element container has not been initialized");else f("Aborting because element has been uninstalled")})),n.add(1,(function(){o(l)?c()?w(l,s,u):f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")})),d&&r&&n.add(2,(function(){o(l)?c()?r():f("Aborting because element container has not been initialized"):f("Aborting because element has been uninstalled")}))}function c(){return!!o(l).container}function u(){f("notifyListenersIfNeeded invoked");var e=o(l);return void 0===o(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?f("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?f("Not notifying: Size already notified"):(f("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(l).listeners,(function(e){e(l)})))}function d(){f("Scroll detected."),g(l)?f("Scroll event fired while unrendered. Ignoring..."):s(u)}if(f("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(f("startanimation triggered."),g(l))f("Ignoring since element is still unrendered...");else{f("Element rendered.");var e=p(l),t=h(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(f("Scrollbars out of sync. Updating detector elements..."),s(u))}},o(l).onExpand=d,o(l).onShrink=d;var m=o(l).style;i(l,m.width,m.height)}else f("Aborting because element has been uninstalled")}function O(){if(f("finalizeDomMutation invoked."),o(l)){var e=o(l).style;v(l,e.width,e.height),w(l,e.width,e.height)}else f("Aborting because element has been uninstalled")}function T(){d(l)}function I(){var e;f("Installing..."),o(l).listeners=[],e=m(),o(l).startSize={width:e.width,height:e.height},f("Element start size",o(l).startSize),n.add(0,b),n.add(1,S),n.add(2,x),n.add(3,O),n.add(4,T)}d||(d=l,l=e,e=null),e=e||{},f("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(f("Element is detached"),C(),f("Waiting until element is attached..."),o(l).onRendered=function(){f("Element is now attached"),I()}):I()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&d(p(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&d(h(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&d(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},2558(e,t,n){"use strict";var r=n(4660).forEach,o=n(8182),a=n(3933),i=n(265),s=n(8860),l=n(569),c=n(4581),u=n(370),d=n(1766),p=n(6057),h=n(7055);function f(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function b(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=i(),v=s({idGenerator:n,stateHandler:d});t=v}var y=e.reporter;y||(y=l(!1===y));var k=b(e,"batchProcessor",u({reporter:y})),E={};E.callOnAdd=!!b(e,"callOnAdd",!0),E.debug=!!b(e,"debug",!1);var _,w=a(t),C=o({stateHandler:d}),S=b(e,"strategy","object"),x=b(e,"important",!1),O={reporter:y,batchProcessor:k,stateHandler:d,idHandler:t,important:x};if("scroll"===S&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),S="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),S="object")),"scroll"===S)_=h(O);else{if("object"!==S)throw new Error("Invalid strategy name: "+S);_=p(O)}var T={};return{listenTo:function(e,n,o){function a(e){var t=w.get(e);r(t,(function(t){t(e)}))}function i(e,t,n){w.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(m(n))n=[n];else{if(!f(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=b(e,"callOnAdd",E.callOnAdd),c=b(e,"onReady",(function(){})),u=b(e,"debug",E.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var p=t.get(e);if(u&&y.log("Attaching listener to element",p,e),!C.isDetectable(e))return u&&y.log(p,"Not detectable."),C.isBusy(e)?(u&&y.log(p,"System busy making it detectable"),i(l,e,o),T[p]=T[p]||[],void T[p].push((function(){++s===n.length&&c()}))):(u&&y.log(p,"Making detectable..."),C.markBusy(e,!0),_.makeDetectable({debug:u,important:x},e,(function(e){if(u&&y.log(p,"onElementDetectable"),d.getState(e)){C.markAsDetectable(e),C.markBusy(e,!1),_.addListener(e,a),i(l,e,o);var t=d.getState(e);if(t&&t.startSize){var h=e.offsetWidth,f=e.offsetHeight;t.startSize.width===h&&t.startSize.height===f||a(e)}T[p]&&r(T[p],(function(e){e()}))}else u&&y.log(p,"Element uninstalled before being detectable.");delete T[p],++s===n.length&&c()})));u&&y.log(p,"Already detecable, adding listener."),i(l,e,o),s++})),s===n.length&&c()},removeListener:w.removeListener,removeAllListeners:w.removeAllListeners,uninstall:function(e){if(!e)return y.error("At least one element is required.");if(m(e))e=[e];else{if(!f(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,(function(e){w.removeAllListeners(e),_.uninstall(e),d.cleanState(e)}))},initDocument:function(e){_.initDocument&&_.initDocument(e)}}}},8182(e){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},265(e){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},8860(e){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},3933(e){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,a=r.length;o<a;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},569(e){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},1766(e){"use strict";var t="_erd";function n(e){return e[t]}e.exports={initState:function(e){return e[t]={},n(e)},getState:n,cleanState:function(e){delete e[t]}}},2137(e,t,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=o)},977(e,t,n){var r,o;!function(a){r=[n(9786)],o=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var o=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&o.push(e);for(var n=e.querySelectorAll(r),a=0;a<n.length;a++)o.push(n[a])}else o.push(e)})),o},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,a=this;this[o]=setTimeout((function(){r.apply(a,t),delete a[o]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var o=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var a=n.toDashed(r),i="data-"+a,s=document.querySelectorAll("["+i+"]"),l=document.querySelectorAll(".js-"+a),c=n.makeArray(s).concat(n.makeArray(l)),u=i+"-options",d=e.jQuery;c.forEach((function(e){var n,a=e.getAttribute(i)||e.getAttribute(u);try{n=a&&JSON.parse(a)}catch(t){return void(o&&o.error("Error parsing "+i+" on "+e.className+": "+t))}var s=new t(e,n);d&&d.data(e,r,s)}))}))},n}(a,e)}.apply(t,r),void 0===o||(e.exports=o)}(window)},1485(e,t,n){var r,o;window,void 0===(o="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function o(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,i=!1;function s(t){if(function(){if(!i){i=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=o(t);a=200==Math.round(e(r.width)),s.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var l=o(t);if("none"==l.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var c={};c.width=t.offsetWidth,c.height=t.offsetHeight;for(var u=c.isBorderBox="border-box"==l.boxSizing,d=0;d<r;d++){var p=n[d],h=l[p],f=parseFloat(h);c[p]=isNaN(f)?0:f}var g=c.paddingLeft+c.paddingRight,m=c.paddingTop+c.paddingBottom,b=c.marginLeft+c.marginRight,v=c.marginTop+c.marginBottom,y=c.borderLeftWidth+c.borderRightWidth,k=c.borderTopWidth+c.borderBottomWidth,E=u&&a,_=e(l.width);!1!==_&&(c.width=_+(E?0:g+y));var w=e(l.height);return!1!==w&&(c.height=w+(E?0:m+k)),c.innerWidth=c.width-(g+y),c.innerHeight=c.height-(m+k),c.outerWidth=c.width+b,c.outerHeight=c.height+v,c}}return s})?r.call(t,n,t,e):r)||(e.exports=o)},4146(e,t,n){"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<i.length;++m){var b=i[m];if(!(a[b]||r&&r[b]||g&&g[b]||s&&s[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},3072(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case g:case l:return e;default:return t}}case o:return t}}}function _(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||E(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===k||e.$$typeof===b)},t.typeOf=E},3404(e,t,n){"use strict";e.exports=n(3072)},7943(e,t,n){var r,o;!function(a){"use strict";r=[n(2137)],o=function(e){return function(e,t){var n=e.jQuery,r=e.console;function o(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function i(e,t,s){if(!(this instanceof i))return new i(e,t,s);var l,c=e;"string"==typeof e&&(c=document.querySelectorAll(e)),c?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof t?s=t:o(this.options,t),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||e))}i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&s[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return i.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,e),r=n.exec(t.backgroundImage)}},i.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},i.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},i.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},i.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},i.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=Object.create(t.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new i(this,e,t).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,e)}.apply(t,r),void 0===o||(e.exports=o)}("undefined"!=typeof window?window:this)},3199(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549(e,t,n){var r=n(2032),o=n(3862),a=n(6721),i=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},79(e,t,n){var r=n(3702),o=n(80),a=n(4739),i=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},8223(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661(e,t,n){var r=n(3040),o=n(7670),a=n(289),i=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},2804(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},7217(e,t,n){var r=n(79),o=n(1420),a=n(938),i=n(3605),s=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},1873(e,t,n){var r=n(9325).Symbol;e.exports=r},7828(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3729(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},9770(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},695(e,t,n){var r=n(8096),o=n(2428),a=n(6449),i=n(3656),s=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},4932(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},6547(e,t,n){var r=n(3360),o=n(5288),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},6025(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4733(e,t,n){var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},3838(e,t,n){var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3360(e,t,n){var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999(e,t,n){var r=n(7217),o=n(3729),a=n(6547),i=n(4733),s=n(3838),l=n(3290),c=n(5388),u=n(2271),d=n(8948),p=n(2),h=n(3349),f=n(5861),g=n(6189),m=n(7199),b=n(5529),v=n(6449),y=n(3656),k=n(7730),E=n(3805),_=n(8440),w=n(5950),C=n(7241),S="[object Arguments]",x="[object Function]",O="[object Object]",T={};T[S]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[O]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[x]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,I,R,A,N){var M,L=1&n,P=2&n,F=4&n;if(I&&(M=A?I(t,R,A,N):I(t)),void 0!==M)return M;if(!E(t))return t;var D=v(t);if(D){if(M=g(t),!L)return c(t,M)}else{var B=f(t),j=B==x||"[object GeneratorFunction]"==B;if(y(t))return l(t,L);if(B==O||B==S||j&&!A){if(M=P||j?{}:b(t),!L)return P?d(t,s(M,t)):u(t,i(M,t))}else{if(!T[B])return A?t:{};M=m(t,B,L)}}N||(N=new r);var z=N.get(t);if(z)return z;N.set(t,M),_(t)?t.forEach((function(r){M.add(e(r,n,I,r,t,N))})):k(t)&&t.forEach((function(r,o){M.set(o,e(r,n,I,o,t,N))}));var H=D?void 0:(F?P?h:p:P?C:w)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),a(M,o,e(r,n,I,o,t,N))})),M}},9344(e,t,n){var r=n(3805),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},3120(e,t,n){var r=n(4528),o=n(5891);e.exports=function e(t,n,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];n>0&&a(u)?n>1?e(u,n-1,a,i,s):r(s,u):i||(s[s.length]=u)}return s}},7422(e,t,n){var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},2199(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},2552(e,t,n){var r=n(1873),o=n(659),a=n(9350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},7534(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},9172(e,t,n){var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},5083(e,t,n){var r=n(1882),o=n(7296),a=n(3805),i=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:s).test(i(e))}},6038(e,t,n){var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901(e,t,n){var r=n(2552),o=n(294),a=n(346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},8984(e,t,n){var r=n(5527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2903(e,t,n){var r=n(3805),o=n(5527),a=n(181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},9302(e,t,n){var r=n(3488),o=n(6757),a=n(2865);e.exports=function(e,t){return a(o(e,t,r),e+"")}},9570(e,t,n){var r=n(7334),o=n(3243),a=n(3488),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},5160(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},8096(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556(e,t,n){var r=n(1873),o=n(4932),a=n(6449),i=n(4394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128(e,t,n){var r=n(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9931(e,t,n){var r=n(1769),o=n(8090),a=n(8969),i=n(7797);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},1769(e,t,n){var r=n(6449),o=n(8586),a=n(1802),i=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},9653(e,t,n){var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3290(e,t,n){e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},6169(e,t,n){var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3736(e,t,n){var r=n(1873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},1961(e,t,n){var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},5388(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1791(e,t,n){var r=n(6547),o=n(3360);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},2271(e,t,n){var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},8948(e,t,n){var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},5481(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},999(e,t,n){var r=n(9302),o=n(6800);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t}))}},3138(e,t,n){var r=n(1331);e.exports=function(e){return r(e)?void 0:e}},3243(e,t,n){var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},8816(e,t,n){var r=n(5970),o=n(6757),a=n(2865);e.exports=function(e){return a(o(e,void 0,r),e+"")}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,n){var r=n(2199),o=n(4664),a=n(5950);e.exports=function(e){return r(e,a,o)}},3349(e,t,n){var r=n(2199),o=n(6375),a=n(7241);e.exports=function(e){return r(e,a,o)}},2651(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8879(e,t,n){var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659(e,t,n){var r=n(1873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664(e,t,n){var r=n(9770),o=n(3345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},6375(e,t,n){var r=n(4528),o=n(8879),a=n(4664),i=n(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},5861(e,t,n){var r=n(3199),o=n(8223),a=n(2804),i=n(6545),s=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",g=c(r),m=c(o),b=c(a),v=c(i),y=c(s),k=l;(r&&k(new r(new ArrayBuffer(1)))!=f||o&&k(new o)!=u||a&&k(a.resolve())!=d||i&&k(new i)!=p||s&&k(new s)!=h)&&(k=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case m:return u;case b:return d;case v:return p;case y:return h}return t}),e.exports=k},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},7199(e,t,n){var r=n(9653),o=n(6169),a=n(3201),i=n(3736),s=n(1961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},5529(e,t,n){var r=n(9344),o=n(8879),a=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},5891(e,t,n){var r=n(1873),o=n(2428),a=n(6449),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800(e,t,n){var r=n(5288),o=n(4894),a=n(361),i=n(3805);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},8586(e,t,n){var r=n(6449),o=n(4394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,n){var r,o=n(5481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040(e,t,n){var r=n(1549),o=n(79),a=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},7670(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},2224(e,t,n){var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},6757(e,t,n){var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(l),r(e,this,c)}}},8969(e,t,n){var r=n(7422),o=n(5160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},9325(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},2865(e,t,n){var r=n(9570),o=n(1811)(r);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),a=16-(o-r);if(r=o,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,n){var r=n(79),o=n(8223),a=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},1802(e,t,n){var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},7797(e,t,n){var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6139(e,t,n){var r=n(6547),o=n(1791),a=n(999),i=n(4894),s=n(5527),l=n(5950),c=Object.prototype.hasOwnProperty,u=a((function(e,t){if(s(t)||i(t))o(t,l(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=u},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,n){var r=n(3805),o=n(124),a=n(9374),i=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,g=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function y(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-f>=u}function k(){var e=o();if(y(e))return E(e);p=setTimeout(k,function(e){var n=t-(e-h);return m?s(n,u-(e-f)):n}(e))}function E(e){return p=void 0,b&&l?v(e):(l=c=void 0,d)}function _(){var e=o(),n=y(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(k,t),g?v(e):d}(h);if(m)return clearTimeout(p),p=setTimeout(k,t),v(h)}return void 0===p&&(p=setTimeout(k,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),_.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},_.flush=function(){return void 0===p?d:E(o())},_}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5970(e,t,n){var r=n(3120);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3488(e){e.exports=function(e){return e}},2428(e,t,n){var r=n(7534),o=n(346),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,n){var r=n(9172),o=n(7301),a=n(6009),i=a&&a.isMap,s=i?o(i):r;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,n){var r=n(2552),o=n(8879),a=n(346),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},8440(e,t,n){var r=n(6038),o=n(7301),a=n(6009),i=a&&a.isSet,s=i?o(i):r;e.exports=s},4394(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167(e,t,n){var r=n(4901),o=n(7301),a=n(6009),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},5950(e,t,n){var r=n(695),o=n(8984),a=n(4894);e.exports=function(e){return a(e)?r(e):o(e)}},7241(e,t,n){var r=n(695),o=n(2903),a=n(4894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},104(e,t,n){var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},179(e,t,n){var r=n(4932),o=n(9999),a=n(9931),i=n(1769),s=n(1791),l=n(3138),c=n(8816),u=n(3349),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=i(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)a(n,t[d]);return n}));e.exports=d},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},9374(e,t,n){var r=n(4128),o=n(3805),a=n(4394),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},3222(e,t,n){var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},6994(e,t,n){var r,o,a;window,o=[n(2831),n(1485)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,a=o/r,i=r-o%r;a=Math[i&&i<1?"round":"floor"](a),this.cols=Math.max(a,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),o={x:this.columnWidth*r.col,y:r.y},a=r.y+e.size.outerHeight,i=n+r.col,s=r.col;s<i;s++)this.colYs[s]=a;return o},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),o=this._getOption("originLeft")?r.left:r.right,a=o+n.outerWidth,i=Math.floor(o/this.columnWidth);i=Math.max(0,i);var s=Math.floor(a/this.columnWidth);s-=a%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var l=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,c=i;c<=s;c++)this.colYs[c]=Math.max(l,this.colYs[c])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,o):r)||(e.exports=a)},5228(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){i=t(a);for(var u=0;u<i.length;u++)r.call(a,i[u])&&(s[i[u]]=a[i[u]])}}return s}},3169(e,t,n){var r,o,a;window,o=[n(2137),n(1485)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],i={transform:o,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function s(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var l=s.prototype=Object.create(e.prototype);l.constructor=s,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.getSize=function(){this.size=t(this.element)},l.css=function(e){var t=this.element.style;for(var n in e)t[i[n]||n]=e[n]},l.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],o=e[n?"top":"bottom"],a=parseFloat(r),i=parseFloat(o),s=this.layout.size;-1!=r.indexOf("%")&&(a=a/100*s.width),-1!=o.indexOf("%")&&(i=i/100*s.height),a=isNaN(a)?0:a,i=isNaN(i)?0:i,a-=t?s.paddingLeft:s.paddingRight,i-=n?s.paddingTop:s.paddingBottom,this.position.x=a,this.position.y=i},l.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",a=n?"left":"right",i=n?"right":"left",s=this.position.x+e[o];t[a]=this.getXValue(s),t[i]="";var l=r?"paddingTop":"paddingBottom",c=r?"top":"bottom",u=r?"bottom":"top",d=this.position.y+e[l];t[c]=this.getYValue(d),t[u]="",this.css(t),this.emitEvent("layout",[this])},l.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},l.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},l._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,o=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!o||this.isTransitioning){var a=e-n,i=t-r,s={};s.transform=this.getTranslate(a,i),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},l.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},l._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},l.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var c="opacity,"+o.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));l.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:c,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},l.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},l.onotransitionend=function(e){this.ontransitionend(e)};var u={"-webkit-transform":"transform"};l.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=u[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},l._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},l.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},s})?r.apply(t,o):r)||(e.exports=a)},2831(e,t,n){var r,o;!function(a){"use strict";r=[n(2137),n(1485),n(977),n(3169)],o=function(e,t,n,r){return function(e,t,n,r,o){var a=e.console,i=e.jQuery,s=function(){},l=0,c={};function u(e,t){var n=r.getQueryElement(e);if(n){this.element=n,i&&(this.$element=i(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(n||e))}u.namespace="outlayer",u.Item=o,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=u.prototype;function p(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(d,t.prototype),d.option=function(e){r.extend(this.options,e)},d._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],o=0;o<t.length;o++){var a=new n(t[o],this);r.push(a)}return r},d._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},d.getItemElements=function(){return this.items.map((function(e){return e.element}))},d.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(e,t){var r,o=this.options[e];o?("string"==typeof o?r=this.element.querySelector(o):o instanceof HTMLElement&&(r=o),this[e]=r?n(r)[t]:o):this[e]=0},d.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},d._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},d._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},d.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];return n.length?(n=parseFloat(n))*(h[r]||1):0}(e),this.stagger;this.stagger=0},d._positionItem=function(e,t,n,r,o){r?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},d._getContainerSize=s,d._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},d._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(t&&o){var a=0;t.forEach((function(t){t.once(e,i)}))}else r();function i(){++a==o&&r()}},d.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),i)if(this.$element=this.$element||i(this.element),t){var o=i.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},d.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},d.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},d.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},d.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},d._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),r.makeArray(e)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},d._manageStamp=s,d._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,o=n(e);return{left:t.left-r.left-o.marginLeft,top:t.top-r.top-o.marginTop,right:r.right-t.right-o.marginRight,bottom:r.bottom-t.bottom-o.marginBottom}},d.handleEvent=r.handleEvent,d.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},r.debounceMethod(u,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},d.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},d.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},d.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},d.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},d.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},d.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},d.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},d.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},d.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete c[t],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},u.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&c[t]},u.create=function(e,t){var n=p(u);return n.defaults=r.extend({},u.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},u.compatOptions),n.namespace=e,n.data=u.data,n.Item=p(o),r.htmlInit(n,e),i&&i.bridget&&i.bridget(e,n),n};var h={ms:1,s:1e3};return u.Item=o,u}(a,e,t,n,r)}.apply(t,r),void 0===o||(e.exports=o)}(window)},2694(e,t,n){"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8669(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1609),a=d(o),i=d(n(5556)),s=n(8579),l=d(n(4953)),c=d(n(3428)),u=d(n(4567));function d(e){return e&&e.__esModule?e:{default:e}}var p="data-lazyload-listened",h=[],f=[],g=!1;try{var m=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",null,m)}catch(e){}var b=!!g&&{capture:!1,passive:!0},v=function(e){var t=e.ref;if(t instanceof HTMLElement){var n=(0,l.default)(t),r=e.props.overflow&&n!==t.ownerDocument&&n!==document&&n!==document.documentElement?function(e,t){var n=e.ref,r=void 0,o=void 0,a=void 0,i=void 0;try{var s=t.getBoundingClientRect();r=s.top,o=s.left,a=s.height,i=s.width}catch(e){r=0,o=0,a=0,i=0}var l=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,u=Math.max(r,0),d=Math.max(o,0),p=Math.min(l,r+a)-u,h=Math.min(c,o+i)-d,f=void 0,g=void 0,m=void 0,b=void 0;try{var v=n.getBoundingClientRect();f=v.top,g=v.left,m=v.height,b=v.width}catch(e){f=0,g=0,m=0,b=0}var y=f-u,k=g-d,E=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return y-E[0]<=p&&y+m+E[1]>=0&&k-E[0]<=h&&k+b+E[1]>=0}(e,n):function(e){var t=e.ref;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;var n=void 0,r=void 0;try{var o=t.getBoundingClientRect();n=o.top,r=o.height}catch(e){n=0,r=0}var a=window.innerHeight||document.documentElement.clientHeight,i=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return n-i[0]<=a&&n+r+i[1]>=0}(e);r?e.visible||(e.props.once&&f.push(e),e.visible=!0,e.forceUpdate()):e.props.once&&e.visible||(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},y=function(){for(var e=0;e<h.length;++e){var t=h[e];v(t)}f.forEach((function(e){var t=h.indexOf(e);-1!==t&&h.splice(t,1)})),f=[]},k=void 0,E=null,_=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.visible=!1,n.setRef=n.setRef.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),r(t,[{key:"componentDidMount",value:function(){var e=window,t=this.props.scrollContainer;t&&"string"==typeof t&&(e=e.document.querySelector(t));var n=void 0!==this.props.debounce&&"throttle"===k||"debounce"===k&&void 0===this.props.debounce;if(n&&((0,s.off)(e,"scroll",E,b),(0,s.off)(window,"resize",E,b),E=null),E||(void 0!==this.props.debounce?(E=(0,c.default)(y,"number"==typeof this.props.debounce?this.props.debounce:300),k="debounce"):void 0!==this.props.throttle?(E=(0,u.default)(y,"number"==typeof this.props.throttle?this.props.throttle:300),k="throttle"):E=y),this.props.overflow){var r=(0,l.default)(this.ref);if(r&&"function"==typeof r.getAttribute){var o=+r.getAttribute(p)+1;1===o&&r.addEventListener("scroll",E,b),r.setAttribute(p,o)}}else if(0===h.length||n){var a=this.props,i=a.scroll,d=a.resize;i&&(0,s.on)(e,"scroll",E,b),d&&(0,s.on)(window,"resize",E,b)}h.push(this),v(this)}},{key:"shouldComponentUpdate",value:function(){return this.visible}},{key:"componentWillUnmount",value:function(){if(this.props.overflow){var e=(0,l.default)(this.ref);if(e&&"function"==typeof e.getAttribute){var t=+e.getAttribute(p)-1;0===t?(e.removeEventListener("scroll",E,b),e.removeAttribute(p)):e.setAttribute(p,t)}}var n=h.indexOf(this);-1!==n&&h.splice(n,1),0===h.length&&"undefined"!=typeof window&&((0,s.off)(window,"resize",E,b),(0,s.off)(window,"scroll",E,b))}},{key:"setRef",value:function(e){e&&(this.ref=e)}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.children,r=e.placeholder,o=e.className,i=e.classNamePrefix,s=e.style;return a.default.createElement("div",{className:i+"-wrapper "+o,ref:this.setRef,style:s},this.visible?n:r||a.default.createElement("div",{style:{height:t},className:i+"-placeholder"}))}}]),t}(o.Component);_.propTypes={className:i.default.string,classNamePrefix:i.default.string,once:i.default.bool,height:i.default.oneOfType([i.default.number,i.default.string]),offset:i.default.oneOfType([i.default.number,i.default.arrayOf(i.default.number)]),overflow:i.default.bool,resize:i.default.bool,scroll:i.default.bool,children:i.default.node,throttle:i.default.oneOfType([i.default.number,i.default.bool]),debounce:i.default.oneOfType([i.default.number,i.default.bool]),placeholder:i.default.node,scrollContainer:i.default.oneOfType([i.default.string,i.default.object]),unmountIfInvisible:i.default.bool,style:i.default.object},_.defaultProps={className:"",classNamePrefix:"lazyload",once:!1,offset:0,overflow:!1,resize:!1,scroll:!0,unmountIfInvisible:!1},t.Ay=_},3428(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=void 0,o=void 0,a=void 0,i=void 0,s=void 0,l=function l(){var c=+new Date-i;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(a,o),r||(a=null,o=null)))};return function(){a=this,o=arguments,i=+new Date;var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(a,o),a=null,o=null),s}}},8579(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,n,r){r=r||!1,e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,(function(t){n.call(e,t||window.event)}))},t.off=function(e,t,n,r){r=r||!1,e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on"+t,n)}},4953(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,n=/(scroll|auto)/,r=e;r;){if(!r.parentNode)return e.ownerDocument||document.documentElement;var o=window.getComputedStyle(r),a=o.position,i=o.overflow,s=o["overflow-x"],l=o["overflow-y"];if("static"===a&&t)r=r.parentNode;else{if(n.test(i)&&n.test(s)&&n.test(l))return r;r=r.parentNode}}return e.ownerDocument||e.documentElement||document.documentElement}},4567(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,o;return t||(t=250),function(){var a=n||this,i=+new Date,s=arguments;r&&i<r+t?(clearTimeout(o),o=setTimeout((function(){r=i,e.apply(a,s)}),t)):(r=i,e.apply(a,s))}}},8740(e,t,n){var r="undefined"!=typeof window,o=r?window.Masonry||n(6994):null,a=r?n(7943):null,i=n(6139),s=n(2558),l=n(8221),c=n(179),u=n(5556),d=n(1609),p=n(2306),h={enableResizableChildren:u.bool,disableImagesLoaded:u.bool,onImagesLoaded:u.func,updateOnEachImageLoad:u.bool,options:u.object,imagesLoadedOptions:u.object,elementType:u.string,onLayoutComplete:u.func,onRemoveComplete:u.func},f=p({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:h,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(e){this.masonry&&!e||(this.masonry=new o(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var e=this.masonryContainer,t=this.props.options.itemSelector?e.querySelectorAll(this.props.options.itemSelector):e.children;return Array.prototype.slice.call(t)},diffDomChildren:function(){var e=!1,t=this.latestKnownDomChildren.filter((function(e){return!!e.parentNode}));t.length!==this.latestKnownDomChildren.length&&(e=!0);var n=this.getCurrentDomChildren(),r=t.filter((function(e){return!~n.indexOf(e)})),o=n.filter((function(e){return!~t.indexOf(e)})),a=0,i=o.filter((function(e){var t=a===n.indexOf(e);return t&&a++,t})),s=o.filter((function(e){return-1===i.indexOf(e)})),l=[];return 0===r.length&&(l=t.filter((function(e,t){return t!==n.indexOf(e)}))),this.latestKnownDomChildren=n,{old:t,new:n,removed:r,appended:s,prepended:i,moved:l,forceItemReload:e}},performLayout:function(){var e=this.diffDomChildren(),t=e.forceItemReload||e.moved.length>0;e.removed.length>0&&(this.props.enableResizableChildren&&e.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(e.removed),t=!0),e.appended.length>0&&(this.masonry.appended(e.appended),0===e.prepended.length&&(t=!0),this.props.enableResizableChildren&&e.appended.forEach(this.listenToElementResize,this)),e.prepended.length>0&&(this.masonry.prepended(e.prepended),this.props.enableResizableChildren&&e.prepended.forEach(this.listenToElementResize,this)),t&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var e=this.props.updateOnEachImageLoad?"progress":"always",t=l(function(e){this.props.onImagesLoaded&&this.props.onImagesLoaded(e),this.masonry.layout()}.bind(this),100),n=a(this.masonryContainer,this.props.imagesLoadedOptions).on(e,t);this.imagesLoadedCancelRef=function(){n.off(e,t),t.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=s({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(e){this.erd.listenTo(e,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(e){this.masonryContainer=e},render:function(){var e=c(this.props,Object.keys(h));return d.createElement(this.props.elementType,i({},e,{ref:this.setRef}),this.props.children)}});e.exports=f,e.exports.default=f},1020(e,t,n){"use strict";var r=n(1609),o=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:l,_owner:i.current}}},4848(e,t,n){"use strict";e.exports=n(1020)},3904(e,t,n){"use strict";const r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(e,t){if(t=a(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=a(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=o;const a=n(8587),{safeRe:i,t:s}=n(9718),l=n(2111),c=n(7272),u=n(3908),d=n(8311)},8311(e,t,n){"use strict";const r=/\s+/g;class o{constructor(e,t){if(t=i(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+e,n=a.get(t);if(n)return n;const r=this.options.loose,o=r?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(o,R(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[d.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[d.TILDETRIM],h),l("tilde trim",e),e=e.replace(u[d.CARETTRIM],f),l("caret trim",e);let i=e.split(" ").map((e=>k(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[d.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,v=i.map((e=>new s(e,this.options)));for(const e of v){if(b(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const y=[...c.values()];return a.set(t,y),y}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((n=>y(n,t)&&e.set.some((e=>y(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=o;const a=new(n(8794)),i=n(8587),s=n(3904),l=n(7272),c=n(3908),{safeRe:u,t:d,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:f}=n(9718),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=n(6874),b=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},k=(e,t)=>(l("comp",e,t),e=C(e,t),l("caret",e),e=_(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(n,((t,n,r,o,a)=>{let i;return l("tilde",e,t,n,r,o,a),E(n)?i="":E(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:E(o)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(l("replaceTilde pr",a),i=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},C=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{l("caret",e,t);const n=t.loose?u[d.CARETLOOSE]:u[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,i)=>{let s;return l("caret",e,t,n,o,a,i),E(n)?s="":E(o)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?s="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),s="0"===n?"0"===o?`>=${n}.${o}.${a}-${i} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${i} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${i} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),l("caret return",s),s}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const n=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(n,((n,r,o,a,i,s)=>{l("xRange",e,n,r,o,a,i,s);const c=E(o),u=c||E(a),d=u||E(i),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),i=0,">"===r?(r=">=",u?(o=+o+1,a=0,i=0):(a=+a+1,i=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+o}.${a}.${i}${s}`):u?n=`>=${o}.0.0${s} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${s} <${o}.${+a+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[d.STAR],"")),I=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),R=e=>(t,n,r,o,a,i,s,l,c,u,d,p)=>`${n=E(r)?"":E(o)?`>=${r}.0.0${e?"-0":""}`:E(a)?`>=${r}.${o}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=E(c)?"":E(u)?`<${+c+1}.0.0-0`:E(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},3908(e,t,n){"use strict";const r=n(7272),{MAX_LENGTH:o,MAX_SAFE_INTEGER:a}=n(6874),{safeRe:i,t:s}=n(9718),l=n(8587),{compareIdentifiers:c}=n(1123);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("build compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},7414(e,t,n){"use strict";const r=n(144);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},2111(e,t,n){"use strict";const r=n(4641),o=n(3999),a=n(5580),i=n(4089),s=n(7059),l=n(5200);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return o(e,n,c);case">":return a(e,n,c);case">=":return i(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},6170(e,t,n){"use strict";const r=n(3908),o=n(144),{safeRe:a,t:i}=n(9718);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?a[i.COERCERTLFULL]:a[i.COERCERTL];let o;for(;(o=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&o.index+o[0].length===n.index+n[0].length||(n=o),r.lastIndex=o.index+o[1].length+o[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?a[i.COERCEFULL]:a[i.COERCE]);if(null===n)return null;const s=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return o(`${s}.${l}.${c}${u}${d}`,t)}},909(e,t,n){"use strict";const r=n(3908);e.exports=(e,t,n)=>{const o=new r(e,n),a=new r(t,n);return o.compare(a)||o.compareBuild(a)}},1763(e,t,n){"use strict";const r=n(560);e.exports=(e,t)=>r(e,t,!0)},560(e,t,n){"use strict";const r=n(3908);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},1832(e,t,n){"use strict";const r=n(144);e.exports=(e,t)=>{const n=r(e,null,!0),o=r(t,null,!0),a=n.compare(o);if(0===a)return null;const i=a>0,s=i?n:o,l=i?o:n,c=!!s.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==o.major?u+"major":n.minor!==o.minor?u+"minor":n.patch!==o.patch?u+"patch":"prerelease"}},4641(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>0===r(e,t,n)},5580(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>r(e,t,n)>0},4089(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>r(e,t,n)>=0},3007(e,t,n){"use strict";const r=n(3908);e.exports=(e,t,n,o,a)=>{"string"==typeof n&&(a=o,o=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,o,a).version}catch(e){return null}}},7059(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>r(e,t,n)<0},5200(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>r(e,t,n)<=0},2938(e,t,n){"use strict";const r=n(3908);e.exports=(e,t)=>new r(e,t).major},6254(e,t,n){"use strict";const r=n(3908);e.exports=(e,t)=>new r(e,t).minor},3999(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>0!==r(e,t,n)},144(e,t,n){"use strict";const r=n(3908);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},4493(e,t,n){"use strict";const r=n(3908);e.exports=(e,t)=>new r(e,t).patch},1729(e,t,n){"use strict";const r=n(144);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},9970(e,t,n){"use strict";const r=n(560);e.exports=(e,t,n)=>r(t,e,n)},4277(e,t,n){"use strict";const r=n(909);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},7638(e,t,n){"use strict";const r=n(8311);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},3927(e,t,n){"use strict";const r=n(909);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},6953(e,t,n){"use strict";const r=n(144);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},9589(e,t,n){"use strict";const r=n(9718),o=n(6874),a=n(3908),i=n(1123),s=n(144),l=n(6953),c=n(7414),u=n(3007),d=n(1832),p=n(2938),h=n(6254),f=n(4493),g=n(1729),m=n(560),b=n(9970),v=n(1763),y=n(909),k=n(3927),E=n(4277),_=n(5580),w=n(7059),C=n(4641),S=n(3999),x=n(4089),O=n(5200),T=n(2111),I=n(6170),R=n(3904),A=n(8311),N=n(7638),M=n(7631),L=n(9628),P=n(270),F=n(1261),D=n(3874),B=n(7075),j=n(5571),z=n(5342),H=n(6780),$=n(2525),V=n(5032);e.exports={parse:s,valid:l,clean:c,inc:u,diff:d,major:p,minor:h,patch:f,prerelease:g,compare:m,rcompare:b,compareLoose:v,compareBuild:y,sort:k,rsort:E,gt:_,lt:w,eq:C,neq:S,gte:x,lte:O,cmp:T,coerce:I,Comparator:R,Range:A,satisfies:N,toComparators:M,maxSatisfying:L,minSatisfying:P,minVersion:F,validRange:D,outside:B,gtr:j,ltr:z,intersects:H,simplifyRange:$,subset:V,SemVer:a,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},6874(e){"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){"use strict";const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123(e){"use strict";const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),o=t.test(n);return r&&o&&(e=+e,n=+n),e===n?0:r&&!o?-1:o&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},8794(e){"use strict";e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},8587(e){"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},9718(e,t,n){"use strict";const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:a}=n(6874),i=n(7272),s=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],d=t.t={};let p=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",a],[h,o]],g=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=p++;i(e,o,t),d[e]=o,c[o]=t,u[o]=r,s[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),g("FULL",`^${c[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),g("LOOSE",`^${c[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),g("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${c[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?`+`(?:${c[d.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[d.COERCE],!0),g("COERCERTLFULL",c[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571(e,t,n){"use strict";const r=n(7075);e.exports=(e,t,n)=>r(e,t,">",n)},6780(e,t,n){"use strict";const r=n(8311);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},5342(e,t,n){"use strict";const r=n(7075);e.exports=(e,t,n)=>r(e,t,"<",n)},9628(e,t,n){"use strict";const r=n(3908),o=n(8311);e.exports=(e,t,n)=>{let a=null,i=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(a&&-1!==i.compare(e)||(a=e,i=new r(a,n)))})),a}},270(e,t,n){"use strict";const r=n(3908),o=n(8311);e.exports=(e,t,n)=>{let a=null,i=null,s=null;try{s=new o(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(a&&1!==i.compare(e)||(a=e,i=new r(a,n)))})),a}},1261(e,t,n){"use strict";const r=n(3908),o=n(8311),a=n(5580);e.exports=(e,t)=>{e=new o(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let i=null;o.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!a(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!a(n,i)||(n=i)}return n&&e.test(n)?n:null}},7075(e,t,n){"use strict";const r=n(3908),o=n(3904),{ANY:a}=o,i=n(8311),s=n(7638),l=n(5580),c=n(7059),u=n(5200),d=n(4089);e.exports=(e,t,n,p)=>{let h,f,g,m,b;switch(e=new r(e,p),t=new i(t,p),n){case">":h=l,f=u,g=c,m=">",b=">=";break;case"<":h=c,f=d,g=l,m="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,s=null;if(r.forEach((e=>{e.semver===a&&(e=new o(">=0.0.0")),i=i||e,s=s||e,h(e.semver,i.semver,p)?i=e:g(e.semver,s.semver,p)&&(s=e)})),i.operator===m||i.operator===b)return!1;if((!s.operator||s.operator===m)&&f(e,s.semver))return!1;if(s.operator===b&&g(e,s.semver))return!1}return!0}},2525(e,t,n){"use strict";const r=n(7638),o=n(560);e.exports=(e,t,n)=>{const a=[];let i=null,s=null;const l=e.sort(((e,t)=>o(e,t,n)));for(const e of l)r(e,t,n)?(s=e,i||(i=e)):(s&&a.push([i,s]),s=null,i=null);i&&a.push([i,null]);const c=[];for(const[e,t]of a)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},5032(e,t,n){"use strict";const r=n(8311),o=n(3904),{ANY:a}=o,i=n(7638),s=n(560),l=[new o(">=0.0.0-0")],c=[new o(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===a){if(n.includePrerelease)return!0;t=c}const r=new Set;let o,u,h,f,g,m,b;for(const t of e)">"===t.operator||">="===t.operator?o=d(o,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(o&&u){if(h=s(o.semver,u.semver,n),h>0)return null;if(0===h&&(">="!==o.operator||"<="!==u.operator))return null}for(const e of r){if(o&&!i(e,String(o),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let v=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,y=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;v&&1===v.prerelease.length&&"<"===u.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,o)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(f=d(o,e,n),f===e&&f!==o)return!1}else if(">="===o.operator&&!i(o.semver,String(e),n))return!1;if(u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(g=p(u,e,n),g===e&&g!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||o)&&0!==h)return!1}return!(o&&m&&!u&&0!==h||u&&b&&!o&&0!==h||y||v)},d=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},7631(e,t,n){"use strict";const r=n(8311);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},3874(e,t,n){"use strict";const r=n(8311);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},1609(e){"use strict";e.exports=window.React},6942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{getTemplateData:()=>vc,getTemplates:()=>bc});var t={};n.r(t),n.d(t,{apiFetch:()=>yc,setTemplateData:()=>Ec,setTemplates:()=>kc});var r={};n.r(r),n.d(r,{API_FETCH:()=>wc});var o={};n.r(o),n.d(o,{getTemplateData:()=>Sc,getTemplates:()=>Cc});var a=n(1609);const{entries:i,setPrototypeOf:s,isFrozen:l,getPrototypeOf:c,getOwnPropertyDescriptor:u}=Object;let{freeze:d,seal:p,create:h}=Object,{apply:f,construct:g}="undefined"!=typeof Reflect&&Reflect;d||(d=function(e){return e}),p||(p=function(e){return e}),f||(f=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),g||(g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const m=A(Array.prototype.forEach),b=A(Array.prototype.lastIndexOf),v=A(Array.prototype.pop),y=A(Array.prototype.push),k=A(Array.prototype.splice),E=A(String.prototype.toLowerCase),_=A(String.prototype.toString),w=A(String.prototype.match),C=A(String.prototype.replace),S=A(String.prototype.indexOf),x=A(String.prototype.trim),O=A(Object.prototype.hasOwnProperty),T=A(RegExp.prototype.test),I=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(R,t)});var R;function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;s&&s(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(l(t)||(t[r]=e),o=e)}e[o]=!0}return e}function M(e){for(let t=0;t<e.length;t++)O(e,t)||(e[t]=null);return e}function L(e){const t=h(null);for(const[n,r]of i(e))O(e,n)&&(Array.isArray(r)?t[n]=M(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=L(r):t[n]=r);return t}function P(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=c(e)}return function(){return null}}const F=d(["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","search","section","select","shadow","slot","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"]),D=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=d(["animate","color-profile","cursor","discard","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"]),z=d(["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","mprescripts"]),H=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=d(["#text"]),V=d(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),q=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),U=d(["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"]),G=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=p(/<%[\w\W]*|[\w\W]*%>/gm),Q=p(/\$\{[\w\W]*/gm),X=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=p(/^(?:\w+script|data):/i),ee=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=p(/^html$/i),ne=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:ne,DATA_ATTR:X,DOCTYPE_NAME:te,ERB_EXPR:Y,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:J,MUSTACHE_EXPR:W,TMPLIT_EXPR:Q});const oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:p,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:g,DOMParser:R,trustedTypes:A}=t,M=u.prototype,W=P(M,"cloneNode"),Y=P(M,"remove"),Q=P(M,"nextSibling"),X=P(M,"childNodes"),K=P(M,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let J,ee="";const{implementation:ne,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:se}=r,{importNode:le}=o;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof K&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:pe,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:me,CUSTOM_ELEMENT:be}=re;let{IS_ALLOWED_URI:ve}=re,ye=null;const ke=N({},[...F,...D,...B,...z,...$]);let Ee=null;const _e=N({},[...V,...q,...U,...G]);let we=Object.seal(h(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}})),Ce=null,Se=null;const xe=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Oe=!0,Te=!0,Ie=!1,Re=!0,Ae=!1,Ne=!0,Me=!1,Le=!1,Pe=!1,Fe=!1,De=!1,Be=!1,je=!0,ze=!1,He=!0,$e=!1,Ve={},qe=null;const Ue=N({},["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"]);let Ge=null;const We=N({},["audio","video","img","source","image","track"]);let Ye=null;const Qe=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Je=Ze,et=!1,tt=null;const nt=N({},[Xe,Ke,Ze],_);let rt=N({},["mi","mo","mn","ms","mtext"]),ot=N({},["annotation-xml"]);const at=N({},["title","style","font","a","script"]);let it=null;const st=["application/xhtml+xml","text/html"];let lt=null,ct=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=L(e),it=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===it?_:E,ye=O(e,"ALLOWED_TAGS")?N({},e.ALLOWED_TAGS,lt):ke,Ee=O(e,"ALLOWED_ATTR")?N({},e.ALLOWED_ATTR,lt):_e,tt=O(e,"ALLOWED_NAMESPACES")?N({},e.ALLOWED_NAMESPACES,_):nt,Ye=O(e,"ADD_URI_SAFE_ATTR")?N(L(Qe),e.ADD_URI_SAFE_ATTR,lt):Qe,Ge=O(e,"ADD_DATA_URI_TAGS")?N(L(We),e.ADD_DATA_URI_TAGS,lt):We,qe=O(e,"FORBID_CONTENTS")?N({},e.FORBID_CONTENTS,lt):Ue,Ce=O(e,"FORBID_TAGS")?N({},e.FORBID_TAGS,lt):L({}),Se=O(e,"FORBID_ATTR")?N({},e.FORBID_ATTR,lt):L({}),Ve=!!O(e,"USE_PROFILES")&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,Ne=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||Z,Je=e.NAMESPACE||Ze,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(Te=!1),De&&(Fe=!0),Ve&&(ye=N({},$),Ee=h(null),!0===Ve.html&&(N(ye,F),N(Ee,V)),!0===Ve.svg&&(N(ye,D),N(Ee,q),N(Ee,G)),!0===Ve.svgFilters&&(N(ye,B),N(Ee,q),N(Ee,G)),!0===Ve.mathMl&&(N(ye,z),N(Ee,U),N(Ee,G))),O(e,"ADD_TAGS")||(xe.tagCheck=null),O(e,"ADD_ATTR")||(xe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(ye===ke&&(ye=L(ye)),N(ye,e.ADD_TAGS,lt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===_e&&(Ee=L(Ee)),N(Ee,e.ADD_ATTR,lt))),e.ADD_URI_SAFE_ATTR&&N(Ye,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(qe===Ue&&(qe=L(qe)),N(qe,e.FORBID_CONTENTS,lt)),e.ADD_FORBID_CONTENTS&&(qe===Ue&&(qe=L(qe)),N(qe,e.ADD_FORBID_CONTENTS,lt)),He&&(ye["#text"]=!0),Me&&N(ye,["html","head","body"]),ye.table&&(N(ye,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,ee=J.createHTML("")}else void 0===J&&(J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(A,a)),null!==J&&"string"==typeof ee&&(ee=J.createHTML(""));d&&d(e),ct=e}},ht=N({},[...D,...B,...j]),ft=N({},[...z,...H]),gt=function(e){y(n.removed,{element:e});try{K(e).removeChild(e)}catch(t){Y(e)}},mt=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||De)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Je===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=J?J.createHTML(e):e;if(Je===Ze)try{t=(new R).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?ee:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Je===Ze?se.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},vt=function(e){return ae.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof c&&e instanceof c};function Et(e,t,r){m(e,(e=>{e.call(n,t,r,ct)}))}const _t=function(e){let t=null;if(Et(ce.beforeSanitizeElements,e,null),yt(e))return gt(e),!0;const r=lt(e.nodeName);if(Et(ce.uponSanitizeElement,e,{tagName:r,allowedTags:ye}),Ne&&e.hasChildNodes()&&!kt(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Ne&&8===e.nodeType&&T(/<[/\w]/g,e.data))return gt(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&(!ye[r]||Ce[r])){if(!Ce[r]&&Ct(r)){if(we.tagNameCheck instanceof RegExp&&T(we.tagNameCheck,r))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(r))return!1}if(He&&!qe[r]){const t=K(e)||e.parentNode,n=X(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=W(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,Q(e))}}return gt(e),!0}return e instanceof u&&!function(e){let t=K(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(ht[n]):e.namespaceURI===Xe?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ke?"math"===n&&ot[r]:Boolean(ft[n]):e.namespaceURI===Ze?!(t.namespaceURI===Ke&&!ot[r])&&!(t.namespaceURI===Xe&&!rt[r])&&!ft[n]&&(at[n]||!ht[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(t=e.textContent,m([ue,de,pe],(e=>{t=C(t,e," ")})),e.textContent!==t&&(y(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(ce.afterSanitizeElements,e,null),!1):(gt(e),!0)},wt=function(e,t,n){if(Se[t])return!1;if(je&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Te&&!Se[t]&&T(he,t));else if(Oe&&T(fe,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||Se[t]){if(!(Ct(e)&&(we.tagNameCheck instanceof RegExp&&T(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&T(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t,e))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&T(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ye[t]);else if(T(ve,C(n,me,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ge[e])if(Ie&&!T(ge,C(n,me,"")));else if(n)return!1;return!0},Ct=function(e){return"annotation-xml"!==e&&w(e,be)},St=function(e){Et(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||yt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:l}=a,c=lt(i),u=l;let d="value"===i?u:x(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(ce.uponSanitizeAttribute,e,r),d=r.attrValue,!ze||"id"!==c&&"name"!==c||(mt(i,e),d="user-content-"+d),Ne&&T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){mt(i,e);continue}if("attributename"===c&&w(d,"href")){mt(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){mt(i,e);continue}if(!Re&&T(/\/>/i,d)){mt(i,e);continue}Ae&&m([ue,de,pe],(e=>{d=C(d,e," ")}));const p=lt(e.nodeName);if(wt(p,c,d)){if(J&&"object"==typeof A&&"function"==typeof A.getAttributeType)if(s);else switch(A.getAttributeType(p,c)){case"TrustedHTML":d=J.createHTML(d);break;case"TrustedScriptURL":d=J.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,i,d):e.setAttribute(i,d),yt(e)?gt(e):v(n.removed)}catch(t){mt(i,e)}}else mt(i,e)}Et(ce.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const r=vt(t);for(Et(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(ce.uponSanitizeShadowNode,n,null),_t(n),St(n),n.content instanceof s&&e(n.content);Et(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw I("toString is not a function");if("string"!=typeof(e=e.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Le||pt(t),n.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=lt(e.nodeName);if(!ye[t]||Ce[t])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=bt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Fe&&!Ae&&!Me&&-1===e.indexOf("<"))return J&&Be?J.createHTML(e):e;if(r=bt(e),!r)return Fe?null:Be?ee:""}r&&Pe&>(r.firstChild);const u=vt($e?e:r);for(;i=u.nextNode();)_t(i),St(i),i.content instanceof s&&xt(i.content);if($e)return e;if(Fe){if(De)for(l=ie.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(l=le.call(o,l,!0)),l}let d=Me?r.outerHTML:r.innerHTML;return Me&&ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&T(te,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ae&&m([ue,de,pe],(e=>{d=C(d,e," ")})),J&&Be?J.createHTML(d):d},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},n.clearConfig=function(){ct=null,Le=!1},n.isValidAttribute=function(e,t,n){ct||pt({});const r=lt(e),o=lt(t);return wt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&y(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=b(ce[e],t);return-1===n?void 0:k(ce[e],n,1)[0]}return v(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const ie=wp.element.createElement;function se(e){return"effects"===e?ie("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},ie("path",{d:"M106.283 6.217c8.289 8.29 8.289 91.776 0 100.066-8.29 8.289-91.776 8.289-100.066 0-8.289-8.29-8.289-91.776 0-100.066 8.29-8.289 91.776-8.289 100.066 0zM96.276 16.224c6.632 6.632 6.632 73.42 0 80.052-6.632 6.632-73.42 6.632-80.052 0-6.632-6.632-6.632-73.42 0-80.052 6.632-6.632 73.42-6.632 80.052 0z"}),ie("path",{d:"M48.418 58.413H33.304c-.71 0-1.019-.577-.687-1.288l16.637-35.68c.332-.71 1.178-1.287 1.889-1.287h22.962c.711 0 1.02.577.687 1.288l-10.934 23.45h15.74c.796 0 1.14.647.77 1.443L37.959 91.72c-2.42 2.448-5.343.578-3.83-2.666l14.289-30.642z"})):"colors"===e?ie("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},ie("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradient"===e?ie("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},ie("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"copy"===e?(0,a.createElement)("svg",{strokeWidth:"1.2",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)("path",{d:"M19.4 20H9.6a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h9.8a.6.6 0 0 1 .6.6v9.8a.6.6 0 0 1-.6.6Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.createElement)("path",{d:"M15 9V4.6a.6.6 0 0 0-.6-.6H4.6a.6.6 0 0 0-.6.6v9.8a.6.6 0 0 0 .6.6H9",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})):"link"===e?(0,a.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},(0,a.createElement)("path",{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})):"globe"===e?(0,a.createElement)("svg",{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",role:"img","aria-hidden":"true",focusable:"false"},(0,a.createElement)("path",{d:"M512 1024q-104 0-199-40.5t-163.5-109T40.5 711 0 512t40.5-199 109-163.5T313 40.5 512 0t199 40.5 163.5 109 109 163.5 40.5 199-40.5 199-109 163.5-163.5 109-199 40.5zM293 293l-48-42q-11 0-26 2.5t-27 2.5q-1-1-18-37Q64 346 64 512q0 3 .5 8t.5 7q6 6 29.5 22.5T128 576h64q3-2 5.5-3t5.5-2q-10-11-29.5-32.5T144 507q4-23 11-69.5t10-69.5q86-36 128-53v-22zm201-163q-14-6-26-11-3-8-4-12-6 19-19 57 4 1 11.5 2t11.5 2h26v-38zm-4 471q-5 5-7 8-12 21-34 64t-33 64q14 21 42.5 64t42.5 64q130 8 197 12 2 25 16 34 91-46 154-127.5T951 601q-19-4-41.5-11t-32.5-9.5-39.5-5T776 579q-12 1-15.5-15.5t-3.5-34-4-18.5q-22-4-89 7.5t-89 7.5q-13 12-85 75zm59-501q-3 20-10.5 60T527 221q5-1 16.5-2.5T560 217q-3-2-7-4 15-5 22-8-17-70-26-105zm116-9q-2 11-2 31t-10 53q1 2 4 4 20-2 67-7 0-21 21-42-38-23-80-39zm125 70q-2 4-7 11 19 3 25 5-12-11-18-16zm27 24q-3 6-9.5 18t-9.5 18q-29 1-78 3l-4-34q-2 1-7 2.5t-8 1.5v49q-21 2-64.5 6t-64.5 6q-7 10-15 22 27 58 41 87-20 5-82 22v34q0 2 1.5 6t2.5 6q17 8 53 24t54 25l22-27q-1-10-5-31.5t-6-32.5q3-2 9.5-5.5t9.5-5.5q27-8 41-11 13 21 36.5 60t29.5 49q9-8 25-24.5t24-24.5q-54-38-71-49 1-8 4-23h37q56 48 115 98 1 0 2-1.5t2-1.5q-4-8-26-49 0-1 3-4l4-4h41q1-1 17-9-34-116-124-200z"})):"info"===e?(0,a.createElement)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-hidden":"true"},(0,a.createElement)("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),(0,a.createElement)("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})):"wrench"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,a.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,a.createElement)("g",null,(0,a.createElement)("path",{d:"M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z"}))):"x"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,a.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,a.createElement)("g",null,(0,a.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))):"trash"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,a.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):"question"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,a.createElement)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.createElement)("path",{d:"M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3M12 17h.01"})):"lock"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,a.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,a.createElement)("path",{d:"M7 11V7a5 5 0 0110 0v4"})):"template-library"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,a.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,a.createElement)("path",{d:"M21.375 12.625H2.625A.625.625 0 0 1 2 12V2.625C2 2.28 2.28 2 2.625 2h18.75c.345 0 .625.28.625.625V12c0 .345-.28.625-.625.625zM3.25 11.375h17.5V3.25H3.25v8.125zM10.283 22H2.625A.625.625 0 0 1 2 21.375V15.31c0-.345.28-.625.625-.625h7.658c.345 0 .625.28.625.625v6.065c0 .345-.28.625-.625.625zM3.25 20.75h6.407v-4.815H3.25v4.815zm18.125-1.783h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25zm0 3.033h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25zm0-6.065h-7.892a.625.625 0 0 1 0-1.25h7.892a.625.625 0 0 1 0 1.25z"}),(0,a.createElement)("path",{d:"M12 10.106a.625.625 0 0 1-.625-.625V5.144a.625.625 0 0 1 1.25 0v4.337c0 .346-.28.625-.625.625z"}),(0,a.createElement)("path",{d:"M14.169 7.938H9.831a.625.625 0 0 1 0-1.25h4.337a.625.625 0 0 1 .001 1.25z"})):"accordion"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,a.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0z"}),(0,a.createElement)("path",{d:"M21.375 9.067H2.625A.625.625 0 0 1 2 8.441V2.625C2 2.28 2.28 2 2.625 2h18.751c.344 0 .624.28.624.625v5.816c0 .346-.28.626-.625.626zM3.249 7.816H20.75V3.25H3.249v4.566zm18.126 11.032H2.625a.625.625 0 0 1 0-1.251h18.751a.625.625 0 1 1-.001 1.251zm0 3.152H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25zm0-6.305H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25zm0-3.152H2.625a.625.625 0 0 1 0-1.25h18.751a.625.625 0 1 1-.001 1.25z"}),(0,a.createElement)("path",{d:"M17.831 6.874a.517.517 0 0 1-.368-.153L15.9 5.159l.737-.737 1.194 1.194 1.194-1.194.737.737-1.563 1.563a.522.522 0 0 1-.368.152z"})):"tabs"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gblocks-block-icon"},(0,a.createElement)("path",{style:{fill:"none"},d:"M0 0h24v24H0V0z"}),(0,a.createElement)("path",{d:"M21.38 2H2.62c-.34 0-.62.28-.62.62v18.75c0 .35.28.63.62.63h18.75c.34 0 .62-.28.62-.62V2.62a.608.608 0 0 0-.61-.62zM9.5 3.25h5v2.51h-5V3.25zm11.25 17.5H3.25V3.25h5v3.14c0 .34.28.62.62.62h11.88v13.74zm0-14.99h-5V3.25h5v2.51z"}),(0,a.createElement)("path",{d:"M18.23 13.26H5.77c-.34 0-.62.28-.62.62s.28.62.62.62h12.46c.34 0 .62-.28.62-.62s-.27-.62-.62-.62zm0 3.03H5.77c-.34 0-.62.28-.62.62 0 .34.28.62.62.62h12.46c.34 0 .62-.28.62-.62a.61.61 0 0 0-.62-.62zM5.14 10.85c0 .34.28.62.62.62h12.46c.34 0 .62-.28.62-.62s-.28-.62-.62-.62H5.77a.613.613 0 0 0-.63.62z"})):"horizontal-tabs"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,a.createElement)("path",{d:"M83.91 48.67H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0 15.17H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0 15.17H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84zm0-45.51H16.09a1.92 1.92 0 0 0 0 3.84h67.82a1.92 1.92 0 0 0 0-3.84z"}),(0,a.createElement)("path",{d:"M98.08 0H1.92C.86 0 0 .86 0 1.92v96.15C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V1.92C100 .86 99.14 0 98.08 0zm-1.93 15.59-28.2.09V3.85h28.2v11.74zM35.9 3.85h28.21v11.84l-28.21.08V3.85zM3.85 96.15V3.85h28.21V17.7c0 .51.2 1 .57 1.36.36.36.85.56 1.36.56H34l62.17-.19v76.72H3.85z"})):"vertical-tabs"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,a.createElement)("path",{d:"M33.41 52.51h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0 15.17h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0 15.18h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0-45.52h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84zm0-15.17h50.91a1.92 1.92 0 0 0 0-3.84H33.41a1.92 1.92 0 0 0 0 3.84z"}),(0,a.createElement)("path",{d:"M98.08 0H1.92C.86 0 0 .86 0 1.92v96.15C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V1.92C100 .86 99.14 0 98.08 0zM3.85 52.12h12.52l-.05 19.97H3.85V52.12zm12.53-3.84H3.85V27.99h12.58l-.05 20.29zM3.85 75.94H16.3l-.05 20.21H3.85V75.94zm92.3 20.21H20.09l.19-70.08a1.932 1.932 0 0 0-1.92-1.93H3.85V3.85h92.31v92.3z"})):"button-tabs"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"},(0,a.createElement)("path",{d:"M16.09 55.55h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0 14.22h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0 14.23h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84zm0-42.67h67.82a1.92 1.92 0 0 0 0-3.84H16.09a1.92 1.92 0 0 0 0 3.84z"}),(0,a.createElement)("path",{d:"M98.08 21.47H1.92C.86 21.47 0 22.33 0 23.4v74.68C0 99.14.86 100 1.92 100h96.15c1.06 0 1.92-.86 1.92-1.92V23.4c.01-1.07-.85-1.93-1.91-1.93zm-1.93 74.68H3.85V25.32h92.31v70.83zM1.92 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C28.75.82 27.93 0 26.92 0h-25C.91 0 .1.82.1 1.83v11.24c0 1.01.81 1.82 1.82 1.83zM3.75 3.66H25.1v7.63l-21.35-.05V3.66zM37.5 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C64.33.82 63.51 0 62.5 0h-25c-1.01 0-1.83.82-1.83 1.83v11.24c0 1.01.82 1.82 1.83 1.83zm1.83-11.24h21.35v7.63l-21.35-.05V3.66zM73.07 14.9l25 .05c.48 0 .95-.19 1.29-.53.34-.34.54-.81.54-1.29V1.83C99.9.82 99.09 0 98.08 0h-25c-1.01 0-1.83.82-1.83 1.83v11.24c0 1.01.82 1.82 1.82 1.83zM74.9 3.66h21.35v7.63l-21.35-.05V3.66z"})):"vertical-dots"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,a.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,a.createElement)("circle",{cx:"128",cy:"60",r:"16"}),(0,a.createElement)("circle",{cx:"128",cy:"128",r:"16"}),(0,a.createElement)("circle",{cx:"128",cy:"196",r:"16"})):"generateblocks"===e?(0,a.createElement)("svg",{viewBox:"0 0 50 60.12",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M6.686 31.622V18.918a.077.077 0 0 1 .05-.072l6.5-2.313 6.5-2.313 9.682-3.445L39.1 7.33a.067.067 0 0 0 .036-.028.074.074 0 0 0 .014-.044V.076a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 0 0-.036.028.097.097 0 0 0-.013.046V52.067c0 .026.013.048.032.062s.044.018.069.009l3.267-1.163 3.267-1.163c.015-.005.028-.015.036-.028s.014-.028.014-.044V37.999l.001-6.377c-.001 0 0 0 0 0z"}),(0,a.createElement)("path",{d:"m23.949 29.976 13-4.625 13-4.625c.015-.005.028-.015.036-.028s.015-.028.015-.044V8.056a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-13 4.625-13 4.625-6.5 2.313-6.5 2.313a.067.067 0 0 0-.036.028.074.074 0 0 0-.014.044V60.045c0 .026.013.048.032.062a.076.076 0 0 0 .069.009l6.475-2.304 6.475-2.304 6.525-2.322 6.525-2.322 6.5-2.313 6.5-2.313c.015-.005.028-.015.036-.028s.014-.025.014-.041V27.193a.077.077 0 0 0-.032-.062.076.076 0 0 0-.069-.009l-6.45 2.295L37 31.711a.067.067 0 0 0-.036.028.074.074 0 0 0-.014.044v6.272a.077.077 0 0 1-.05.072l-6.45 2.295L24 42.715a.075.075 0 0 1-.101-.071V30.046c0-.016.005-.031.014-.044a.08.08 0 0 1 .036-.026z"})):"clipboard"===e?(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,a.createElement)("rect",{width:"256",height:"256",fill:"none"}),(0,a.createElement)("line",{x1:"96",y1:"152",x2:"160",y2:"152",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,a.createElement)("line",{x1:"96",y1:"120",x2:"160",y2:"120",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,a.createElement)("path",{d:"M160,40h40a8,8,0,0,1,8,8V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),(0,a.createElement)("path",{d:"M88,72V64a40,40,0,0,1,80,0v8Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})):void 0}const le=window.wp.i18n,ce=window.wp.hooks,ue=window.wp.element,de=window.wp.blockEditor,pe=window.wp.compose,he=window.wp.components,fe=["generateblocks/container","generateblocks/button","generateblocks/headline","generateblocks/button-container","generateblocks/grid","generateblocks/image"],ge=(0,pe.createHigherOrderComponent)((e=>t=>{if(t.isSelected&&fe.includes(t.name)){const[n,r]=(0,ue.useState)(!1),o=()=>r(!0),i=()=>r(!1),{attributes:s,setAttributes:l}=t,c=()=>{const e=[...s.htmlAttributes];e.push({attribute:""}),l({htmlAttributes:e})},u=e=>{const t=[...s.htmlAttributes];t.splice(e,1),l({htmlAttributes:t})},d=(e,t,n)=>{const r=[...s.htmlAttributes];"name"===n&&(r[t]={...r[t],attribute:ae.sanitize(e)}),"value"===n&&(r[t]={...r[t],value:ae.sanitize(e)}),l({htmlAttributes:r})};return(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(e,{...t}),(0,a.createElement)(de.InspectorAdvancedControls,null,(0,a.createElement)(he.BaseControl,{id:"gblocks-custom-attributes",className:"gblocks-custom-attributes-base-control",label:(0,le.__)("Custom Attributes","generateblocks-pro")},s.htmlAttributes.map(((e,t)=>{const n="itemscope"===s.htmlAttributes[t].attribute||"download"===s.htmlAttributes[t].attribute;return(0,a.createElement)(ue.Fragment,{key:t},(0,a.createElement)("div",{className:"gblocks-data-attributes"},(0,a.createElement)(he.TextControl,{className:"gblocks-attribute-name",placeholder:"data-attribute",value:s.htmlAttributes[t].attribute,onChange:e=>d(e,t,"name"),onBlur:()=>{const e=[...s.htmlAttributes],n=e[t].attribute;n&&(e[t].attribute=me(n),l({htmlAttributes:e}))}}),(0,a.createElement)(he.TextControl,{disabled:n,style:{opacity:n?.2:null},className:"gblocks-arribute-value",placeholder:"value",value:s.htmlAttributes[t].value,onChange:e=>d(e,t,"value")}),(0,a.createElement)(he.Button,{className:"gblocks-remove-attribute",icon:se("trash"),label:(0,le.__)("Delete attribute","generateblocks-pro"),onClick:()=>u(t)})))})),(0,a.createElement)("div",{className:"gblocks-add-attribute-button-container"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:c.bind(void 0)},(0,le.__)("Add Attribute","generateblocks-pro"))),(0,a.createElement)(he.Button,{onClick:o,isSmall:!0,isTertiary:!0,className:"gblocks-custom-attributes-allowed-list",icon:se("question")},(0,le.__)("Allowed attributes","generateblocks-pro")),n&&(0,a.createElement)(he.Modal,{title:(0,le.__)("Allowed attributes","generateblocks-pro"),onRequestClose:i},(0,a.createElement)("p",null,(0,le.__)("The following HTML attributes are allowed to be used in the Custom Attributes feature:","generateblocks-pro")),(0,a.createElement)("ul",null,(0,a.createElement)("li",null,"data-*"),(0,a.createElement)("li",null,"aria-*"),(0,a.createElement)("li",null,"title"),(0,a.createElement)("li",null,"download"),(0,a.createElement)("li",null,"role"),(0,a.createElement)("li",null,"itemtype"),(0,a.createElement)("li",null,"itemscope"),(0,a.createElement)("li",null,"itemprop")),(0,a.createElement)(he.Button,{isSecondary:!0,onClick:i},(0,le.__)("Close","generateblocks-pro"))))))}return(0,a.createElement)(e,{...t})}),"withAdvancedControls");function me(e){let t=!1;return e.startsWith("data-")&&(t=!0),e.startsWith("aria-")&&(t=!0),["title","role","download","itemtype","itemscope","itemprop"].includes(e)&&(t=!0),t||(e=""),e}function be(e,t,n){return void 0===e[t]&&(e[t]=[]),e[t].push(n),e}function ve(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}function ye(e,t){return!(!e&&0!==e)&&e+t}function ke(e){return e||0===e}function Ee(e,t,n,r){const o=e;let a="";void 0!==o[r].state&&"normal"!==o[r].state&&(a=o[r].state);let i="";void 0!==o[r].device&&"all"!==o[r].device&&(i=o[r].device);let s="";"background"===o[r].type?s="background":"gradient"===o[r].type&&(s="gradient");let l="element"+s+a+i;o[r].target&&"self"!==o[r].target&&(l=o[r].target+s+a+i,o[r].customSelector&&(l=o[r].customSelector+s+a+i)),"hover"===a&&(a=":hover");let c=n+a;return"innerContainer"===o[r].target&&(c=void 0===t.useInnerContainer||t.useInnerContainer?".gb-container-"+t.uniqueId+a+" > .gb-inside-container":".gb-container-"+t.uniqueId+a+" > .gb-container"),"backgroundImage"===o[r].target&&(c=n+a+":before"),"icon"===o[r].target&&(c=n+a+" .gb-icon"),"accordionContent"===o[r].target&&(c=n+a+" > .gb-accordion__content"),"customSelector"===o[r].target&&(c=n+a+" "+o[r].customSelector),"pseudo-element"===o[r].target&&(c=n+a+":before",void 0!==o[r].direction&&(c=n+a+":after")),{element:l,effectSelector:c}}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/custom-attributes/add-attributes",(function(e){return fe.includes(e.name)?(void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{htmlAttributes:{type:"array",default:[]}})),e):e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/custom-attributes/add-control",ge),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generatebocks-pro/custom-attributes/add-custom-attributes",(function(e,t,n){return fe.includes(t)?(n.htmlAttributes&&Object.keys(n.htmlAttributes).forEach((function(t){const r=me(n.htmlAttributes[t].attribute),o=n.htmlAttributes[t].value;r&&(e=Object.assign(e,{[r]:ae.sanitize(o)}))})),e):e}));var _e=n(6942),we=n.n(_e);class Ce extends ue.Component{render(){const{label:e,id:t,unit:n,value:r,onChange:o,rangeMin:i=0,rangeMax:s=100,inputMin:l="",inputMax:c="",step:u=1,help:d="",beforeIcon:p="",initialPosition:h="",placeholder:f=""}=this.props;return(0,a.createElement)(he.BaseControl,{label:e,id:t,className:"components-gblocks-range-control components-base-control"},!!n&&(0,a.createElement)("span",{className:"gblocks-pro-range-control-unit"},n),(0,a.createElement)("div",{className:"components-gblocks-range-control--wrapper"},(0,a.createElement)("div",{className:"components-gblocks-range-control--range"},(0,a.createElement)(he.RangeControl,{className:"gblocks-range-control-range",beforeIcon:p,value:ke(r)?parseFloat(r):"",onChange:e=>o(e),min:i,max:s,step:u,withInputField:!1,initialPosition:h})),(0,a.createElement)("div",{className:"components-gblocks-range-control-input"},(0,a.createElement)(he.TextControl,{id:t,type:"number",placeholder:""!==f?f:"",min:l,max:c,step:u,value:ke(r)?r:"",onChange:e=>o(e),onBlur:()=>{ke(r)&&o(parseFloat(r))},onClick:e=>{e.currentTarget.focus()}}))),d&&(0,a.createElement)("p",{className:"components-base-control__help"},d))}}function Se(){return(Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xe(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function Oe(e){var t=(0,a.useRef)(e),n=(0,a.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Te=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Ie=function(e){return"touches"in e},Re=function(e){return e&&e.ownerDocument.defaultView||self},Ae=function(e,t,n){var r=e.getBoundingClientRect(),o=Ie(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Te((o.pageX-(r.left+Re(e).pageXOffset))/r.width),top:Te((o.pageY-(r.top+Re(e).pageYOffset))/r.height)}},Ne=function(e){!Ie(e)&&e.preventDefault()},Me=a.memo((function(e){var t=e.onMove,n=e.onKey,r=xe(e,["onMove","onKey"]),o=(0,a.useRef)(null),i=Oe(t),s=Oe(n),l=(0,a.useRef)(null),c=(0,a.useRef)(!1),u=(0,a.useMemo)((function(){var e=function(e){Ne(e),(Ie(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Ae(o.current,e,l.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=c.current,a=Re(o.current),i=n?a.addEventListener:a.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(Ne(t),!function(e,t){return t&&!Ie(e)}(t,c.current)&&r)){if(Ie(t)){c.current=!0;var a=t.changedTouches||[];a.length&&(l.current=a[0].identifier)}r.focus(),i(Ae(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,i]),d=u[0],p=u[1],h=u[2];return(0,a.useEffect)((function(){return h}),[h]),a.createElement("div",Se({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))})),Le=function(e){return e.filter(Boolean).join(" ")},Pe=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Le(["react-colorful__pointer",e.className]);return a.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Fe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},De=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Fe(e.h),s:Fe(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Fe(o/2),a:Fe(r,2)}}),Be=function(e){var t=De(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},je=function(e){var t=De(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},ze=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),c=a%6;return{r:Fe(255*[r,s,i,i,l,r][c]),g:Fe(255*[l,r,r,s,i,i][c]),b:Fe(255*[i,i,l,r,r,s][c]),a:Fe(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Ve({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},$e=He,Ve=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),s=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:Fe(60*(s<0?s+6:s)),s:Fe(a?i/a*100:0),v:Fe(a/255*100),a:o}},qe=a.memo((function(e){var t=e.hue,n=e.onChange,r=Le(["react-colorful__hue",e.className]);return a.createElement("div",{className:r},a.createElement(Me,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Te(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Fe(t),"aria-valuemax":"360","aria-valuemin":"0"},a.createElement(Pe,{className:"react-colorful__hue-pointer",left:t/360,color:Be({h:t,s:100,v:100,a:1})})))})),Ue=a.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Be({h:t.h,s:100,v:100,a:1})};return a.createElement("div",{className:"react-colorful__saturation",style:r},a.createElement(Me,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Te(t.s+100*e.left,0,100),v:Te(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Fe(t.s)+"%, Brightness "+Fe(t.v)+"%"},a.createElement(Pe,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Be(t)})))})),Ge=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function We(e,t,n){var r=Oe(n),o=(0,a.useState)((function(){return e.toHsva(t)})),i=o[0],s=o[1],l=(0,a.useRef)({color:t,hsva:i});(0,a.useEffect)((function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},s(n)}}),[t,e]),(0,a.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0})(i,l.current.hsva)||e.equal(t=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:t},r(t))}),[i,e,r]);var c=(0,a.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[i,c]}var Ye="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,Qe=new Map,Xe=function(e){Ye((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Qe.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Qe.set(t,r);var o=n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},Ke=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=xe(e,["className","colorModel","color","onChange"]),l=(0,a.useRef)(null);Xe(l);var c=We(n,o,i),u=c[0],d=c[1],p=Le(["react-colorful",t]);return a.createElement("div",Se({},s,{ref:l,className:p}),a.createElement(Ue,{hsva:u,onChange:d}),a.createElement(qe,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},Ze=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+je(Object.assign({},n,{a:0}))+", "+je(Object.assign({},n,{a:1}))+")"},i=Le(["react-colorful__alpha",t]),s=Fe(100*n.a);return a.createElement("div",{className:i},a.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),a.createElement(Me,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Te(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},a.createElement(Pe,{className:"react-colorful__alpha-pointer",left:n.a,color:je(n)})))},Je=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=xe(e,["className","colorModel","color","onChange"]),l=(0,a.useRef)(null);Xe(l);var c=We(n,o,i),u=c[0],d=c[1],p=Le(["react-colorful",t]);return a.createElement("div",Se({},s,{ref:l,className:p}),a.createElement(Ue,{hsva:u,onChange:d}),a.createElement(qe,{hue:u.h,onChange:d}),a.createElement(Ze,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},et={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=ze(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ge},tt=function(e){return a.createElement(Je,Se({},e,{colorModel:et}))},nt={defaultColor:"rgb(0, 0, 0)",toHsva:$e,fromHsva:function(e){var t=ze(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Ge},rt=function(e){return a.createElement(Ke,Se({},e,{colorModel:nt}))},ot={grad:.9,turn:360,rad:360/(2*Math.PI)},at=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},it=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},st=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},lt=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ct=function(e){return{r:st(e.r,0,255),g:st(e.g,0,255),b:st(e.b,0,255),a:st(e.a)}},ut=function(e){return{r:it(e.r),g:it(e.g),b:it(e.b),a:it(e.a,3)}},dt=/^#([0-9a-f]{3,8})$/i,pt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ht=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),s=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},ft=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),c=a%6;return{r:255*[r,s,i,i,l,r][c],g:255*[l,r,r,s,i,i][c],b:255*[i,i,l,r,r,s][c],a:o}},gt=function(e){return{h:lt(e.h),s:st(e.s,0,100),l:st(e.l,0,100),a:st(e.a)}},mt=function(e){return{h:it(e.h),s:it(e.s),l:it(e.l),a:it(e.a,3)}},bt=function(e){return ft((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},vt=function(e){return{h:(t=ht(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},yt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kt=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Et=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_t=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wt={string:[[function(e){var t=dt.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?it(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?it(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Et.exec(e)||_t.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ct({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=yt.exec(e)||kt.exec(e);if(!t)return null;var n,r,o=gt({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ot[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return bt(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=void 0===o?1:o;return at(t)&&at(n)&&at(r)?ct({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,a=void 0===o?1:o;if(!at(t)||!at(n)||!at(r))return null;var i=gt({h:Number(t),s:Number(n),l:Number(r),a:Number(a)});return bt(i)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=void 0===o?1:o;if(!at(t)||!at(n)||!at(r))return null;var i=function(e){return{h:lt(e.h),s:st(e.s,0,100),v:st(e.v,0,100),a:st(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)});return ft(i)},"hsv"]]},Ct=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},St=function(e,t){var n=vt(e);return{h:n.h,s:st(n.s+100*t,0,100),l:n.l,a:n.a}},xt=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ot=function(e,t){var n=vt(e);return{h:n.h,s:n.s,l:st(n.l+100*t,0,100),a:n.a}},Tt=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Ct(e.trim(),wt.string):"object"==typeof e&&null!==e?Ct(e,wt.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return it(xt(this.rgba),2)},e.prototype.isDark=function(){return xt(this.rgba)<.5},e.prototype.isLight=function(){return xt(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=ut(this.rgba)).r,n=e.g,r=e.b,a=(o=e.a)<1?pt(it(255*o)):"","#"+pt(t)+pt(n)+pt(r)+a;var e,t,n,r,o,a},e.prototype.toRgb=function(){return ut(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ut(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return mt(vt(this.rgba))},e.prototype.toHslString=function(){return t=(e=mt(vt(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=ht(this.rgba),{h:it(e.h),s:it(e.s),v:it(e.v),a:it(e.a,3)};var e},e.prototype.invert=function(){return It({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),It(St(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),It(St(this.rgba,-e))},e.prototype.grayscale=function(){return It(St(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),It(Ot(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),It(Ot(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?It({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):it(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=vt(this.rgba);return"number"==typeof e?It({h:e,s:t.s,l:t.l,a:t.a}):it(t.h)},e.prototype.isEqual=function(e){return this.toHex()===It(e).toHex()},e}(),It=function(e){return e instanceof Tt?e:new Tt(e)};function Rt(e){const{value:t,onChange:n,onOpacityChange:r,label:o,alpha:i=!1,valueOpacity:s=1,tooltip:l}=e,[c,u]=(0,ue.useState)(t||""),d=(0,ue.useRef)(null),p=i&&1===s?tt:rt,h=(0,ue.useMemo)((()=>(e=>{if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const n=getComputedStyle(document.documentElement).getPropertyValue(t[1]);n&&(e=n)}}return It(e).toRgbString()})(t)),[t]),f=(0,pe.useDebounce)(n);return(0,ue.useEffect)((()=>{t!==c&&f(c),setTimeout((()=>{d.current&&d.current.focus()}),10)}),[c]),(0,a.createElement)("div",{className:"gblocks-color-component"},!!o&&(0,a.createElement)("span",{className:"gblocks-color-component__label"},o),(0,a.createElement)(he.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",placement:"top left",renderToggle:({isOpen:e,onToggle:n})=>{const r=(0,a.createElement)(he.Button,{className:"gblocks-color-component__toggle-button",onClick:n,"aria-expanded":e},(0,a.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:t?ve(t,s):null}}));return(0,a.createElement)(a.Fragment,null,l?(0,a.createElement)(he.Tooltip,{text:l},r):r)},renderContent:()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(p,{color:h,onChange:e=>{It(e).isValid()&&(e=1===It(e).alpha()?It(e).toHex():e),u(e)}}),(0,a.createElement)("div",{className:"gblocks-color-component-content__input-wrapper"},(0,a.createElement)(he.TextControl,{ref:d,className:"gblocks-color-input",type:"text",value:c,onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),u(e)},onBlur:()=>{It(t).isValid()&&1===It(t).alpha()&&u(It(t).toHex())}}),(0,a.createElement)(he.Button,{isSmall:!0,isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{u(""),i&&1!==s&&r(1)}},(0,le.__)("Clear","generateblocks-pro"))),i&&1!==s&&(0,a.createElement)("div",{className:"gblocks-color-component-content__opacity"},(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Opacity","generateblocks-pro")},se("gradient")),(0,a.createElement)(he.RangeControl,{value:s||0,onChange:e=>r(e),min:0,max:1,step:.01,initialPosition:1})),(0,a.createElement)(he.BaseControl,{className:"gblocks-color-component-content__palette"},(0,a.createElement)(de.ColorPalette,{value:t||"",onChange:e=>{u(e)},disableCustomColors:!0,clearable:!1})))}))}function At(e,t,n){return n.some((function(n){let r=!1;return n.target===e&&(r=!0,void 0!==t&&""!==t&&n.customSelector!==t&&(r=!1)),r}))}class Nt extends ue.Component{render(){const{attributes:e,setAttributes:t,effectType:n,effectName:r,effectOptions:o,effectLabel:i,onClose:s,useEffectName:l}=this.props,{transitions:c,bgOptions:u}=e,d=e[r];return(0,a.createElement)(ue.Fragment,null,d.map(((e,p)=>(0,a.createElement)(ue.Fragment,{key:p},(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-container"},(0,a.createElement)("div",{className:"gblocks-adv-dropdown-header"},(0,a.createElement)("span",{className:"gblocks-adv-dropdown-type-label"},i)),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-options"},"transforms"===n&&(0,a.createElement)("div",{className:"gblocks-transform-type"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Type","generateblocks-pro"),value:d[p].type,options:[{label:(0,le.__)("Choose..","generateblocks-pro"),value:""},{label:(0,le.__)("Translate","generateblocks-pro"),value:"translate"},{label:(0,le.__)("Rotate","generateblocks-pro"),value:"rotate"},{label:(0,le.__)("Skew","generateblocks-pro"),value:"skew"},{label:(0,le.__)("Scale","generateblocks-pro"),value:"scale"}],onChange:e=>{const n=[...d];n[p]={...n[p],type:e},t({[r]:n})}})),"filters"===n&&(0,a.createElement)("div",{className:"gblocks-transform-type"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Type","generateblocks-pro"),value:d[p].type,options:[{label:(0,le.__)("Choose..","generateblocks-pro"),value:""},{label:(0,le.__)("Blur","generateblocks-pro"),value:"blur"},{label:(0,le.__)("Brightness","generateblocks-pro"),value:"brightness"},{label:(0,le.__)("Contrast","generateblocks-pro"),value:"contrast"},{label:(0,le.__)("Grayscale","generateblocks-pro"),value:"grayscale"},{label:(0,le.__)("Hue-Rotate","generateblocks-pro"),value:"hue-rotate"},{label:(0,le.__)("Invert","generateblocks-pro"),value:"invert"},{label:(0,le.__)("Saturate","generateblocks-pro"),value:"saturate"},{label:(0,le.__)("Sepia","generateblocks-pro"),value:"sepia"}],onChange:e=>{const n=[...d];n[p]={...n[p],type:e},t({[r]:n})}})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-option-device"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Device","generateblocks-pro"),value:d[p].device,options:[{label:(0,le.__)("All","generateblocks-pro"),value:"all"},{label:(0,le.__)("Desktop","generateblocks-pro"),value:"desktop"},{label:(0,le.__)("Tablet","generateblocks-pro"),value:"tablet-only"},{label:(0,le.__)("Tablet + Mobile","generateblocks-pro"),value:"tablet"},{label:(0,le.__)("Mobile","generateblocks-pro"),value:"mobile"}],onChange:e=>{const n=[...d];n[p]={...n[p],device:e},t({[r]:n})}})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-option-state"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("State","generateblocks-pro"),value:d[p].state,options:[{label:(0,le.__)("Normal","generateblocks-pro"),value:"normal"},{label:(0,le.__)("Hover","generateblocks-pro"),value:"hover"}],onChange:e=>{const n=[...d];n[p]={...n[p],state:e},t({[r]:n})}})),o.length>1&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:we()("gblocks-advanced-dropdown-option-target","backgroundImage"===d[p].target?"gblocks-adv-dropdown-target-bg-image":"")},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Target","generateblocks-pro"),value:d[p].target,options:o,onChange:e=>{const n=[...d];n[p]={...n[p],target:e},t("backgroundImage"===e?{[r]:n,bgOptions:{...u,selector:"pseudo-element"},position:"relative",overflowX:"hidden",overflowY:"hidden"}:{[r]:n})}}),"backgroundImage"===d[p].target&&(0,a.createElement)("div",{className:"gblocks-adv-dropdown-bg-image-notice"},(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Your background image must be set to Pseudo Element for effects to work.","generateblocks-pro")},se("info")))),"customSelector"===d[p].target&&(0,a.createElement)("div",{className:"gblocks-adv-dropdown-custom-selector"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("Custom Selector","generateblocks-pro"),type:"text",placeholder:".gb-icon",value:d[p].customSelector?d[p].customSelector:"",onChange:e=>{const n=[...d];n[p]={...n[p],customSelector:e},t({[r]:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),"opacity"===n&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Opacity","generateblocks-pro"),value:ke(d[p].opacity)?d[p].opacity:1,onChange:e=>{const n=[...d];n[p]={...n[p],opacity:e},t({[r]:n})},rangeMin:0,rangeMax:1,step:.1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Mix Blend Mode","generateblocks-pro"),value:d[p].mixBlendMode,options:[{label:(0,le.__)("Choose…","generateblocks-pro"),value:""},{label:(0,le.__)("Multiply","generateblocks-pro"),value:"multiply"},{label:(0,le.__)("Screen","generateblocks-pro"),value:"screen"},{label:(0,le.__)("Overlay","generateblocks-pro"),value:"overlay"},{label:(0,le.__)("Darken","generateblocks-pro"),value:"darken"},{label:(0,le.__)("Lighten","generateblocks-pro"),value:"lighten"},{label:(0,le.__)("Color Dodge","generateblocks-pro"),value:"color-dodge"},{label:(0,le.__)("Color Burn","generateblocks-pro"),value:"color-burn"},{label:(0,le.__)("Hard Light","generateblocks-pro"),value:"hard-light"},{label:(0,le.__)("Soft Light","generateblocks-pro"),value:"soft-light"},{label:(0,le.__)("Difference","generateblocks-pro"),value:"difference"},{label:(0,le.__)("Exclusion","generateblocks-pro"),value:"exclusion"},{label:(0,le.__)("Hue","generateblocks-pro"),value:"hue"},{label:(0,le.__)("Saturation","generateblocks-pro"),value:"saturation"},{label:(0,le.__)("Color","generateblocks-pro"),value:"color"},{label:(0,le.__)("Luminosity","generateblocks-pro"),value:"luminosity"}],onChange:e=>{const n=[...d];n[p]={...n[p],mixBlendMode:e},t({[r]:n})}}))),"transition"===n&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("Timing Function","generateblocks-pro"),type:"text",value:d[p].timingFunction||"",onChange:e=>{const n=[...d];n[p]={...n[p],timingFunction:e},t({[r]:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("CSS Property","generateblocks-pro"),type:"text",value:d[p].property||"",onChange:e=>{const n=[...d];n[p]={...n[p],property:e},t({[r]:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Transition Duration","generateblocks-pro"),unit:"sec",value:ke(d[p].duration)?d[p].duration:"",onChange:e=>{const n=[...d];n[p]={...n[p],duration:e},t({[r]:n})},inputMin:0,inputMax:1,rangeMin:0,rangeMax:1,step:.1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Delay","generateblocks-pro"),unit:"sec",value:ke(d[p].delay)?d[p].delay:"",onChange:e=>{const n=[...d];n[p]={...n[p],delay:e},t({[r]:n})},inputMin:0,inputMax:1,rangeMin:0,rangeMax:1,step:.1}))),"box-shadow"===n&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option gblocks-adv-dropdown-option-no-grow"},(0,a.createElement)(he.BaseControl,{id:"gblocks-box-shadow-inset",label:(0,le.__)("Inset","generateblocks-pro")},(0,a.createElement)(he.ToggleControl,{checked:!!d[p].inset,onChange:e=>{const n=[...d];n[p]={...n[p],inset:e},t({[r]:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option gblocks-adv-dropdown-option-no-grow"},(0,a.createElement)(he.BaseControl,{id:"gblocks-box-shadow-color",label:(0,le.__)("Color","generateblocks-pro")},(0,a.createElement)(Rt,{value:d[p].color,alpha:!0,valueOpacity:d[p].colorOpacity,onChange:e=>{const n=[...d];n[p]={...n[p],color:e},t({[r]:n})},onOpacityChange:e=>{const n=[...d];n[p]={...n[p],colorOpacity:e},t({[r]:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Horizontal Offset","generateblocks-pro"),unit:"px",value:ke(d[p].xOffset)?d[p].xOffset:"",onChange:e=>{const n=[...d];n[p]={...n[p],xOffset:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Vertical Offset","generateblocks-pro"),unit:"px",value:ke(d[p].yOffset)?d[p].yOffset:"",onChange:e=>{const n=[...d];n[p]={...n[p],yOffset:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Blur","generateblocks-pro"),unit:"px",value:ke(d[p].blur)?d[p].blur:"",onChange:e=>{const n=[...d];n[p]={...n[p],blur:e},t({[r]:n})},inputMin:0,rangeMin:0,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Spread","generateblocks-pro"),unit:"px",value:ke(d[p].spread)?d[p].spread:"",onChange:e=>{const n=[...d];n[p]={...n[p],spread:e},t({[r]:n})},rangeMin:-50,rangeMax:50}))),"text-shadow"===n&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option gblocks-adv-dropdown-option-no-grow gblocks-inline-color-label"},(0,a.createElement)(he.BaseControl,{id:"gblocks-text-shadow-color",label:(0,le.__)("Color","generateblocks-pro")},(0,a.createElement)(Rt,{value:d[p].color,alpha:!0,valueOpacity:d[p].colorOpacity,onChange:e=>{const n=[...d];n[p]={...n[p],color:e},t({[r]:n})},onOpacityChange:e=>{const n=[...d];n[p]={...n[p],colorOpacity:e},t({[r]:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Horizontal Offset","generateblocks-pro"),unit:"px",value:ke(d[p].xOffset)?d[p].xOffset:"",onChange:e=>{const n=[...d];n[p]={...n[p],xOffset:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Vertical Offset","generateblocks-pro"),unit:"px",value:ke(d[p].yOffset)?d[p].yOffset:"",onChange:e=>{const n=[...d];n[p]={...n[p],yOffset:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Blur","generateblocks-pro"),unit:"px",value:ke(d[p].blur)?d[p].blur:"",onChange:e=>{const n=[...d];n[p]={...n[p],blur:e},t({[r]:n})},inputMin:0,rangeMin:0,rangeMax:50,step:1}))),"transforms"===n&&(0,a.createElement)(ue.Fragment,null,"translate"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Translate X","generateblocks-pro"),unit:"px",value:ke(d[p].translateX)?d[p].translateX:"",onChange:e=>{const n=[...d];n[p]={...n[p],translateX:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Translate Y","generateblocks-pro"),unit:"px",value:ke(d[p].translateY)?d[p].translateY:"",onChange:e=>{const n=[...d];n[p]={...n[p],translateY:e},t({[r]:n})},rangeMin:-50,rangeMax:50,step:1}))),"rotate"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Rotate","generateblocks-pro"),unit:"deg",value:ke(d[p].rotate)?d[p].rotate:"",onChange:e=>{const n=[...d];n[p]={...n[p],rotate:e},t({[r]:n})},rangeMin:0,rangeMax:360,step:1}))),"skew"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Skew X","generateblocks-pro"),unit:"deg",value:ke(d[p].skewX)?d[p].skewX:"",onChange:e=>{const n=[...d];n[p]={...n[p],skewX:e},t({[r]:n})},rangeMin:0,rangeMax:360,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Skew Y","generateblocks-pro"),unit:"deg",value:ke(d[p].skewY)?d[p].skewY:"",onChange:e=>{const n=[...d];n[p]={...n[p],skewY:e},t({[r]:n})},rangeMin:0,rangeMax:360,step:1}))),"scale"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Scale","generateblocks-pro"),value:ke(d[p].scale)?d[p].scale:"",onChange:e=>{const n=[...d];n[p]={...n[p],scale:e},t({[r]:n})},rangeMin:0,rangeMax:2,step:.1,initialPosition:1,placeholder:"1"})))),"filters"===n&&(0,a.createElement)(ue.Fragment,null,"blur"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Blur","generateblocks-pro"),unit:"px",value:ke(d[p].blur)?d[p].blur:"",onChange:e=>{const n=[...d];n[p]={...n[p],blur:e},t({[r]:n})},rangeMin:0,rangeMax:50,step:5}))),"brightness"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Brightness","generateblocks-pro"),unit:"%",value:ke(d[p].brightness)?d[p].brightness:"",onChange:e=>{const n=[...d];n[p]={...n[p],brightness:e},t({[r]:n})},rangeMin:0,rangeMax:200,step:5,initialPosition:100}))),"contrast"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Contrast","generateblocks-pro"),unit:"%",value:ke(d[p].contrast)?d[p].contrast:"",onChange:e=>{const n=[...d];n[p]={...n[p],contrast:e},t({[r]:n})},rangeMin:0,rangeMax:200,step:5,initialPosition:100}))),"grayscale"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Grayscale","generateblocks-pro"),unit:"%",value:ke(d[p].grayscale)?d[p].grayscale:"",onChange:e=>{const n=[...d];n[p]={...n[p],grayscale:e},t({[r]:n})},rangeMin:0,rangeMax:100,step:5}))),"hue-rotate"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Hue-Rotate","generateblocks-pro"),unit:"deg",value:ke(d[p].hueRotate)?d[p].hueRotate:"",onChange:e=>{const n=[...d];n[p]={...n[p],hueRotate:e},t({[r]:n})},rangeMin:0,rangeMax:360,step:5}))),"invert"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Invert","generateblocks-pro"),unit:"%",value:ke(d[p].invert)?d[p].invert:"",onChange:e=>{const n=[...d];n[p]={...n[p],invert:e},t({[r]:n})},rangeMin:0,rangeMax:100,step:5}))),"saturate"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Saturate","generateblocks-pro"),unit:"%",value:ke(d[p].saturate)?d[p].saturate:"",onChange:e=>{const n=[...d];n[p]={...n[p],saturate:e},t({[r]:n})},rangeMin:0,rangeMax:200,step:5,initialPosition:100}))),"sepia"===d[p].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Sepia","generateblocks-pro"),unit:"%",value:ke(d[p].sepia)?d[p].sepia:"",onChange:e=>{const n=[...d];n[p]={...n[p],sepia:e},t({[r]:n})},rangeMin:0,rangeMax:100,step:5}))))),(0,a.createElement)("div",{className:"gblocks-effects-footer"},"transition"!==n&&!At(d[p].target,d[p].customSelector,c)&&(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Automatically add a smooth transition to this effect.","generateblocks-pro")},(0,a.createElement)(he.Button,{isSecondary:!0,isSmall:!0,className:"gblocks-add-transition",onClick:()=>{const e=[...c];c.length<1&&"self"!==d[p].target&&e.push({state:"normal",target:"self",customSelector:"",timingFunction:"ease",property:"all",duration:.5,delay:""}),e.push({state:"normal",target:d[p].target,customSelector:d[p].customSelector,timingFunction:"ease",property:"all",duration:.5,delay:""}),t({useTransition:!0,transitions:e})}},(0,le.__)("Add Transition","generateblocks-pro"))),(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Delete this effect.","generateblocks-pro")},(0,a.createElement)(he.Button,{isSecondary:!0,isSmall:!0,className:"gblocks-delete-effect",onClick:()=>{if(window.confirm((0,le.__)("This will permanently delete this effect.","generateblocks-pro"))){const e=[...d];e.splice(p,1),t({[r]:e}),0===e.length&&(t({[l]:!1}),s())}},icon:se("trash")},(0,le.__)("Delete","generateblocks-pro")))))))))}}const Mt=Nt,Lt=["generateblocks/container","generateblocks/button","generateblocks/headline","generateblocks/image"],Pt=(0,pe.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:r,name:o}=t;if(!Lt.includes(t.name)||!t.isSelected)return(0,a.createElement)(e,{...t});const{useOpacity:i,opacities:s,opacityDisableInEditor:l,useTransition:c,transitions:u,useBoxShadow:d,boxShadows:p,useTextShadow:h,textShadows:f,useTransform:g,transformDisableInEditor:m,transforms:b,useFilter:v,filters:y,variantRole:k}=n,E=[{label:(0,le.__)("Self","generateblocks-pro"),value:"self"}];return"generateblocks/container"===o&&(E.push({label:(0,le.__)("Inner Container","generateblocks-pro"),value:"innerContainer"}),E.push({label:(0,le.__)("Background Image","generateblocks-pro"),value:"backgroundImage"})),E.push({label:(0,le.__)("Custom Selector","generateblocks-pro"),value:"customSelector"}),"generateblocks/button"!==o&&"generateblocks/headline"!==o||E.push({label:(0,le.__)("Icon","generateblocks-pro"),value:"icon"}),"accordion-item"===k&&E.push({label:(0,le.__)("Accordion Content","generateblocks-pro"),value:"accordionContent"}),(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(e,{...t}),(0,a.createElement)(de.InspectorControls,null,(0,a.createElement)(he.PanelBody,{title:(0,le.__)("Effects","generateblocks-pro"),initialOpen:!1,icon:se("effects"),className:"gblocks-panel-label"},(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:s.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Opacity & Blend (%s)","generateblocks-pro"),s.length):(0,le.__)("Opacity & Blend","generateblocks-pro"),checked:!!i,onChange:e=>{r({useOpacity:e})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Opacity","generateblocks-pro"),effectType:"opacity",effectName:"opacities",useEffectName:"useOpacity",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!i&&s.length<1&&r({useOpacity:!0});const e=[...s];e.push({state:"normal",target:"self",customSelector:"",opacity:1}),r({opacities:e})}},(0,le.__)("Add Effect","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")),!!s.length&&(0,a.createElement)(he.ToggleControl,{className:"gblocks-disable-in-editor",label:(0,le.__)("Disable in editor","generateblocks-pro"),checked:!!l,onChange:e=>{r({opacityDisableInEditor:e})}}))))})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:u.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Transition (%s)","generateblocks-pro"),u.length):(0,le.__)("Transition","generateblocks-pro"),checked:!!c,onChange:e=>{const t=[...u];u.length<1&&e&&t.push({state:"normal",target:"self",customSelector:"",timingFunction:"ease",property:"all",duration:.5,delay:""}),r({useTransition:e,transitions:t})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown gblocks-transition-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Transition","generateblocks-pro"),effectType:"transition",effectName:"transitions",useEffectName:"useTransition",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!c&&u.length<1&&r({useTransition:!0});const e=[...u];e.push({state:"normal",target:"self",customSelector:"",timingFunction:"ease",property:"all",duration:.5,delay:""}),r({transitions:e})}},(0,le.__)("Add Effect","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")))))})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:p.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Box Shadow (%s)","generateblocks-pro"),p.length):(0,le.__)("Box Shadow","generateblocks-pro"),checked:!!d,onChange:e=>{const t=[...p];p.length<1&&e&&t.push({state:"normal",target:"self",customSelector:"",inset:!1,color:generateBlocksPro.hasRgbaSupport?"rgba(0,0,0,0.1)":"#000000",colorOpacity:generateBlocksPro.hasRgbaSupport?void 0:.1,xOffset:5,yOffset:5,blur:10,spread:""}),r({useBoxShadow:e,boxShadows:t})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown gblocks-box-shadow-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Box Shadow","generateblocks-pro"),effectType:"box-shadow",effectName:"boxShadows",useEffectName:"useBoxShadow",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!d&&p.length<1&&r({useBoxShadow:!0});const e=[...p];e.push({state:"normal",target:"self",customSelector:"",inset:!1,color:generateBlocksPro.hasRgbaSupport?"rgba(0,0,0,0.1)":"#000000",colorOpacity:generateBlocksPro.hasRgbaSupport?void 0:.1,xOffset:5,yOffset:5,blur:10,spread:""}),r({boxShadows:e})}},(0,le.__)("Add Effect","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")))))})),"generateblocks/image"!==o&&(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:f.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Text Shadow (%s)","generateblocks-pro"),f.length):(0,le.__)("Text Shadow","generateblocks-pro"),checked:!!h,onChange:e=>{const t=[...f];f.length<1&&e&&t.push({state:"normal",target:"self",customSelector:"",color:generateBlocksPro.hasRgbaSupport?"rgba(0,0,0,0.5)":"#000000",colorOpacity:generateBlocksPro.hasRgbaSupport?void 0:.5,xOffset:5,yOffset:5,blur:10}),r({useTextShadow:e,textShadows:t})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown gblocks-text-shadow-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Text Shadow","generateblocks-pro"),effectType:"text-shadow",effectName:"textShadows",useEffectName:"useTextShadow",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!h&&f.length<1&&r({useTextShadow:!0});const e=[...f];e.push({state:"normal",target:"self",customSelector:"",color:generateBlocksPro.hasRgbaSupport?"rgba(0,0,0,0.5)":"#000000",colorOpacity:generateBlocksPro.hasRgbaSupport?void 0:.5,xOffset:5,yOffset:5,blur:10}),r({textShadows:e})}},(0,le.__)("Add Effect","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")))))})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:b.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Transform (%s)","generateblocks-pro"),b.length):(0,le.__)("Transform","generateblocks-pro"),checked:!!g,onChange:e=>{r({useTransform:e})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Transform","generateblocks-pro"),effectType:"transforms",effectName:"transforms",useEffectName:"useTransform",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!g&&b.length<1&&r({useTransform:!0});const e=[...b];e.push({type:"",state:"normal",target:"self"}),r({transforms:e})}},(0,le.__)("Add Transform","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")),!!b.length&&(0,a.createElement)(he.ToggleControl,{className:"gblocks-disable-in-editor",label:(0,le.__)("Disable in editor","generateblocks-pro"),checked:!!m,onChange:e=>{r({transformDisableInEditor:e})}}))))})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:y.length>0?/* translators: Number of transforms. */ /* translators: Number of transforms. */(0,le.sprintf)((0,le.__)("Filter (%s)","generateblocks-pro"),y.length):(0,le.__)("Filter","generateblocks-pro"),checked:!!v,onChange:e=>{r({useFilter:e})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Mt,{...t,effectLabel:(0,le.__)("Filter","generateblocks-pro"),effectType:"filters",effectName:"filters",useEffectName:"useFilter",effectOptions:E,onClose:e}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{!v&&y.length<1&&r({useTransform:!0});const e=[...y];e.push({type:"",state:"normal",target:"self"}),r({filters:e})}},(0,le.__)("Add Filter","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")))))})))))}),"withEffectControls");function Ft(e,t,n){if(!["container","button","headline","image"].includes(n))return e;const r=(0,ce.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:o,useOpacity:a,opacities:i,opacityDisableInEditor:s,useTransition:l,transitions:c,useBoxShadow:u,boxShadows:d,useTransform:p,transformDisableInEditor:h,useTextShadow:f,textShadows:g,useFilter:m,hasButtonContainer:b=!1}=r;if("container"===n||"button"===n||"headline"===n||"image"===n){let t=".editor-styles-wrapper .gb-container-"+o;if("button"===n&&(t=b?".editor-styles-wrapper .gb-button-wrapper .gb-button-"+o:".editor-styles-wrapper .gb-button-"+o),"headline"===n&&(t=".editor-styles-wrapper .gb-headline-"+o),"image"===n&&(t=".editor-styles-wrapper .gb-image-"+o),u){const n={};d&&Object.keys(d).forEach((function(o){const a=Ee(d,r,t,o),i=(0,le.sprintf)("%1$s %2$s %3$s %4$s %5$s %6$s",d[o].inset?"inset":"",d[o].xOffset?d[o].xOffset+"px":0,d[o].yOffset?d[o].yOffset+"px":0,d[o].blur?d[o].blur+"px":0,d[o].spread?d[o].spread+"px":0,ve(d[o].color,d[o].colorOpacity));void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,boxShadow:i,state:d[o].state,device:d[o].device}),Object.keys(n).forEach((function(t){const r=n[t];if(void 0!==r.device){if("desktop"===r.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===r.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===r.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===r.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}void 0!==r.boxShadow&&be(e,r.selector,{"box-shadow":r.boxShadow})}))}))}if(a){const n={};i&&Object.keys(i).forEach((function(o){const a=Ee(i,r,t,o);void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,opacity:i[o].opacity,mixBlendMode:i[o].mixBlendMode,state:i[o].state,device:i[o].device}),Object.keys(n).forEach((function(t){const r=n[t];let o=r.selector,a=".wp-block:not(.is-selected):not(.has-child-selected)";if(generateBlocksPro.hasColorGroups||(a+=" > "),s||(a=""),o=a+o,void 0!==r.device){if("desktop"===r.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===r.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===r.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===r.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}void 0!==r.opacity&&be(e,o,{opacity:ke(r.opacity)?r.opacity:1,"mix-blend-mode":r.mixBlendMode?r.mixBlendMode:""})}))}))}if(l){const n={};c&&Object.keys(c).forEach((function(o){const a=Ee(c,r,t,o);void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,transitions:[],state:c[o].state,device:c[o].device});const i=ke(c[o].delay)?c[o].delay+"s":"",s=c[o].property+" "+ye(c[o].duration,"s")+" "+c[o].timingFunction+" "+i;n[a.element].transitions.push(s.trim()),Object.keys(n).forEach((function(t){const r=n[t];if(void 0!==r.device){if("desktop"===r.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===r.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===r.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===r.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}void 0!==r.transitions&&be(e,r.selector,{transition:r.transitions.join(", ")})}))}))}if(p){const n=function(e,t){const n={},r=e.transforms;return r&&Object.keys(r).forEach((function(o){const a=Ee(r,e,t,o);if(void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,transforms:[],state:r[o].state,device:r[o].device}),"translate"===r[o].type){let e=0,t=0;ke(r[o].translateX)&&(e=r[o].translateX+"px"),ke(r[o].translateY)&&(t=r[o].translateY+"px"),(e||t)&&n[a.element].transforms.push("translate3d("+e+","+t+",0)")}"rotate"===r[o].type&&(r[o].rotate||0===r[o].rotate)&&n[a.element].transforms.push("rotate("+r[o].rotate+"deg)"),"skew"===r[o].type&&((r[o].skewX||0===r[o].skewY)&&n[a.element].transforms.push("skewX("+r[o].skewX+"deg)"),(r[o].skewY||0===r[o].skewY)&&n[a.element].transforms.push("skewY("+r[o].skewY+"deg)")),"scale"===r[o].type&&(r[o].scale||0===r[o].scale)&&(n[a.element].transforms.push("scale("+r[o].scale+")"),n[a.element].transforms.push("perspective(1000px)"))})),n}(r,t);Object.keys(n).forEach((function(t){const r=n[t];let o=r.selector,a=".wp-block:not(.is-selected):not(.has-child-selected)";if(generateBlocksPro.hasColorGroups||(a+=" > "),h||(a=""),o=a+o,void 0!==r.device){if("desktop"===r.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===r.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===r.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===r.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}void 0!==r.transforms&&be(e,o,{transform:r.transforms.join(" ")})}))}if(m){const n=function(e,t){const n={},r=e.filters;return r&&Object.keys(r).forEach((function(o){const a=Ee(r,e,t,o);void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,filters:[],state:r[o].state,device:r[o].device}),"blur"===r[o].type&&ke(r[o].blur)&&n[a.element].filters.push("blur("+r[o].blur+"px)"),"brightness"===r[o].type&&ke(r[o].brightness)&&n[a.element].filters.push("brightness("+r[o].brightness+"%)"),"contrast"===r[o].type&&ke(r[o].contrast)&&n[a.element].filters.push("contrast("+r[o].contrast+"%)"),"grayscale"===r[o].type&&ke(r[o].grayscale)&&n[a.element].filters.push("grayscale("+r[o].grayscale+"%)"),"hue-rotate"===r[o].type&&ke(r[o].hueRotate)&&n[a.element].filters.push("hue-rotate("+r[o].hueRotate+"deg)"),"invert"===r[o].type&&ke(r[o].invert)&&n[a.element].filters.push("invert("+r[o].invert+"%)"),"saturate"===r[o].type&&ke(r[o].saturate)&&n[a.element].filters.push("saturate("+r[o].saturate+"%)"),"sepia"===r[o].type&&ke(r[o].sepia)&&n[a.element].filters.push("sepia("+r[o].sepia+"%)")})),n}(r,t);Object.keys(n).forEach((function(t){const r=n[t];if(void 0!==r.device){if("desktop"===r.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===r.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===r.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===r.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}void 0!==r.filters&&be(e,r.selector,{filter:r.filters.join(" ")})}))}if(f){const n={};g&&Object.keys(g).forEach((function(o){const a=Ee(g,r,t,o),i=(0,le.sprintf)("%1$s %2$s %3$s %4$s",ve(g[o].color,g[o].colorOpacity),g[o].xOffset?g[o].xOffset+"px":0,g[o].yOffset?g[o].yOffset+"px":0,g[o].blur?g[o].blur+"px":0);void 0===n[a.element]&&(n[a.element]={selector:a.effectSelector,textShadow:i,state:g[o].state,device:g[o].device}),Object.keys(n).forEach((function(t){const r=n[t];void 0!==r.textShadow&&be(e,r.selector,{"text-shadow":r.textShadow})}))}))}}return e}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/effects/add-attributes",(function(e){if(!Lt.includes(e.name))return e;let t="container";return"generateblocks/button"===e.name?t="button":"generateblocks/headline"===e.name?t="headline":"generateblocks/image"===e.name&&(t="image"),void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{useOpacity:{type:"boolean",default:generateBlocksDefaults[t].useOpacity},opacities:{type:"array",default:[]},opacityDisableInEditor:{type:"boolean",default:!1},useTransition:{type:"boolean",default:generateBlocksDefaults[t].useTransition},transitions:{type:"array",default:[]},useBoxShadow:{type:"boolean",default:generateBlocksDefaults[t].useBoxShadow},boxShadows:{type:"array",default:[]},useTransform:{type:"boolean",default:generateBlocksDefaults[t].useTransform},transformDisableInEditor:{type:"boolean",default:!1},transforms:{type:"array",default:[]},useTextShadow:{type:"boolean",default:generateBlocksDefaults[t].useTextShadow},textShadows:{type:"array",default:[]},useFilter:{type:"boolean",default:generateBlocksDefaults[t].useFilter},filters:{type:"array",default:[]}})),e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/effects/add-controls",Pt),(0,ce.addFilter)("generateblocks.editor.mainCSS","generateblocks-pro/effects/add-main-css",Ft),(0,ce.addFilter)("generateblocks.editor.desktopCSS","generateblocks-pro/effects/add-desktop-css",Ft),(0,ce.addFilter)("generateblocks.editor.tabletOnlyCSS","generateblocks-pro/effects/add-tablet-only-css",Ft),(0,ce.addFilter)("generateblocks.editor.tabletCSS","generateblocks-pro/effects/add-tablet-css",Ft),(0,ce.addFilter)("generateblocks.editor.mobileCSS","generateblocks-pro/effects/add-mobile-css",Ft);const Dt=["generateblocks/container","generateblocks/button","generateblocks/button-container","generateblocks/headline","generateblocks/image"],Bt=(0,pe.createHigherOrderComponent)((e=>t=>{if(t.isSelected&&Dt.includes(t.name)){const{attributes:n,setAttributes:r}=t,{hideOnDesktop:o,hideOnTablet:i,hideOnMobile:s}=n;return(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(e,{...t}),(0,a.createElement)(de.InspectorAdvancedControls,null,(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on desktop","generateblocks-pro"),checked:!!o,onChange:e=>{r({hideOnDesktop:e})}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on tablet","generateblocks-pro"),checked:!!i,onChange:e=>{r({hideOnTablet:e})}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on mobile","generateblocks-pro"),checked:!!s,onChange:e=>{r({hideOnMobile:e})}})))}return(0,a.createElement)(e,{...t})}),"withAdvancedControls");function jt(e,t){const{clientId:n}=t,r=(0,ce.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:o,hideOnDesktop:a,hideOnTablet:i,hideOnMobile:s,isGrid:l}=r;let c=a;return"generateblocks.editor.tabletOnlyCSS"===(0,ce.currentFilter)()?c=i:"generateblocks.editor.mobileCSS"===(0,ce.currentFilter)()&&(c=s),c&&(be(e,'.editor-styles-wrapper [data-block="'+n+'"]',{display:"none !important"}),l&&be(e,".gb-grid-column-"+o,{display:"none"})),e}function zt(e){const{device:t,attributes:n,setAttributes:r}=e,{hideOnDesktop:o,hideOnTablet:i,hideOnMobile:s}=n;return(0,a.createElement)(ue.Fragment,null,"Desktop"===t&&(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on desktop","generateblocks-pro"),checked:!!o,onChange:e=>{r({hideOnDesktop:e})},help:(0,le.__)("This block is hidden on this device.","generateblocks-pro")}),"Tablet"===t&&(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on tablet","generateblocks-pro"),checked:!!i,onChange:e=>{r({hideOnTablet:e})},help:(0,le.__)("This block is hidden on this device.","generateblocks-pro")}),"Mobile"===t&&(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Hide on mobile","generateblocks-pro"),checked:!!s,onChange:e=>{r({hideOnMobile:e})},help:(0,le.__)("This block is hidden on this device.","generateblocks-pro")}))}(0,ce.addFilter)("generateblocks.editor.settingsPanel","generateblocks/device-display/add-notice",(function(e,t){const{device:n,name:r,attributes:o,setAttributes:i}=t;if(!Dt.includes(r))return e;const{hideOnDesktop:s,hideOnTablet:l,hideOnMobile:c}=o;return"Desktop"===n&&!s||"Tablet"===n&&!l||"Mobile"===n&&!c?e:(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(zt,{device:n,attributes:o,setAttributes:i}),e)})),(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/device-display/add-attributes",(function(e){return Dt.includes(e.name)?(void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}})),e):e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/device-display/add-control",Bt),(0,ce.addFilter)("generateblocks.editor.desktopCSS","generateblocks-pro/device-display/add-desktop-css",jt),(0,ce.addFilter)("generateblocks.editor.tabletOnlyCSS","generateblocks-pro/device-display/add-tablet-only-css",jt),(0,ce.addFilter)("generateblocks.editor.mobileCSS","generateblocks-pro/device-display/add-mobile-css",jt),(0,ce.addFilter)("generateblocks.editor.controls","generateblocks-pro/device-display/add-hidden-message",(function(e,t,n){if("afterResponsiveTabs"!==t)return e;const{selectedDevice:r,attributes:o,setAttributes:i}=n,{hideOnDesktop:s,hideOnTablet:l,hideOnMobile:c}=o;return"Desktop"===r&&!s||"Tablet"===r&&!l||"Mobile"===r&&!c?e:(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(he.Notice,{className:"gblocks-device-hidden-notice",status:"info",isDismissible:!1},(0,a.createElement)(zt,{device:r,attributes:o,setAttributes:i})),e)}));const Ht=(0,ce.applyFilters)("generateblocks.utils.noStyleAttributes",["accordionItemOpen","accordionMultipleOpen","alt","anchor","ariaLabel","blockLabel","blockVersion","buttonType","className","columns","content","cssClasses","customIcon","dateReplacePublished","dateType","defaultOpenedTab","dynamicContentType","dynamicLinkType","dynamicSource","element","elementId","globalClasses","globalStyleId","globalStyleLabel","gridId","hasIcon","hasUrl","hiddenLinkAriaLabel","href","htmlAttributes","icon","iconLocation","isDynamic","isDynamic","isGlobalStyle","isGrid","isPagination","isQueryLoop","isQueryLoopItem","linkMetaFieldName","linkType","lock","marginSyncUnits","mediaId","mediaUrl","metaFieldName","multipleCommentsText","noCommentsText","openInNewWindow","paddingSyncUnits","postId","postType","query","relNoFollow","relSponsored","singleCommentsText","sizeSlug","tabItemOpen","tagName","target","termSeparator","termTaxonomy","text","title","uniqueId","url","useDynamicData","useGlobalStyle","useInnerContainer","variantRole"]),$t=window.wp.data,Vt=window.wp.blocks,{localStorage:qt}=window,Ut={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function Gt(e){const{onPaste:t,attributes:n,name:r}=e,{updateBlockAttributes:o}=(0,$t.useDispatch)("core/block-editor"),{getBlockAttributes:i,getMultiSelectedBlockClientIds:s,hasMultiSelection:l}=(0,$t.useSelect)("core/block-editor");let c="";"generateblocks/container"===r?c="Container":"generateblocks/button"===r?c="Button":"generateblocks/headline"===r?c="Headline":"generateblocks/container"===r?c="ButtonContainer":"generateblocks/image"===r&&(c="Image");const u=JSON.parse(qt.getItem("generateblocks"+c+"Style"));return(0,a.createElement)(he.ToolbarGroup,{isCollapsed:!0,icon:se("copy"),label:(0,le.__)("Styles","generateblocks-pro"),popoverProps:Ut,controls:[{title:(0,le.__)("Copy Styles","generateblocks-pro"),onClick:()=>{const e={};Object.keys(n).forEach((t=>{Ht.includes(t)||(e[t]=n[t])})),qt.setItem("generateblocks"+c+"Style",JSON.stringify(e))},isDisabled:l()},{title:(0,le.__)("Paste Styles","generateblocks-pro"),onClick:()=>{const e=JSON.parse(qt.getItem("generateblocks"+c+"Style"));e&&t(e)},isDisabled:!u},{title:(0,le.__)("Clear Styles","generateblocks-pro"),onClick:()=>{if(window.confirm(l()?(0,le.__)("This will remove all styling from these blocks.","generateblocks-pro"):(0,le.__)("This will remove all styling from this block.","generateblocks-pro"))){const t=l()?s():[e.clientId],n={};t.forEach((e=>{const t=i(e),o={};Object.keys(t).forEach((e=>{Ht.includes(e)&&(o[e]=t[e])}));const a=(0,Vt.createBlock)(r,o);n[e]=a?.attributes})),o(t,n,!0)}}}]})}const Wt=["generateblocks/container","generateblocks/button","generateblocks/headline","generateblocks/button-container","generateblocks/image"],Yt=(0,pe.createHigherOrderComponent)((e=>t=>{const{name:n,setAttributes:r}=t;return(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(e,{...t}),Wt.includes(n)&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(de.BlockControls,null,(0,a.createElement)(Gt,{...t,onPaste:e=>r(e)}))))}),"withAdvancedControls");function Qt(e){return(0,ce.applyFilters)("generateblocks.editor.addContainerCurrentColors",!1,e)}(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/copy-paste-styles/toolbar",Yt),(0,ce.addFilter)("generateblocks.editor.blockContext","generateblocks/container-context/add-current-border-color",(function(e,t){const{name:n}=t;return"generateblocks/container"!==n||Qt(t)&&(e.supports.borders.borderColors.some((e=>"Current"===e.state))||e.supports.borders.borderColors.push({state:"Current",tooltip:(0,le.__)("Border Current","generateblocks-pro"),alpha:!0})),e})),(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/container-colors/add-attributes",(function(e){return void 0!==e.attributes&&"generateblocks/container"===e.name&&(e.attributes=Object.assign(e.attributes,{backgroundColorHover:{type:"string",default:""},backgroundColorHoverOpacity:{type:"number",default:1},textColorHover:{type:"string",default:""},borderColorHover:{type:"string",default:""},borderColorHoverOpacity:{type:"number",default:1},backgroundColorCurrent:{type:"string",default:""},textColorCurrent:{type:"string",default:""},borderColorCurrent:{type:"string",default:""}})),e})),(0,ce.addFilter)("generateblocks.editor.panel","generateblocks-pro/container-colors/add-controls",(function(e,t){if(generateBlocksPro.hasColorGroups)return e;const{attributes:n,setAttributes:r,state:o,blockName:i,id:s}=t;if("generateblocks/container"!==i||"colors"!==s)return e;const{backgroundColor:l,backgroundColorOpacity:c,backgroundColorHover:u,backgroundColorHoverOpacity:d,textColor:p,textColorHover:h,linkColor:f,linkColorHover:g,borderColor:m,borderColorOpacity:b,borderColorHover:v,borderColorHoverOpacity:y}=n;return(0,a.createElement)(ue.Fragment,null,"Desktop"===(null!==(k=t.deviceType)&&void 0!==k?k:o.selectedDevice)&&(0,a.createElement)(he.PanelBody,{title:(0,le.__)("Colors","generateblocks-pro"),initialOpen:!1,icon:se("colors"),className:"gblocks-panel-label"},(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(he.TabPanel,{className:"layout-tab-panel gblocks-control-tabs",activeClass:"active-tab",tabs:[{name:"button-colors",title:(0,le.__)("Normal","generateblocks-pro"),className:"button-colors"},{name:"button-colors-hover",title:(0,le.__)("Hover","generateblocks-pro"),className:"button-colors-hover"}]},(e=>{const t="button-colors"===e.name;return(0,a.createElement)("div",null,t?(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Rt,{label:(0,le.__)("Background Color","generateblocks-pro"),value:l,alpha:!0,valueOpacity:c,attrOpacity:"backgroundColorOpacity",key:"buttonBackgroundColor",onChange:e=>r({backgroundColor:e}),onOpacityChange:e=>r({backgroundColorOpacity:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Text Color","generateblocks-pro"),value:p,alpha:!1,key:"buttonTextColor",onChange:e=>r({textColor:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Link Color","generateblocks-pro"),value:f,alpha:!1,onChange:e=>r({linkColor:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Border Color","generateblocks-pro"),value:m,alpha:!0,valueOpacity:b,attrOpacity:"borderColorOpacity",key:"buttonBorderColor",onChange:e=>r({borderColor:e}),onOpacityChange:e=>r({borderColorOpacity:e})})):(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(Rt,{label:(0,le.__)("Background Color","generateblocks-pro"),value:u,alpha:!0,valueOpacity:d,attrOpacity:"backgroundColorHoverOpacity",key:"buttonBackgroundColorHover",onChange:e=>r({backgroundColorHover:e}),onOpacityChange:e=>r({backgroundColorHoverOpacity:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Text Color","generateblocks-pro"),value:h,alpha:!1,key:"buttonTextColorHover",onChange:e=>r({textColorHover:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Link Color","generateblocks-pro"),value:g,alpha:!1,onChange:e=>r({linkColorHover:e})}),(0,a.createElement)(Rt,{label:(0,le.__)("Border Color","generateblocks-pro"),value:v,alpha:!0,valueOpacity:y,attrOpacity:"borderColorHoverOpacity",key:"buttonBorderColorHover",onChange:e=>r({borderColorHover:e}),onOpacityChange:e=>r({borderColorHoverOpacity:e})})))})))));var k})),(0,ce.addFilter)("generateblocks.editor.colorGroupItems","generateblocks-pro/container-colors/add-color-items",(function(e,t){if("generateblocks/container"!==t.name)return e;const n=[{group:"background",attribute:"backgroundColorHover",tooltip:(0,le.__)("Hover","generateblocks-pro"),alpha:!0},{group:"text",attribute:"textColorHover",tooltip:(0,le.__)("Hover","generateblocks-pro"),alpha:!1},{group:"border",attribute:"borderColorHover",tooltip:(0,le.__)("Hover","generateblocks-pro"),alpha:!0}],r=Qt(t);return r&&n.push({group:"background",attribute:"backgroundColorCurrent",tooltip:(0,le.__)("Current","generateblocks-pro"),alpha:!0},{group:"text",attribute:"textColorCurrent",tooltip:(0,le.__)("Current","generateblocks-pro"),alpha:!1},{group:"border",attribute:"borderColorCurrent",tooltip:(0,le.__)("Current","generateblocks-pro"),alpha:!0}),e.forEach(((t,o)=>{n.forEach((n=>{n.group!==t.group||t.items.some((e=>e.attribute===n.attribute))||e[o].items.push({tooltip:n.tooltip,attribute:n.attribute,alpha:n.alpha})})),r||(t.items=t.items.filter((e=>!e.attribute.includes("Current"))))})),e})),(0,ce.addFilter)("generateblocks.editor.mainCSS","generateblocks-pro/container-colors/add-main-css",(function(e,t,n){const r=(0,ce.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:o,backgroundColor:a,backgroundColorHover:i,backgroundColorOpacity:s,backgroundColorHoverOpacity:l,textColor:c,textColorHover:u,borderColor:d,borderColorHover:p,borderColorOpacity:h,borderColorHoverOpacity:f,backgroundColorCurrent:g,textColorCurrent:m,borderColorCurrent:b}=r;if("container"===n){generateBlocksPro.hasRgbaSupport||be(e,".gb-container-"+o,{"background-color":ve(a,s),"border-color":ve(d,h),color:c}),be(e,".gb-container-"+o+":hover",{"background-color":ve(i,l),"border-color":ve(p,f),color:u});const t=`.gb-container-${o}[data-container-is-current]`;be(e,`${t}, ${t}:hover, ${t}:active, ${t}:focus`,{"background-color":g,color:m,"border-color":b}),be(e,[".editor-styles-wrapper .gb-container-"+o+":hover h1",".editor-styles-wrapper .gb-container-"+o+":hover h2",".editor-styles-wrapper .gb-container-"+o+":hover h3",".editor-styles-wrapper .gb-container-"+o+":hover h4",".editor-styles-wrapper .gb-container-"+o+":hover h5",".editor-styles-wrapper .gb-container-"+o+":hover h6"].join(","),{color:u})}return e}));const Xt=function(e,t){var n,r=(n=(0,a.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,a.useEffect)((function(){if(!r)return e()}),t)},Kt=(0,pe.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r,isSelected:o,setAttributes:i}=t,{url:s,linkType:l,hiddenLinkAriaLabel:c,target:u,relSponsored:d,relNoFollow:p,useDynamicData:h,dynamicLinkType:f,position:g}=r;if("generateblocks/container"!==n)return(0,a.createElement)(e,{...t});let m=(0,le.__)("This makes your Element Tag a link element. It uses valid HTML5 coding but will break if you add interactive elements (links or buttons) inside the container.","generateblocks-pro");return"hidden-link"===l&&(m=(0,le.__)("This adds a hidden link inside your container and tells it to cover the entire element. It is less prone to breakage, but is not as clean as the wrapper method.","generateblocks-pro")),Xt((()=>{g||!s&&!f||"hidden-link"!==l||i({position:"relative"})}),[s,f,l]),(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(e,{...t}),o&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(de.BlockControls,null,(0,a.createElement)(he.ToolbarGroup,null,(0,a.createElement)(he.Dropdown,{contentClassName:"gblocks-container-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.ToolbarButton,{icon:se("link"),label:Zt(r)?(0,le.__)("Change Container Link","generateblocks-pro"):(0,le.__)("Set Container Link","generateblocks-pro"),onClick:t,"aria-expanded":e,isPressed:!!Zt(r)}),renderContent:()=>(0,a.createElement)(ue.Fragment,null,!h&&(0,a.createElement)(he.BaseControl,{className:"gblocks-container-link-wrapper"},(0,a.createElement)(de.URLInput,{className:"gblocks-container-link",value:s,onChange:e=>{i({url:e})}})),!!h&&""!==f&&(0,a.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":f?"15px":"0"}},(0,le.__)("This container is using a dynamic link.","generateblocks-pro")),!!Zt(r)&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Open link in a new tab","generateblocks-pro"),checked:u||"",onChange:e=>{i({target:e})}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)('Add rel="nofollow"',"generateblocks-pro"),checked:p||"",onChange:e=>{i({relNoFollow:e})}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)('Add rel="sponsored"',"generateblocks-pro"),checked:d||"",onChange:e=>{i({relSponsored:e})}}),(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Link Type","generateblocks-pro"),help:m,value:l,options:[{label:(0,le.__)("Hidden Link","generateblocks-pro"),value:"hidden-link"},{label:(0,le.__)("Wrapper","generateblocks-pro"),value:"wrapper"}],onChange:e=>{i({linkType:e})}})),!!Zt(r)&&"hidden-link"===l&&(0,a.createElement)(he.TextControl,{label:(0,le.__)("Aria Label","generateblocks-pro"),help:(0,le.__)("Help screen readers understand what this link does.","generateblocks-pro"),type:"text",value:c,onChange:e=>{i({hiddenLinkAriaLabel:ae.sanitize(e)})}}))})))))}),"addContainerLinkToolbar");function Zt(e){const{url:t,useDynamicData:n,dynamicLinkType:r}=e;return t||n&&""!==r}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/container-link/add-attributes",(function(e){return void 0!==e.attributes&&"generateblocks/container"===e.name&&(e.attributes=Object.assign(e.attributes,{linkType:{type:"string",default:"hidden-link"},url:{type:"string",default:""},hiddenLinkAriaLabel:{type:"string",default:""},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"}})),e})),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generateblocks-pro/container-link/add-href-attribute",(function(e,t,n){if("generateblocks/container"!==t)return e;if(Zt(n)){let t={href:"#",onClick:e=>{e.preventDefault()}};"hidden-link"===n.linkType&&(t={style:{...e.style,cursor:"pointer"}}),e=Object.assign(e,t)}return e})),(0,ce.addFilter)("generateblocks.frontend.containerTagName","generateblocks-pro/container-link/add-tag-name",(function(e,t){return Zt(t)&&"wrapper"===t.linkType&&(e="a"),e})),(0,ce.addFilter)("generateblocks.editor.mainCSS","generateblocks-pro/container-link/add-main-css",(function(e,t,n){if(!["container"].includes(n))return e;const r=(0,ce.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:o,linkType:a,textColor:i,textColorHover:s,isGrid:l,minHeight:c}=r;let u="block";return(l||c)&&(u="flex"),Zt(r)&&"wrapper"===a&&(be(e,".gb-container-"+o,{display:u}),be(e,".block-editor-block-list__block a.gb-container-"+o+", .block-editor-block-list__block a.gb-container-"+o+":visited",{color:i}),be(e,".block-editor-block-list__block a.gb-container-"+o+":hover, .block-editor-block-list__block a.gb-container-"+o+":focus, .block-editor-block-list__block a.gb-container-"+o+":active",{color:s})),e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/container-link/toolbar",Kt);class Jt extends ue.Component{render(){const{attributes:e,setAttributes:t,effectOptions:n}=this.props,{advBackgrounds:r,useInnerContainer:o}=e,i=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{i.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,a.createElement)(ue.Fragment,null,r.map(((e,s)=>(0,a.createElement)(ue.Fragment,{key:s},(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-container"},(0,a.createElement)("div",{className:"gblocks-adv-dropdown-header"},(0,a.createElement)(ue.Fragment,null,!r[s].type&&(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Type","generateblocks-pro"),value:r[s].type,options:[{label:(0,le.__)("Choose…","generateblocks-pro"),value:""},{label:(0,le.__)("Image","generateblocks-pro"),value:"image"},{label:(0,le.__)("Gradient","generateblocks-pro"),value:"gradient"}],onChange:e=>{const n=[...r];"image"===e&&(n[s]={...n[s],type:e,target:"pseudo-element",url:"",id:"",imageSize:"full",opacity:1,size:"cover",position:"center center",repeat:"no-repeat",attachment:"scroll"}),"gradient"===e&&(generateBlocksPro.hasRgbaSupport?n[s]={...n[s],type:e,direction:90,colorOne:"rgba(255, 255, 255, 0.1)",colorTwo:"rgba(0, 0, 0, 0.30)"}:n[s]={...n[s],type:e,direction:90,colorOne:"#ffffff",colorOneOpacity:.1,colorTwo:"#000000",colorTwoOpacity:.3});const a={};o?a.innerZindex=1:(a.position="relative",a.overflowX="hidden",a.overflowY="hidden"),t({advBackgrounds:n,...a})}}),"gradient"===r[s].type&&(0,a.createElement)("span",{className:"gblocks-adv-dropdown-type-label"},(0,le.__)("Gradient","generateblocks-pro")),"image"===r[s].type&&(0,a.createElement)("span",{className:"gblocks-adv-dropdown-type-label"},(0,le.__)("Image","generateblocks-pro")))),!!r[s].type&&(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-options"},(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-option-device"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Device","generateblocks-pro"),value:r[s].device,options:[{label:(0,le.__)("All","generateblocks-pro"),value:"all"},{label:(0,le.__)("Desktop","generateblocks-pro"),value:"desktop"},{label:(0,le.__)("Tablet","generateblocks-pro"),value:"tablet-only"},{label:(0,le.__)("Tablet + Mobile","generateblocks-pro"),value:"tablet"},{label:(0,le.__)("Mobile","generateblocks-pro"),value:"mobile"}],onChange:e=>{const n=[...r];n[s]={...n[s],device:e},t({advBackgrounds:n})}})),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-option-state"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("State","generateblocks-pro"),value:r[s].state,options:[{label:(0,le.__)("Normal","generateblocks-pro"),value:"normal"},{label:(0,le.__)("Hover","generateblocks-pro"),value:"hover"}],onChange:e=>{const n=[...r];n[s]={...n[s],state:e},t({advBackgrounds:n})}})),n.length>1&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-option-target"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Target","generateblocks-pro"),value:r[s].target,options:n,onChange:e=>{const n=[...r];n[s]={...n[s],target:e},t({advBackgrounds:n})}})),"customSelector"===r[s].target&&(0,a.createElement)("div",{className:"gblocks-adv-dropdown-custom-selector"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("Custom Selector","generateblocks-pro"),type:"text",placeholder:".gb-icon",value:r[s].customSelector?r[s].customSelector:"",onChange:e=>{const n=[...r];n[s]={...n[s],customSelector:e},t({advBackgrounds:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),"gradient"===r[s].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Direction","generateblocks-pro"),value:ke(r[s].direction)?r[s].direction:1,onChange:e=>{const n=[...r];n[s]={...n[s],direction:e},t({advBackgrounds:n})},rangeMin:0,rangeMax:360,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option gblocks-adv-dropdown-option-no-grow"},(0,a.createElement)(he.BaseControl,{id:"gblocks-box-shadow-color-one",className:"gblocks-box-shadow-color"},(0,a.createElement)(Rt,{value:r[s].colorOne,alpha:!0,valueOpacity:ke(r[s].colorOneOpacity)?r[s].colorOneOpacity:1,onChange:e=>{const n=[...r];n[s]={...n[s],colorOne:e},t({advBackgrounds:n})},onOpacityChange:e=>{const n=[...r];n[s]={...n[s],colorOneOpacity:e},t({advBackgrounds:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Stop One","generateblocks-pro"),unit:"%",value:ke(r[s].stopOne)?r[s].stopOne:"",onChange:e=>{const n=[...r];n[s]={...n[s],stopOne:e},t({advBackgrounds:n})},rangeMin:0,rangeMax:100,step:1})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option gblocks-adv-dropdown-option-no-grow"},(0,a.createElement)(he.BaseControl,{id:"gblocks-box-shadow-color-two",className:"gblocks-box-shadow-color"},(0,a.createElement)(Rt,{value:r[s].colorTwo,alpha:!0,valueOpacity:ke(r[s].colorTwoOpacity)?r[s].colorTwoOpacity:1,onChange:e=>{const n=[...r];n[s]={...n[s],colorTwo:e},t({advBackgrounds:n})},onOpacityChange:e=>{const n=[...r];n[s]={...n[s],colorTwoOpacity:e},t({advBackgrounds:n})}}))),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(Ce,{label:(0,le.__)("Stop Two","generateblocks-pro"),unit:"%",value:ke(r[s].stopTwo)?r[s].stopTwo:"",onChange:e=>{const n=[...r];n[s]={...n[s],stopTwo:e},t({advBackgrounds:n})},rangeMin:0,rangeMax:100,step:1}))),"image"===r[s].type&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.BaseControl,{id:"gblocks-background-image-upload",label:(0,le.__)("Image URL","generateblocks-pro")},(0,a.createElement)("div",{className:"gblocks-bg-image-wrapper"},r[s].url&&(0,a.createElement)("img",{src:r[s].url,width:"30",height:"30",alt:(0,le.__)("Background image preview","generateblocks-pro")}),(0,a.createElement)(he.TextControl,{type:"text",value:r[s].url||"",onChange:e=>{const n=[...r];n[s]={...n[s],url:e},t({advBackgrounds:n})}}),(0,a.createElement)("div",{className:"gblocks-background-image-action-buttons"},(0,a.createElement)(de.MediaUpload,{title:(0,le.__)("Set background image","generateblocks-pro"),onSelect:e=>{let n=r[s].imageSize;void 0===e.sizes[n]&&(n="full");const o=[...r];o[s]={...o[s],url:e.sizes[n].url,id:e.id},t({advBackgrounds:o})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus(),document.querySelector(".gblocks-background-dropdown").style.zIndex=""},allowedTypes:["image"],value:r[s].id||"",modalClass:"editor-gb-container-background__media-modal",render:({open:e})=>(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Open the Media Library","generateblocks-pro")},(0,a.createElement)(he.Button,{onClick:()=>{document.querySelector(".gblocks-background-dropdown").style.zIndex=1,e()},className:"is-secondary is-small"},(0,le.__)("Browse","generateblocks-pro")))}),(0,ce.applyFilters)("generateblocks.editor.backgroundImageActions","",this.props,this.state))))),void 0!==r[s].id&&r[s].id&&(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Image Size","generateblocks-pro"),value:r[s].imageSize,options:i,onChange:e=>{const n=[...r];n[s]={...n[s],imageSize:e},t({advBackgrounds:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-separator"}),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("Size","generateblocks-pro"),value:r[s].size,onChange:e=>{const n=[...r];n[s]={...n[s],size:e},t({advBackgrounds:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.TextControl,{label:(0,le.__)("Position","generateblocks-pro"),value:r[s].position,onChange:e=>{const n=[...r];n[s]={...n[s],position:e},t({advBackgrounds:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Repeat","generateblocks-pro"),value:r[s].repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:e=>{const n=[...r];n[s]={...n[s],repeat:e},t({advBackgrounds:n})}})),(0,a.createElement)("div",{className:"gblocks-adv-dropdown-option"},(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Attachment","generateblocks-pro"),value:r[s].attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:e=>{const n=[...r];n[s]={...n[s],attachment:e},t({advBackgrounds:n})}})))),(0,a.createElement)("div",{className:"gblocks-effects-footer"},(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Delete this background.","generateblocks-pro")},(0,a.createElement)(he.Button,{isSecondary:!0,isSmall:!0,className:"gblocks-delete-effect",onClick:()=>{if(window.confirm((0,le.__)("This will permanently delete this background.","generateblocks-pro"))){const e=[...r];e.splice(s,1),t({advBackgrounds:e})}},icon:se("trash")},(0,le.__)("Delete","generateblocks-pro")))))))))}}const en=Jt;function tn(e,t,n,r,o){if(""!==e||""!==t||""!==n||""!==r)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+o+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+o+" ":"0 ",n=0!=parseFloat(n)&&""!==n?parseFloat(n)+o+" ":"0 ",t===(r=0!=parseFloat(r)&&""!==r?parseFloat(r)+o+" ":"0 ")&&(r="",e===n&&(n="",e===t&&(t=""))),(e+t+n+r).trim()}function nn(e,t,n){if(!["container"].includes(n))return e;const{media:r}=t,o=(0,ce.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:a,advBackgrounds:i,useAdvBackgrounds:s,borderRadiusTopRight:l,borderRadiusBottomRight:c,borderRadiusBottomLeft:u,borderRadiusTopLeft:d,borderRadiusTopRightTablet:p,borderRadiusBottomRightTablet:h,borderRadiusBottomLeftTablet:f,borderRadiusTopLeftTablet:g,borderRadiusTopRightMobile:m,borderRadiusBottomRightMobile:b,borderRadiusBottomLeftMobile:v,borderRadiusTopLeftMobile:y,borderRadiusUnit:k,innerZindex:E,useInnerContainer:_}=o,w=".gb-container-"+a,C={};let S=!1,x=!1,O=E;return s&&i.length>0&&(Object.keys(i).forEach((function(t){const n=Ee(i,o,w,t);if("gradient"===i[t].type){let e="",r="";const o=ve(i[t].colorOne,i[t].colorOneOpacity),a=ve(i[t].colorTwo,i[t].colorTwoOpacity);o&&ke(i[t].stopOne)&&(e=" "+i[t].stopOne+"%"),a&&ke(i[t].stopTwo)&&(r=" "+i[t].stopTwo+"%");const s="linear-gradient("+i[t].direction+"deg, "+o+e+", "+a+r+")";void 0===C[n.element]&&(C[n.element]={selector:n.effectSelector,gradient:s,state:i[t].state,device:i[t].device,target:i[t].target,type:i[t].type})}"image"===i[t].type&&void 0===C[n.element]&&(C[n.element]={selector:n.effectSelector,state:i[t].state,device:i[t].device,target:i[t].target,url:i[t].url,size:i[t].size,position:i[t].position,repeat:i[t].repeat,attachment:i[t].attachment,type:i[t].type}),Object.keys(C).forEach((function(t){const n=C[t];if(void 0!==n.device){if("desktop"===n.device&&"generateblocks.editor.desktopCSS"!==(0,ce.currentFilter)())return;if("tablet-only"===n.device&&"generateblocks.editor.tabletOnlyCSS"!==(0,ce.currentFilter)())return;if("tablet"===n.device&&"generateblocks.editor.tabletCSS"!==(0,ce.currentFilter)())return;if("mobile"===n.device&&"generateblocks.editor.mobileCSS"!==(0,ce.currentFilter)())return}if("gradient"===n.type&&("pseudo-element"!==n.target||x||(be(e,n.selector,{content:'""',"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","pointer-events":"none"}),_&&be(e,".gb-container-"+a,{position:"relative",overflow:"hidden"}),x=!0),be(e,n.selector,{"background-image":n.gradient})),"image"===n.type){const t=(0,ce.applyFilters)("generateblocks.editor.bgImageURLTablet",n.url,r);"pseudo-element"===n.target&&(S||(be(e,n.selector,{content:'""',"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","pointer-events":"none"}),void 0===n.device||"desktop"===n.device?be(e,n.selector,{"border-radius":tn(d,l,c,u,k)}):"tablet"===n.device?be(e,n.selector,{"border-top-left-radius":ye(g,k),"border-top-right-radius":ye(p,k),"border-bottom-right-radius":ye(h,k),"border-bottom-left-radius":ye(f,k)}):"mobile"===n.device&&be(e,n.selector,{"border-top-left-radius":ye(y,k),"border-top-right-radius":ye(m,k),"border-bottom-right-radius":ye(b,k),"border-bottom-left-radius":ye(v,k)}),S=!0,void 0===o.blockVersion&&(O||(O=1))),_&&be(e,".gb-container-"+a,{position:"relative",overflow:"hidden"})),be(e,n.selector,{"background-image":t?"url("+t+")":null,"background-size":n.size,"background-position":n.position,"background-repeat":n.repeat,"background-attachment":n.attachment})}}))})),_&&(O||0===O)&&be(e,".gb-container-"+a+" > .gb-inside-container",{"z-index":O,position:"relative"})),e}function rn(){if(wp&&wp.data&&wp.data.select&&wp.data.select("core/editor")&&wp.data.select("core/editor").getCurrentPost)return wp.data.select("core/editor").getCurrentPost()}function on(e){const t=[...e];return t.unshift({value:"current-terms",label:(0,le.__)("Current post terms","generateblocks-pro")}),t}function an(e){const t=[...e];return t.unshift({value:"current-post",label:(0,le.__)("Current post","generateblocks-pro")}),t}function sn(e){const t=[...e];return t.unshift({value:"current-post-author",label:(0,le.__)("Current post author","generateblocks-pro")}),t}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/container-backgrounds/add-attributes",(function(e){return void 0!==e.attributes&&"generateblocks/container"===e.name&&(e.attributes=Object.assign(e.attributes,{useAdvBackgrounds:{type:"boolean",default:generateBlocksDefaults.container.useAdvBackgrounds},advBackgrounds:{type:"array",default:[]}})),e})),(0,ce.addFilter)("generateblocks.editor.panelContents","generateblocks-pro/container-backgrounds/add-controls",(function(e,t,n){if("containerBackground"!==t)return e;const{attributes:r,setAttributes:o}=n,{useAdvBackgrounds:i,advBackgrounds:s}=r;return(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-item"},(0,a.createElement)(he.ToggleControl,{label:s.length>0?/* translators: Number of gradients. */ /* translators: Number of gradients. */(0,le.sprintf)((0,le.__)("Advanced (%s)","generateblocks-pro"),s.length):(0,le.__)("Advanced","generateblocks-pro"),checked:!!i,onChange:e=>{o({useAdvBackgrounds:e})}}),(0,a.createElement)(he.Dropdown,{placement:"top left",focusOnMount:"container",contentClassName:"gblocks-advanced-dropdown gblocks-background-dropdown",renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(he.Button,{isSecondary:!e||void 0,isPrimary:!!e||void 0,icon:se(e?"x":"wrench"),onClick:t,"aria-expanded":e}),renderContent:({onClose:e})=>(0,a.createElement)("div",null,(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(en,{...n,effectName:"advBackgrounds",effectOptions:[{label:(0,le.__)("Self","generateblocks-pro"),value:"self"},{label:(0,le.__)("Pseudo Element","generateblocks-pro"),value:"pseudo-element"}]}),(0,a.createElement)("div",{className:"gblocks-advanced-dropdown-actions"},(0,a.createElement)(he.Button,{isSecondary:!0,onClick:()=>{const e=[...s];e.push({target:"self",device:"all",state:"normal"}),o({advBackgrounds:e})}},(0,le.__)("Add Background","generateblocks-pro")),(0,a.createElement)(he.Button,{isPrimary:!0,onClick:e},(0,le.__)("Close","generateblocks-pro")))))})),!i&&e)})),(0,ce.addFilter)("generateblocks.editor.mainCSS","generateblocks-pro/container-backgrounds/add-main-css",nn),(0,ce.addFilter)("generateblocks.editor.desktopCSS","generateblocks-pro/container-backgrounds/add-desktop-css",nn),(0,ce.addFilter)("generateblocks.editor.tabletCSS","generateblocks-pro/container-backgrounds/add-tablet-css",nn),(0,ce.addFilter)("generateblocks.editor.tabletOnlyCSS","generateblocks-pro/container-backgrounds/add-tablet-only-css",nn),(0,ce.addFilter)("generateblocks.editor.mobileCSS","generateblocks-pro/container-backgrounds/add-mobile-css",nn),(0,ce.addFilter)("generateblocks.editor.iconSVGSets","generateblocks-pro/icon-sets/add-custom-svg-icons",(function(e){return{...generateBlocksPro.svgIcons,...e}})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/include-current-post-terms",(function(e){const t=rn();if(t&&e?.tax_query){const n=e.tax_query.map((e=>{if(e.terms.includes("current-terms")){const n=e.terms.concat(t[e.rest]),r=n.indexOf("current-terms");return n.splice(r,1),Object.assign({},e,{terms:n})}return e}));e=Object.assign({},e,{tax_query:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/exclude-current-post-terms",(function(e){const t=rn();if(t&&e?.tax_query_exclude){const n=e.tax_query_exclude.map((e=>{if(e.terms.includes("current-terms")){const n=e.terms.concat(t[e.rest]),r=n.indexOf("current-terms");return n.splice(r,1),Object.assign({},e,{terms:n})}return e}));e=Object.assign({},e,{tax_query_exclude:n})}return e})),(0,ce.addFilter)("generateblocks.editor.taxonomy-parameter-control.tax_query","generateblocks-pro/query-loop/tax-query-taxonomies",on),(0,ce.addFilter)("generateblocks.editor.taxonomy-parameter-control.tax_query_exclude","generateblocks-pro/query-loop/tax-query-taxonomies",on),(0,ce.addFilter)("generateblocks.editor.query-loop.query-parameters","generateblocks-pro/query-loop/query-parameters/order-by",(function(e){return e.map((e=>"orderby"===e.id?Object.assign({},e,{selectOptions:[...e.selectOptions,{value:"rand",label:(0,le.__)("Random","generateblocks-pro")}]}):e))})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/order-by/random",(function(e){return"rand"===e?.orderby&&(e=Object.assign({},e,{orderby:void 0})),e})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/exclude-current-post",(function(e){const t=rn();if(t&&e.exclude&&e.exclude.includes("exclude-current")){const n=[...e.exclude],r=n.indexOf("exclude-current");n.splice(r,1),n.includes(t.id)||e.post_type!==t.type||n.push(t.id),e=Object.assign({},e,{exclude:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.exclude-posts-select","generateblocks-pro/query-loop/exclude-current-post",(function(e){const t=[...e];return t.unshift({value:"exclude-current",label:(0,le.__)("Exclude current post","generateblocks-pro")}),t})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/include-parent-custom-post",(function(e){const t=rn();if(t&&e.parent&&e.parent.includes("current-post")){const n=[...e.parent],r=n.indexOf("current-post");n.splice(r,1),n.includes(t.id)||e.post_type!==t.type||n.push(t.id),e=Object.assign({},e,{parent:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.include-parent","generateblocks-pro/query-loop/include-parent-current-post",an),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/exclude-parent-custom-post",(function(e){const t=rn();if(t&&e.parent_exclude&&e.parent_exclude.includes("current-post")){const n=[...e.parent_exclude],r=n.indexOf("current-post");n.splice(r,1),n.includes(t.id)||e.post_type!==t.type||n.push(t.id),e=Object.assign({},e,{parent_exclude:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.exclude-parent","generateblocks-pro/query-loop/exclude-parent-current-post",an),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/include-current-post-author",(function(e){const t=rn();if(t&&e.author&&e.author.includes("current-post-author")){const n=[...e.author],r=n.indexOf("current-post-author");n.splice(r,1),n.includes(t.author)||e.post_type!==t.type||n.push(t.author),e=Object.assign({},e,{author:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.normalize-parameters","generateblocks-pro/query-loop/exclude-current-post-author",(function(e){const t=rn();if(t&&e.author_exclude&&e.author_exclude.includes("current-post-author")){const n=[...e.author_exclude],r=n.indexOf("current-post-author");n.splice(r,1),n.includes(t.author)||e.post_type!==t.type||n.push(t.author),e=Object.assign({},e,{author_exclude:n})}return e})),(0,ce.addFilter)("generateblocks.editor.query-loop.author","generateblocks-pro/query-loop/author-control",sn),(0,ce.addFilter)("generateblocks.editor.query-loop.author-exclude","generateblocks-pro/query-loop/author-exclude-control",sn);const ln=window.lodash;function cn(e){return cn="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},cn(e)}function un(e){var t=function(e){if("object"!=cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cn(t)?t:t+""}function dn(e,t,n){return(t=un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gn(e,t){if(e){if("string"==typeof e)return fn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||gn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function yn(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,s=void 0===i?null:i,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,f=e.value,g=bn(e,vn),m=mn((0,a.useState)(void 0!==l?l:n),2),b=m[0],v=m[1],y=mn((0,a.useState)(void 0!==c?c:o),2),k=y[0],E=y[1],_=mn((0,a.useState)(void 0!==f?f:s),2),w=_[0],C=_[1],S=(0,a.useCallback)((function(e,t){"function"==typeof u&&u(e,t),C(e)}),[u]),x=(0,a.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),O=(0,a.useCallback)((function(){"function"==typeof h&&h(),E(!0)}),[h]),T=(0,a.useCallback)((function(){"function"==typeof p&&p(),E(!1)}),[p]),I=void 0!==l?l:b,R=void 0!==c?c:k,A=void 0!==f?f:w;return hn(hn({},g),{},{inputValue:I,menuIsOpen:R,onChange:S,onInputChange:x,onMenuClose:T,onMenuOpen:O,value:A})}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(null,arguments)}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,un(r.key),r)}}function wn(e,t){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wn(e,t)}function Cn(e){return Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cn(e)}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sn=function(){return!!e})()}function xn(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gn(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.")}()}var On=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Tn=Math.abs,In=String.fromCharCode,Rn=Object.assign;function An(e){return e.trim()}function Nn(e,t,n){return e.replace(t,n)}function Mn(e,t){return e.indexOf(t)}function Ln(e,t){return 0|e.charCodeAt(t)}function Pn(e,t,n){return e.slice(t,n)}function Fn(e){return e.length}function Dn(e){return e.length}function Bn(e,t){return t.push(e),e}var jn=1,zn=1,Hn=0,$n=0,Vn=0,qn="";function Un(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:jn,column:zn,length:i,return:""}}function Gn(e,t){return Rn(Un("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wn(){return Vn=$n>0?Ln(qn,--$n):0,zn--,10===Vn&&(zn=1,jn--),Vn}function Yn(){return Vn=$n<Hn?Ln(qn,$n++):0,zn++,10===Vn&&(zn=1,jn++),Vn}function Qn(){return Ln(qn,$n)}function Xn(){return $n}function Kn(e,t){return Pn(qn,e,t)}function Zn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jn(e){return jn=zn=1,Hn=Fn(qn=e),$n=0,[]}function er(e){return qn="",e}function tr(e){return An(Kn($n-1,or(91===e?e+2:40===e?e+1:e)))}function nr(e){for(;(Vn=Qn())&&Vn<33;)Yn();return Zn(e)>2||Zn(Vn)>3?"":" "}function rr(e,t){for(;--t&&Yn()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return Kn(e,Xn()+(t<6&&32==Qn()&&32==Yn()))}function or(e){for(;Yn();)switch(Vn){case e:return $n;case 34:case 39:34!==e&&39!==e&&or(Vn);break;case 40:41===e&&or(e);break;case 92:Yn()}return $n}function ar(e,t){for(;Yn()&&e+Vn!==57&&(e+Vn!==84||47!==Qn()););return"/*"+Kn(t,$n-1)+"*"+In(47===e?e:Yn())}function ir(e){for(;!Zn(Qn());)Yn();return Kn(e,$n)}var sr="-ms-",lr="-moz-",cr="-webkit-",ur="comm",dr="rule",pr="decl",hr="@keyframes";function fr(e,t){for(var n="",r=Dn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function gr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pr:return e.return=e.return||e.value;case ur:return"";case hr:return e.return=e.value+"{"+fr(e.children,r)+"}";case dr:e.value=e.props.join(",")}return Fn(n=fr(e.children,r))?e.return=e.value+"{"+n+"}":""}function mr(e){return er(br("",null,null,null,[""],e=Jn(e),0,[0],e))}function br(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,h=0,f=0,g=1,m=1,b=1,v=0,y="",k=o,E=a,_=r,w=y;m;)switch(f=v,v=Yn()){case 40:if(108!=f&&58==Ln(w,d-1)){-1!=Mn(w+=Nn(tr(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=tr(v);break;case 9:case 10:case 13:case 32:w+=nr(f);break;case 92:w+=rr(Xn()-1,7);continue;case 47:switch(Qn()){case 42:case 47:Bn(yr(ar(Yn(),Xn()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=Fn(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(w=Nn(w,/\f/g,"")),h>0&&Fn(w)-d&&Bn(h>32?kr(w+";",r,n,d-1):kr(Nn(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Bn(_=vr(w,t,n,c,u,o,s,y,k=[],E=[],d),a),123===v)if(0===u)br(w,t,_,_,k,a,d,s,E);else switch(99===p&&110===Ln(w,3)?100:p){case 100:case 108:case 109:case 115:br(e,_,_,r&&Bn(vr(e,_,_,0,0,o,s,y,o,k=[],d),E),o,E,d,s,r?k:E);break;default:br(w,_,_,_,[""],E,0,s,E)}}c=u=h=0,g=b=1,y=w="",d=i;break;case 58:d=1+Fn(w),h=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Wn())continue;switch(w+=In(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Fn(w)-1)*b,b=1;break;case 64:45===Qn()&&(w+=tr(Yn())),p=Qn(),u=d=Fn(y=w+=ir(Xn())),v++;break;case 45:45===f&&2==Fn(w)&&(g=0)}}return a}function vr(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],h=Dn(p),f=0,g=0,m=0;f<r;++f)for(var b=0,v=Pn(e,d+1,d=Tn(g=i[f])),y=e;b<h;++b)(y=An(g>0?p[b]+" "+v:Nn(v,/&\f/g,p[b])))&&(l[m++]=y);return Un(e,t,n,0===o?dr:s,l,c,u)}function yr(e,t,n){return Un(e,t,n,ur,In(Vn),Pn(e,2,-2),0)}function kr(e,t,n,r){return Un(e,t,n,pr,Pn(e,0,r),Pn(e,r+1,-1),r)}var Er=function(e,t,n){for(var r=0,o=0;r=o,o=Qn(),38===r&&12===o&&(t[n]=1),!Zn(o);)Yn();return Kn(e,$n)},_r=new WeakMap,wr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_r.get(n))&&!r){_r.set(e,!0);for(var o=[],a=function(e,t){return er(function(e,t){var n=-1,r=44;do{switch(Zn(r)){case 0:38===r&&12===Qn()&&(t[n]=1),e[n]+=Er($n-1,t,n);break;case 2:e[n]+=tr(r);break;case 4:if(44===r){e[++n]=58===Qn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=In(r)}}while(r=Yn());return e}(Jn(e),t))}(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Cr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sr(e,t){switch(function(e,t){return 45^Ln(e,0)?(((t<<2^Ln(e,0))<<2^Ln(e,1))<<2^Ln(e,2))<<2^Ln(e,3):0}(e,t)){case 5103:return cr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return cr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cr+e+lr+e+sr+e+e;case 6828:case 4268:return cr+e+sr+e+e;case 6165:return cr+e+sr+"flex-"+e+e;case 5187:return cr+e+Nn(e,/(\w+).+(:[^]+)/,cr+"box-$1$2"+sr+"flex-$1$2")+e;case 5443:return cr+e+sr+"flex-item-"+Nn(e,/flex-|-self/,"")+e;case 4675:return cr+e+sr+"flex-line-pack"+Nn(e,/align-content|flex-|-self/,"")+e;case 5548:return cr+e+sr+Nn(e,"shrink","negative")+e;case 5292:return cr+e+sr+Nn(e,"basis","preferred-size")+e;case 6060:return cr+"box-"+Nn(e,"-grow","")+cr+e+sr+Nn(e,"grow","positive")+e;case 4554:return cr+Nn(e,/([^-])(transform)/g,"$1"+cr+"$2")+e;case 6187:return Nn(Nn(Nn(e,/(zoom-|grab)/,cr+"$1"),/(image-set)/,cr+"$1"),e,"")+e;case 5495:case 3959:return Nn(e,/(image-set\([^]*)/,cr+"$1$`$1");case 4968:return Nn(Nn(e,/(.+:)(flex-)?(.*)/,cr+"box-pack:$3"+sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cr+e+e;case 4095:case 3583:case 4068:case 2532:return Nn(e,/(.+)-inline(.+)/,cr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fn(e)-1-t>6)switch(Ln(e,t+1)){case 109:if(45!==Ln(e,t+4))break;case 102:return Nn(e,/(.+:)(.+)-([^]+)/,"$1"+cr+"$2-$3$1"+lr+(108==Ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Mn(e,"stretch")?Sr(Nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ln(e,t+1))break;case 6444:switch(Ln(e,Fn(e)-3-(~Mn(e,"!important")&&10))){case 107:return Nn(e,":",":"+cr)+e;case 101:return Nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cr+(45===Ln(e,14)?"inline-":"")+"box$3$1"+cr+"$2$3$1"+sr+"$2box$3")+e}break;case 5936:switch(Ln(e,t+11)){case 114:return cr+e+sr+Nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cr+e+sr+Nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cr+e+sr+Nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cr+e+sr+e+e}return e}var xr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=Sr(e.value,e.length);break;case hr:return fr([Gn(e,{value:Nn(e.value,"@","@"+cr)})],r);case dr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return fr([Gn(e,{props:[Nn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fr([Gn(e,{props:[Nn(t,/:(plac\w+)/,":"+cr+"input-$1")]}),Gn(e,{props:[Nn(t,/:(plac\w+)/,":-moz-$1")]}),Gn(e,{props:[Nn(t,/:(plac\w+)/,sr+"input-$1")]})],r)}return""}))}}],Or=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||xr,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[gr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[wr,Cr].concat(a,p),u=Dn(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,fr(mr(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new On({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},Tr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ir={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Rr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ar=/[A-Z]|^ms/g,Nr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mr=function(e){return 45===e.charCodeAt(1)},Lr=function(e){return null!=e&&"boolean"!=typeof e},Pr=Rr((function(e){return Mr(e)?e:e.replace(Ar,"-$&").toLowerCase()})),Fr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nr,(function(e,t,n){return Br={name:t,styles:n,next:Br},t}))}return 1===Ir[e]||Mr(e)||"number"!=typeof t||0===t?t:t+"px"};function Dr(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Br={name:o.name,styles:o.styles,next:Br},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Br={name:i.name,styles:i.styles,next:Br},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Dr(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var s=i;null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":Lr(s)&&(r+=Pr(a)+":"+Fr(a,s)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Dr(e,t,i);switch(a){case"animation":case"animationName":r+=Pr(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)Lr(i[c])&&(r+=Pr(a)+":"+Fr(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Br,l=n(e);return Br=s,Dr(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Br,jr=/label:\s*([^\s;{]+)\s*(;|$)/g;function zr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Br=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Dr(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Dr(n,t,e[i]),r&&(o+=a[i]);jr.lastIndex=0;for(var s,l="";null!==(s=jr.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Br}}var Hr,$r,Vr=!!a.useInsertionEffect&&a.useInsertionEffect,qr=Vr||function(e){return e()},Ur=(Vr||a.useLayoutEffect,a.createContext("undefined"!=typeof HTMLElement?Or({key:"css"}):null)),Gr=(Ur.Provider,function(e){return(0,a.forwardRef)((function(t,n){var r=(0,a.useContext)(Ur);return e(t,r,n)}))}),Wr=a.createContext({}),Yr={}.hasOwnProperty,Qr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tr(t,n,r),qr((function(){return function(e,t,n){Tr(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Kr=Gr((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Qr],i=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=zr(i,void 0,a.useContext(Wr));s+=t.key+"-"+l.name;var c={};for(var u in e)Yr.call(e,u)&&"css"!==u&&u!==Qr&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),a.createElement(a.Fragment,null,a.createElement(Xr,{cache:t,serialized:l,isStringTag:"string"==typeof o}),a.createElement(o,c))})),Zr=Kr,Jr=(n(4146),function(e,t){var n=arguments;if(null==t||!Yr.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Zr,o[1]=function(e,t){var n={};for(var r in t)Yr.call(t,r)&&(n[r]=t[r]);return n[Qr]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return a.createElement.apply(null,o)});function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return zr(t)}Hr=Jr||(Jr={}),$r||($r=Hr.JSX||(Hr.JSX={}));const to=window.ReactDOM,no=Math.min,ro=Math.max,oo=Math.round,ao=Math.floor,io=e=>({x:e,y:e});function so(){return"undefined"!=typeof window}function lo(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function co(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function uo(e){var t;return null==(t=(po(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function po(e){return!!so()&&(e instanceof Node||e instanceof co(e).Node)}function ho(e){return!!so()&&(e instanceof Element||e instanceof co(e).Element)}function fo(e){return!!so()&&(e instanceof HTMLElement||e instanceof co(e).HTMLElement)}function go(e){return!(!so()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof co(e).ShadowRoot)}function mo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}let bo;function vo(e){return co(e).getComputedStyle(e)}function yo(e){const t=function(e){if("html"===lo(e))return e;const t=e.assignedSlot||e.parentNode||go(e)&&e.host||uo(e);return go(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(lo(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:fo(t)&&mo(t)?t:yo(t)}function ko(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yo(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=co(o);if(a){const e=Eo(i);return t.concat(i,i.visualViewport||[],mo(o)?o:[],e&&n?ko(e):[])}return t.concat(o,ko(o,[],n))}function Eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _o(e){return ho(e)?e:e.contextElement}function wo(e){const t=_o(e);if(!fo(t))return io(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=vo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=oo(n)!==a||oo(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}(t);let i=(a?oo(n.width):n.width)/r,s=(a?oo(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Co=io(0);function So(e){const t=co(e);return null==bo&&(bo="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bo&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Co}function xo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=_o(e);let i=io(1);t&&(r?ho(r)&&(i=wo(r)):i=wo(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==co(e))&&t}(a,n,r)?So(a):io(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=co(a),t=r&&ho(r)?co(r):r;let n=e,o=Eo(n);for(;o&&r&&t!==n;){const e=wo(o),t=o.getBoundingClientRect(),r=vo(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=co(o),o=Eo(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function Oo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var To=a.useLayoutEffect,Io=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ro=function(){};function Ao(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function No(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Ao(e,i)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Mo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===cn(e)&&null!==e?[e]:[];var t},Lo=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,hn({},bn(e,Io))},Po=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Fo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Do(e){return Fo(e)?window.pageYOffset:e.scrollTop}function Bo(e,t){Fo(e)?window.scrollTo(0,t):e.scrollTop=t}function jo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ro,o=Do(e),a=t-o,i=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(i+=10,o,a,n);Bo(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function zo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Bo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Bo(e,Math.max(t.offsetTop-o,0))}function Ho(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var $o=!1,Vo={get passive(){return $o=!0}},qo="undefined"!=typeof window?window:{};qo.addEventListener&&qo.removeEventListener&&(qo.addEventListener("p",Ro,Vo),qo.removeEventListener("p",Ro,!1));var Uo=$o;function Go(e){return null!=e}function Wo(e,t,n){return e?t:n}var Yo=["children","innerProps"],Qo=["children","innerProps"];var Xo,Ko=function(e){return"auto"===e?"bottom":e},Zo=(0,a.createContext)(null),Jo=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=((0,a.useContext)(Zo)||{}).setPortalPlacement,u=(0,a.useRef)(null),d=mn((0,a.useState)(r),2),p=d[0],h=d[1],f=mn((0,a.useState)(null),2),g=f[0],m=f[1],b=l.spacing.controlHeight;return To((function(){var e=u.current;if(e){var t="fixed"===i,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,h=d.height,f=d.top,g=n.offsetParent.getBoundingClientRect().top,m=i?window.innerHeight:function(e){return Fo(e)?window.innerHeight:e.clientHeight}(l),b=Do(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),k=g-y,E=m-f,_=k+b,w=u-b-f,C=p-m+b+v,S=b+f-y,x=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(w>=h&&!i)return a&&jo(l,C,x),{placement:"bottom",maxHeight:t};if(!i&&w>=r||i&&E>=r)return a&&jo(l,C,x),{placement:"bottom",maxHeight:i?E-v:w-v};if("auto"===o||i){var O=t,T=i?k:_;return T>=r&&(O=Math.min(T-v-s,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return a&&Bo(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(_>=h&&!i)return a&&jo(l,S,x),{placement:"top",maxHeight:t};if(!i&&_>=r||i&&k>=r){var I=t;return(!i&&_>=r||i&&k>=r)&&(I=i?k-y:_-y),a&&jo(l,S,x),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(a.maxHeight),m(a.placement),null==c||c(a.placement)}}),[r,o,i,s,n,c,b]),t({ref:u,placerProps:hn(hn({},e),{},{placement:g||Ko(o),maxHeight:p})})},ea=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return hn({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ta=ea,na=ea,ra=["size"],oa=["innerProps","isRtl","size"],aa={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ia=function(e){var t=e.size,n=bn(e,ra);return Jr("svg",kn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:aa},n))},sa=function(e){return Jr(ia,kn({size:20},e),Jr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},la=function(e){return Jr(ia,kn({size:20},e),Jr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ca=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return hn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},ua=ca,da=ca,pa=function(){var e=eo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Xo||(Xo=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ha=function(e){var t=e.delay,n=e.offset;return Jr("span",{css:eo({animation:"".concat(pa," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fa=["data"],ga=["innerRef","isDisabled","isHidden","inputClassName"],ma={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ba={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":hn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ma)},va=function(e){return hn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ma)},ya=function(e){var t=e.children,n=e.innerProps;return Jr("div",n,t)},ka={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Jr("div",kn({},Po(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Jr(sa,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,i=e.menuIsOpen;return Jr("div",kn({ref:o},Po(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Jr("div",kn({},Po(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Jr(la,null))},DownChevron:la,CrossIcon:sa,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Jr("div",kn({},Po(e,"group",{group:!0}),s),Jr(a,kn({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),Jr("div",null,t))},GroupHeading:function(e){var t=Lo(e);t.data;var n=bn(t,fa);return Jr("div",kn({},Po(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Jr("div",kn({},Po(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Jr("span",kn({},t,Po(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Lo(e),o=r.innerRef,a=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=bn(r,ga);return Jr("div",kn({},Po(e,"input",{"input-container":!0}),{"data-value":n||""}),Jr("input",kn({className:t({input:!0},s),ref:o,style:va(i),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=bn(e,oa);return Jr("div",kn({},Po(hn(hn({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Jr(ha,{delay:0,offset:n}),Jr(ha,{delay:160,offset:!0}),Jr(ha,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Jr("div",kn({},Po(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Jr("div",kn({},Po(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,s=e.menuPosition,l=(0,a.useRef)(null),c=(0,a.useRef)(null),u=mn((0,a.useState)(Ko(i)),2),d=u[0],p=u[1],h=(0,a.useMemo)((function(){return{setPortalPlacement:p}}),[]),f=mn((0,a.useState)(null),2),g=f[0],m=f[1],b=(0,a.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||m({offset:n,rect:e})}}),[r,s,d,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);To((function(){b()}),[b]);var v=(0,a.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&l.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=_o(e),u=o||a?[...c?ko(c):[],...t?ko(t):[]]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=uo(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;const f={rootMargin:-ao(d)+"px "+-ao(o.clientWidth-(u+p))+"px "+-ao(o.clientHeight-(d+h))+"px "+-ao(u)+"px",threshold:ro(0,no(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Oo(c,e.getBoundingClientRect())||i(),g=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(c,n):null;let p,h=-1,f=null;i&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),t&&f.observe(t));let g=l?xo(e):null;return l&&function t(){const r=xo(e);g&&!Oo(g,r)&&n(),g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}(r,l.current,b,{elementResize:"ResizeObserver"in window}))}),[r,b]);To((function(){v()}),[v]);var y=(0,a.useCallback)((function(e){l.current=e,v()}),[v]);if(!t&&"fixed"!==s||!g)return null;var k=Jr("div",kn({ref:y},Po(hn(hn({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Jr(Zo.Provider,{value:h},t?(0,to.createPortal)(k,t):k)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=bn(e,Qo);return Jr("div",kn({},Po(hn(hn({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=bn(e,Yo);return Jr("div",kn({},Po(hn(hn({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Jr(l,{data:r,innerProps:hn(hn({},Po(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},Jr(c,{data:r,innerProps:hn({},Po(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Jr(u,{data:r,innerProps:hn(hn({},Po(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},MultiValueContainer:ya,MultiValueLabel:ya,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Jr("div",kn({role:"button"},n),t||Jr(sa,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,i=e.innerProps;return Jr("div",kn({},Po(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Jr("div",kn({},Po(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Jr("div",kn({},Po(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Jr("div",kn({},Po(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Jr("div",kn({},Po(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ea=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function _a(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Ea(r)&&Ea(o)))return!1;var r,o;return!0}for(var wa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ca=function(e){return Jr("span",kn({css:wa},e))},Sa={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},xa=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,f=l.isMulti,g=l.isOptionDisabled,m=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,k=l.tabSelectsValue,E=l.isLoading,_=l["aria-label"],w=l["aria-live"],C=(0,a.useMemo)((function(){return hn(hn({},Sa),d||{})}),[d]),S=(0,a.useMemo)((function(){var e,n="";if(t&&C.onChange){var r=t.option,o=t.options,a=t.removedValue,i=t.removedValues,l=t.value,c=a||r||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=o||i||void 0,h=d?d.map(p):[],f=hn({isDisabled:c&&g(c,s),label:u,labels:h},t);n=C.onChange(f)}return n}),[t,C,g,s,p]),x=(0,a.useMemo)((function(){var e="",t=n||r,a=!!(n&&s&&s.includes(n));if(t&&C.onFocus){var i={focused:t,label:p(t),isDisabled:g(t,s),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=C.onFocus(i)}return e}),[n,r,p,g,C,o,s,u]),O=(0,a.useMemo)((function(){var e="";if(b&&v.length&&!E&&C.onFilter){var t=y({count:o.length});e=C.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,b,C,v,y,E]),T="initial-input-focus"===(null==t?void 0:t.action),I=(0,a.useMemo)((function(){var e="";if(C.guidance){var t=r?"value":b?"menu":"input";e=C.guidance({"aria-label":_,context:t,isDisabled:n&&g(n,s),isMulti:f,isSearchable:m,tabSelectsValue:k,isInitialFocus:T})}return e}),[_,n,r,f,g,m,b,C,s,k,T]),R=Jr(a.Fragment,null,Jr("span",{id:"aria-selection"},S),Jr("span",{id:"aria-focused"},x),Jr("span",{id:"aria-results"},O),Jr("span",{id:"aria-guidance"},I));return Jr(a.Fragment,null,Jr(Ca,{id:c},T&&R),Jr(Ca,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&R))},Oa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ta=new RegExp("["+Oa.map((function(e){return e.letters})).join("")+"]","g"),Ia={},Ra=0;Ra<Oa.length;Ra++)for(var Aa=Oa[Ra],Na=0;Na<Aa.letters.length;Na++)Ia[Aa.letters[Na]]=Aa.base;var Ma=function(e){return e.replace(Ta,(function(e){return Ia[e]}))},La=function(e,t){void 0===t&&(t=_a);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Ma),Pa=function(e){return e.replace(/^\s+|\s+$/g,"")},Fa=function(e){return"".concat(e.label," ").concat(e.value)},Da=["innerRef"];function Ba(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=mn(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=mn(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(bn(e,Da),"onExited","in","enter","exit","appear");return Jr("input",kn({ref:t},n,{css:eo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ja=["boxSizing","height","overflow","paddingRight","position"],za={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ha(e){e.cancelable&&e.preventDefault()}function $a(e){e.stopPropagation()}function Va(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function qa(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ua=!("undefined"==typeof window||!window.document||!window.document.createElement),Ga=0,Wa={capture:!1,passive:!1},Ya=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Qa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Xa(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=(0,a.useRef)(!1),l=(0,a.useRef)(!1),c=(0,a.useRef)(0),u=(0,a.useRef)(null),d=(0,a.useCallback)((function(e,t){if(null!==u.current){var a=u.current,c=a.scrollTop,d=a.scrollHeight,p=a.clientHeight,h=u.current,f=t>0,g=d-p-c,m=!1;g>t&&s.current&&(r&&r(e),s.current=!1),f&&l.current&&(i&&i(e),l.current=!1),f&&t>g?(n&&!s.current&&n(e),h.scrollTop=d,m=!0,s.current=!0):!f&&-t>c&&(o&&!l.current&&o(e),h.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),p=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),h=(0,a.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=(0,a.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,a.useCallback)((function(e){if(e){var t=!!Uo&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",f,t)}}),[f,h,p]),m=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))}),[f,h,p]);return(0,a.useEffect)((function(){if(t){var e=u.current;return g(e),function(){m(e)}}}),[t,g,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(Ua){var t=document.body,n=t&&t.style;if(r&&ja.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ga<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(za).forEach((function(e){var t=za[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&qa()&&(t.addEventListener("touchmove",Ha,Wa),e&&(e.addEventListener("touchstart",Va,Wa),e.addEventListener("touchmove",$a,Wa))),Ga+=1}}),[r]),l=(0,a.useCallback)((function(e){if(Ua){var t=document.body,n=t&&t.style;Ga=Math.max(Ga-1,0),r&&Ga<1&&ja.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&qa()&&(t.removeEventListener("touchmove",Ha,Wa),e&&(e.removeEventListener("touchstart",Va,Wa),e.removeEventListener("touchmove",$a,Wa)))}}),[r]);return(0,a.useEffect)((function(){if(t){var e=i.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){i.current=e}}({isEnabled:n});return Jr(a.Fragment,null,n&&Jr("div",{onClick:Ya,css:Qa}),t((function(e){o(e),i(e)})))}var Ka={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Za=function(e){var t=e.name,n=e.onFocus;return Jr("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ka,value:"",onChange:function(){}})};function Ja(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ei(){return Ja(/^Mac/i)}var ti=function(e){return e.label},ni=function(e){return e.value},ri={clearIndicator:da,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return hn({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:ua,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return hn({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return hn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return hn(hn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ba),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return hn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:na,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,s=o.colors;return hn((dn(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),dn(n,"position","absolute"),dn(n,"width","100%"),dn(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return hn({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return hn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return hn({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return hn({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:ta,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,s=a.colors;return hn({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return hn({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return hn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return hn({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},oi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ai={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ho(),captureMenuScroll:!Ho(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=hn({ignoreCase:!0,ignoreAccents:!0,stringify:Fa,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,l=i?Pa(t):t,c=i?Pa(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=La(l),c=Ma(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ti,getOptionValue:ni,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ii(e,t,n,r){return{type:"option",data:t,isDisabled:fi(e,t,n),isSelected:gi(e,t,n),label:pi(e,t),value:hi(e,t),index:r}}function si(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ii(e,n,t,r)})).filter((function(t){return ui(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=ii(e,n,t,r);return ui(e,a)?a:void 0})).filter(Go)}function li(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,xn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ci(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,xn(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ui(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!bi(e)||!a)&&mi(e,{label:i,value:s,data:o},r)}var di=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},pi=function(e,t){return e.getOptionLabel(t)},hi=function(e,t){return e.getOptionValue(t)};function fi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function gi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=hi(e,t);return n.some((function(t){return hi(e,t)===r}))}function mi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var bi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},vi=1,yi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(n,e);var t=function(e){var t=Sn();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=ei()||Ja(/^iPhone/i)||Ja(/^iPad/i)||ei()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var c=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:a});o?r.setValue([].concat(xn(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=Wo(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Wo(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=Wo(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return di(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return ci(si(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return No.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return pi(r.props,e)},r.getOptionValue=function(e){return hi(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=ri[e](t,n);o.boxSizing="border-box";var a=r.props.styles[e];return a?a(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,hn(hn({},ka),e.components);var e},r.buildCategorizedOptions=function(){return si(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return li(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:hn({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Fo(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return bi(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,h=r.state,f=h.focusedOption,g=h.focusedValue,m=h.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!f||p&&r.isOptionSelected(f,m))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++vi),r.state.selectValue=Mo(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),i=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=a[i],r.state.focusedOptionId=di(o,a[i])}return r}return function(e,t,n){t&&En(e.prototype,t),n&&En(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&zo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(zo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(oi):hn(hn({},oi),this.props.theme):oi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return gi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return mi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,h=d.ariaSelection,f=this.commonProps,g=r||this.getElementId("input"),m=hn(hn(hn({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(u,kn({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:o},m)):a.createElement(Ba,kn({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ro,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,h=u.isMulti,f=u.inputValue,g=u.placeholder,m=this.state,b=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!d)return f?null:a.createElement(l,kn({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return b.map((function(t,s){var l=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,kn({},c,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var k=b[0];return a.createElement(s,kn({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,kn({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?a.createElement(e,kn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,kn({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,kn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,h=this.props,f=h.captureMenuScroll,g=h.inputValue,m=h.isLoading,b=h.loadingMessage,v=h.minMenuHeight,y=h.maxMenuHeight,k=h.menuIsOpen,E=h.menuPlacement,_=h.menuPosition,w=h.menuPortalTarget,C=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,x=h.noOptionsMessage,O=h.onMenuScrollToTop,T=h.onMenuScrollToBottom;if(!k)return null;var I,R=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,h=p===o,f=i?void 0:function(){return e.onOptionHover(o)},g=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),b={id:m,onClick:g,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return a.createElement(u,kn({},d,{innerProps:b,data:o,isDisabled:i,isSelected:s,key:m,label:l,type:r,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a.createElement(n,kn({},d,{key:l,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(m){var A=b({inputValue:g});if(null===A)return null;I=a.createElement(l,d,A)}else{var N=x({inputValue:g});if(null===N)return null;I=a.createElement(c,d,N)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:E,menuPosition:_,menuShouldScrollIntoView:S},L=a.createElement(Jo,kn({},d,M),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return a.createElement(o,kn({},d,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:s}),a.createElement(Xa,{captureEnabled:f,onTopArrive:O,onBottomArrive:T,lockEnabled:C},(function(t){return a.createElement(i,kn({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:l,focusedOption:p}),I)})))}));return w||"fixed"===_?a.createElement(s,kn({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:E,menuPosition:_}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return a.createElement(Za,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden",value:""});return a.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return a.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(xa,kn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.createElement(r,kn({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),a.createElement(t,kn({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),a.createElement(o,kn({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,kn({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=Mo(u),g={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return li(si(e,t))}(e,f):[],b=d?ci(si(e,f),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);g={selectValue:f,focusedOption:y,focusedOptionId:di(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},E=a,_=i&&s;return i&&!_&&(E={value:Wo(h,f,f[0]||null),options:f,action:"initial-input-focus"},_=!s),"initial-input-focus"===(null==a?void 0:a.action)&&(E=null),hn(hn(hn({},g),k),{},{prevProps:e,ariaSelection:E,prevWasFocused:_})}}]),n}(a.Component);yi.defaultProps=ai;var ki=(0,a.forwardRef)((function(e,t){var n=yn(e);return a.createElement(yi,kn({ref:t},n))})),Ei=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],_i=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},wi={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return _i(e,t,r)}))||n.some((function(t){return _i(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},Ci=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,i=e.formatCreateLabel,s=void 0===i?wi.formatCreateLabel:i,l=e.isValidNewOption,c=void 0===l?wi.isValidNewOption:l,u=e.getNewOptionData,d=void 0===u?wi.getNewOptionData:u,p=e.onCreateOption,h=e.options,f=void 0===h?[]:h,g=e.onChange,m=bn(e,Ei),b=m.getOptionValue,v=void 0===b?ni:b,y=m.getOptionLabel,k=void 0===y?ti:y,E=m.inputValue,_=m.isLoading,w=m.isMulti,C=m.value,S=m.name,x=(0,a.useMemo)((function(){return c(E,Mo(C),f,{getOptionValue:v,getOptionLabel:k})?d(E,s(E)):void 0}),[s,d,k,v,E,c,f,C]),O=(0,a.useMemo)((function(){return!n&&_||!x?f:"first"===o?[x].concat(xn(f)):[].concat(xn(f),[x])}),[n,o,_,x,f]),T=(0,a.useCallback)((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==x)g(e,t);else if(p)p(E);else{var r=d(E,E),o={action:"create-option",name:S,option:r};g(Wo(w,[].concat(xn(Mo(C)),[r]),r),o)}}),[d,E,w,S,x,p,g,C]);return hn(hn({},m),{},{options:O,onChange:T})}(yn(e));return a.createElement(yi,kn({ref:t},n))})),Si=Ci;const xi=e=>{const t={className:"generate-advanced-select",classNamePrefix:"generate-advanced-select",isSearchable:!1,styles:{indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,maxHeight:"30px"}),menuPortal:e=>({...e,zIndex:999999}),control:e=>({...e,marginBottom:"8px"}),valueContainer:e=>({...e,padding:"0 6px"}),input:e=>({...e,margin:0,padding:0})},instanceId:"input-field",maxMenuHeight:250,theme:e=>({borderRadius:2,colors:{...e.colors,primary:"var(--wp-admin-theme-color)",neutral20:"#757575",neutral30:"#757575"},spacing:{controlHeight:30,baseUnit:3,menuGutter:3}}),menuPortalTarget:document.querySelector("body"),menuPlacement:"auto"},n=Object.assign({},{marginBottom:"24px"},e?.wrapperStyles),r=e?.isCreatable?Si:ki,o=Object.assign({},t,e);return(0,a.createElement)("div",{className:"gblocks-advanced-select",style:n},(0,a.createElement)(he.BaseControl,{id:o.id,label:o.label,help:o.help},(0,a.createElement)(r,{...o})))},Oi=e=>{const{options:t,value:n}=e;return(0,a.createElement)(xi,{...e,id:"gblocks-simple-select",value:t.filter((e=>e.value===n))})};function Ti(e){return generateBlocksPro&&generateBlocksPro?.isACFActive?[...e,{acf_format:"standard"}]:e}function Ii(e,t,n){const{metaFieldKey:r="metaFieldName",metaFieldName:o,setAttributes:i,attributes:s}=t,l="metaFieldName"===r?"metaFieldPropertyName":"linkMetaFieldPropertyName";if(!generateBlocksPro?.isACFActive||!o||!n)return e;const c="author-meta"===s.dynamicContentType&&n?.author?.meta?n?.author?.meta:n?.meta,u=c?c[o]:"";if((0,ln.isArray)(u))return e;if((0,ln.isObject)(u)){const e=Object.keys(u).map((e=>({label:e,value:e})));return(0,a.createElement)(Oi,{label:(0,le.__)("Post meta sub field","generateblocks-pro"),options:e,value:s[l],onChange:e=>{i({[l]:e})}})}}(0,ce.addFilter)("generateblocks.editor.dynamicContent.post-request-params","generateblocks-pro/dynamic-content/post-request-params",Ti),(0,ce.addFilter)("generateblocks.editor.dynamicContent.author-request-params","generateblocks-pro/dynamic-content/author-request-params",Ti),(0,ce.addFilter)("generateblocks.editor.dynamicContent.attributes","generateblocks-pro/dynamic-content/attributes",(function(e){return Object.assign({},e,{metaFieldPropertyName:{type:"string",default:""},linkMetaFieldPropertyName:{type:"string",default:""}})})),(0,ce.addFilter)("generateblocks.editor.dynamicContent.postRecord","generateblocks-pro/dynamic-content/post-record",(function(e){if((0,ln.isObject)(e)&&(0,ln.has)(e,"acf")&&(0,ln.isObject)(e?.acf)&&(0,ln.has)(e,"meta")&&(0,ln.isObject)(e?.meta)){const t=Object.assign({},e?.meta,e?.acf);return Object.assign({},e,{meta:t})}return e})),(0,ce.addFilter)("generateblocks.editor.dynamicContent.postRecord","generateblocks-pro/dynamic-content/post-record",(function(e){if((0,ln.isObject)(e)&&(0,ln.has)(e,"author")&&(0,ln.isObject)(e.author)&&(0,ln.has)(e.author,"meta")&&(0,ln.isObject)(e.author.meta)&&(0,ln.has)(e.author,"acf")&&(0,ln.isObject)(e.author.acf)){const t=Object.assign({},e.author.meta,e.author.acf);return Object.assign({},e,{author:{meta:t}})}return e})),(0,ce.addFilter)("generateblocks.editor.dynamicContent.postMetaField","generateblocks-pro/dynamic-content/post-meta-field",(function(e,t){if((0,ln.isObject)(e)){if(!t.metaFieldPropertyName)return(0,le.__)("Select value property","generateblocks-pro");if(e.hasOwnProperty(t.metaFieldPropertyName))return e[t.metaFieldPropertyName]}return e})),(0,ce.addFilter)("generateblocks.editor.dynamicContent.PostMetaControl.afterComponent","generateblocks-pro/dynamic-content/extend-post-meta-control",Ii),(0,ce.addFilter)("generateblocks.editor.dynamicContent.AuthorMetaControl.afterComponent","generateblocks-pro/dynamic-content/extend-post-meta-control",Ii),(0,ce.addFilter)("generateblocks.editor.hooks.usePostTypeRecordsQueryArgs","generateblocks-pro/hooks/use-post-type-records-query-args",(function(e){return Object.assign({},e,{acf_format:"standard"})}));const Ri=window.wp.domReady;var Ai=n.n(Ri),Ni=n(9589);function Mi(e,t){return e.reduce(((e,n)=>{if(n.name&&"generateblocks/container"===n.name&&n.attributes&&t===n.attributes.variantRole&&e.push(n.clientId),n.innerBlocks){const{clientIds:r}=Mi(n.innerBlocks,t);e=e.concat(r)}return e.filter((e=>e))}),[])}function Li(e){return Array.prototype.filter.call(e.parentNode.children,(t=>t!==e))}function Pi(e,t){const n="button"===t?"gb-tabs__button":"gb-container",r=e?.current?.closest(".gb-tabs"),o=[...Object.values(e?.current?.parentElement.children).filter((e=>e.className.includes(n)))].indexOf(e?.current);r&&r.setAttribute("data-opened-tab",o+1);const a=r.querySelector(".gb-tabs__items"),i=Object.values(a.children).filter((e=>e.className.includes("gb-tabs__item")));i.forEach((e=>e.removeAttribute("data-tab-is-open")));const s=i[o];s&&s.setAttribute("data-tab-is-open",!0);const l=r.querySelector(".gb-tabs__buttons"),c=Object.values(l.children).filter((e=>e.className.includes("gb-tabs__button")));c.forEach((e=>{const t=e.classList.contains("gb-button")?"button":"container";e.removeAttribute("data-"+t+"-is-current")}));const u=c[o];if(u){const e=u.classList.contains("gb-button")?"button":"container";u.setAttribute("data-"+e+"-is-current",!0)}}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/tabs/attributes",(e=>(void 0===e.attributes||("generateblocks/container"===e.name&&(e.attributes=Object.assign(e.attributes,{defaultOpenedTab:{type:"string",default:""},tabItemOpen:{type:"boolean",default:!1},syncTabItemStyles:{type:"boolean",default:!0},tabButtonsType:{type:"string",default:"button"},tabTransition:{type:"string",default:""}}),e.providesContext=Object.assign(e.providesContext,{"generateblocks-pro/tabTransition":"tabTransition"}),e.usesContext=[...e.usesContext,"generateblocks-pro/tabTransition"]),"generateblocks/button"===e.name&&(e.attributes=Object.assign(e.attributes,{tabItemOpen:{type:"boolean",default:!1}}))),e)));const Fi=e=>{const{clientId:t,tabsContainer:n,variantRole:r}=e,{getBlockIndex:o,getBlocks:i}=(0,$t.useSelect)((e=>e("core/block-editor")),[]),{removeBlocks:s}=(0,$t.useDispatch)("core/block-editor"),l=(0,a.createElement)(he.MenuItem,{icon:"trash",onClick:()=>{const e=Mi(n.innerBlocks,"tab-buttons").find(Boolean),r=Mi(n.innerBlocks,"tab-items").find(Boolean),a=o(t),l=i(e),c=i(r),u=[];if(l){const e=l[a]?.clientId;u.push(e)}if(c){const e=c[a]?.clientId;u.push(e)}s(u)}},"tab-item"===r?(0,le.__)("Remove Tab Item & Button","generateblocks-pro"):(0,le.__)("Remove Tab Button & Item","generateblocks-pro"));return(0,ue.useEffect)((()=>{if("tab-item"===r||"tab-button"===r){const e=document.querySelector(".components-menu-group:last-child");if(!e.querySelector(".gb-remove-tab-item")){const t=document.createElement("div");t.classList.add("gb-remove-tab-item"),t.setAttribute("role","group"),e.append(t),(0,ue.render)(l,t)}}}),[]),null},Di=window.wp.primitives,Bi=(0,ue.createElement)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(Di.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),ji=window.wp.coreData,zi=window.wp.apiFetch;var Hi=n.n(zi);const $i=(0,ue.memo)((function({onboardingKey:e,children:t}){const[n,r]=(0,ue.useState)(!1),o=(0,$t.useSelect)((e=>e(ji.store)?.getCurrentUser()),[]);return(0,ue.useEffect)((function(){"1"===sessionStorage.getItem(`generateblocks_onboarding_${e}`)||o?.meta?.generateblocks_onboarding[e]||r(!0)}),[o?.id,JSON.stringify(o?.meta),e]),(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(he.Popover,{position:"bottom right",className:"gb-onboard-popover",focusOnMount:!0,noArrow:!1,variant:"toolbar",offset:10,flip:!0},t,(0,a.createElement)("div",{className:"gb-onboard-popover__button"},(0,a.createElement)(he.Button,{variant:"primary",onClick:()=>{Hi()({path:"/generateblocks/v1/onboarding",method:"POST",data:{key:e}}).then((()=>{r(!1),sessionStorage.setItem(`generateblocks_onboarding_${e}`,"1")}))}},(0,le.__)("Got it","generateblocks-pro")))))})),Vi={variantRole:"tab-button",backgroundColorCurrent:"#fafafa",textColorCurrent:"#000000",buttonType:"button",flexGrowMobile:1,flexShrinkMobile:0,htmlAttributes:[{attribute:"role",value:"tab"}]},qi={variantRole:"tab-item",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20"},Ui=["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 1","generateblocks-pro"),tabItemOpen:!0,...Vi}],Gi=["generateblocks/container",{tabItemOpen:!0,htmlAttributes:[{attribute:"role",value:"tabpanel"}],...qi},[["core/paragraph",{content:(0,le.__)("Tab 1 content.","generateblocks-pro")}]]],Wi=[["generateblocks/container",{variantRole:"tab-buttons",display:"inline-flex",overflowXMobile:"auto",sizing:{maxWidthMobile:"100%"},htmlAttributes:[{attribute:"role",value:"list"}]},[Ui,["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 2","generateblocks-pro"),...Vi}]]],["generateblocks/container",{variantRole:"tab-items",backgroundColor:"#fafafa"},[Gi,["generateblocks/container",{...qi,htmlAttributes:[{attribute:"role",value:"tabpanel"}]},[["core/paragraph",{content:(0,le.__)("Tab 2 content.","generateblocks-pro")}]]]]]],Yi=e=>{const{clientId:t,tabsContainer:n,variantRole:r}=e,{getBlockIndex:o,getBlocks:i}=(0,$t.useSelect)((e=>e("core/block-editor")),[]),{insertBlocks:s}=(0,$t.useDispatch)("core/block-editor");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:Bi,label:(0,le.__)("Add Tab Item","generateblocks-pro"),onClick:()=>{const e=Mi(n.innerBlocks,"tab-buttons").find(Boolean),a=Mi(n.innerBlocks,"tab-items").find(Boolean),l=i(e),c=i(a),u="tab-item"===r||"tab-button"===r?o(t):l.length-1;if(l){const t=l[u],n=t?(0,Vt.cloneBlock)(t,{uniqueId:"",tabItemOpen:!1}):(0,Vt.createBlocksFromInnerBlocksTemplate)([Ui]);s(n,u+1,e,!1)}if(c){const e=c[u],t=e?(0,Vt.cloneBlock)(e,{uniqueId:"",tabItemOpen:!1}):(0,Vt.createBlocksFromInnerBlocksTemplate)([Gi]);s(t,u+1,a,!1)}},showTooltip:!0}),(0,a.createElement)($i,{onboardingKey:"add_tab_item"},(0,a.createElement)("h3",null,(0,le.__)("Add Tab Item","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("You can use this button to add new tab items.","generateblocks-pro"))))},Qi=(0,pe.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r,clientId:o,isSelected:i,setAttributes:s}=t,{variantRole:l,lock:c}=r;if("generateblocks/container"!==n&&"generateblocks/button"!==n||!l||!l.includes("tab"))return(0,a.createElement)(e,{...t});const{getBlock:u,getBlockParentsByBlockName:d,getBlocks:p}=(0,$t.useSelect)((e=>e(de.store)),[]),{updateBlockAttributes:h}=(0,$t.useDispatch)(de.store),[f]=(0,ue.useState)(o),g=(0,ue.useRef)((0,ln.omit)(r,Ht));function m(){let e="";if("tab-button"===l||"tab-item"===l||"tab-buttons"===l||"tab-items"===l){const t=d(o,"generateblocks/container",!0).find((e=>"tabs"===u(e)?.attributes?.variantRole));e=u(t)}return"tabs"===l&&(e=u(o)),e}function b(e){const t=m()?.attributes?.syncTabItemStyles;if(!t)return;const n=(0,ln.omit)(r,Ht),a={};for(const[e,t]of Object.entries(n))(0,ln.isEqual)(g.current[e],t)||(a[e]=t);if((0,ln.isEmpty)(a))return;g.current=n;const i=d(o,"generateblocks/container",!0).find((t=>e===u(t)?.attributes?.variantRole)),s=p(i).map((e=>e.clientId!==o?e.clientId:null)).filter((e=>e));h(s,a)}return(0,ue.useEffect)((()=>{"tab-items"!==l&&"tab-buttons"!==l||c||s({lock:{remove:!0}})}),[]),Xt((()=>{o===f&&i&&("tab-button"===l&&b("tab-buttons"),"tab-item"===l&&b("tab-items"))}),[JSON.stringify(r)]),(0,a.createElement)(a.Fragment,null,("tab-item"===l||"tab-button"===l)&&i&&(0,a.createElement)(de.BlockSettingsMenuControls,null,(0,a.createElement)(Fi,{clientId:o,tabsContainer:m(),variantRole:l})),(0,a.createElement)(de.BlockControls,null,(0,a.createElement)(he.ToolbarGroup,null,(0,a.createElement)(Yi,{clientId:o,tabsContainer:m(),variantRole:l}))),(0,a.createElement)(e,{...t}))}),"withTabs");(0,ce.addFilter)("editor.BlockEdit","generateblocks/tabs/inspectorControls",Qi),(0,ce.addAction)("generateblocks.editor.renderBlock","generateblocks-pro/tabs/renderBlocks",(function(e){const{attributes:t,ref:n,isSelected:r,name:o,clientId:a,context:i,setAttributes:s}=e,{variantRole:l,tabItemOpen:c,transitions:u,uniqueId:d,anchor:p}=t,{hasSelectedInnerBlock:h}=(0,$t.useSelect)((e=>e(de.store)),[]),f=h(a,!0);(0,ue.useEffect)((()=>{if("tab-item"===l||"tab-button"===l){const e=n?.current;if(e&&c&&("tab-item"===l&&(Li(e).filter((e=>e.getAttribute("data-tab-is-open"))).length||e.setAttribute("data-tab-is-open",!0)),"tab-button"===l)){const t="generateblocks/button"===o?"button":"container";Li(e).filter((e=>e.getAttribute("data-"+t+"-is-current"))).length||e.setAttribute("data-"+t+"-is-current",!0)}}}),[]),(0,ue.useEffect)((()=>{"tab-button"===l&&(r||f)&&Pi(n,"button"),"tab-item"===l&&r&&Pi(n,"container")}),[r,f]),(0,ue.useEffect)((()=>{"tab-items"===l&&s({tabTransition:i["generateblocks-pro/tabTransition"]})}),[i["generateblocks-pro/tabTransition"]]),(0,ue.useEffect)((()=>{if("tab-item"===l){const e=[...u],t=i["generateblocks-pro/tabTransition"],n={state:"normal",target:"self",customSelector:"",timingFunction:"ease",delay:""},r=u.findIndex((e=>"opacity"===e.property));At("self","",u)&&-1!==r?""===t&&(e.splice(r,1),s({transitions:e,useTransition:!!e.length})):"fade"===t&&(e.push({...n,property:"opacity",duration:.5}),s({transitions:e,useTransition:!0}))}}),[i["generateblocks-pro/tabTransition"]]),(0,ue.useEffect)((()=>{if(d){if("tab-button"===l){const e=p&&p.startsWith("gb-tab-button-")&&p!==`gb-tab-button-${d}`;p&&!e||s({anchor:`gb-tab-button-${d}`})}if("tab-item"===l){const e=p&&p.startsWith("gb-tab-item-")&&p!==`gb-tab-item-${d}`;p&&!e||s({anchor:`gb-tab-item-${d}`})}}}),[d,l,p,s])})),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generateblocks-pro/tabs/add-html-attributes",((e,t,n)=>("generateblocks/container"===t&&(e=Object.assign(e,{className:we()({[e.className]:!0,"gb-tabs":"tabs"===n.variantRole,"gb-tabs__items":"tab-items"===n.variantRole,"gb-tabs__item":"tab-item"===n.variantRole,"gb-tabs__buttons":"tab-buttons"===n.variantRole,"gb-tabs__item-open":"tab-button"!==n.variantRole?n.tabItemOpen:null,"gb-tabs__button":"tab-button"===n.variantRole,"gb-block-is-current":"tab-button"===n.variantRole?n.tabItemOpen:null}),"data-opened-tab":n.defaultOpenedTab||null})),"generateblocks/button"===t&&(e=Object.assign(e,{className:we()({[e.className]:!0,"gb-tabs__button":"tab-button"===n.variantRole,"gb-block-is-current":n.tabItemOpen})})),e)));const Xi=(e,t)=>("generateblocks/button"===t.name&&"tab-button"===t.attributes.variantRole&&(e=!1),e);function Ki(e,t){return"tab-button"===t.attributes.variantRole&&(e=!0),e}function Zi(){return(0,Ni.coerce)((0,Ni.clean)(generateBlocksPro.generateblocksVersion))?.version}(0,ce.addFilter)("generateblocks.editor.showButtonAppender","generateblocks-pro/tabs/remove-button-appender",Xi),(0,ce.addFilter)("generateblocks.editor.showButtonLinkControl","generateblocks-pro/tabs/remove-button-link-control",Xi),(0,ce.addFilter)("generateblocks.editor.showButtonContainerControl","generateblocks-pro/tabs/remove-button-container-control",Xi),(0,ce.addFilter)("generateblocks.editor.settingsPanel","generateblocks-pro/tabs/containerSettingsPanel",(function(e,t){const{attributes:n,setAttributes:r,clientId:o,name:i}=t,{variantRole:s,defaultOpenedTab:l,syncTabItemStyles:c,tabButtonsType:u,tabTransition:d}=n,{getBlock:p,getBlocks:h}=(0,$t.useSelect)((e=>e(de.store)),[]),{updateBlockAttributes:f,replaceBlocks:g}=(0,$t.useDispatch)(de.store),[m,b]=(0,ue.useState)({});Xt((()=>{const e=l-1,t={},n=m?.buttonIds?.concat(m.tabIds);m?.tabIds?.forEach(((n,r)=>{t[n]={tabItemOpen:String(r)===String(e)}})),m?.buttonIds?.forEach(((n,r)=>{t[n]={tabItemOpen:String(r)===String(e)}})),f(n,t,!0)}),[l]);const v="tabs"===s?p(o)?.innerBlocks:[];(0,ue.useEffect)((()=>{if("tabs"===s){const e=[],t=[],n=v.length?v.filter((e=>"tab-items"===e.attributes.variantRole)):[];n.length&&n[0].innerBlocks.forEach((t=>e.push(t.clientId)));const r=v.length?v.filter((e=>"tab-buttons"===e.attributes.variantRole)):[];r.length&&r[0].innerBlocks.forEach((e=>t.push(e.clientId))),b({...m,tabIds:e,buttonIds:t})}}),[v]);const y="generateblocks/container"===i&&"tabs"===s;if(!t.isSelected||!y)return e;const k=[{label:(0,le.__)("Select…","generateblocks-pro"),value:""}];return m?.tabIds?.length&&m.tabIds.forEach(((e,t)=>{const n=t+1;k.push({
|
||
/* translators: Tab number */
|
||
label:(0,le.sprintf)((0,le.__)("Tab %s","generateblocks-pro"),n),value:n})})),(0,a.createElement)(a.Fragment,null,"tabs"===s&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Default opened tab","generateblocks-pro"),options:k,value:l,onChange:e=>{r({defaultOpenedTab:e})}}),(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Transition","generateblocks-pro"),options:[{value:"",label:(0,le.__)("None","generateblocks-pro")},{value:"fade",label:(0,le.__)("Fade","generateblocks-pro")}],value:d,onChange:e=>r({tabTransition:e})}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Sync tab item styles","generateblocks-pro"),checked:!!c,onChange:e=>r({syncTabItemStyles:e})}),(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Tab button type","generateblocks-pro"),options:[{value:"button",label:(0,le.__)("Button","generateblocks-pro")},{value:"container",label:(0,le.__)("Container","generateblocks-pro")}],value:u,onChange:e=>{r({tabButtonsType:e});const t=Mi(h(o),"tab-buttons").find(Boolean),n=h(t),a=[],i=[];n.forEach((t=>{a.push(t.clientId);let n=!1;if("button"===e){let e="";if(t.innerBlocks.length){const n=t.innerBlocks.find((e=>"generateblocks/headline"===e.name||"core/paragraph"===e.name||"core/heading"===e.name));n?.attributes?.content&&(e=n?.attributes?.content)}n=(0,Vt.createBlock)("generateblocks/button",{...t.attributes,display:"inline-flex",text:e,buttonType:"button"})}"container"===e&&(n=(0,Vt.createBlock)("generateblocks/container",{...t.attributes,display:""},[(0,Vt.createBlock)("generateblocks/headline",{content:t?.attributes?.text,element:"p"})])),i.push(n)})),i.length&&g(a,i)}})),e)})),(0,ce.addFilter)("generateblocks.editor.addButtonCurrentColors","generateblocks-pro/tabs/addCurrentColors",Ki),(0,ce.addFilter)("generateblocks.editor.addContainerCurrentColors","generateblocks-pro/tabs/addCurrentColors",Ki),(0,ce.addFilter)("generateblocks.editor.containerAppender","generateblocks/accordion/BlockAppender",((e,{isSelected:t,attributes:n})=>{const{variantRole:r}=n;return"tab-items"!==r&&"tab-buttons"!==r||!t?e:""}));const Ji={variantRole:"tab-button",backgroundColorCurrent:"#fafafa",textColorCurrent:"#000000",buttonType:"button",flexGrowMobile:1,flexShrinkMobile:0,htmlAttributes:[{attribute:"role",value:"tab"}]},es={variantRole:"tab-item",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20"},ts=[["generateblocks/container",{variantRole:"tab-buttons",display:"flex",flexDirection:"column",flexDirectionMobile:"row",overflowXMobile:"auto",sizing:{width:"200px",widthMobile:"auto",maxWidthMobile:"100%"},htmlAttributes:[{attribute:"role",value:"list"}]},[["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 1","generateblocks-pro"),tabItemOpen:!0,...Ji}],["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 2","generateblocks-pro"),...Ji}]]],["generateblocks/container",{variantRole:"tab-items",flexGrow:1,backgroundColor:"#fafafa"},[["generateblocks/container",{tabItemOpen:!0,htmlAttributes:[{attribute:"role",value:"tabpanel"}],...es},[["core/paragraph",{content:(0,le.__)("Tab 1 content.","generateblocks-pro")}]]],["generateblocks/container",{htmlAttributes:[{attribute:"role",value:"tabpanel"}],...es},[["core/paragraph",{content:(0,le.__)("Tab 2 content.","generateblocks-pro")}]]]]]],ns={variantRole:"tab-button",backgroundColorCurrent:generateBlocksPro?.blockStyles?.button.backgroundColorHover,textColorCurrent:generateBlocksPro?.blockStyles?.button.textColorHover,buttonType:"button",flexGrowMobile:1,flexShrinkMobile:0,htmlAttributes:[{attribute:"role",value:"tab"}]},rs={variantRole:"tab-item"},os=[["generateblocks/container",{variantRole:"tab-buttons",display:"flex",justifyContent:"center",columnGap:"10px",overflowXMobile:"auto",sizing:{maxWidthMobile:"100%"},htmlAttributes:[{attribute:"role",value:"list"}]},[["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 1","generateblocks-pro"),tabItemOpen:!0,...ns}],["generateblocks/button",{...generateBlocksPro?.blockStyles?.button,text:(0,le.__)("Tab 2","generateblocks-pro"),...ns}]]],["generateblocks/container",{variantRole:"tab-items"},[["generateblocks/container",{tabItemOpen:!0,htmlAttributes:[{attribute:"role",value:"tabpanel"}],...rs},[["core/paragraph",{content:(0,le.__)("Tab 1 content.","generateblocks-pro")}]]],["generateblocks/container",{htmlAttributes:[{attribute:"role",value:"tabpanel"}],...rs},[["core/paragraph",{content:(0,le.__)("Tab 2 content.","generateblocks-pro")}]]]]]];function as(e,t){const n="container"===t&&e?.current?.classList.contains("gb-accordion__toggle")?e?.current:e?.current?.closest(".gb-accordion__item"),r=n.closest(".gb-accordion");r.getAttribute("data-multiple-open")||Object.values(r.children).filter((e=>e.className.includes("gb-accordion__item"))).forEach((e=>{e.removeAttribute("data-accordion-is-open");const t=e.querySelector(".gb-accordion__toggle"),n=t.classList.contains("gb-button")?"button":"container";t.removeAttribute("data-"+n+"-is-current")})),n.setAttribute("data-accordion-is-open",!0);const o=n.querySelector(".gb-accordion__toggle"),a=o.classList.contains("gb-button")?"button":"container";o.setAttribute("data-"+a+"-is-current",!0)}function is(e,t,{clientId:n}){const r=e,o=r.map((e=>e.clientId!==n?e.clientId:null)).filter((e=>e)),a=[],i=[];r.forEach((e=>{e?.innerBlocks.forEach((e=>{"accordion-toggle"===e?.attributes?.variantRole&&a.push(e?.clientId),"accordion-content"===e?.attributes?.variantRole&&i.push(e?.clientId)}))}));let s=[];return"accordion-toggle"===t?s=a:"accordion-content"===t?s=i:"accordion-item"===t&&(s=o),s}(0,ce.addFilter)("generateblocks.editor.templateContext","generateblocks-pro/tabs/add-template-selector",(function(e,t){const n={label:(0,le.__)("Tabs","generateblocks-pro"),instructions:(0,le.__)("Choose a tab layout to start with.","generateblocks-pro"),templates:[{id:"horizontal-tabs",label:(0,le.__)("Horizontal Tabs","generateblocks-pro"),icon:se("horizontal-tabs"),innerBlocks:Wi},{id:"vertical-tabs",label:(0,le.__)("Vertical Tabs","generateblocks-pro"),icon:se("vertical-tabs"),innerBlocks:ts,attributes:{display:"flex",flexDirection:"row",flexDirectionMobile:"column"}},{id:"button-tabs",label:(0,le.__)("Button Tabs","generateblocks-pro"),icon:se("button-tabs"),innerBlocks:os,attributes:{display:"flex",flexDirection:"column",columnGap:"20px",rowGap:"20px"}}]};return"tabs"===t.attributes.variantRole?n:e})),Ai()((()=>{(0,Ni.gte)(Zi(),"1.7.0")&&((0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Tabs","generateblocks-pro"),name:"tabs",icon:se("tabs"),description:(0,le.__)("Build a series of tabs using our Container and Button blocks.","generateblocks-pro"),attributes:{variantRole:"tabs",defaultOpenedTab:"1",htmlAttributes:[{attribute:"role",value:"tablist"}]},innerBlocks:[],isActive:e=>"tabs"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Tab Buttons","generateblocks-pro"),name:"tab-buttons",scope:["block"],attributes:{variantRole:"tab-buttons",htmlAttributes:[{attribute:"role",value:"list"}]},isActive:e=>"tab-buttons"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Tab Items","generateblocks-pro"),name:"tab-items",scope:["block"],attributes:{variantRole:"tab-items",htmlAttributes:[{attribute:"role",value:"tabpanel"}]},isActive:e=>"tab-items"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Tab Item","generateblocks-pro"),name:"tab-item",scope:["block"],attributes:{variantRole:"tab-item"},isActive:e=>"tab-item"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Tab Button","generateblocks-pro"),name:"tab-button",scope:["block"],attributes:{variantRole:"tab-button",htmlAttributes:[{attribute:"role",value:"tab"}]},isActive:e=>"tab-button"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/button",{title:(0,le.__)("Tab Button","generateblocks-pro"),name:"tab-button",scope:["block"],attributes:{variantRole:"tab-button",htmlAttributes:[{attribute:"role",value:"tab"}]},isActive:e=>"tab-button"===e.variantRole}))})),(0,ce.addFilter)("generateblocks.styles.selectorShortcuts","generateblocks-pro/tabs/global-style-selectors",(function(e,{selectedBlock:t}){return"generateblocks/container"===t?.name&&"tabs"===t?.attributes?.variantRole?{default:{label:(0,le.__)("Tabs","generateblocks-pro"),items:[{label:(0,le.__)("Toggle","generateblocks-pro"),value:".gb-tabs__button"},{label:(0,le.__)("Hovered Toggle","generateblocks-pro"),value:".gb-tabs__button:is(:hover, :focus)"},{label:(0,le.__)("Current Toggle","generateblocks-pro"),value:".gb-tabs__button:is(.gb-block-is-current, .gb-block-is-current:hover, .gb-block-is-current:focus)"},{label:(0,le.__)("Items Wrapper","generateblocks-pro"),value:".gb-tabs__items"},{label:(0,le.__)("Item","generateblocks-pro"),value:".gb-tabs__item"},{label:(0,le.__)("Opened Item","generateblocks-pro"),value:".gb-tabs__item-open"}]},toggles:{label:(0,le.__)("Tab Toggles","generateblocks-pro"),items:[{label:(0,le.__)("Toggle","generateblocks-pro"),value:".gb-tabs__button"},{label:(0,le.__)("Hovered Toggle","generateblocks-pro"),value:".gb-tabs__button:is(:hover, :focus)"},{label:(0,le.__)("Current Toggle","generateblocks-pro"),value:".gb-tabs__button:is(.gb-block-is-current, .gb-block-is-current:hover, .gb-block-is-current:focus)"}]},items:{label:(0,le.__)("Tab Items","generateblocks-pro"),items:[{label:(0,le.__)("Items Wrapper","generateblocks-pro"),value:".gb-tabs__items"},{label:(0,le.__)("Item","generateblocks-pro"),value:".gb-tabs__item"},{label:(0,le.__)("Opened Item","generateblocks-pro"),value:".gb-tabs__item-open"}]}}:e})),(0,ce.addFilter)("blocks.registerBlockType","generateblocks/accordion/attributes",(e=>(void 0===e.attributes||("generateblocks/container"===e.name&&(e.attributes=Object.assign(e.attributes,{accordionItemOpen:{type:"boolean",default:!1},accordionMultipleOpen:{type:"boolean",default:!1},syncAccordionItemStyles:{type:"boolean",default:!0},accordionTransition:{type:"string",default:""},accordionToggleType:{type:"string",default:"button"},faqSchema:{type:"boolean",default:!1}}),e.providesContext=Object.assign(e.providesContext,{"generateblocks-pro/accordionItemOpen":"accordionItemOpen","generateblocks-pro/accordionTransition":"accordionTransition","generateblocks-pro/faqSchema":"faqSchema"}),e.usesContext=[...e.usesContext,"generateblocks-pro/accordionItemOpen","generateblocks-pro/accordionTransition","generateblocks-pro/faqSchema"]),"generateblocks/button"===e.name&&(e.attributes=Object.assign(e.attributes,{accordionItemOpen:{type:"boolean",default:!1}}),e.providesContext=Object.assign(e.providesContext,{"generateblocks-pro/faqSchema":"faqSchema"}),e.usesContext=[...e.usesContext,"generateblocks-pro/accordionItemOpen","generateblocks-pro/faqSchema"])),e)));const ss={iconLocation:"right",columnGap:"0.5em",iconSize:.8,iconPaddingRight:"",display:"flex",alignItems:"center",justifyContent:"space-between",sizing:{width:"100%"},hasIcon:!0,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 448 512" width="1em" height="1em" aria-hidden="true" role="img" class="gb-accordion__icon"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" fill="currentColor"></path></svg><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 448 512" width="1em" height="1em" aria-hidden="true" role="img" class="gb-accordion__icon-open"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" fill="currentColor"></path></svg>'},ls=[["generateblocks/container",{variantRole:"accordion-item",accordionItemOpen:!0},[["generateblocks/button",Object.assign({},generateBlocksPro?.blockStyles?.button,ss,{text:(0,le.__)("Accordion title","generateblocks-pro"),variantRole:"accordion-toggle",buttonType:"button",backgroundColor:"#ffffff",textColor:"#000000",backgroundColorHover:"#ffffff",textColorHover:"#222222",backgroundColorCurrent:"#fafafa",textColorCurrent:"#000000",alignment:"left"})],["generateblocks/container",{variantRole:"accordion-content",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",marginBottom:"20",backgroundColor:"#fafafa"},[["core/paragraph",{content:(0,le.__)("Accordion content.","generateblocks-pro")}]]]]]],cs=e=>{const{clientId:t,variantRole:n}=e,{getBlockParentsByBlockName:r,getBlock:o}=(0,$t.useSelect)((e=>e("core/block-editor")),[]),{insertBlocks:i}=(0,$t.useDispatch)("core/block-editor");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.ToolbarButton,{icon:Bi,label:(0,le.__)("Add Accordion Item","generateblocks-pro"),onClick:()=>{const e=function(){let e="";const a=o(t);if("accordion"===n){const t=a.innerBlocks,n=Object.keys(t),r=n[n.length-1];void 0!==t[r]&&(e=t[r].clientId)}return"accordion-item"===n&&(e=t),"accordion-toggle"!==n&&"accordion-content"!==n||(e=r(t,"generateblocks/container",!0).find((e=>"accordion-item"===o(e)?.attributes?.variantRole))),e}(),a="accordion"===n?t:r(t,"generateblocks/container",!0).find((e=>"accordion"===o(e)?.attributes?.variantRole));if(e){const t=o(e),n=(0,Vt.cloneBlock)(t,{uniqueId:"",accordionItemOpen:!1});i(n,void 0,a)}else i((0,Vt.createBlocksFromInnerBlocksTemplate)(ls),void 0,a)},showTooltip:!0}),(0,a.createElement)($i,{onboardingKey:"add_accordion_item"},(0,a.createElement)("h3",null,(0,le.__)("Add Accordion Item","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("You can use this button to add new accordion items.","generateblocks-pro"))))},us=(0,pe.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r,clientId:o,setAttributes:i,isSelected:s}=t,{variantRole:l,accordionTransition:c,transitions:u}=r;if("generateblocks/container"!==n&&"generateblocks/button"!==n||!l||!l.includes("accordion"))return(0,a.createElement)(e,{...t});const{getBlock:d,getBlockParentsByBlockName:p,getBlocks:h}=(0,$t.useSelect)((e=>e(de.store)),[]),{updateBlockAttributes:f}=(0,$t.useDispatch)(de.store),[g]=(0,ue.useState)(o),m=Ht.filter((e=>"icon"!==e)),b=(0,ue.useRef)((0,ln.omit)(r,m));function v(){let e="";if("accordion-toggle"===l||"accordion-content"===l||"accordion-item"===l){const t=p(o,"generateblocks/container",!0).find((e=>"accordion"===d(e)?.attributes?.variantRole));e=d(t)}return"accordion"===l&&(e=d(o)),e}return Xt((()=>{o===g&&n.includes("generateblocks")&&l&&l.includes("accordion")&&s&&function(e){const t=v()?.attributes?.syncAccordionItemStyles;if(!t)return;const n=(0,ln.omit)(r,m),a={};for(const[e,t]of Object.entries(n))(0,ln.isEqual)(b.current[e],t)||(a[e]=t);if((0,ln.isEmpty)(a))return;b.current=n;const i=v()?.clientId,s=is(h(i),e,{clientId:o});f(s,a)}(l)}),[JSON.stringify(r)]),(0,ue.useEffect)((()=>{if("accordion-item"===l){const e=[...u],t={state:"normal",target:"accordionContent",customSelector:"",timingFunction:"ease",delay:""};if(At("accordionContent","",u)){let t=!1;const n=e.map((e=>"fade"===c&&"max-height"===e?.property?(t=!0,{...e,property:"opacity",duration:.5}):"slide"===c&&"opacity"===e?.property?(t=!0,{...e,property:"max-height",duration:.25}):e)),r=u.findIndex((e=>"accordionContent"===e.target));""===c?(e.splice(r,1),i({transitions:e,useTransition:!!e.length})):t&&i({transitions:n,useTransition:!0})}else"fade"!==c&&"slide"!==c||("fade"===c&&e.push({...t,property:"opacity",duration:.5}),"slide"===c&&e.push({...t,property:"max-height",duration:.25}),i({transitions:e,useTransition:!0}))}}),[c,u]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(de.BlockControls,null,(0,a.createElement)(he.ToolbarGroup,null,(0,a.createElement)(cs,{clientId:o,variantRole:l}))),(0,a.createElement)(e,{...t}))}),"withAccordion");(0,ce.addFilter)("editor.BlockEdit","generateblocks/accordion/edit",us),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generateblocks/accordion/add-html-attributes",((e,t,n)=>("generateblocks/container"===t&&(e=Object.assign(e,{className:we()({[e.className]:!0,"gb-accordion":"accordion"===n.variantRole,"gb-accordion__item":"accordion-item"===n.variantRole,"gb-accordion__item-open":"accordion-item"===n.variantRole&&!!n.accordionItemOpen,"gb-accordion__toggle":"accordion-toggle"===n.variantRole,"gb-block-is-current":"accordion-toggle"===n.variantRole?n.accordionItemOpen:null}),"data-accordion-multiple-open":!!n.accordionMultipleOpen||null})),"generateblocks/button"===t&&(e=Object.assign(e,{className:we()({[e.className]:!0,"gb-accordion__toggle":"accordion-toggle"===n.variantRole,"gb-block-is-current":"accordion-toggle"===n.variantRole&&n.accordionItemOpen})})),e)));const ds=(e,t)=>("generateblocks/button"===t.name&&"accordion-toggle"===t.attributes.variantRole&&(e=!1),e);(0,ce.addFilter)("generateblocks.editor.showButtonAppender","generateblocks/accordion/remove-button-appender",ds),(0,ce.addFilter)("generateblocks.editor.showButtonLinkControl","generateblocks/accordion/remove-button-link-control",ds),(0,ce.addFilter)("generateblocks.editor.showButtonContainerControl","generateblocks/accordion/remove-button-container-control",ds),(0,ce.addAction)("generateblocks.editor.renderBlock","generateblocks-pro/accordion/renderBlocks",(function(e){const{attributes:t,context:n,setAttributes:r,ref:o,isSelected:a,clientId:i}=e,{variantRole:s,accordionItemOpen:l,accordionMultipleOpen:c,anchor:u,uniqueId:d}=t,{hasSelectedInnerBlock:p}=(0,$t.useSelect)((e=>e(de.store)),[]),h=p(i,!0);(0,ue.useEffect)((()=>{"accordion-toggle"===s&&r({accordionItemOpen:n["generateblocks-pro/accordionItemOpen"]})}),[n["generateblocks-pro/accordionItemOpen"]]),(0,ue.useEffect)((()=>{if("accordion-item"===s){const e=o?.current;if(e&&l){e.setAttribute("data-accordion-is-open",!0);const t=e.querySelector(".gb-accordion__toggle"),n=t.classList.contains("gb-button")?"button":"container";t.setAttribute("data-"+n+"-is-current",!0)}}}),[]),(0,ue.useEffect)((()=>{if("accordion"===s){const e=o?.current;e&&(c?e.setAttribute("data-multiple-open",!0):e.removeAttribute("data-multiple-open"))}}),[c]),(0,ue.useEffect)((()=>{"accordion-toggle"===s&&(a||h)&&as(o,"button"),"accordion-item"===s&&a&&as(o,"container")}),[a,h]),(0,ue.useEffect)((()=>{"accordion-item"===s&&r({accordionTransition:n["generateblocks-pro/accordionTransition"]})}),[n["generateblocks-pro/accordionTransition"]]),(0,ue.useEffect)((()=>{if(d){if("accordion-toggle"===s){const e=u&&u.startsWith("gb-accordion-toggle-")&&u!==`gb-accordion-toggle-${d}`;u&&!e||r({anchor:`gb-accordion-toggle-${d}`})}if("accordion-content"===s){const e=u&&u.startsWith("gb-accordion-content-")&&u!==`gb-accordion-content-${d}`;u&&!e||r({anchor:`gb-accordion-content-${d}`})}}}),[d,s,u,r])})),(0,ce.addFilter)("generateblocks.editor.settingsPanel","generateblocks/accordion/containerSettingsPanel",(function(e,t){const{attributes:n,setAttributes:r,name:o,clientId:i}=t,{variantRole:s,accordionMultipleOpen:l,accordionItemOpen:c,syncAccordionItemStyles:u,accordionTransition:d,accordionToggleType:p}=n,{getBlock:h,getBlocks:f}=(0,$t.useSelect)((e=>e(de.store)),[]),{replaceBlock:g}=(0,$t.useDispatch)(de.store);return"accordion"!==s&&"accordion-item"!==s||"generateblocks/container"!==o?e:(0,a.createElement)(a.Fragment,null,"accordion"===s&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Keep multiple items open","generateblocks-pro"),checked:!!l,onChange:e=>{r({accordionMultipleOpen:e})}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Sync accordion item styles","generateblocks-pro"),checked:!!u,onChange:e=>r({syncAccordionItemStyles:e})}),(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Transition","generateblocks-pro"),value:d,onChange:e=>r({accordionTransition:e}),options:[{value:"",label:(0,le.__)("None","generateblocks-pro")},{value:"slide",label:(0,le.__)("Slide","generateblocks-pro")},{value:"fade",label:(0,le.__)("Fade","generateblocks-pro")}]}),(0,a.createElement)(he.SelectControl,{label:(0,le.__)("Accordion title type","generateblocks-pro"),options:[{value:"button",label:(0,le.__)("Button","generateblocks-pro")},{value:"container",label:(0,le.__)("Container","generateblocks-pro")}],value:p,onChange:e=>{r({accordionToggleType:e});const t=is(f(i),"accordion-toggle",{clientId:i}),n=[],o=[];t.forEach((t=>{const r=h(t);n.push(r.clientId);let a=!1;if("button"===e){let e="";if(r.innerBlocks.length){const t=r.innerBlocks.find((e=>"generateblocks/headline"===e.name||"core/paragraph"===e.name||"core/heading"===e.name));t?.attributes?.content&&(e=t?.attributes?.content)}a=(0,Vt.createBlock)("generateblocks/button",{...r.attributes,...ss,display:"inline-flex",text:e,buttonType:"button"})}"container"===e&&(a=(0,Vt.createBlock)("generateblocks/container",{...r.attributes,display:""},[(0,Vt.createBlock)("generateblocks/headline",{content:r?.attributes?.text,element:"p"})])),g(t,a),o.push(a)}))}}),(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Enable FAQ schema","generateblocks-pro"),checked:!!n.faqSchema,onChange:e=>r({faqSchema:e})})),"accordion-item"===s&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.ToggleControl,{label:(0,le.__)("Item open by default","generateblocks-pro"),checked:!!c,onChange:e=>{r({accordionItemOpen:e})}})),e)}));function ps(e,t){return"accordion-toggle"===t.attributes.variantRole&&(e=!0),e}(0,Ni.gte)(Zi(),"1.7.0")&&(0,ce.addFilter)("generateblocks.editor.iconSVGSets","generateblocks/accordion/add-accordion-icons",((e,{attributes:t})=>("accordion-toggle"===t?.variantRole&&(e={accordion:{group:(0,le.__)("Accordion","generateblocks-pro"),svgs:{accordionArrows:{label:(0,le._x)("Accordion Arrows","label","generateblocks-pro"),icon:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em","aria-hidden":"true",role:"img",className:"gb-accordion__icon"},(0,a.createElement)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z",fill:"currentColor"})),(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em","aria-hidden":"true",role:"img",className:"gb-accordion__icon-open"},(0,a.createElement)("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z",fill:"currentColor"})))},accordionPlusMinus:{label:(0,le._x)("Accordion Plus/Minus","label","generateblocks-pro"),icon:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em","aria-hidden":"true",role:"img",className:"gb-accordion__icon"},(0,a.createElement)("path",{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",fill:"currentColor"})),(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em","aria-hidden":"true",role:"img",className:"gb-accordion__icon-open"},(0,a.createElement)("path",{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",fill:"currentColor"})))}}},...e}),e))),(0,ce.addFilter)("generateblocks.editor.addButtonCurrentColors","generateblocks-pro/accordion/addCurrentColors",ps),(0,ce.addFilter)("generateblocks.editor.addContainerCurrentColors","generateblocks-pro/accordion/addCurrentColors",ps),(0,ce.addFilter)("generateblocks.editor.containerAppender","generateblocks/accordion/BlockAppender",((e,{isSelected:t,attributes:n})=>{const{variantRole:r}=n;return("accordion"!==r&&"accordion-item"!==r||!t)&&e})),Ai()((()=>{(0,Ni.gte)(Zi(),"1.7.0")&&((0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Accordion","generateblocks-pro"),name:"accordion",icon:se("accordion"),description:(0,le.__)("Build accordions using our Container and Button blocks.","generateblocks-pro"),attributes:{variantRole:"accordion",accordionTransition:"slide"},innerBlocks:ls,isActive:e=>"accordion"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Accordion Item","generateblocks-pro"),name:"accordion-item",scope:["block"],attributes:{variantRole:"accordion-item"},isActive:e=>"accordion-item"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Accordion Content","generateblocks-pro"),name:"accordion-content",scope:["block"],attributes:{variantRole:"accordion-content"},isActive:e=>"accordion-content"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/button",{title:(0,le.__)("Accordion Title","generateblocks-pro"),name:"accordion-title",scope:["block"],attributes:{variantRole:"accordion-toggle"},isActive:e=>"accordion-toggle"===e.variantRole}),(0,Vt.registerBlockVariation)("generateblocks/container",{title:(0,le.__)("Accordion Title","generateblocks-pro"),name:"container-accordion-toggle",scope:["block"],attributes:{variantRole:"accordion-toggle"},isActive:e=>"accordion-toggle"===e.variantRole}))})),(0,ce.addFilter)("generateblocks.styles.selectorShortcuts","generateblocks-pro/accordion/global-style-selectors",(function(e,{selectedBlock:t}){return"generateblocks/container"===t?.name&&"accordion"===t?.attributes?.variantRole?{default:{label:(0,le.__)("Accordion","generateblocks-pro"),items:[{label:(0,le.__)("Toggle","generateblocks-pro"),value:".gb-accordion__toggle"},{label:(0,le.__)("Hovered Toggle","generateblocks-pro"),value:".gb-accordion__toggle:is(:hover, :focus)"},{label:(0,le.__)("Current Toggle","generateblocks-pro"),value:".gb-accordion__toggle:is(.gb-block-is-current, .gb-block-is-current:hover, .gb-block-is-current:focus)"},{label:(0,le.__)("Item","generateblocks-pro"),value:".gb-accordion__item"},{label:(0,le.__)("Opened Item","generateblocks-pro"),value:".gb-accordion__item-open"}]},toggles:{label:(0,le.__)("Toggles","generateblocks-pro"),items:[{label:(0,le.__)("Toggle","generateblocks-pro"),value:".gb-accordion__toggle"},{label:(0,le.__)("Hovered Toggle","generateblocks-pro"),value:".gb-accordion__toggle:is(:hover, :focus)"},{label:(0,le.__)("Current Toggle","generateblocks-pro"),value:".gb-accordion__toggle:is(.gb-block-is-current, .gb-block-is-current:hover, .gb-block-is-current:focus)"}]},items:{label:(0,le.__)("Items","generateblocks-pro"),items:[{label:(0,le.__)("Item","generateblocks-pro"),value:".gb-accordion__item"},{label:(0,le.__)("Opened Item","generateblocks-pro"),value:".gb-accordion__item-open"}]}}:e}));const hs=(0,ue.createContext)(void 0);function fs({clientId:e,name:t,attributes:n,setAttributes:r,children:o}){const[i,s]=(0,ue.useState)(""),[l,c]=(0,ue.useState)(""),u={clientId:e,name:t,globalClassValue:i,setGlobalClassValue:s,failedMessage:l,setFailedMessage:c,attributes:n,setAttributes:r,globalClasses:n.globalClasses};return(0,a.createElement)(hs.Provider,{value:u},o)}function gs(){const e=(0,ue.useContext)(hs);if(!e)throw new Error("useGlobalClasses hook must be wrapped by a GlobalClassProvider.");return e}const ms=window.wp.editPost,bs=(0,ue.createElement)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(Di.Path,{d:"M5 11.25h14v1.5H5z"}));var vs="undefined"==typeof window||"Deno"in globalThis;function ys(){}function ks(e){return"number"==typeof e&&e>=0&&e!==1/0}function Es(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _s(e,t){return"function"==typeof e?e(t):e}function ws(e,t){return"function"==typeof e?e(t):e}function Cs(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(r){if(t.queryHash!==xs(i,t.options))return!1}else if(!Ts(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||a&&!a(t))}function Ss(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Os(t.options.mutationKey)!==Os(a))return!1}else if(!Ts(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function xs(e,t){return(t?.queryKeyHashFn||Os)(e)}function Os(e){return JSON.stringify(e,((e,t)=>Ns(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ts(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every((n=>Ts(e[n],t[n])))}function Is(e,t){if(e===t)return e;const n=As(e)&&As(t);if(n||Ns(e)&&Ns(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{};let l=0;for(let o=0;o<i;o++){const i=n?o:a[o];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Is(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return o===i&&l===o?e:s}return t}function Rs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function As(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ns(e){if(!Ms(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ms(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Ms(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ls(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Is(e,t):t}function Ps(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Fs(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ds=Symbol();function Bs(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ds?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var js=e=>setTimeout(e,0),zs=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=js;const a=r=>{t?e.push(r):o((()=>{n(r)}))};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return i},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Hs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$s=new class extends Hs{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!vs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},Vs=new class extends Hs{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!vs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function qs(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function Us(e){return Math.min(1e3*2**e,3e4)}function Gs(e){return"online"!==(e??"online")||Vs.isOnline()}var Ws=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Ys(e){return e instanceof Ws}function Qs(e){let t,n=!1,r=0,o=!1;const a=qs(),i=()=>$s.isFocused()&&("always"===e.networkMode||Vs.isOnline())&&e.canRun(),s=()=>Gs(e.networkMode)&&e.canRun(),l=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),a.resolve(n))},c=n=>{o||(o=!0,e.onError?.(n),t?.(),a.reject(n))},u=()=>new Promise((n=>{t=e=>{(o||i())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,o||e.onContinue?.()})),d=()=>{if(o)return;let t;const a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{if(o)return;const a=e.retry??(vs?0:3),s=e.retryDelay??Us,l="function"==typeof s?s(r,t):s,p=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);var h;!n&&p?(r++,e.onFail?.(r,t),(h=l,new Promise((e=>{setTimeout(e,h)}))).then((()=>i()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:a,cancel:t=>{o||(c(new Ws(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),a)}}var Xs=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ks(this.gcTime)&&(this.#o=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vs?1/0:3e5))}clearGcTimeout(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}},Ks=class extends Xs{#a;#i;#s;#l;#c;#u;#d;constructor(e){super(),this.#d=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#s=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#c?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=Ls(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#c?.promise;return this.#c?.cancel(e),t?t.then(ys).catch(ys):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some((e=>!1!==ws(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ds||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Es(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#c&&(this.#d?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:()=>{const e=Bs(this.options,t),n={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(n),this.#d=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(o),this.options.behavior?.onFetch(o,this),this.#i=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||this.#p({type:"fetch",meta:o.fetchOptions?.meta});const a=e=>{Ys(e)&&e.silent||this.#p({type:"error",error:e}),Ys(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#c=Qs({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(e){return void a(e)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else a(new Error(`${this.queryHash} data is undefined`))},onError:a,onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#c.start()}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Zs(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Ys(n)&&n.revert&&this.#i?{...this.#i,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),zs.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function Zs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gs(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Js=class extends Hs{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,n){const r=t.queryKey,o=t.queryHash??xs(r,t);let a=this.get(o);return a||(a=new Ks({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){zs.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Cs(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Cs(e,t))):t}notify(e){zs.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){zs.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){zs.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},el=class extends Xs{#f;#g;#c;constructor(e){super(),this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#f=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#f.includes(e)||(this.#f.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#f=this.#f.filter((t=>t!==e)),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#f.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#c?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#p({type:"continue"})};this.#c=Qs({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});const n="pending"===this.state.status,r=!this.#c.canStart();try{if(n)t();else{this.#p({type:"pending",variables:e,isPaused:r}),await(this.#g.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:r})}const o=await this.#c.start();return await(this.#g.config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(this.#g.config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),this.#p({type:"success",data:o}),o}catch(t){try{throw await(this.#g.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#g.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#p({type:"error",error:t})}}finally{this.#g.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),zs.batch((()=>{this.#f.forEach((t=>{t.onMutationUpdate(e)})),this.#g.notify({mutation:this,type:"updated",action:e})}))}},tl=class extends Hs{constructor(e={}){super(),this.config=e,this.#m=new Set,this.#b=new Map,this.#v=0}#m;#b;#v;build(e,t,n){const r=new el({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#m.add(e);const t=nl(e);if("string"==typeof t){const n=this.#b.get(t);n?n.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#m.delete(e)){const t=nl(e);if("string"==typeof t){const n=this.#b.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=nl(e);if("string"==typeof t){const n=this.#b.get(t),r=n?.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){const t=nl(e);if("string"==typeof t){const n=this.#b.get(t)?.find((t=>t!==e&&t.state.isPaused));return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){zs.batch((()=>{this.#m.forEach((e=>{this.notify({type:"removed",mutation:e})})),this.#m.clear(),this.#b.clear()}))}getAll(){return Array.from(this.#m)}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ss(t,e)))}findAll(e={}){return this.getAll().filter((t=>Ss(e,t)))}notify(e){zs.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return zs.batch((()=>Promise.all(e.map((e=>e.continue().catch(ys))))))}};function nl(e){return e.options.scope?.id}function rl(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=Bs(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const a={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const s=await c(a),{maxPages:l}=t.options,u=o?Fs:Ps;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,r,l)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},n=(e?al:ol)(r,t);s=await u(t,n,e)}else{const t=e??a.length;do{const e=0===l?i[0]??r.initialPageParam:ol(r,s);if(l>0&&null==e)break;s=await u(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function ol(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function al(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var il=class{#y;#g;#u;#k;#E;#_;#w;#C;constructor(e={}){this.#y=e.queryCache||new Js,this.#g=e.mutationCache||new tl,this.#u=e.defaultOptions||{},this.#k=new Map,this.#E=new Map,this.#_=0}mount(){this.#_++,1===this.#_&&(this.#w=$s.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())})),this.#C=Vs.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())})))}unmount(){this.#_--,0===this.#_&&(this.#w?.(),this.#w=void 0,this.#C?.(),this.#C=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#g.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#y.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_s(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#y.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(r.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#y.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return zs.batch((()=>this.#y.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){const t=this.#y;zs.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#y;return zs.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries({type:"active",...e},t))))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zs.batch((()=>this.#y.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(ys).catch(ys)}invalidateQueries(e,t={}){return zs.batch((()=>(this.#y.findAll(e).forEach((e=>{e.invalidate()})),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zs.batch((()=>this.#y.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ys)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(ys)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#y.build(this,t);return n.isStaleByTime(_s(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ys).catch(ys)}fetchInfiniteQuery(e){return e.behavior=rl(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ys).catch(ys)}ensureInfiniteQueryData(e){return e.behavior=rl(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vs.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#g}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#k.set(Os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#k.values()],n={};return t.forEach((t=>{Ts(e,t.queryKey)&&Object.assign(n,t.defaultOptions)})),n}setMutationDefaults(e,t){this.#E.set(Os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#E.values()],n={};return t.forEach((t=>{Ts(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xs(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ds&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#g.clear()}},sl=n(4848),ll=a.createContext(void 0),cl=({client:e,children:t})=>(a.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,sl.jsx)(ll.Provider,{value:e,children:t}));const ul=(0,ue.createElement)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(Di.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var dl;function pl(e,t){const n={...e};for(const r in e)t[r]&&void 0!==t[r].default&&(n[r]=t[r].default);return n}const hl="undefined"!=typeof gbGlobalStylePermissions&&null!==(dl=gbGlobalStylePermissions?.canManageStyles)&&void 0!==dl&&dl,fl=/[^a-zA-Z0-9-_]/g,gl=(e,t=!1,n=!0)=>{if(t)return e;let r=e.replace(fl,"");for(;r.length>0&&!/^[a-zA-Z_]/.test(r);)r=r.substring(1);return!r.startsWith(".")&&n&&(r="."+r),r},ml=e=>void 0!==e.styles&&"object"==typeof e.styles,bl=window.gbp.stylesBuilder;function vl(e,t){return Object.entries(e).filter((([e,n])=>!Ht.includes(e)&&t[e]!==n.default)).reduce(((e,[n])=>(e[n]=t[n],e)),{})}function yl(e,t,n="&:hover"){var r,o;const a=vl(e,t),i=(e,t,r,o)=>{r.includes("Hover")?e[t][n][r]=o:e[t][r]=o},s=null!==(r=bl.defaultAtRules.find((e=>"mediumSmallWidth"===e.id))?.value)&&void 0!==r?r:"@media (max-width:1024px)",l=null!==(o=bl.defaultAtRules.find((e=>"smallWidth"===e.id))?.value)&&void 0!==o?o:"@media (max-width:767px)",c=e=>{e=e.replace("Tablet","").replace("Mobile","").replace("Hover","").replace("textColor","color").replace("zindex","zIndex");const t=document.createElement("div");return e in getComputedStyle(t)?e:""},u=Object.entries(a).reduce(((e,[r])=>{const o=c(r);if(r.includes("Tablet")&&o)i(e,s,o,t[r]);else if(r.includes("Mobile")&&o)i(e,l,o,t[r]);else if(r.includes("Hover")&&o)e[n][o]=t[r];else if("spacing"===r||"sizing"===r||"borders"===r||"typography"===r)Object.entries(t[r]).forEach((([t,r])=>{const o=c(t);t.includes("Tablet")&&o?i(e,s,o,r):t.includes("Mobile")&&o?i(e,l,o,r):t.includes("Hover")&&o?e[n][o]=r:o&&(e[o]=r)}));else if("bgImage"===r)t.bgImage?.image?.url&&("pseudo-element"===t?.bgOptions?.selector?e["&:before"]={...e["&:before"],backgroundImage:`url(${t.bgImage.image.url})`,backgroundRepeat:t.bgOptions.repeat,backgroundSize:t.bgOptions.size,backgroundPosition:t.bgOptions.position,backgroundAttachment:t.bgOptions.attachment,opacity:t.bgOptions.opacity,content:'""',position:"absolute",top:"0",right:"0",bottom:"0",left:"0",zIndex:"0"}:(e.backgroundImage=`url(${t.bgImage.image.url})`,e.backgroundRepeat=t.bgOptions.repeat,e.backgroundSize=t.bgOptions.size,e.backgroundPosition=t.bgOptions.position,e.backgroundAttachment=t.bgOptions.attachment));else if("gradient"===r&&t.gradient){let n="",r="";const o=ve(t.gradientColorOne,t.gradientColorOneOpacity),a=ve(t.gradientColorTwo,t.gradientColorTwoOpacity);t.gradientColorOne&&""!==t.gradientColorStopOne&&(n=" "+t.gradientColorStopOne+"%"),t.gradientColorTwo&&""!==t.gradientColorStopTwo&&(r=" "+t.gradientColorStopTwo+"%");const i="linear-gradient("+t.gradientDirection+"deg, "+o+n+", "+a+r+")";"pseudo-element"===t.gradientSelector?e["&:after"]={...e["&:after"],backgroundImage:i,content:'""',position:"absolute",top:"0",right:"0",bottom:"0",left:"0",zIndex:"0",pointerEvents:"none"}:e.backgroundImage=i}else if("iconStyles"===r){const n=t.iconStyles;n.width&&(e[".gb-shape svg"]={...e[".gb-shape svg"],width:n.width}),n.height&&(e[".gb-shape svg"]={...e[".gb-shape svg"],height:n.height})}else"useGlobalMaxWidth"===r?t.useGlobalMaxWidth&&(e.maxWidth="var(--gb-container-width)"):"iconColor"===r?e[".gb-shape svg"]={...e[".gb-shape svg"],color:t.iconColor,fill:"currentColor"}:"linkColor"===r?e.a={...e.a,color:t.linkColor}:"linkColorHover"===r?e["a:hover"]={...e["a:hover"],color:t.linkColorHover}:"opacities"===r?kl(e,t.opacities,t.useOpacity,El):"transitions"===r?kl(e,t.transitions,t.useTransition,_l):"boxShadows"===r?kl(e,t.boxShadows,t.useBoxShadow,wl):"textShadows"===r?kl(e,t.textShadows,t.useTextShadow,Cl):"filters"===r?kl(e,t.filters,t.useFilter,Sl):"transforms"===r?kl(e,t.transforms,t.useTransform,xl):o&&(e[o]=t[r]);return e}),{[s]:{},[l]:{},[n]:{},"&:before":{},"&:after":{}});return(0,bl.cleanStylesObject)(u)}function kl(e,t,n,r){n&&Array.isArray(t)&&0!==t.length&&t.forEach((t=>{const n=r(t);if(!n||0===Object.keys(n).length)return;const o=function(e){const{device:t="",state:n="normal",target:r="self",customSelector:o="",direction:a=""}=e;let i="";switch(t){case"mobile":i=(0,bl.getAtRuleValue)("smallWidth");break;case"tablet":i=(0,bl.getAtRuleValue)("mediumSmallWidth");break;case"tablet-only":i=(0,bl.getAtRuleValue)("mediumWidth");break;case"desktop":i=(0,bl.getAtRuleValue)("largeWidth")}let s="";switch("hover"===n&&(s="&:hover"),r){case"innerContainer":s+=" > .gb-container";break;case"backgroundImage":s?s+=":before":s="&:before";break;case"icon":s+=" .gb-shape";break;case"accordionContent":s+=" > .gb-accordion__content";break;case"customSelector":s+=" "+o;break;case"pseudo-element":const e=a?":after":":before";s?s+=e:s="&"+e}return{atRule:i,nestedRule:s}}(t);o?.atRule?o?.nestedRule?e[o.nestedRule]={...e[o.nestedRule],[o.atRule]:{...e[o.nestedRule]?.[o.atRule],...n}}:e[o.atRule]={...e[o.atRule],...n}:o?.nestedRule?e[o.nestedRule]={...e[o.nestedRule],...n}:Object.assign(e,n)}))}function El(e){const t={};return ke(e.opacity)&&(t.opacity=e.opacity),e.mixBlendMode&&(t.mixBlendMode=e.mixBlendMode),t}function _l(e){return{transition:(0,le.sprintf)("%1$s %2$s %3$s %4$s",e.property,e.duration+"s",e.timingFunction,ke(e.delay)?e.delay+"s":"").trim()}}function wl(e){const{inset:t="",xOffset:n="0",yOffset:r="0",blur:o="0",spread:a="0",color:i,colorOpacity:s="1"}=e;return{boxShadow:(0,le.sprintf)("%1$s %2$s %3$s %4$s %5$s %6$s",t?"inset":"",n?n+"px":"0",r?r+"px":"0",o?o+"px":"0",a?a+"px":"0",ve(i,s)).trim()}}function Cl(e){const{xOffset:t="0",yOffset:n="0",blur:r="0",color:o,colorOpacity:a="1"}=e;return{textShadow:(0,le.sprintf)("%1$s %2$s %3$s %4$s",ve(o,a),t?t+"px":"0",n?n+"px":"0",r?r+"px":"0").trim()}}function Sl(e){const t=[],{type:n="",blur:r="",brightness:o="",contrast:a="",grayscale:i="",hueRotate:s="",invert:l="",saturate:c="",sepia:u=""}=e;return"blur"===n&&ke(r)&&t.push(`blur(${r}px)`),"brightness"===n&&ke(o)&&t.push(`brightness(${o}%)`),"contrast"===n&&ke(a)&&t.push(`contrast(${a}%)`),"grayscale"===n&&ke(i)&&t.push(`grayscale(${i}%)`),"hue-rotate"===n&&ke(s)&&t.push(`hue-rotate(${s}deg)`),"invert"===n&&ke(l)&&t.push(`invert(${l}%)`),"saturate"===n&&ke(c)&&t.push(`saturate(${c}%)`),"sepia"===n&&ke(u)&&t.push(`sepia(${u}%)`),{filter:t.length?t.join(" "):""}}function xl(e){const t=[],{type:n="",translateX:r="",translateY:o="",rotate:a="",skewX:i="",skewY:s="",scale:l=""}=e;if("translate"===n){let e=0,n=0;ke(r)&&(e=r+"px"),ke(o)&&(n=o+"px"),t.push(`translate(${e}, ${n})`)}if("rotate"===n&&ke(a)&&t.push(`rotate(${a}deg)`),"skew"===n){let e=0,n=0;ke(i)&&(e=i+"deg"),ke(s)&&(n=s+"deg"),t.push(`skew(${e}, ${n})`)}return"scale"===n&&ke(l)&&(t.push(`scale(${l})`),t.push("perspective(1000px)")),{transform:t.length?t.join(" "):""}}const Ol=({onRequestClose:e,clientId:t,localStyles:n,attributeData:r,attributes:o})=>{const{updateBlockAttributes:i}=(0,$t.useDispatch)(de.store);return(0,a.createElement)(he.Modal,{title:(0,le.__)("Remove Local Styles?","generateblocks-pro"),isDismissible:!0,onRequestClose:e,style:{maxWidth:"300px"}},(0,a.createElement)("div",{style:{marginBottom:"2em"}},(0,le.__)("Are you sure? This will clear all local styles for this block.","generateblocks-pro")),(0,a.createElement)("div",{style:{display:"flex",justifyContent:"space-between"}},(0,a.createElement)(he.Button,{variant:"secondary",onClick:e},(0,le.__)("Cancel","generateblocks-pro")),(0,a.createElement)(he.Button,{isDestructive:!0,variant:"primary",onClick:()=>{if(e(),ml(o))return void i(t,{styles:{}});const a=pl(n,r);i(t,a)}},(0,le.__)("Confirm","generateblocks-pro"))))};function Tl({name:e,attributes:t,clientId:n}){const[r,o]=(0,ue.useState)(!1),i=(0,Vt.getBlockType)(e)?.attributes,s=ml(t)?t.styles:vl(i,t);return(0,ln.isEmpty)(s)?null:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"global-classes__class global-classes__class--local"},(0,a.createElement)("span",{className:"global-classes__class-name"},(0,a.createElement)(he.Tooltip,{text:(0,le.__)("This block has local styles.","generateblocks-pro")},(0,a.createElement)("span",{className:"global-classes__class-name--block-styles-btn"},(0,le.__)("block","generateblocks-pro")))),(0,a.createElement)("span",{className:"global-classes__class-actions"},(0,a.createElement)(he.Button,{label:(0,le.__)("Clear local styles","generateblocks-pro"),showTooltip:!0,onClick:()=>{o(!0)},icon:ul}))),r&&(0,a.createElement)(Ol,{attributeData:i,attributes:t,localStyles:s,clientId:n,onRequestClose:()=>o(!1)}))}const Il=(0,ue.createElement)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(Di.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Rl=window.wp.url;async function Al(e){var t;const n=await Hi()({path:(0,Rl.addQueryArgs)("/generateblocks-pro/v1/global-classes/get_styles",{globalClass:e}),method:"GET"});let r=null!==(t=n?.response?.data?.styles)&&void 0!==t?t:{};return Array.isArray(r)&&0===r.length&&(r={}),{classStyles:r,classPostId:n?.response?.data?.postId}}async function Nl(e="publish"){var t;const{success:n,response:r}=await Hi()({path:(0,Rl.addQueryArgs)("/generateblocks-pro/v1/global-classes/get",{status:e}),method:"GET"}),{data:o={}}=r;if(!n)throw new Error(o?.message);return null!==(t=o?.styles)&&void 0!==t?t:[]}const Ml=window.wp.notices,Ll=(0,$t.createReduxStore)("gbp-current-style",{reducer:bl.currentStyleReducer,actions:bl.currentStyleActions,selectors:bl.currentStyleSelectors}),Pl=(0,$t.createReduxStore)("gbp-styles",{reducer:bl.styleReducer,actions:bl.styleActions,selectors:bl.styleSelectors}),Fl=(0,$t.createReduxStore)("gbp-styles-at-rule",{reducer:bl.atRuleReducer,actions:bl.atRuleActions,selectors:bl.atRuleSelectors}),Dl=(0,$t.createReduxStore)("gbp-styles-nested-rule",{reducer:bl.nestedRuleReducer,actions:bl.nestedRuleActions,selectors:bl.nestedRuleSelectors});function Bl(){const{setCurrentStyle:e}=(0,$t.useDispatch)(Ll),{setStyles:t}=(0,$t.useDispatch)(Pl),{createNotice:n,removeAllNotices:r}=(0,$t.useDispatch)(Ml.store),{getEntityRecordEdits:o}=(0,$t.useSelect)(ji.store),{getSelectedBlock:a}=(0,$t.useSelect)((e=>e(de.store)),[]),{setAtRule:i}=(0,$t.useDispatch)(Fl),{setNestedRule:s}=(0,$t.useDispatch)(Dl),{openGeneralSidebar:l}=(0,$t.useDispatch)(ms.store);return async(c,u={})=>{if(!hl)return;const{classStyles:d,classPostId:p}=await Al(c);if(!p)return r("snackbar"),void n("error",(0,le.sprintf)(
|
||
// Translators: Global class name.
|
||
// Translators: Global class name.
|
||
(0,le.__)("%s does not exist.","generateblocks-pro"),c),{type:"snackbar"});i(""),s(""),l("gblocks-editor-sidebar/gblocks-editor-sidebar"),e({postId:p,name:c,classStyles:d,clientId:a()?.clientId,options:u}),u.nestedRule&&s(u.nestedRule),u.atRule&&i(u.atRule);const h=o("postType","gblocks_styles",p);t(h?.gb_style_data||d),r("snackbar"),n("info",(0,le.sprintf)(
|
||
// Translators: Global class name.
|
||
// Translators: Global class name.
|
||
(0,le.__)("Editing %s.","generateblocks-pro"),c),{type:"snackbar"})}}function jl({globalClass:e}){const t=function(){const{globalClasses:e,setAttributes:t}=gs();return n=>{const r=[...e],o=r.indexOf(n);r.splice(o,1),t({globalClasses:r})}}(),n=Bl();return(0,a.createElement)("div",{key:e,className:"global-classes__class"},(0,a.createElement)("span",{className:"global-classes__class-name"},(0,a.createElement)(he.Button,{className:"gblocks-edit-global-class",onClick:async()=>{hl&&n(e,{source:"block"})},label:(0,le.__)("Edit style","generateblocks-pro"),showTooltip:!0},e)),(0,a.createElement)("span",{className:"global-classes__class-actions"},(0,a.createElement)(he.DropdownMenu,{icon:se("vertical-dots"),label:(0,le.__)("Manage style","generateblocks-pro")},(({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.MenuGroup,{className:"global-classes__class-menu"},!!hl&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(he.MenuItem,{onClick:async()=>{n(e,{source:"block"}),r()},icon:Il},(0,le.__)("Edit","generateblocks-pro"))),(0,a.createElement)(he.MenuItem,{onClick:()=>{t(e.replace(".",""))},icon:bs},(0,le.__)("Remove","generateblocks-pro"))))))))}const zl=window.gbp.components;var Hl=class extends Hs{constructor(e,t){super(),this.options=t,this.#l=e,this.#S=null,this.#x=qs(),this.options.experimental_prefetchInRender||this.#x.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#l;#O=void 0;#T=void 0;#I=void 0;#R;#A;#x;#S;#N;#M;#L;#P;#F;#D;#B=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),$l(this.#O,this.options)?this.#j():this.updateResult(),this.#z())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vl(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vl(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#H(),this.#$(),this.#O.removeObserver(this)}setOptions(e){const t=this.options,n=this.#O;if(this.options=this.#l.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ws(this.options.enabled,this.#O))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#V(),this.#O.setOptions(this.options),t._defaulted&&!Rs(this.options,t)&&this.#l.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});const r=this.hasListeners();r&&ql(this.#O,n,this.options,t)&&this.#j(),this.updateResult(),!r||this.#O===n&&ws(this.options.enabled,this.#O)===ws(t.enabled,this.#O)&&_s(this.options.staleTime,this.#O)===_s(t.staleTime,this.#O)||this.#q();const o=this.#U();!r||this.#O===n&&ws(this.options.enabled,this.#O)===ws(t.enabled,this.#O)&&o===this.#D||this.#G(o)}getOptimisticResult(e){const t=this.#l.getQueryCache().build(this.#l,e),n=this.createResult(t,e);return r=n,!Rs(this.getCurrentResult(),r)&&(this.#I=n,this.#A=this.options,this.#R=this.#O.state),n;var r}getCurrentResult(){return this.#I}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#B.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#l.defaultQueryOptions(e),n=this.#l.getQueryCache().build(this.#l,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#j({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#I)))}#j(e){this.#V();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ys)),t}#q(){this.#H();const e=_s(this.options.staleTime,this.#O);if(vs||this.#I.isStale||!ks(e))return;const t=Es(this.#I.dataUpdatedAt,e)+1;this.#P=setTimeout((()=>{this.#I.isStale||this.updateResult()}),t)}#U(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#G(e){this.#$(),this.#D=e,!vs&&!1!==ws(this.options.enabled,this.#O)&&ks(this.#D)&&0!==this.#D&&(this.#F=setInterval((()=>{(this.options.refetchIntervalInBackground||$s.isFocused())&&this.#j()}),this.#D))}#z(){this.#q(),this.#G(this.#U())}#H(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}#$(){this.#F&&(clearInterval(this.#F),this.#F=void 0)}createResult(e,t){const n=this.#O,r=this.options,o=this.#I,a=this.#R,i=this.#A,s=e!==n?e.state:this.#T,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&$l(e,t),i=o&&ql(e,n,t,r);(a||i)&&(u={...u,...Zs(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:h,status:f}=u;c=u.data;let g=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===f){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#L?.state.data,this.#L):t.placeholderData,void 0!==e&&(f="success",c=Ls(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!g)if(o&&c===a?.data&&t.select===this.#N)c=this.#M;else try{this.#N=t.select,c=t.select(c),c=Ls(o?.data,c,t),this.#M=c,this.#S=null}catch(e){this.#S=e}this.#S&&(p=this.#S,c=this.#M,h=Date.now(),f="error");const m="fetching"===u.fetchStatus,b="pending"===f,v="error"===f,y=b&&m,k=void 0!==c,E={status:f,fetchStatus:u.fetchStatus,isPending:b,isSuccess:"success"===f,isError:v,isInitialLoading:y,isLoading:y,data:c,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!b,isLoadingError:v&&!k,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:v&&k,isStale:Ul(e,t),refetch:this.refetch,promise:this.#x};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===E.status?e.reject(E.error):void 0!==E.data&&e.resolve(E.data)},r=()=>{const e=this.#x=E.promise=qs();t(e)},o=this.#x;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==E.status&&E.data===o.value||r();break;case"rejected":"error"===E.status&&E.error===o.reason||r()}}return E}updateResult(){const e=this.#I,t=this.createResult(this.#O,this.options);this.#R=this.#O.state,this.#A=this.options,void 0!==this.#R.data&&(this.#L=this.#O),Rs(t,e)||(this.#I=t,this.#W({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#B.size)return!0;const r=new Set(n??this.#B);return this.options.throwOnError&&r.add("error"),Object.keys(this.#I).some((t=>{const n=t;return this.#I[n]!==e[n]&&r.has(n)}))})()}))}#V(){const e=this.#l.getQueryCache().build(this.#l,this.options);if(e===this.#O)return;const t=this.#O;this.#O=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#z()}#W(e){zs.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#I)})),this.#l.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})}))}};function $l(e,t){return function(e,t){return!1!==ws(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Vl(e,t,t.refetchOnMount)}function Vl(e,t,n){if(!1!==ws(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Ul(e,t)}return!1}function ql(e,t,n,r){return(e!==t||!1===ws(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Ul(e,n)}function Ul(e,t){return!1!==ws(t.enabled,e)&&e.isStaleByTime(_s(t.staleTime,e))}var Gl=a.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Wl=a.createContext(!1),Yl=(Wl.Provider,(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()})));function Ql(){const{updateSettings:e}=function(){const e=(0,Rl.getPath)(window.location.href)?.includes("site-editor.php"),t=(0,$t.useDispatch)(e?"core/edit-site":"core/editor");return{updateSettings:e?t.updateSettings:t.updateEditorSettings}}(),{getSettings:t}=(0,$t.useSelect)((()=>{const e=(0,Rl.getPath)(window.location.href)?.includes("site-editor.php"),t=(0,$t.select)(e?"core/edit-site":"core/editor");return{getSettings:e?t.getSettings:t.getEditorSettings}}),[]);return async(n,r="")=>{if(!r){const e=await Hi()({path:(0,Rl.addQueryArgs)("/generateblocks-pro/v1/global-classes/get_css",{selector:n}),method:"GET"});!0===e.success&&(r=e.response.data.toString())}const o=t(),a=o?.styles?.find((e=>"gb_class:"+n===e.source));e(a?{...o,styles:o?.styles.map((e=>"gb_class:"+n!==e.source?e:{...e,css:r}))}:{...o,styles:[...o?.styles,{css:r,source:"gb_class:"+n}]})}}function Xl({queryClient:e,allowedActions:t=["create","add"],label:n=(0,le.__)("Global Style","generateblocks-pro"),globalClasses:r=[],addClass:o=()=>null,tooltipText:i=null,allowFullSelectors:s=!1}){var l;const[c,u]=(0,ue.useState)(!1),[d,p]=(0,ue.useState)(""),h=(0,ue.useRef)(null),f=function(){const{createNotice:e,removeAllNotices:t}=(0,$t.useDispatch)(Ml.store),{saveEntityRecord:n}=(0,$t.useDispatch)(ji.store),r=Ql();return async(o,a={})=>{const i=await Nl(),s=await Hi()({path:(0,Rl.addQueryArgs)("/generateblocks-pro/v1/global-classes/check_class_name",{className:o}),method:"GET"});if(!s.success)return t("snackbar"),void e("error",s.response,{type:"snackbar"});const l=await(0,bl.getCss)(o,a),c={title:o,status:"publish",gb_style_selector:o,gb_style_data:a,menu_order:(i.length?i[i.length-1].menu_order:0)+1,gb_style_css:l};await n("postType","gblocks_styles",c)&&(r(o),t("snackbar"),e("success",(0,le.sprintf)(
|
||
// Translators: Style name.
|
||
// Translators: Style name.
|
||
(0,le.__)("%s created.","generateblocks-pro"),null!=o?o:(0,le.__)("Style","generateblocks-pro")),{type:"snackbar"}))}}(),g=Bl(),m=function(e,t){return function(e,t,n){const r=(e=>{const t=a.useContext(ll);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(n),o=a.useContext(Wl),i=a.useContext(Gl),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=o?"isRestoring":"optimistic",(e=>{const t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(s),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(s,i),(e=>{a.useEffect((()=>{e.clearReset()}),[e])})(i);const l=!r.getQueryCache().get(s.queryHash),[c]=a.useState((()=>new t(r,s))),u=c.getOptimisticResult(s),d=!o&&!1!==e.subscribed;if(a.useSyncExternalStore(a.useCallback((e=>{const t=d?c.subscribe(zs.batchCalls(e)):ys;return c.updateResult(),t}),[c,d]),(()=>c.getCurrentResult()),(()=>c.getCurrentResult())),a.useEffect((()=>{c.setOptions(s)}),[s,c]),((e,t)=>e?.suspense&&t.isPending)(s,u))throw Yl(s,c,i);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(n,[e.error,r])))({result:u,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if(r.getDefaultOptions().queries?._experimental_afterQuery?.(s,u),s.experimental_prefetchInRender&&!vs&&((e,t)=>e.isLoading&&e.isFetching&&!t)(u,o)){const e=l?Yl(s,c,i):r.getQueryCache().get(s.queryHash)?.promise;e?.catch(ys).finally((()=>{c.updateResult()}))}return s.notifyOnChangeProps?u:c.trackResult(u)}(e,Hl,t)}({queryKey:["globalStyles",{stylesCount:r.length}],queryFn:async()=>{const e=await Nl();return e?.length?e.filter((({style:e})=>(s||e.startsWith("."))&&!r.includes(e.replace(".","")))):[]},staleTime:6e4},e),b=null!==(l=m?.data)&&void 0!==l?l:[],v=(0,ue.useCallback)((function(e){return!!b.find((t=>{const n=gl(e,s);return t.style===n}))}),[b]);async function y(e){if(null===e||""===e)return;const t=gl(e,s);try{await g(t)}catch(e){p(e.message),console.error(e)}}async function k(e,t){if(null===e||""===e)return;const n=gl(e,s);try{if(r.includes(n))throw new Error((0,le.__)("This style has already been added.","generateblocks-pro"));await o(n),t&&t()}catch(e){p(e.message),console.error(e)}}function E(){return c?(0,le.__)("Create","generateblocks-pro"):t.includes("add")?(0,le.__)("Add","generateblocks-pro"):t.includes("edit")?(0,le.__)("Edit","generateblocks-pro"):""}return(0,a.createElement)("div",{className:"gb-gc-add"},(0,a.createElement)(zl.Autocomplete,{ref:h,className:"gb-gc-add__autocomplete",label:n,tooltipText:i,source:b,itemFilter:function(e,t=""){return e.filter((({style:e})=>{p("");const n=gl(t,s,!1);if(""===n)return!0;const o=!r.includes(`.${n}`);return e.includes(n)&&o}))},placeholder:(0,le.__)("Enter style name","generateblocks-pro"),itemLabelKey:"style",itemValueKey:"style",showClear:!0,onSelect:async(e,n)=>{const r=e.style;t.includes("add")?await k(r,n):t.includes("edit")&&await y(r)},error:d,onChange:e=>{if(!hl)return;const t=v(e);u(!t)},afterInputWrapper:({inputValue:n})=>hl?(0,a.createElement)(he.Button,{variant:"primary",size:"compact",className:"gb-gc-add__button",disabled:!n,onClick:()=>{c?async function(t){try{const n=gl(t,s);await f(n),await o(n),await g(n,{onboarding:!0}),await e.invalidateQueries({queryKey:["globalStyles"]})}catch(e){p(e.message),console.error(e)}}(n):t.includes("add")?k(n):t.includes("edit")&&y(n)}},(0,a.createElement)(E,null)):null}))}const Kl=new il;function Zl(e){const{attributes:t,clientId:n,name:r}=e,{globalClasses:o}=t,[i,s]=(0,ue.useState)(!1),l=(0,$t.useSelect)((e=>e(Ll).currentStyle())),{setCurrentStyle:c}=(0,$t.useDispatch)(Ll),{openGeneralSidebar:u}=(0,$t.useDispatch)(ms.store),{getSelectedBlockClientId:d}=(0,$t.useSelect)((e=>e(de.store)),[]),p=d(),h=function(){const{setAttributes:e,globalClasses:t}=gs();return async n=>{const r=n.replace(".","");t.includes(r)||e({globalClasses:[...t,r]})}}();if((0,ue.useEffect)((()=>{var e;const t=null!==(e=l?.clientId)&&void 0!==e?e:null,n=null!=p?p:null;l?.postId&&t!==n&&null!==p&&(c({...l,clientId:p}),u("edit-post/block"))}),[p]),"generateblocks/grid"===r){const t=(0,ce.applyFilters)("generateblocks.editor.globalClassesPanel","",e);return""===t?null:(0,a.createElement)(de.InspectorControls,null,(0,a.createElement)(he.PanelBody,null,t))}return(0,a.createElement)(cl,{client:Kl},(0,a.createElement)(de.InspectorControls,null,(0,a.createElement)(he.PanelBody,null,(0,a.createElement)("div",{className:"global-classes"},o.map((e=>(0,a.createElement)(jl,{key:e,globalClass:"."+e}))),0!==o.length&&(0,a.createElement)(Tl,{name:r,attributes:t,clientId:n}),0!==o.length&&(0,a.createElement)(he.Button,{variant:"primary",className:"global-classes__add-class",size:"small",onClick:()=>s(!i),icon:i?bs:Bi,label:i?(0,le.__)("Hide create or add new style","generateblocks-pro"):(0,le.__)("Create or add new style","generateblocks-pro"),showTooltip:!0,isPressed:i})),(!!i||0===o.length)&&(0,a.createElement)(Xl,{clientId:n,globalClasses:o,addClass:h,queryClient:Kl}),(0,ce.applyFilters)("generateblocks.editor.globalClassesPanel","",e))))}const Jl=(0,ce.applyFilters)("generateblocks.styles.allowedBlocks",["generateblocks/container","generateblocks/button","generateblocks/headline","generateblocks/image","generateblocks/grid","generateblocks/text","generateblocks/element","generateblocks/shape","generateblocks/media","generateblocks/query","generateblocks/looper","generateblocks/loop-item","generateblocks/query-page-numbers","generateblocks-pro/accordion","generateblocks-pro/accordion-item","generateblocks-pro/accordion-toggle","generateblocks-pro/accordion-content","generateblocks-pro/tabs","generateblocks-pro/tabs-menu","generateblocks-pro/tab-menu-item","generateblocks-pro/tab-items","generateblocks-pro/tab-item","generateblocks-pro/navigation","generateblocks-pro/menu-container","generateblocks-pro/menu-toggle","generateblocks-pro/classic-menu","generateblocks-pro/site-header","generateblocks-pro/carousel","generateblocks-pro/carousel-item","generateblocks-pro/carousel-items","generateblocks-pro/carousel-control","generateblocks-pro/carousel-pagination","generateblocks-pro/form","generateblocks-pro/form-field","generateblocks-pro/form-field-label","generateblocks-pro/form-field-control"]),ec=(0,pe.createHigherOrderComponent)((e=>t=>{const{clientId:n,name:r,attributes:o,setAttributes:i}=t;return Jl.includes(r)?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(fs,{clientId:n,name:r,attributes:o,setAttributes:i},(0,a.createElement)(Zl,{...t})),(0,a.createElement)(e,{...t})):(0,a.createElement)(e,{...t})}),"withGlobalClassControls");function tc(e){const{name:t,globalStyleId:n,hasButtonContainer:r,useInnerContainer:o}=e;if(!n)return"";let a="";const i=t.replace("generateblocks/",""),s=generateBlocksPro?.globalStyleAttrs[i]&&generateBlocksPro?.globalStyleAttrs[i][n]?generateBlocksPro?.globalStyleAttrs[i][n]:{},l=s?.blockVersion||1;if("button"===i){const e=s?.hasButtonContainer||l<3;!r&&e&&(a=(0,le.__)('This Global Style is a Button block inside the "Buttons" block and may not work with this standalone Button.',"generateblocks-pro")),r&&!e&&(a=(0,le.__)('This Global Style is a standalone Button and may not work with this Button block inside the "Buttons" block.',"generateblocks-pro"))}if("container"===i){const e=s?.useInnerContainer||l<3;!o&&e&&(a=(0,le.__)("This Global Style is using the legacy layout system and may not work with this Container block.","generateblocks-pro")),o&&!e&&(a=(0,le.__)("This Global Style is using the new layout system and may not work with this Container block.","generateblocks-pro"))}return a}function nc(e){const{name:t,attributes:n,setAttributes:r,options:o,clientId:i}=e,{useGlobalStyle:s,globalStyleId:l,hasButtonContainer:c=!1,useInnerContainer:u=!1}=n,{updateBlockAttributes:d}=(0,$t.useDispatch)("core/block-editor");if(!o.length)return null;let p={};"generateblocks/button"===t&&(p={backgroundColor:generateBlocksStyling.button.backgroundColor,textColor:generateBlocksStyling.button.textColor,backgroundColorHover:generateBlocksStyling.button.backgroundColorHover,textColorHover:generateBlocksStyling.button.textColorHover,paddingTop:generateBlocksStyling.button.paddingTop,paddingRight:generateBlocksStyling.button.paddingRight,paddingBottom:generateBlocksStyling.button.paddingBottom,paddingLeft:generateBlocksStyling.button.paddingLeft});const h={};Object.keys(n).forEach((e=>{Ht.includes(e)&&(h[e]=n[e])}));const f=(0,Vt.createBlock)(t,h),g={};Object.keys(n).forEach((e=>{Ht.includes(e)||(g[e]=n[e])}));const m=Object.keys(g).some((e=>g[e]!==f.attributes[e])),b=tc({name:t,globalStyleId:l,hasButtonContainer:c,useInnerContainer:u});return(0,a.createElement)(ue.Fragment,null,"generateblocks/grid"!==t&&(0,a.createElement)(he.BaseControl,{label:(0,le.__)("Legacy Global Styles","generateblocks-pro"),id:"legacy-global-styles",className:"legacy-use-global-styles",help:(0,a.createElement)(ue.Fragment,null,(0,le.__)("The below option is using our legacy Global Styles feature.","generateblocks-pro"),(0,a.createElement)(he.ExternalLink,{style:{display:"block",marginTop:"8px"},href:(0,le.__)("https://docs.generateblocks.com/article/global-styles-overview/")},(0,le.__)("Learn more about the new Global Style system.")))}),(0,a.createElement)(he.ToggleControl,{className:"gblocks-use-global-style",label:(0,le.__)("Use Legacy Global Style","generateblocks-pro"),checked:!!s,onChange:e=>{r({useGlobalStyle:e})}}),!!s&&o.length>1&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(he.SelectControl,{className:"gblocks-choose-global-style",value:l,options:o,onChange:e=>{const t={globalStyleId:e};Object.keys(p).length&&Object.keys(p).forEach((n=>{t[n]=""===e?p[n]:""})),r(t)}}),!!l&&!!m&&(0,a.createElement)(he.Button,{variant:"secondary",size:"small",onClick:()=>{window.confirm((0,le.__)("This will remove all local styling from this block.","generateblocks-pro"))&&d([i],f?.attributes)}},(0,le.__)("Clear local styles","generateblocks-pro")),!!b&&(0,a.createElement)(he.Notice,{status:"warning",isDismissible:!1,className:"gblocks-global-style-compatibility"},b)))}function rc(e){const{name:t,attributes:n,setAttributes:r}=e,{uniqueId:o,globalStyleLabel:i}=n,[s,l]=(0,ue.useState)(!0);(0,ue.useEffect)((()=>{generateBlocksPro.isGlobalStyle&&!n.isGlobalStyle&&(r({isGlobalStyle:!0}),l(!0)),!generateBlocksPro.isGlobalStyle&&n.isGlobalStyle&&r({isGlobalStyle:!1})}),[]);let c="";return"generateblocks/button"===t&&(c="gb-button-"),"generateblocks/container"===t&&(c="gb-container-"),"generateblocks/headline"===t&&(c="gb-headline-"),"generateblocks/button-container"===t&&(c="gb-button-wrapper-"),"generateblocks/grid"===t&&(c="gb-grid-wrapper-"),"generateblocks/image"===t&&(c="gb-image-"),(0,a.createElement)(a.Fragment,null,!!generateBlocksPro.isGlobalStyle&&(0,a.createElement)(he.PanelBody,{title:(0,le.__)("Global Style","generateblocks-pro"),initialOpen:!0,icon:se("globe"),className:"gblocks-panel-label"},(0,a.createElement)(he.BaseControl,{id:"gblocks-global-style-id-field",help:(0,le.__)("Name your global style something short and unique to this type of block.","generateblocks-pro")},(0,a.createElement)("div",{className:"gblocks-global-style-id-field"},(0,a.createElement)("span",{className:"gblocks-global-style-id-prefix"},c),(0,a.createElement)("div",{className:"gblocks-global-style-id-wrap"},(0,a.createElement)(he.TextControl,{type:"text",disabled:!!s,value:o,onChange:e=>{e=e.replace(/[^\w]/gi,"-"),r({uniqueId:e})},onBlur:()=>l(!0)}),!!s&&(0,a.createElement)(he.Tooltip,{text:(0,le.__)("Change Global Style ID","generateblocks-pro")},(0,a.createElement)(he.Button,{icon:se("lock"),onClick:()=>{window.confirm((0,le.__)("Changing this ID will remove the styling from existing blocks using this Global Style.","generateblocks-pro"))&&(l(!1),setTimeout((()=>{document.querySelector(".gblocks-global-style-id-wrap input").focus()}),10))}}))))),(0,a.createElement)(he.TextControl,{label:(0,le.__)("Label","generateblocks-pro"),help:(0,le.__)("The label shown when choosing a Global Style in the editor.","generateblocks-pro"),type:"text",value:i||o,onChange:e=>{r({globalStyleLabel:e})}})))}(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/global-classes/add-attributes",(function(e){return Jl.includes(e.name)?(void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{globalClasses:{type:"array",default:[]}})),e):e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/global-classes/add-controls",ec,1),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generateblocks-pro/global-classes/add-html-classes",(function(e,t,n){if(!Jl.includes(t))return e;if(n.globalClasses.length){const t=n?.globalClasses?.join(" ");e=Object.assign(e,{className:e.className+" "+t})}return e}));const oc=["generateblocks/container","generateblocks/button","generateblocks/button-container","generateblocks/headline","generateblocks/grid","generateblocks/image"],ac=(0,pe.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r,setAttributes:o}=t;return oc.includes(n)&&generateBlocksPro.isGlobalStyle?(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(de.InspectorControls,null,(0,a.createElement)(rc,{name:n,attributes:r,setAttributes:o})),(0,a.createElement)(e,{...t})):(0,a.createElement)(e,{...t})}),"withCreateLegacyGlobalStyle");(0,ce.addFilter)("generateblocks.editor.cssAttrs","generateblocks-pro/global-styles/filter-css",(function(e,t){if(e.useGlobalStyle&&""!==e.globalStyleId){const n=t.name.replace("generateblocks/",""),r=generateBlocksPro.globalStyleAttrs[n]||void 0,o=r?r[e.globalStyleId]:void 0;if(void 0===o||!o)return e;let a="container";"generateblocks/button"===t.name?a="button":"generateblocks/button-container"===t.name?a="buttonContainer":"generateblocks/headline"===t.name?a="headline":"generateblocks/grid"===t.name?a="gridContainer":"generateblocks/image"===t.name&&(a="image");const i={boxShadows:"useBoxShadow",filters:"useFilter",opacities:"useOpacity",textShadows:"useTextShadow",transforms:"useTransform",transition:"useTransition",advBackgrounds:"useAdvBackgrounds"},s=Object.assign({globalBlockVersion:o.blockVersion},e);return o.sizing||(o.sizing={}),Object.keys(o).forEach((t=>{let n=!!e[t]||0===e[t];if(t in i&&(n=!!e[i[t]]),!Ht.includes(t)&&(!n||e[t]===generateBlocksDefaults[a][t]||"object"==typeof e[t]||Array.isArray(e[t])))if("button"===a&&(!o.blockVersion||o?.blockVersion<3)&&(o.display="inline-flex",o.alignItems="center",o.justifyContent="center",o.alignment="center"),"container"===a&&(!o.blockVersion||o?.blockVersion<3)&&(o.width&&(o.sizing.width=String(o.width+"%")),o.widthTablet&&(o.sizing.widthTablet=o.autoWidthTablet?"auto":String(o.widthTablet+"%")),o.widthMobile&&(o.sizing.widthMobile=o.autoWidthMobile?"auto":String(o.widthMobile+"%")),o.minHeight&&(o.sizing.minHeight=String(o.minHeight+o.minHeightUnit)),o.minHeightTablet&&(o.sizing.minHeightTablet=String(o.minHeightTablet+o.minHeightUnitTablet)),o.minHeightMobile&&(o.sizing.minHeightMobile=String(o.minHeightMobile+o.minHeightUnitMobile))),Array.isArray(e[t]))s[t]=[...o[t],...e[t]];else if("object"==typeof e[t]){const n=Object.fromEntries(Object.entries(e[t]).filter((([,e])=>e||0===e)));s[t]={...o[t],...n}}else s[t]=o[t]})),s}return e})),(0,ce.addFilter)("blocks.registerBlockType","generateblocks-pro/global-styles/add-attributes",(function(e){if(!oc.includes(e.name))return e;let t="container";return"generateblocks/button"===e.name?t="button":"generateblocks/button-container"===e.name?t="buttonContainer":"generateblocks/headline"===e.name?t="headline":"generateblocks/grid"===e.name?t="gridContainer":"generateblocks/image"===e.name&&(t="image"),void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{isGlobalStyle:{type:"boolean",default:!1},useGlobalStyle:{type:"boolean",default:generateBlocksDefaults[t].useGlobalStyle},globalStyleId:{type:"string",default:generateBlocksDefaults[t].globalStyleId},globalStyleLabel:{type:"string",default:""}})),e})),(0,ce.addFilter)("editor.BlockEdit","generateblocks-pro/global-styles/create-legacy-global-style",ac),(0,ce.addFilter)("generateblocks.editor.globalClassesPanel","generateblocks/global-styles/use-legacy-global-style",(function(e,t){const{name:n,attributes:r}=t;if(!oc.includes(n))return e;const o=n.replace("generateblocks/",""),i=[{label:(0,le.__)("Choose…","generateblocks-pro"),value:""}],s=generateBlocksPro.globalStyleIds[o];return s&&Object.keys(s).forEach((e=>{if(tc({name:n,globalStyleId:s[e],hasButtonContainer:r.hasButtonContainer,useInnerContainer:r.useInnerContainer})&&!generateBlocksPro.showIncompatibleGlobalStyles&&r.globalStyleId!==s[e])return;let t=s[e];generateBlocksPro.globalStyleAttrs[o]&&generateBlocksPro.globalStyleAttrs[o][s[e]]&&generateBlocksPro.globalStyleAttrs[o][s[e]].globalStyleLabel&&(t=generateBlocksPro.globalStyleAttrs[o][s[e]].globalStyleLabel),i.push({label:t||s[e],value:s[e]})})),!generateBlocksPro.isGlobalStyle&&i.length<2&&!r.useGlobalStyle?e:(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(nc,{...t,options:i}),e)})),(0,ce.addFilter)("generateblocks.frontend.htmlAttributes","generateblocks-pro/global-styles/add-attributes",(function(e,t,n){if(!oc.includes(t))return e;let r="";return"generateblocks/button"===t&&(r="gb-button-"+n.globalStyleId),"generateblocks/container"===t&&(r="gb-container-"+n.globalStyleId),"generateblocks/headline"===t&&(r="gb-headline-"+n.globalStyleId),"generateblocks/button-container"===t&&(r="gb-button-wrapper-"+n.globalStyleId),"generateblocks/grid"===t&&(r="gb-grid-wrapper-"+n.globalStyleId),"generateblocks/image"===t&&(r="gb-image-"+n.globalStyleId),n.useGlobalStyle&&n.globalStyleId&&(e=Object.assign(e,{className:e.className+" "+r})),e}));const ic={attribute:/\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,id:/#(?<name>[-\w\P{ASCII}]+)/gu,class:/\.(?<name>[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,"pseudo-class":/:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,universal:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu},sc=new Set(["combinator","comma"]),lc=(new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),e=>{switch(e){case"pseudo-element":case"pseudo-class":return new RegExp(ic[e].source.replace("(?<argument>¶*)","(?<argument>.*)"),"gu");default:return ic[e]}});function cc(e,t){let n=0,r="";for(;t<e.length;t++){const o=e[t];switch(o){case"(":++n;break;case")":--n}if(r+=o,0===n)return r}return r}const uc=/(['"])([^\\\n]+?)\1/g,dc=/\\./g;function pc(e){if(Array.isArray(e))return e.map((e=>e.content)).join("");switch(e.type){case"list":return e.list.map(pc).join(",");case"relative":return e.combinator+pc(e.right);case"complex":return pc(e.left)+e.combinator+pc(e.right);case"compound":return e.list.map(pc).join("");default:return e.content}}function hc(){const{setCurrentStyle:e}=(0,$t.useDispatch)(Ll),{setStyles:t}=(0,$t.useDispatch)(Pl),{setAtRule:n}=(0,$t.useDispatch)(Fl),{setNestedRule:r}=(0,$t.useDispatch)(Dl);return()=>{e({}),t({}),n(""),r("")}}function fc(){const{editEntityRecord:e}=(0,$t.useDispatch)(ji.store),t=Ql(),n=(0,ue.useRef)(0);return async(r,o,a)=>{const i=++n.current,[s,l]=await Promise.all([(0,bl.getCss)(r,a),(0,bl.getCss)(r,a,"editor")]);if(i!==n.current)return;const c=["postType","gblocks_styles",o];await e(...c,{title:r,gb_style_selector:r,gb_style_data:a,gb_style_css:s}),i===n.current&&t(r,l)}}function gc(e){return function(e,t=ic){if(""===(e=e.trim()))return[];const n=[];e=(e=e.replace(dc,((e,t)=>(n.push({value:e,offset:t}),"".repeat(e.length))))).replace(uc,((e,t,r,o)=>(n.push({value:e,offset:o}),`${t}${"".repeat(r.length)}${t}`)));{let t,r=0;for(;(t=e.indexOf("(",r))>-1;){const o=cc(e,t);n.push({value:o,offset:t}),e=`${e.substring(0,t)}(${"¶".repeat(o.length-2)})${e.substring(t+o.length)}`,r=t+o.length}}const r=function(e,t=ic){if(!e)return[];const n=[e];for(const[e,r]of Object.entries(t))for(let t=0;t<n.length;t++){const o=n[t];if("string"!=typeof o)continue;r.lastIndex=0;const a=r.exec(o);if(!a)continue;const i=a.index-1,s=[],l=a[0],c=o.slice(0,i+1);c&&s.push(c),s.push({...a.groups,type:e,content:l});const u=o.slice(i+l.length+1);u&&s.push(u),n.splice(t,1,...s)}let r=0;for(const e of n)switch(typeof e){case"string":throw new Error(`Unexpected sequence ${e} found at index ${r}`);case"object":r+=e.content.length,e.pos=[r-e.content.length,r],sc.has(e.type)&&(e.content=e.content.trim()||" ")}return n}(e,t),o=new Set;for(const e of n.reverse())for(const t of r){const{offset:n,value:r}=e;if(!(t.pos[0]<=n&&n+r.length<=t.pos[1]))continue;const{content:a}=t,i=n-t.pos[0];t.content=a.slice(0,i)+r+a.slice(i+r.length),t.content!==a&&o.add(t)}for(const e of o){const t=lc(e.type);if(!t)throw new Error(`Unknown token type: ${e.type}`);t.lastIndex=0;const n=t.exec(e.content);if(!n)throw new Error(`Unable to parse content for ${e.type}: ${e.content}`);Object.assign(e,n.groups)}return r}(e.replace(".editor-styles-wrapper ",""))}const mc=(0,ue.memo)((function({matchedSources:e}){const{setNestedRule:t}=(0,$t.useDispatch)(Dl),n=Bl(),[r,o]=(0,ue.useState)(!1);return(0,a.createElement)(he.Button,{className:"iXUFk5Mk3KhNAvSUZCSM",onClick:()=>o(!r)},r&&(0,a.createElement)(he.Popover,{className:"cafBUxMdTweAWXyGWVxk",focusOnMount:!1},(0,a.createElement)("table",null,(0,a.createElement)("thead",null,(0,a.createElement)("tr",null,(0,a.createElement)("th",null,(0,le.__)("Property","generateblocks-pro")),(0,a.createElement)("th",null,(0,le.__)("Value","generateblocks-pro")),(0,a.createElement)("th",null))),(0,a.createElement)("tbody",null,Object.entries(e).map((([e,{selector:r,valueRaw:o}])=>{const i=r.replace(".editor-styles-wrapper ",""),s=gc(i),l=s[0].name,c=`.${l}`;return(0,a.createElement)("tr",{key:e},(0,a.createElement)("td",null,e),(0,a.createElement)("td",null,(0,a.createElement)("code",null,o)),(0,a.createElement)("td",null,(0,a.createElement)(he.Button,{variant:"link",label:i,showTooltip:!0,onClick:async()=>{try{if(!hl)return;await n(c);let e=!1;const r=pc(s.filter(((t,n)=>{const{type:r,name:o}=t;return!(o===l&&0===n||"combinator"===r&&1===n||(1===n&&"combinator"!==r&&(e=!0),0))})));r&&t(e?`&${r}`:r)}catch(e){console.error(e)}}},(0,le.__)("Edit Source","generateblocks-pro"))))}))))))}));(0,ce.addFilter)("generateblocks.editor.control.label","generateblocks-pro/control-labels",(function(e,t,n,r,o=!1){const[i,s]=(0,ue.useState)(e),l=null===document.querySelector(".editor-styles-wrapper"),c=(0,$t.useSelect)((e=>{const{getEntityRecords:t}=e(ji.store),n=t("postType","gblocks_styles",{context:"view",per_page:-1});return null===n?[]:n.map((e=>({classNameSelector:e.gb_style_selector,className:e.gb_style_selector.replace(".",""),id:e.id})))}),[]);return(0,ue.useEffect)((()=>{if(o)return;const i={};for(const[o,u]of Object.entries(t)){var l;if(u)continue;const t=null!==(l=n[o])&&void 0!==l?l:{source:null,selector:"",value:null},{source:d,selector:p,value:h,valueRaw:f}=t;if([null,"other",""].includes(d||h)){r({type:o,value:!1}),s(e);continue}const g=gc(p),m=!!g&&g[0];if(m){for(const{className:n}of c)if("class"===m.type&&m.name===n&&(h!==u||f!==u)){i[o]=t,s((0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(mc,{matchedSources:i}))),r({type:o,value:!0});break}}else r({type:o,value:!1}),s(e)}}),[c,l,o,JSON.stringify(n)]),i})),(0,ce.addAction)("generateblocks.editor.panel.beforeFilters","generateblocks-pro/panel-global-indicator",(({hasGlobalStyle:e=!1,panelRef:t={current:null}})=>{(0,ue.useLayoutEffect)((()=>{if(!t||!t?.current)return;const n=t.current.querySelector(".components-panel__body-toggle > span[aria-hidden]");if(!n)return;const r=null!==t.current.querySelector(".gb-global-style-label");return e&&!r&&n.insertAdjacentHTML("afterend",`<span\n\t\t\t\t\t\tclass="gb-global-style-label bwdqiUHcPUMvFHOd9SJa"\n\t\t\t\t\t\ttitle="${(0,le.__)("This panel has controls that inherit global styles","generateblocks-pro")}"\n\t\t\t\t\t>\n\t\t\t\t\t\t${(0,le.__)("Global","generateblocks-pro")}\n\t\t\t\t\t</span>`),()=>{const e=t.current.querySelector(".gb-global-style-label");e&&e.remove()}}),[e])})),(0,ce.addFilter)("generateblocks.editor.panel.computedStyleSources","generateblocks-pro/get-computed-styles",((e,t,n,r)=>{const o=function(){const{getSelectedBlockClientId:e}=(0,$t.useSelect)((e=>e("core/block-editor")),[]),t=e(),[n,r]=(0,ue.useState)(null);return(0,ue.useLayoutEffect)((()=>{var e;if(!t)return;const n=(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument||document).querySelector(".editor-styles-wrapper");r(null!==(e=n.querySelector(`[data-block="${t}"]:not(.gb-is-root-block)`))&&void 0!==e?e:null)}),[t]),n}();return o?(0,bl.getElementStyles)({elements:o,properties:n,computedStyles:t,deviceAttributes:r}):e})),(0,ce.addFilter)("generateblocks.useBlockStyles.setGlobalStyle","generateblocks-pro/generateblocks/block-styles",Bl),(0,ce.addFilter)("generateblocks.useBlockStyles.cancelEditGlobalStyle","generateblocks-pro/generateblocks/block-styles",hc);function bc(e){return e.templates}function vc(e,t){return e.templatesData[t]}function yc(e){return{type:"API_FETCH",request:e}}function kc(e){return{type:"SET_TEMPLATES",templates:e}}function Ec(e){return{type:"SET_TEMPLATE_DATA",data:e}}const{apiFetch:_c}=wp;function wc({request:e}){return _c(e).then((e=>!!(e&&e.success&&e.response)&&e.response))}function*Cc(){return kc(yield yc({path:"/generateblocks-pro/v1/get_templates/"}))}function*Sc(e){const t=`/generateblocks-pro/v1/get_template_data/?id=${e}`,n=yield yc({path:t});return n.id||(n.id=e),Ec(n)}(0,$t.registerStore)("generateblocks/templates",{reducer:function(e={templates:!1,templatesData:{}},t){switch(t.type){case"SET_TEMPLATES":!e.templates&&t.templates&&(e.templates=t.templates);break;case"SET_TEMPLATE_DATA":t.templatesData&&t.templatesData.id&&!e.templatesData[t.templatesData.id]&&(e.templatesData[t.templatesData.id]=t.templatesData)}return e},selectors:e,actions:t,controls:r,resolvers:o}),(0,$t.register)(Ll),(0,$t.register)(Pl),(0,$t.register)(Fl),(0,$t.register)(Dl);const xc=(0,ue.createElement)(Di.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ue.createElement)(Di.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));function Oc({initialSelected:e="empty-class"}){const{getSelectedBlock:t}=(0,$t.useSelect)((e=>e(de.store)),[]),{updateBlockAttributes:n}=(0,$t.useDispatch)(de.store),r=(0,$t.useSelect)((e=>e(Ll).currentStyle())),{setCurrentStyle:o}=(0,$t.useDispatch)(Ll),{setStyles:i}=(0,$t.useDispatch)(Pl),s=r?.name,l=r?.postId,[c,u]=(0,ue.useState)(e),[d,p]=(0,ue.useState)(""),[h,f]=(0,ue.useState)([]),[g,m]=(0,ue.useState)(!1),b=fc(),v=t(),{getEntityRecordEdits:y}=(0,$t.useSelect)(ji.store);let k=[{label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("Blank style","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("Start a new style that has no set properties.","generateblocks-pro"))),value:"empty-class"},{label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("Clone an existing style","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("Start by choosing an existing style to copy.","generateblocks-pro"))),value:"clone-class"}];if(v?.clientId){const e=(0,Vt.getBlockType)(v?.name)?.attributes,t=ml(v?.attributes)?v?.attributes?.styles:yl(e,v?.attributes);Object.keys(t).length&&(k.push({label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("Copy the local block styles","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("Start by copying the properties of the selected block.","generateblocks-pro"))),value:"copy-local"}),k.push({label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("Move the local block styles","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("Start by cutting and pasting the properties of the selected block.","generateblocks-pro"))),value:"move-local"})),k=(0,ce.applyFilters)("generateblocks.styles.onboardingOptions",k,{selectedBlock:v})}return(0,ue.useEffect)((()=>{!async function(){const e=await Nl();f(e.filter((({style:e})=>e!==s)))}()}),[]),(0,a.createElement)("div",{className:"gblocks-css-class__onboarding"},(0,a.createElement)("p",null,(0,le.__)("Choose how to start your style.","generateblocks-pro")),(0,a.createElement)(he.RadioControl,{className:"gblocks-css-class__onboarding-radio",selected:c,options:k,onChange:u}),"clone-class"===c&&(0,a.createElement)(zl.Autocomplete,{className:"gb-gc-add__autocomplete",label:(0,le.__)("Choose style to clone","generateblocks-pro"),source:h,itemFilter:(e,t)=>e.find((({style:e})=>e===t))?e:e.filter((({style:e})=>e.includes(t))),itemLabelKey:"style",itemValueKey:"style",placeholder:(0,le.__)("Enter style name","generateblocks-pro"),onSelect:e=>p(e.style),selected:d}),(0,a.createElement)(he.Button,{variant:"primary",isBusy:g,disabled:g||!c||"clone-class"===c&&!d,onClick:async()=>{if(!g){m(!0);try{let e={},t=null;if("copy-local"===c||"move-local"===c){const n=(0,Vt.getBlockType)(v?.name)?.attributes;if(e=ml(v?.attributes)?v?.attributes?.styles:yl(n,v?.attributes),"move-local"===c){const e=vl(n,v?.attributes);t=ml(v?.attributes)?{...v?.attributes,styles:{}}:pl(e,n)}}if("clone-class"===c&&d){const{classStyles:t,classPostId:n}=await Al(d),r=y("postType","gblocks_styles",n);e=r?.gb_style_data||t,Object.keys(t).length&&(e=t)}e=(0,ce.applyFilters)("generateblocks.styles.onboardingStyles",e,{type:c}),await b(s,l,e),t&&n(v?.clientId,t),i(e),o({...r,options:{onboarding:!1}})}finally{m(!1)}}}},(0,le.__)("Start Editing","generateblocks-pro")))}const Tc=window.gbp.blockStyles;function Ic(e){return!e||"object"!=typeof e||Array.isArray(e)?{}:e}function Rc(e=null){return{postId:e,initialized:!1,styles:{}}}function Ac({currentSelector:e,currentStylePostId:t}){const{getStyles:n}=(0,$t.useSelect)(Pl),{addStyle:r,updateKey:o,deleteStyle:i,setStyles:s}=(0,$t.useDispatch)(Pl),l=(0,$t.useSelect)((e=>e(Fl).getAtRule())),{setAtRule:c}=(0,$t.useDispatch)(Fl),u=(0,$t.useSelect)((e=>e(Dl).getNestedRule())),d=(0,$t.useSelect)((e=>e(Pl).getStyles()),[]),p=(0,$t.useSelect)((e=>e(Pl).getStyles(l,u)),[l,u]),{setNestedRule:h}=(0,$t.useDispatch)(Dl),f=fc(),g=Ql(),{getSelectedBlock:m}=(0,$t.useSelect)((e=>e(de.store)),[]),b=m(),v=function(){const{__experimentalSetPreviewDeviceType:e=()=>{},setDeviceType:t}=(0,$t.useDispatch)("core/edit-post");return t||e}(),y=(0,$t.useSelect)((e=>{const{getDeviceType:t}=e("core/editor")||{};if("function"==typeof t)return t();const{__experimentalGetPreviewDeviceType:n=()=>""}=e("core/edit-post");return n()}),[]),k=Bl(),E=hc(),_=(0,ue.useRef)(Rc()),w=(0,ue.useRef)(0);let C={default:{items:[{label:"Hover",value:"&:hover"},{label:"Hover & Focus",value:"&:is(:hover, :focus)"},{label:"Links",value:"a"},{label:"Hovered links",value:"a:hover"}]},interactions:{label:(0,le.__)("Interactions","generateblocks-pro"),items:[{label:"Hover",value:"&:hover"},{label:"Focus",value:"&:focus"},{label:"Hover & Focus",value:"&:is(:hover, :focus)"}]},links:{label:(0,le.__)("Links","generateblocks-pro"),items:[{label:"Links",value:"a"},{label:"Hovered links",value:"a:hover"},{label:"Hovered & focused links",value:"a:is(:hover, :focus)"},{label:"Visited links",value:"a:visited"}]},pseudoElements:{label:(0,le.__)("Pseudo Elements","generateblocks-pro"),items:[{label:"Before",value:"&:before"},{label:"After",value:"&:after"}]}};const S=[];function x(e){var t;return null!==(t=bl.defaultAtRules.find((t=>t.value===e))?.id)&&void 0!==t?t:"all"}function O(e){var t;return null!==(t=bl.defaultAtRules.find((t=>t.id===e))?.value)&&void 0!==t?t:""}"generateblocks/button"!==b?.name&&"generateblocks/headline"!==b?.name||(C.icons={label:(0,le.__)("Icons","generateblocks-pro"),items:[{label:"Icon",value:".gb-icon svg"}]},"generateblocks/button"===b?.name&&(delete C.links,C.icons.items.push({label:"Hovered button icon",value:"&:hover .gb-icon svg"}),C.default.items=[{label:"Hover",value:"&:hover"},{label:"Hover & Focus",value:"&:is(:hover, :focus)"},{label:"Icon",value:".gb-icon svg"}]),b?.attributes?.icon&&S.push({label:(0,le.__)("Icon","generateblocks-pro"),value:".gb-icon svg"})),"generateblocks/container"!==b?.name&&"generateblocks/headline"!==b?.name||S.push({label:(0,le.__)("Links","generateblocks-pro"),value:"a"}),C=(0,ce.applyFilters)("generateblocks.styles.selectorShortcuts",C,{selectedBlock:b});const{record:T,entityStyles:I}=(0,$t.useSelect)((e=>{const n=e(ji.store).getEntityRecord("postType","gblocks_styles",t),r=e(ji.store).getEditedEntityRecord("postType","gblocks_styles",t);return{record:n,entityStyles:r?.gb_style_data}}),[t]);function R(){w.current+=1}return(0,ue.useEffect)((()=>{_.current=Rc(t),w.current+=1}),[t]),(0,ue.useEffect)((()=>{const r=_.current,o=function(e,{postId:t,entityStyles:n,currentStoreStyles:r}){const o=null!=e?e:Rc(t);if(!t||void 0===n)return{state:o,shouldSync:!1,styles:{}};const a=Ic(n),i={postId:t,initialized:!0,styles:(0,ln.cloneDeep)(a)};return o.postId===t&&o.initialized?(0,ln.isEqual)(a,o.styles)?{state:o,shouldSync:!1,styles:a}:{state:i,shouldSync:!(0,ln.isEqual)(a,Ic(r)),styles:a}:{state:i,shouldSync:!1,styles:a}}(r,{postId:t,entityStyles:I,currentStoreStyles:n()});if(_.current=o.state,r!==o.state&&(w.current+=1),!o.shouldSync)return;s(o.styles);const a=w.current;(async()=>{try{const t=await(0,bl.getCss)(e,o.styles,"editor");a===w.current&&g(e,t)}catch(e){console.error(e)}})()}),[t,e,I]),Xt((()=>{let e="";const t=x(l);""!==l&&"largeWidth"!==t&&"mediumLargeWidth"!==t||"Desktop"===y?"mediumWidth"!==t&&"mediumSmallWidth"!==t||"Tablet"===y?"smallWidth"===t&&"Mobile"!==y&&(e="Mobile"):e="Tablet":e="Desktop",e&&v(e)}),[l]),(0,ue.useEffect)((()=>{const e=x(l);"Desktop"===y&&""!==l&&"largeWidth"!==e&&"mediumLargeWidth"!==e?c(""):"Tablet"===y&&"mediumWidth"!==e&&"mediumSmallWidth"!==e?c(O("mediumSmallWidth")):"Mobile"===y&&"smallWidth"!==e&&c(O("smallWidth"))}),[y]),T&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(bl.StylesBuilder,{scope:"global",currentSelector:e,styles:p,allStyles:d,onDeleteStyle:(r,o)=>{R(),i(r,o);const a=n();f(e,t,a)},nestedRule:u,atRule:l,onStyleChange:(o,a=null)=>{R(),r(o,a,l,u);const i=n();f(e,t,i)},onNestedRuleChange:e=>h(e),onAtRuleChange:e=>c(e),onUpdateKey:(r,a,i)=>{R(),o(r,a,i);const s=n();f(e,t,s)},defaultAtRules:bl.defaultAtRules,selectorShortcuts:C,visibleSelectors:S,onEditStyle:k,cancelEditStyle:E,setLocalTab:Tc.openBlockStylesTab,allowDevTools:!0,onAllStylesChange:n=>(R(),s(n),f(e,t,n))}))}const Nc=new il;function Mc({content:e,activePanel:t,setActivePanel:n}){const r=(0,$t.useSelect)((e=>e(Ll).currentStyle())),{getStyles:o}=(0,$t.useSelect)(Pl),i=Ql(),s=(0,ue.useRef)(),l="styles",[c,u]=(0,ue.useState)(!0),{name:d,postId:p,options:{onboarding:h=!1}={}}=r;return(0,ue.useEffect)((()=>{d&&(async()=>{const e=o(),t=await(0,bl.getCss)(d,e,"editor");i(d,t)})()}),[d]),(0,ue.useEffect)((()=>{n(p?l:"")}),[p]),(0,ue.useEffect)((()=>(p?(u(!0),setTimeout((()=>u(!1)),500)):u(!1),()=>{u(!1)})),[p]),t&&l!==t?e:(0,a.createElement)(cl,{client:Nc},(0,a.createElement)(he.PanelBody,{className:we()({"gblocks-style-panel":!0,"gblocks-style-panel--is-editing":!!p}),ref:s},(0,a.createElement)("h2",{className:"gblocks-editor-sidebar__panel-title",style:{display:p?"none":""}},(0,le.__)("Global Styles","generateblocks-pro")),!c&&(0,a.createElement)("div",{className:"gblocks-css-class"},!p&&(0,a.createElement)(Xl,{label:(0,le.__)("Edit or create style","generateblocks-pro"),allowedActions:["create","edit"],tooltipText:(0,le.__)("Edit an existing style, or create a new one.","generateblocks-pro"),queryClient:Nc}),!h&&p&&(0,a.createElement)(Ac,{currentSelector:d,currentStylePostId:p}),!!h&&(0,a.createElement)(Oc,null)),!!c&&(0,a.createElement)(he.Spinner,null)),e)}function Lc({content:e,activePanel:t,setActivePanel:n}){const r=hc(),{openGeneralSidebar:o}=(0,$t.useDispatch)(ms.store),i=(0,$t.useSelect)((e=>e(Ll).currentStyle()));return"styles"!==t?e:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",{className:"gblocks-editor-sidebar-header__title"},(0,le.__)("Global Styles","generateblocks-pro")),(0,a.createElement)(he.Button,{onClick:()=>{r(),n(""),"block"===i?.options?.source&&i?.clientId&&o("edit-post/block")},icon:xc,iconSize:"19",label:(0,le.__)("Go back","generateblocks-pro"),showTooltip:!0}))}(0,ce.addFilter)("generateblocks.editor.sidebar","generateblocks/styles-sidebar",(function(e,{activePanel:t,setActivePanel:n=()=>null}){return hl?(0,a.createElement)(Mc,{content:e,activePanel:t,setActivePanel:n}):e})),(0,ce.addFilter)("generateblocks.editor.sidebarHeader","generateblocks/styles-sidebar-header",(function(e,{activePanel:t,setActivePanel:n}){return hl?(0,a.createElement)(Lc,{content:e,activePanel:t,setActivePanel:n}):e}));var Pc=n(8740),Fc=n.n(Pc),Dc=n(8669);const Bc=window.wp.htmlEntities;class jc extends ue.Component{constructor(){super(...arguments),this.state={loading:!1,activeCategory:{},error:!1},this.getSelectedCategory=this.getSelectedCategory.bind(this),this.printCategorySelect=this.printCategorySelect.bind(this),this.getTemplates=this.getTemplates.bind(this)}getSelectedCategory(e){return this.state.activeCategory[e]||!1}printCategorySelect(e){const t=this.getTemplates(e,""),n={},r=[];return t.forEach((e=>{e.categories&&e.categories.length&&e.categories.forEach((e=>{n[e.slug]||(n[e.slug]=!0,r.push({value:e.slug,label:e.name}))}))})),r.length?(r.unshift({value:"",label:(0,le.__)("Select Category","generateblocks-pro")}),(0,a.createElement)(he.SelectControl,{value:this.getSelectedCategory(e),options:r,onChange:t=>{this.setState({activeCategory:{...this.state.activeCategory,[e]:t}})}})):null}getTemplates(e,t=null){const{templates:n=!1}=this.props;if(!n)return n;const r=[];return t=null===t?this.getSelectedCategory(e):"",n.forEach((n=>{let o=!e;if(!o&&n.types&&n.types.forEach((t=>{t.slug&&e===t.slug&&(o=!0)})),o&&t&&n.categories){let e=!1;n.categories.forEach((n=>{n.slug&&t===n.slug&&(e=!0)})),o=e}o&&r.push(n)})),r}render(){const{insertTemplate:e,getTemplateData:t,onRequestClose:n,clientId:r,templates:o,removeBlock:i,openGeneralSidebar:s}=this.props;let l="";o&&o.forEach((e=>{e.error&&(l=e.error.toString())}));const c=this.getTemplates(),u=this.state.loading||!c||!c.length,d=[];return generateBlocksPro.enableRemoteTemplates&&d.push({name:"blocks",title:(0,a.createElement)("span",null,(0,le.__)("Blocks","generateblocks-pro")),className:"generateblocks-control-tabs-tab"}),generateBlocksPro.enableLocalTemplates&&d.push({name:"local",title:(0,a.createElement)("span",null,(0,le.__)("Local Patterns","generateblocks-pro")),className:"generateblocks-control-tabs-tab"}),(0,a.createElement)(he.Modal,{title:(0,le.__)("Patterns","generateblocks-pro"),className:we()("generateblocks-plugin-templates-modal","generateblocks-plugin-templates-modal-hide-header",u?"generateblocks-plugin-templates-modal-loading":""),position:"top",size:"lg",onRequestClose:()=>{n()}},!!u&&(0,a.createElement)("div",{className:"generateblocks-plugin-templates-modal-loading-spinner"},(0,a.createElement)(he.Spinner,null)),(0,a.createElement)(he.Notice,{status:"info",isDismissible:!1,className:"gblocks-legacy-pattern-library-notice"},(0,a.createElement)("p",null,(0,le.__)("This is our legacy Pattern Library. It is still available to you as you have legacy local patterns.","generateblocks-pro")),(0,a.createElement)("p",null,(0,le.__)("We recommend using the new Pattern Library, instead.","generateblocks-pro")),(0,a.createElement)(he.Button,{variant:"secondary",onClick:()=>{i(r),s("gblocks-editor-sidebar/gblocks-editor-sidebar"),setTimeout((()=>{document.querySelector(".gblocks-pattern-library-button").click()}),500)}},(0,le.__)("Open New Pattern Library","generateblocks-pro"))),!!c&&c.length>0&&(0,a.createElement)(he.TabPanel,{className:"generateblocks-control-tabs generateblocks-component-modal-tab-panel",tabs:d},(o=>{const i=o.name,s=this.getTemplates(i),c=this.getSelectedCategory(i);return(0,a.createElement)(ue.Fragment,null,!1===s&&(0,a.createElement)("div",{className:"generateblocks-plugin-templates-spinner"},(0,a.createElement)(he.Spinner,null)),!!s&&!s.length&&(0,a.createElement)("div",null,"local"===i?(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("No patterns found.","generateblocks-pro")),(0,a.createElement)("a",{className:"components-button is-button is-primary",href:generateBlocksPro.templatesURL,target:"_blank",rel:"noopener noreferrer"},(0,le.__)("Add Template","generateblocks-pro"))):(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("p",null,(0,le.__)("No patterns found.","generateblocks-pro")),l)),!!s&&!!s.length&&(0,a.createElement)(ue.Fragment,{key:`${i}-${c}`},(0,a.createElement)("div",{className:"generateblocks-plugin-templates-categories-row"},(0,a.createElement)("div",{className:"generateblocks-plugin-templates-categories-select"},this.printCategorySelect(i)),(0,a.createElement)("div",{className:"generateblocks-plugin-templates-count"},(0,a.createElement)(ue.RawHTML,null,(0,le.sprintf)(/* translators: Number of templates. */ /* translators: Number of templates. */
|
||
(0,le.__)("Patterns: %s","generateblocks-pro"),`<strong>${s.length}</strong>`)))),this.state.error,(0,a.createElement)(Fc(),{className:"generateblocks-plugin-templates-list",elementType:"ul",disableImagesLoaded:!1,updateOnEachImageLoad:!0,options:{transitionDuration:0}},s.map((o=>{const s=!!o.thumbnail,l=(0,Bc.decodeEntities)(o.title),c=we()("generateblocks-plugin-templates-list-item",`gbp-pattern-${o.id}`,s?"":"generateblocks-plugin-templates-list-item-no-thumb");let u=!1;o.thumbnail_height&&o.thumbnail_width&&(u=o.thumbnail_height/o.thumbnail_width);const d=o.required_free_version?parseFloat(o.required_free_version):parseFloat(generateBlocksPro.generateblocksVersion),p=o.required_pro_version?parseFloat(o.required_pro_version):parseFloat(generateBlocksPro.generateblocksProVersion),h=d>parseFloat(generateBlocksPro.generateblocksVersion),f=p>parseFloat(generateBlocksPro.generateblocksProVersion),g=h||f;return(0,a.createElement)("li",{className:c,key:o.id},(0,a.createElement)("button",{disabled:g,onClick:()=>{this.setState({loading:!0}),t({id:o.id,type:i},(t=>{t&&t.success&&t.response&&t.response.content&&e(t.response.content,r,(e=>{e?this.setState({error:e}):n()})),this.setState({loading:!1})}))}},s&&(0,a.createElement)("div",{className:"generateblocks-plugin-templates-list-item-image"},u&&(0,a.createElement)("div",{className:"generateblocks-plugin-templates-list-item-image-sizer",style:{paddingTop:100*u+"%"}}),(0,a.createElement)(Dc.Ay,{overflow:!0,once:!0},(0,a.createElement)("img",{src:o.thumbnail,alt:o.title}))),(0,a.createElement)("div",{className:"generateblocks-plugin-templates-list-item-title"},l),(!!h||!!f)&&(0,a.createElement)(he.Notice,{status:"error",className:"gblocks-template-requires-version",isDismissible:!1},!!h&&(0,le.sprintf)(/* translators: GenerateBlocks version number */ /* translators: GenerateBlocks version number */
|
||
(0,le.__)("Requires GenerateBlocks %s","generateblocks-pro"),d),!!f&&(0,le.sprintf)(/* translators: GenerateBlocks Pro version number */ /* translators: GenerateBlocks Pro version number */
|
||
(0,le.__)("Requires GenerateBlocks Pro %s","generateblocks-pro"),p))))}))),"local"===i&&(0,a.createElement)(ue.Fragment,null,(0,a.createElement)("a",{className:"components-button is-button is-primary",href:generateBlocksPro.templatesURL,target:"_blank",rel:"noopener noreferrer"},(0,le.__)("Add Template","generateblocks-pro")))))})))}}const zc=(0,pe.compose)([(0,$t.withDispatch)((e=>{const{replaceBlocks:t,removeBlock:n}=e("core/block-editor"),{openGeneralSidebar:r}=e(ms.store);return{insertTemplate(e,n,r){const o=(0,Vt.parse)(e);o.length&&(t(n,o),r(!1))},removeBlock(e){n(e)},openGeneralSidebar:r}})),(0,$t.withSelect)((e=>({templates:e("generateblocks/templates").getTemplates(),getTemplateData(e,t){let n=e.type;"local"!==n&&(n="remote"),Hi()({path:`/generateblocks-pro/v1/get_template_data/?id=${e.id}&type=${n}`,method:"GET"}).then((e=>{t(e)}))}})))])(jc);class Hc extends ue.Component{constructor(){super(...arguments),this.state={isModalOpen:!1}}componentDidMount(){this.setState({isModalOpen:"templates"})}render(){const{isModalOpen:e}=this.state,{clientId:t}=this.props;return(0,a.createElement)(ue.Fragment,null,(0,a.createElement)(he.Placeholder,{label:(0,le.__)("Pattern Library","generateblocks-pro"),instructions:(0,le.__)("Insert pre-built patterns directly into your content.","generateblocks-pro"),className:"gblocks-select-template"},(0,a.createElement)(he.Button,{className:"plugin-generateblocks-panel-button is-large",isPrimary:!0,onClick:()=>{this.setState({isModalOpen:"templates"})}},(0,le.__)("Open Pattern Library","generateblocks-pro")),"templates"===e&&(0,a.createElement)(zc,{onRequestClose:()=>this.setState({isModalOpen:!1}),clientId:t,blockCount:wp.data.select("core/block-editor").getBlockCount()})))}}const $c=Hc;Ai()((()=>{generateBlocksPro.useLegacyPatternLibrary&&(generateBlocksPro.enableRemoteTemplates||generateBlocksPro.enableLocalTemplates)&&(0,Vt.registerBlockType)("generateblocks/template-library",{title:(0,le.__)("Pattern Library (Legacy)","generateblocks-pro"),description:(0,le.__)("Insert pre-built patterns directly into your content.","generateblocks-pro"),icon:se("template-library"),category:"generateblocks",keywords:[(0,le.__)("template"),(0,le.__)("library"),(0,le.__)("generate")],supports:{customClassName:!1},edit:$c,save:()=>null})})),(0,ce.addFilter)("blocks.registerBlockType","generateblocks/legacy-pattern-library/enable-inserter",((e,t)=>"generateblocks/template-library"===t&&generateBlocksPro.useLegacyPatternLibrary&&(generateBlocksPro.enableRemoteTemplates||generateBlocksPro.enableLocalTemplates)?{...e,supports:{...e.supports,inserter:!0}}:e),20)})()})(); |