📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 16:51:51
📂
/ (Root)
/
home
/
apkbfjox
/
pakrummygame.com.pk
/
wp-content
/
plugins
/
kadence-blocks-pro
/
dist
📍 /home/apkbfjox/pakrummygame.com.pk/wp-content/plugins/kadence-blocks-pro/dist
🔄 Refresh
✏️
Editing: blocks-modal.js
Writable
(()=>{var e,t={659(e,t,n){var o=n(51873),l=Object.prototype,a=l.hasOwnProperty,r=l.toString,i=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,i),n=e[i];try{e[i]=void 0;var o=!0}catch(e){}var l=r.call(e);return o&&(t?e[i]=n:delete e[i]),l}},1882(e,t,n){var o=n(72552),l=n(23805);e.exports=function(e){if(!l(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2694(e,t,n){"use strict";var o=n(6925);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,r){if(r!==o){var i=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 i.name="Invariant Violation",i}}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:l};return n.PropTypes=n,n}},2825(e,t,n){"use strict";var o=n(73477);Object.defineProperty(t,"ry",{enumerable:!0,get:function(){return s(o).default}});var l=n(25413);Object.defineProperty(t,"xu",{enumerable:!0,get:function(){return s(l).default}});var a=n(6593);Object.defineProperty(t,"jc",{enumerable:!0,get:function(){return s(a).default}});var r=n(64899);Object.defineProperty(t,"RG",{enumerable:!0,get:function(){return s(r).default}});n(69657);var i=n(4749);Object.defineProperty(t,"VI",{enumerable:!0,get:function(){return s(i).default}});n(68582),n(28333);function s(e){return e&&e.__esModule?e:{default:e}}},3072(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,l=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=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,b=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,k=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case a:case i:case r:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case b:case s:return e;default:return t}}case l:return t}}}function w(e){return x(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=b,t.Portal=l,t.Profiler=i,t.StrictMode=r,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||x(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===b},t.isPortal=function(e){return x(e)===l},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===r},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===r||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===k||e.$$typeof===y||e.$$typeof===g)},t.typeOf=x},3650(e,t,n){var o=n(74335)(Object.keys,Object);e.exports=o},3656(e,t,n){e=n.nmd(e);var o=n(9325),l=n(89935),a=t&&!t.nodeType&&t,r=a&&e&&!e.nodeType&&e,i=r&&r.exports===a?o.Buffer:void 0,s=(i?i.isBuffer:void 0)||l;e.exports=s},4146(e,t,n){"use strict";var o=n(73404),l={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},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return o.isMemo(e)?r:i[e.$$typeof]||l}i[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[o.Memo]=r;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(f){var l=h(n);l&&l!==f&&e(t,l,o)}var r=d(n);u&&(r=r.concat(u(n)));for(var i=s(t),b=s(n),m=0;m<r.length;++m){var g=r[m];if(!(a[g]||o&&o[g]||b&&b[g]||i&&i[g])){var v=p(n,g);try{c(t,g,v)}catch(e){}}}}return t}},4509(e,t,n){var o=n(12651);e.exports=function(e){return o(this,e).has(e)}},4664(e,t,n){var o=n(79770),l=n(63345),a=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(e){return null==e?[]:(e=Object(e),o(r(e),function(t){return a.call(e,t)}))}:l;e.exports=i},4749(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(51609),a=c(l),r=c(n(58527)),i=c(n(7350)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(98222));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Saturation=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.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,s.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,i.default)(function(e,t,n){e(t,n)},50),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),o(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,l=t.black,i=t.pointer,s=t.circle,c=(0,r.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:l,pointer:i,circle:s}},{custom:!!this.props.style});return a.default.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),a.default.createElement("div",{style:c.white,className:"saturation-white"},a.default.createElement("div",{style:c.black,className:"saturation-black"}),a.default.createElement("div",{style:c.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:c.circle}))))}}]),t}(l.PureComponent||l.Component);t.default=d},4901(e,t,n){var o=n(72552),l=n(30294),a=n(40346),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&l(e.length)&&!!r[o(e)]}},5128(e,t,n){var o=n(80909),l=n(64894);e.exports=function(e,t){var n=-1,a=l(e)?Array(e.length):[];return o(e,function(e,o,l){a[++n]=t(e,o,l)}),a}},5556(e,t,n){e.exports=n(2694)()},5861(e,t,n){var o=n(55580),l=n(68223),a=n(32804),r=n(76545),i=n(28303),s=n(72552),c=n(47473),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",b=c(o),m=c(l),g=c(a),v=c(r),k=c(i),y=s;(o&&y(new o(new ArrayBuffer(1)))!=f||l&&y(new l)!=d||a&&y(a.resolve())!=u||r&&y(new r)!=p||i&&y(new i)!=h)&&(y=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case b:return f;case m:return d;case g:return u;case v:return p;case k:return h}return t}),e.exports=y},6535(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}var t=/^\s+/,n=/\s+$/;function o(l,a){if(a=a||{},(l=l||"")instanceof o)return l;if(!(this instanceof o))return new o(l,a);var r=function(o){var l={r:0,g:0,b:0},a=1,r=null,i=null,s=null,c=!1,d=!1;return"string"==typeof o&&(o=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var o,l=!1;if(y[e])e=y[e],l=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(o=A.rgb.exec(e))?{r:o[1],g:o[2],b:o[3]}:(o=A.rgba.exec(e))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=A.hsl.exec(e))?{h:o[1],s:o[2],l:o[3]}:(o=A.hsla.exec(e))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=A.hsv.exec(e))?{h:o[1],s:o[2],v:o[3]}:(o=A.hsva.exec(e))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=A.hex8.exec(e))?{r:S(o[1]),g:S(o[2]),b:S(o[3]),a:M(o[4]),format:l?"name":"hex8"}:(o=A.hex6.exec(e))?{r:S(o[1]),g:S(o[2]),b:S(o[3]),format:l?"name":"hex"}:(o=A.hex4.exec(e))?{r:S(o[1]+""+o[1]),g:S(o[2]+""+o[2]),b:S(o[3]+""+o[3]),a:M(o[4]+""+o[4]),format:l?"name":"hex8"}:!!(o=A.hex3.exec(e))&&{r:S(o[1]+""+o[1]),g:S(o[2]+""+o[2]),b:S(o[3]+""+o[3]),format:l?"name":"hex"}}(o)),"object"==e(o)&&(R(o.r)&&R(o.g)&&R(o.b)?(u=o.r,p=o.g,h=o.b,l={r:255*_(u,255),g:255*_(p,255),b:255*_(h,255)},c=!0,d="%"===String(o.r).substr(-1)?"prgb":"rgb"):R(o.h)&&R(o.s)&&R(o.v)?(r=j(o.s),i=j(o.v),l=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var o=Math.floor(e),l=e-o,a=n*(1-t),r=n*(1-l*t),i=n*(1-(1-l)*t),s=o%6;return{r:255*[n,r,a,a,i,n][s],g:255*[i,n,n,r,a,a][s],b:255*[a,a,i,n,n,r][s]}}(o.h,r,i),c=!0,d="hsv"):R(o.h)&&R(o.s)&&R(o.l)&&(r=j(o.s),s=j(o.l),l=function(e,t,n){var o,l,a;function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)o=l=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;o=r(s,i,e+1/3),l=r(s,i,e),a=r(s,i,e-1/3)}return{r:255*o,g:255*l,b:255*a}}(o.h,r,s),c=!0,d="hsl"),o.hasOwnProperty("a")&&(a=o.a)),a=w(a),{ok:c,format:o.format||d,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a};var u,p,h}(l);this._originalInput=l,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||r.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function l(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var o,l,a=Math.max(e,t,n),r=Math.min(e,t,n),i=(a+r)/2;if(a==r)o=l=0;else{var s=a-r;switch(l=i>.5?s/(2-a-r):s/(a+r),a){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,l:i}}function a(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var o,l,a=Math.max(e,t,n),r=Math.min(e,t,n),i=a,s=a-r;if(l=0===a?0:s/a,a==r)o=0;else{switch(a){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:i}}function r(e,t,n,o){var l=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function i(e,t,n,o){return[E(O(o)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))].join("")}function s(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s-=t/100,n.s=C(n.s),o(n)}function c(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s+=t/100,n.s=C(n.s),o(n)}function d(e){return o(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l+=t/100,n.l=C(n.l),o(n)}function p(e,t){t=0===t?0:t||10;var n=o(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),o(n)}function h(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l-=t/100,n.l=C(n.l),o(n)}function f(e,t){var n=o(e).toHsl(),l=(n.h+t)%360;return n.h=l<0?360+l:l,o(n)}function b(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=o(e).toHsl(),l=[o(e)],a=360/t,r=1;r<t;r++)l.push(o({h:(n.h+r*a)%360,s:n.s,l:n.l}));return l}function g(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+72)%360,s:t.s,l:t.l}),o({h:(n+216)%360,s:t.s,l:t.l})]}function v(e,t,n){t=t||6,n=n||30;var l=o(e).toHsl(),a=360/n,r=[o(e)];for(l.h=(l.h-(a*t>>1)+720)%360;--t;)l.h=(l.h+a)%360,r.push(o(l));return r}function k(e,t){t=t||6;for(var n=o(e).toHsv(),l=n.h,a=n.s,r=n.v,i=[],s=1/t;t--;)i.push(o({h:l,s:a,v:r})),r=(r+s)%1;return i}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=w(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return r(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,l){var a=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E(O(o))];return l&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[r(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+i(this._r,this._g,this._b,this._a),n=t,l=this._gradientType?"GradientType = 1, ":"";if(e){var a=o(e);n="#"+i(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+l+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(f,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},o.fromRatio=function(t,n){if("object"==e(t)){var l={};for(var a in t)t.hasOwnProperty(a)&&(l[a]="a"===a?t[a]:j(t[a]));t=l}return o(t,n)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},o.mix=function(e,t,n){n=0===n?0:n||50;var l=o(e).toRgb(),a=o(t).toRgb(),r=n/100;return o({r:(a.r-l.r)*r+l.r,g:(a.g-l.g)*r+l.g,b:(a.b-l.b)*r+l.b,a:(a.a-l.a)*r+l.a})},o.readability=function(e,t){var n=o(e),l=o(t);return(Math.max(n.getLuminance(),l.getLuminance())+.05)/(Math.min(n.getLuminance(),l.getLuminance())+.05)},o.isReadable=function(e,t,n){var l,a,r,i,s,c=o.readability(e,t);switch(a=!1,(r=n,"AA"!==(i=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(s=(r.size||"small").toLowerCase())&&"large"!==s&&(s="small"),l={level:i,size:s}).level+l.size){case"AAsmall":case"AAAlarge":a=c>=4.5;break;case"AAlarge":a=c>=3;break;case"AAAsmall":a=c>=7}return a},o.mostReadable=function(e,t,n){var l,a,r,i,s=null,c=0;a=(n=n||{}).includeFallbackColors,r=n.level,i=n.size;for(var d=0;d<t.length;d++)(l=o.readability(e,t[d]))>c&&(c=l,s=o(t[d]));return o.isReadable(e,s,{level:r,size:i})||!a?s:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var y=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=o.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(y);function w(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function S(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function O(e){return Math.round(255*parseFloat(e)).toString(16)}function M(e){return S(e)/255}var N,L,I,A=(L="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",I="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(e){return!!A.CSS_UNIT.exec(e)}return o}()},6593(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(51609),a=i(l),r=i(n(58527));function i(e){return e&&e.__esModule?e:{default:e}}var s=[38,40],c=1,d=t.EditableInput=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));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,o=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(o)&&(t=e.keyCode,s.indexOf(t)>-1)){var l=n.getArrowOffset(),a=38===e.keyCode?o+l:o-l;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+c++,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),o(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return a.default.createElement("div",{style:t.wrap},a.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?a.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(l.PureComponent||l.Component);t.default=d},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7350(e,t,n){var o=n(38221),l=n(23805);e.exports=function(e,t,n){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return l(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),o(e,t,{leading:a,maxWait:t,trailing:r})}},9325(e,t,n){var o=n(34840),l="object"==typeof self&&self&&self.Object===Object&&self,a=o||l||Function("return this")();e.exports=a},9999(e,t,n){var o=n(37217),l=n(83729),a=n(16547),r=n(74733),i=n(43838),s=n(93290),c=n(23007),d=n(92271),u=n(48948),p=n(50002),h=n(83349),f=n(5861),b=n(76189),m=n(77199),g=n(35529),v=n(56449),k=n(3656),y=n(87730),x=n(23805),w=n(38440),_=n(95950),C=n(37241),S="[object Arguments]",E="[object Function]",j="[object Object]",O={};O[S]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[j]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[E]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,M,N,L,I){var A,R=1&n,B=2&n,P=4&n;if(M&&(A=L?M(t,N,L,I):M(t)),void 0!==A)return A;if(!x(t))return t;var T=v(t);if(T){if(A=b(t),!R)return c(t,A)}else{var F=f(t),D=F==E||"[object GeneratorFunction]"==F;if(k(t))return s(t,R);if(F==j||F==S||D&&!L){if(A=B||D?{}:g(t),!R)return B?u(t,i(A,t)):d(t,r(A,t))}else{if(!O[F])return L?t:{};A=m(t,F,R)}}I||(I=new o);var H=I.get(t);if(H)return H;I.set(t,A),w(t)?t.forEach(function(o){A.add(e(o,n,M,o,t,I))}):y(t)&&t.forEach(function(o,l){A.set(l,e(o,n,M,l,t,I))});var V=T?void 0:(P?B?h:p:B?C:_)(t);return l(V||t,function(o,l){V&&(o=t[l=o]),a(A,l,e(o,n,M,l,t,I))}),A}},10124(e,t,n){var o=n(9325);e.exports=function(){return o.Date.now()}},10392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},10776(e,t,n){var o=n(30756),l=n(95950);e.exports=function(e){for(var t=l(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,o(r)]}return t}},11331(e,t,n){var o=n(72552),l=n(28879),a=n(40346),r=Function.prototype,i=Object.prototype,s=r.toString,c=i.hasOwnProperty,d=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=l(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==d}},12651(e,t,n){var o=n(74218);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},12749(e,t,n){var o=n(81042),l=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:l.call(t,e)}},13222(e,t,n){var o=n(77556);e.exports=function(e){return null==e?"":o(e)}},14248(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},14528(e){e.exports=function(e,t){for(var n=-1,o=t.length,l=e.length;++n<o;)e[l+n]=t[n];return e}},14974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},15389(e,t,n){var o=n(93663),l=n(87978),a=n(83488),r=n(56449),i=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?r(e)?l(e[0],e[1]):o(e):i(e)}},16038(e,t,n){var o=n(5861),l=n(40346);e.exports=function(e){return l(e)&&"[object Set]"==o(e)}},16547(e,t,n){var o=n(43360),l=n(75288),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var r=e[t];a.call(e,t)&&l(r,n)&&(void 0!==n||t in e)||o(e,t,n)}},16686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var o,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=(o=n(51609))&&o.__esModule?o:{default:o};function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return i=s=r(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(d))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return a.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},a.default.createElement(e,l({},s.props,s.state)))},r(s,i)}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)}(o,n),o}(a.default.Component)};t.default=i},17255(e,t,n){var o=n(47422);e.exports=function(e){return function(t){return o(t,e)}}},17670(e,t,n){var o=n(12651);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},19219(e){e.exports=function(e,t){return e.has(t)}},19570(e,t,n){var o=n(37334),l=n(93243),a=n(83488),r=l?function(e,t){return l(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=r},20317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},20748(e,t,n){"use strict";var o,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=(o=n(51609))&&o.__esModule?o:{default:o};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,o=e.width,r=void 0===o?24:o,i=e.height,s=void 0===i?24:i,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",l({viewBox:"0 0 24 24",style:l({fill:n,width:r,height:s},d)},u),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},20999(e,t,n){var o=n(69302),l=n(36800);e.exports=function(e){return o(function(t,n){var o=-1,a=n.length,r=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(a--,r):void 0,i&&l(n[0],n[1],i)&&(r=a<3?void 0:r,a=1),t=Object(t);++o<a;){var s=n[o];s&&e(t,s,o,r)}return t})}},21020(e,t,n){"use strict";var o=n(51609),l=Symbol.for("react.element"),a=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,a={},c=null,d=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)r.call(t,o)&&!s.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:l,type:e,key:c,ref:d,props:a,_owner:i.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},21549(e,t,n){var o=n(22032),l=n(63862),a=n(66721),r=n(12749),i=n(35749);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=l,s.prototype.get=a,s.prototype.has=r,s.prototype.set=i,e.exports=s},21791(e,t,n){var o=n(16547),l=n(43360);e.exports=function(e,t,n,a){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var c=t[i],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),r?l(n,c,d):o(n,c,d)}return n}},21986(e,t,n){var o=n(51873),l=n(37828),a=n(75288),r=n(25911),i=n(20317),s=n(84247),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,u,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new l(e),new l(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=i;case"[object Set]":var f=1&o;if(h||(h=s),e.size!=t.size&&!f)return!1;var b=p.get(e);if(b)return b==t;o|=2,p.set(e,t);var m=r(h(e),h(t),o,c,u,p);return p.delete(e),m;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},22032(e,t,n){var o=n(81042);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},23007(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24066(e,t,n){var o=n(83488);e.exports=function(e){return"function"==typeof e?e:o}},24739(e,t,n){var o=n(26025);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},25413(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=n(51609),a=s(l),r=s(n(58527)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27218));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Checkboard=function(e){var t=e.white,n=e.grey,s=e.size,c=e.renderers,d=e.borderRadius,u=e.boxShadow,p=e.children,h=(0,r.default)({default:{grid:{borderRadius:d,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+i.get(t,n,s,c.canvas)+") center left"}}});return(0,l.isValidElement)(p)?a.default.cloneElement(p,o({},p.props,{style:o({},p.props.style,h.grid)})):a.default.createElement("div",{style:h.grid})};c.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=c},25911(e,t,n){var o=n(38859),l=n(14248),a=n(19219);e.exports=function(e,t,n,r,i,s){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var f=-1,b=!0,m=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++f<d;){var g=e[f],v=t[f];if(r)var k=c?r(v,g,f,t,e,s):r(g,v,f,e,t,s);if(void 0!==k){if(k)continue;b=!1;break}if(m){if(!l(t,function(e,t){if(!a(m,t)&&(g===e||i(g,e,n,r,s)))return m.push(t)})){b=!1;break}}else if(g!==v&&!i(g,v,n,r,s)){b=!1;break}}return s.delete(e),s.delete(t),b}},26025(e,t,n){var o=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},26195(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isvalidColorString=t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var o=a(n(76135)),l=a(n(6535));function a(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,o.default)(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1),"s"===o||"l"===o)&&/^\d+%$/.test(e[o])&&(n+=1)}),t===n&&e};var r=t.toState=function(e,t){var n=e.hex?(0,l.default)(e.hex):(0,l.default)(e),o=n.toHsl(),a=n.toHsv(),r=n.toRgb(),i=n.toHex();return 0===o.s&&(o.h=t||0,a.h=t||0),{hsl:o,hex:"000000"===i&&0===r.a?"transparent":"#"+i,rgb:r,hsv:a,oldHue:e.h||t||o.h,source:e.source}};t.isValidHex=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,l.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=r(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},t.isvalidColorString=function(e,t){var n=e.replace("°","");return(0,l.default)(t+" ("+n+")")._ok}},26892(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var o,l=(o=n(33215))&&o.__esModule?o:{default:o},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},i=t.autoprefix=function(e){var t={};return(0,l.default)(e,function(e,n){var o={};(0,l.default)(e,function(e,t){var n=r[t];n?o=a({},o,n(e)):o[t]=e}),t[n]=o}),t};t.default=i},27218(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},o=t.render=function(e,t,n,o){if("undefined"==typeof document&&!o)return null;var l=o?new o:document.createElement("canvas");l.width=2*n,l.height=2*n;var a=l.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,l.width,l.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),l.toDataURL()):null};t.get=function(e,t,l,a){var r=e+"-"+t+"-"+l+(a?"-server":"");if(n[r])return n[r];var i=o(e,t,l,a);return n[r]=i,i}},27301(e){e.exports=function(e){return function(t){return e(t)}}},27534(e,t,n){var o=n(72552),l=n(40346);e.exports=function(e){return l(e)&&"[object Arguments]"==o(e)}},28077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},28303(e,t,n){var o=n(56110)(n(9325),"WeakMap");e.exports=o},28333(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=s(n(51609)),a=s(n(58527)),r=n(74572),i=s(n(25413));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Swatch=function(e){var t=e.color,n=e.style,r=e.onClick,s=void 0===r?function(){}:r,c=e.onHover,d=e.title,u=void 0===d?t:d,p=e.children,h=e.focus,f=e.focusStyle,b=void 0===f?{}:f,m="transparent"===t,g=(0,a.default)({default:{swatch:o({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?b:{})}}),v={};return c&&(v.onMouseOver=function(e){return c(t,e)}),l.default.createElement("div",o({style:g.swatch,onClick:function(e){return s(t,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&s(t,e)}},v),p,m&&l.default.createElement(i.default,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,r.handleFocus)(c)},28586(e,t,n){var o=n(56449),l=n(44394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!l(e))||r.test(e)||!a.test(e)||null!=t&&e in Object(t)}},28879(e,t,n){var o=n(74335)(Object.getPrototypeOf,Object);e.exports=o},29172(e,t,n){var o=n(5861),l=n(40346);e.exports=function(e){return l(e)&&"[object Map]"==o(e)}},29537(e,t,n){"use strict";t.o$=void 0;var o=a(n(51609)),l=a(n(58527));function a(e){return e&&e.__esModule?e:{default:e}}t.o$=function(){var e=(0,l.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.default.createElement("div",{style:e.picker})}},29817(e){e.exports=function(e){return this.__data__.has(e)}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},30641(e,t,n){var o=n(86649),l=n(95950);e.exports=function(e,t){return e&&o(e,t,l)}},30756(e,t,n){var o=n(23805);e.exports=function(e){return e==e&&!o(e)}},31175(e,t,n){var o=n(26025);e.exports=function(e,t){var n=this.__data__,l=o(n,e);return l<0?(++this.size,n.push([e,t])):n[l][1]=t,this}},31380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31769(e,t,n){var o=n(56449),l=n(28586),a=n(61802),r=n(13222);e.exports=function(e,t){return o(e)?e:l(e,t)?[e]:a(r(e))}},31800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},32804(e,t,n){var o=n(56110)(n(9325),"Promise");e.exports=o},32865(e,t,n){var o=n(19570),l=n(51811)(o);e.exports=l},33215(e,t,n){var o=n(30641),l=n(24066);e.exports=function(e,t){return e&&o(e,l(t))}},34840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},34932(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,l=Array(o);++n<o;)l[n]=t(e[n],n,e);return l}},35529(e,t,n){var o=n(39344),l=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(l(e))}},35749(e,t,n){var o=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},36800(e,t,n){var o=n(75288),l=n(64894),a=n(30361),r=n(23805);e.exports=function(e,t,n){if(!r(n))return!1;var i=typeof t;return!!("number"==i?l(n)&&a(t,n.length):"string"==i&&t in n)&&o(n[t],e)}},37167(e,t,n){var o=n(4901),l=n(27301),a=n(86009),r=a&&a.isTypedArray,i=r?l(r):o;e.exports=i},37217(e,t,n){var o=n(80079),l=n(51420),a=n(90938),r=n(63605),i=n(29817),s=n(80945);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=l,c.prototype.delete=a,c.prototype.get=r,c.prototype.has=i,c.prototype.set=s,e.exports=c},37241(e,t,n){var o=n(70695),l=n(72903),a=n(64894);e.exports=function(e){return a(e)?o(e,!0):l(e)}},37334(e){e.exports=function(e){return function(){return e}}},37828(e,t,n){var o=n(9325).Uint8Array;e.exports=o},38221(e,t,n){var o=n(23805),l=n(10124),a=n(99374),r=Math.max,i=Math.min;e.exports=function(e,t,n){var s,c,d,u,p,h,f=0,b=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,o=c;return s=c=void 0,f=t,u=e.apply(o,n)}function k(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-f>=d}function y(){var e=l();if(k(e))return x(e);p=setTimeout(y,function(e){var n=t-(e-h);return m?i(n,d-(e-f)):n}(e))}function x(e){return p=void 0,g&&s?v(e):(s=c=void 0,u)}function w(){var e=l(),n=k(e);if(s=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(y,t),b?v(e):u}(h);if(m)return clearTimeout(p),p=setTimeout(y,t),v(h)}return void 0===p&&(p=setTimeout(y,t)),u}return t=a(t)||0,o(n)&&(b=!!n.leading,d=(m="maxWait"in n)?r(a(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==p&&clearTimeout(p),f=0,s=h=c=p=void 0},w.flush=function(){return void 0===p?u:x(l())},w}},38329(e,t,n){var o=n(64894);e.exports=function(e,t){return function(n,l){if(null==n)return n;if(!o(n))return e(n,l);for(var a=n.length,r=t?a:-1,i=Object(n);(t?r--:++r<a)&&!1!==l(i[r],r,i););return n}}},38440(e,t,n){var o=n(16038),l=n(27301),a=n(86009),r=a&&a.isSet,i=r?l(r):o;e.exports=i},38859(e,t,n){var o=n(53661),l=n(31380),a=n(51459);function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}r.prototype.add=r.prototype.push=l,r.prototype.has=a,e.exports=r},39344(e,t,n){var o=n(23805),l=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(l)return l(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39754(e,t,n){var o=n(83729),l=n(80909),a=n(24066),r=n(56449);e.exports=function(e,t){return(r(e)?o:l)(e,a(t))}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},41799(e,t,n){var o=n(37217),l=n(60270);e.exports=function(e,t,n,a){var r=n.length,i=r,s=!a;if(null==e)return!i;for(e=Object(e);r--;){var c=n[r];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++r<i;){var d=(c=n[r])[0],u=e[d],p=c[1];if(s&&c[2]){if(void 0===u&&!(d in e))return!1}else{var h=new o;if(a)var f=a(u,p,d,e,t,h);if(!(void 0===f?l(p,u,3,a,h):f))return!1}}return!0}},42824(e,t,n){var o=n(87805),l=n(93290),a=n(71961),r=n(23007),i=n(35529),s=n(72428),c=n(56449),d=n(83693),u=n(3656),p=n(1882),h=n(23805),f=n(11331),b=n(37167),m=n(14974),g=n(69884);e.exports=function(e,t,n,v,k,y,x){var w=m(e,n),_=m(t,n),C=x.get(_);if(C)o(e,n,C);else{var S=y?y(w,_,n+"",e,t,x):void 0,E=void 0===S;if(E){var j=c(_),O=!j&&u(_),M=!j&&!O&&b(_);S=_,j||O||M?c(w)?S=w:d(w)?S=r(w):O?(E=!1,S=l(_,!0)):M?(E=!1,S=a(_,!0)):S=[]:f(_)||s(_)?(S=w,s(w)?S=g(w):h(w)&&!p(w)||(S=i(_))):E=!1}E&&(x.set(_,S),k(S,_,v,y,x),x.delete(_)),o(e,n,S)}}},43360(e,t,n){var o=n(93243);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43838(e,t,n){var o=n(21791),l=n(37241);e.exports=function(e,t){return e&&o(t,l(t),e)}},44394(e,t,n){var o=n(72552),l=n(40346);e.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==o(e)}},45083(e,t,n){var o=n(1882),l=n(87296),a=n(23805),r=n(47473),i=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,d=s.toString,u=c.hasOwnProperty,p=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||l(e))&&(o(e)?p:i).test(r(e))}},46412(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,o,l){var a=l.clientWidth,r=l.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=i-(l.getBoundingClientRect().left+window.pageXOffset),d=s-(l.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u;if(u=d<0?0:d>r?1:Math.round(100*d/r)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var p;if(o!==(p=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}},46617(e,t,n){"use strict";t.uy=void 0;var o=a(n(51609)),l=a(n(58527));function a(e){return e&&e.__esModule?e:{default:e}}t.uy=function(){var e=(0,l.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.default.createElement("div",{style:e.picker})}},46942(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(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 l.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)o.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()},47237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47422(e,t,n){var o=n(31769),l=n(77797);e.exports=function(e,t){for(var n=0,a=(t=o(t,e)).length;null!=e&&n<a;)e=e[l(t[n++])];return n&&n==a?e:void 0}},47473(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""}},48655(e,t,n){var o=n(26025);e.exports=function(e){return o(this.__data__,e)>-1}},48948(e,t,n){var o=n(21791),l=n(86375);e.exports=function(e,t){return o(e,l(e),t)}},49326(e,t,n){var o=n(31769),l=n(72428),a=n(56449),r=n(30361),i=n(30294),s=n(77797);e.exports=function(e,t,n){for(var c=-1,d=(t=o(t,e)).length,u=!1;++c<d;){var p=s(t[c]);if(!(u=null!=e&&n(e,p)))break;e=e[p]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&i(d)&&r(p,d)&&(a(e)||l(e))}},49653(e,t,n){var o=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},50002(e,t,n){var o=n(82199),l=n(4664),a=n(95950);e.exports=function(e){return o(e,a,l)}},50104(e,t,n){var o=n(53661);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,l=t?t.apply(this,o):o[0],a=n.cache;if(a.has(l))return a.get(l);var r=e.apply(this,o);return n.cache=a.set(l,r)||a,r};return n.cache=new(l.Cache||o),n}l.Cache=o,e.exports=l},50583(e,t,n){var o=n(47237),l=n(17255),a=n(28586),r=n(77797);e.exports=function(e){return a(e)?o(r(e)):l(e)}},50689(e,t,n){var o=n(50002),l=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,r,i){var s=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!s)return!1;for(var u=d;u--;){var p=c[u];if(!(s?p in t:l.call(t,p)))return!1}var h=i.get(e),f=i.get(t);if(h&&f)return h==t&&f==e;var b=!0;i.set(e,t),i.set(t,e);for(var m=s;++u<d;){var g=e[p=c[u]],v=t[p];if(a)var k=s?a(v,g,p,t,e,i):a(g,v,p,e,t,i);if(!(void 0===k?g===v||r(g,v,n,a,i):k)){b=!1;break}m||(m="constructor"==p)}if(b&&!m){var y=e.constructor,x=t.constructor;y==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(b=!1)}return i.delete(e),i.delete(t),b}},51420(e,t,n){var o=n(80079);e.exports=function(){this.__data__=new o,this.size=0}},51459(e){e.exports=function(e){return this.__data__.has(e)}},51609(e){"use strict";e.exports=window.React},51811(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var l=t(),a=16-(l-o);if(o=l,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51873(e,t,n){var o=n(9325).Symbol;e.exports=o},53661(e,t,n){var o=n(63040),l=n(17670),a=n(90289),r=n(4509),i=n(72949);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=l,s.prototype.get=a,s.prototype.has=r,s.prototype.set=i,e.exports=s},54128(e,t,n){var o=n(31800),l=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(l,""):e}},54657(e,t,n){"use strict";var o,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=(o=n(51609))&&o.__esModule?o:{default:o};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,o=e.width,r=void 0===o?24:o,i=e.height,s=void 0===i?24:i,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",l({viewBox:"0 0 24 24",style:l({fill:n,width:r,height:s},d)},u),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},55364(e,t,n){var o=n(85250),l=n(20999)(function(e,t,n){o(e,t,n)});e.exports=l},55378(e,t,n){var o=n(34932),l=n(15389),a=n(5128),r=n(56449);e.exports=function(e,t){return(r(e)?o:a)(e,l(t,3))}},55481(e,t,n){var o=n(9325)["__core-js_shared__"];e.exports=o},55527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},55580(e,t,n){var o=n(56110)(n(9325),"DataView");e.exports=o},56110(e,t,n){var o=n(45083),l=n(10392);e.exports=function(e,t){var n=l(e,t);return o(n)?n:void 0}},56449(e){var t=Array.isArray;e.exports=t},56757(e,t,n){var o=n(91033),l=Math.max;e.exports=function(e,t,n){return t=l(void 0===t?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=l(a.length-t,0),s=Array(i);++r<i;)s[r]=a[t+r];r=-1;for(var c=Array(t+1);++r<t;)c[r]=a[r];return c[t]=n(s),o(e,this,c)}}},58156(e,t,n){var o=n(47422);e.exports=function(e,t,n){var l=null==e?void 0:o(e,t);return void 0===l?n:l}},58527(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var o=c(n(99265)),l=c(n(76203)),a=c(n(26892)),r=c(n(16686)),i=c(n(75268)),s=c(n(62693));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=r.default,t.handleHover=r.default,t.handleActive=i.default,t.loop=s.default;var d=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=(0,o.default)(n),s=(0,l.default)(e,i);return(0,a.default)(s)};t.default=d},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60270(e,t,n){var o=n(87068),l=n(40346);e.exports=function e(t,n,a,r,i){return t===n||(null==t||null==n||!l(t)&&!l(n)?t!=t&&n!=n:o(t,n,a,r,e,i))}},61802(e,t,n){var o=n(62224),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,o,l){t.push(o?l.replace(a,"$1"):n||e)}),t});e.exports=r},62216(e){e.exports=function(e){return void 0===e}},62224(e,t,n){var o=n(50104);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},62693(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},o=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&o("first-child"),e===t-1&&o("last-child"),(0===e||e%2==0)&&o("even"),1===Math.abs(e%2)&&o("odd"),o("nth-child",e),n}},63040(e,t,n){var o=n(21549),l=n(80079),a=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||l),string:new o}}},63345(e){e.exports=function(){return[]}},63605(e){e.exports=function(e){return this.__data__.get(e)}},63702(e){e.exports=function(){this.__data__=[],this.size=0}},63862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},64894(e,t,n){var o=n(1882),l=n(30294);e.exports=function(e){return null!=e&&l(e.length)&&!o(e)}},64899(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(51609),a=s(l),r=s(n(58527)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(89278));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=t.Hue=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return n=o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.handleChange=function(e){var t=i.calculateChange(e,o.props.direction,o.props.hsl,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},c(o,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),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=(0,r.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return a.default.createElement("div",{style:o.hue},a.default.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),a.default.createElement("div",{style:o.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:o.slider}))))}}]),t}(l.PureComponent||l.Component);t.default=d},66721(e,t,n){var o=n(81042),l=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return l.call(t,e)?t[e]:void 0}},67197(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},68223(e,t,n){var o=n(56110)(n(9325),"Map");e.exports=o},68582(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(51609),r=c(a),i=c(n(38221)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(26195));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(s.simpleCheckForValidColor(e)){var o=s.toState(e,e.h||t.state.oldHue);t.setState(o),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,o,n),t.props.onChange&&t.props.onChange(o,n)}},t.handleSwatchHover=function(e,n){if(s.simpleCheckForValidColor(e)){var o=s.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(o,n)}},t.state=o({},s.toState(e.color,0)),t.debounce=(0,i.default)(function(e,t,n){e(t,n)},100),t}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)}(n,t),l(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),r.default.createElement(e,o({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return o({},s.toState(e.color,t.oldHue))}}]),n}(a.PureComponent||a.Component);return t.propTypes=o({},e.propTypes),t.defaultProps=o({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=d},69302(e,t,n){var o=n(83488),l=n(56757),a=n(32865);e.exports=function(e,t){return a(l(e,t,o),e+"")}},69657(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var o=i(n(51609)),l=i(n(5556)),a=i(n(58527)),r=i(n(55364));function i(e){return e&&e.__esModule?e:{default:e}}var s=t.Raised=function(e){var t=e.zDepth,n=e.radius,l=e.background,i=e.children,s=e.styles,c=void 0===s?{}:s,d=(0,a.default)((0,r.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:l}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},c),{"zDepth-1":1===t});return o.default.createElement("div",{style:d.wrap},o.default.createElement("div",{style:d.bg}),o.default.createElement("div",{style:d.content},i))};s.propTypes={background:l.default.string,zDepth:l.default.oneOf([0,1,2,3,4,5]),radius:l.default.number,styles:l.default.object},s.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=s},69884(e,t,n){var o=n(21791),l=n(37241);e.exports=function(e){return o(e,l(e))}},70080(e,t,n){var o=n(26025),l=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():l.call(t,n,1),--this.size,0))}},70695(e,t,n){var o=n(78096),l=n(72428),a=n(56449),r=n(3656),i=n(30361),s=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&l(e),u=!n&&!d&&r(e),p=!n&&!d&&!u&&s(e),h=n||d||u||p,f=h?o(e.length,String):[],b=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||u&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,b))||f.push(m);return f}},71961(e,t,n){var o=n(49653);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},72428(e,t,n){var o=n(27534),l=n(40346),a=Object.prototype,r=a.hasOwnProperty,i=a.propertyIsEnumerable,s=o(function(){return arguments}())?o:function(e){return l(e)&&r.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},72552(e,t,n){var o=n(51873),l=n(659),a=n(59350),r=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?l(e):a(e)}},72903(e,t,n){var o=n(23805),l=n(55527),a=n(90181),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=l(e),n=[];for(var i in e)("constructor"!=i||!t&&r.call(e,i))&&n.push(i);return n}},72949(e,t,n){var o=n(12651);e.exports=function(e,t){var n=o(this,e),l=n.size;return n.set(e,t),this.size+=n.size==l?0:1,this}},73201(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},73404(e,t,n){"use strict";e.exports=n(3072)},73477(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(51609),r=d(a),i=d(n(58527)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(46412)),c=d(n(25413));function d(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=t.Alpha=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return n=o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.handleChange=function(e){var t=s.calculateChange(e,o.props.hsl,o.props.direction,o.props.a,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleChange),window.removeEventListener("mouseup",o.handleMouseUp)},u(o,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),l(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,i.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.default.createElement("div",{style:n.alpha},r.default.createElement("div",{style:n.checkboard},r.default.createElement(c.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:n.gradient}),r.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:n.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:n.slider}))))}}]),t}(a.PureComponent||a.Component);t.default=p},74218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},74572(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=(o=n(51609))&&o.__esModule?o:{default:o};function i(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}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return t=n=i(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},i(n,t)}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)}(o,n),a(o,[{key:"render",value:function(){return r.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.default.createElement(e,l({},this.props,this.state)))}}]),o}(r.default.Component)}},74733(e,t,n){var o=n(21791),l=n(95950);e.exports=function(e,t){return e&&o(t,l(t),e)}},74848(e,t,n){"use strict";e.exports=n(21020)},75268(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var o,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=(o=n(51609))&&o.__esModule?o:{default:o};function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return i=s=r(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(d))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return a.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},a.default.createElement(e,l({},s.props,s.state)))},r(s,i)}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)}(o,n),o}(a.default.Component)};t.default=i},75288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},76135(e,t,n){e.exports=n(39754)},76169(e,t,n){var o=n(49653);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},76189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},76203(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var o=r(n(33215)),l=r(n(88055)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function r(e){return e&&e.__esModule?e:{default:e}}var i=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,l.default)(e.default)||{};return t.map(function(t){var l=e[t];return l&&(0,o.default)(l,function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],l[t])}),t}),n};t.default=i},76545(e,t,n){var o=n(56110)(n(9325),"Set");e.exports=o},77199(e,t,n){var o=n(49653),l=n(76169),a=n(73201),r=n(93736),i=n(71961);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return l(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 i(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return r(e)}}},77556(e,t,n){var o=n(51873),l=n(34932),a=n(56449),r=n(44394),i=o?o.prototype:void 0,s=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return l(t,e)+"";if(r(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},77797(e,t,n){var o=n(44394);e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},78096(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},79770(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,l=0,a=[];++n<o;){var r=e[n];t(r,n,e)&&(a[l++]=r)}return a}},80079(e,t,n){var o=n(63702),l=n(70080),a=n(24739),r=n(48655),i=n(31175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=l,s.prototype.get=a,s.prototype.has=r,s.prototype.set=i,e.exports=s},80631(e,t,n){var o=n(28077),l=n(49326);e.exports=function(e,t){return null!=e&&l(e,t,o)}},80909(e,t,n){var o=n(30641),l=n(38329)(o);e.exports=l},80945(e,t,n){var o=n(80079),l=n(68223),a=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!l||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}},81042(e,t,n){var o=n(56110)(Object,"create");e.exports=o},82199(e,t,n){var o=n(14528),l=n(56449);e.exports=function(e,t,n){var a=t(e);return l(e)?a:o(a,n(e))}},83221(e){e.exports=function(e){return function(t,n,o){for(var l=-1,a=Object(t),r=o(t),i=r.length;i--;){var s=r[e?i:++l];if(!1===n(a[s],s,a))break}return t}}},83349(e,t,n){var o=n(82199),l=n(86375),a=n(37241);e.exports=function(e){return o(e,a,l)}},83488(e){e.exports=function(e){return e}},83693(e,t,n){var o=n(64894),l=n(40346);e.exports=function(e){return l(e)&&o(e)}},83729(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},84247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},85015(e,t,n){var o=n(72552),l=n(56449),a=n(40346);e.exports=function(e){return"string"==typeof e||!l(e)&&a(e)&&"[object String]"==o(e)}},85250(e,t,n){var o=n(37217),l=n(87805),a=n(86649),r=n(42824),i=n(23805),s=n(37241),c=n(14974);e.exports=function e(t,n,d,u,p){t!==n&&a(n,function(a,s){if(p||(p=new o),i(a))r(t,n,s,d,e,u,p);else{var h=u?u(c(t,s),a,s+"",t,n,p):void 0;void 0===h&&(h=a),l(t,s,h)}},s)}},86009(e,t,n){e=n.nmd(e);var o=n(34840),l=t&&!t.nodeType&&t,a=l&&e&&!e.nodeType&&e,r=a&&a.exports===l&&o.process,i=function(){try{return a&&a.require&&a.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=i},86375(e,t,n){var o=n(14528),l=n(28879),a=n(4664),r=n(63345),i=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=l(e);return t}:r;e.exports=i},86649(e,t,n){var o=n(83221)();e.exports=o},87068(e,t,n){var o=n(37217),l=n(25911),a=n(21986),r=n(50689),i=n(5861),s=n(56449),c=n(3656),d=n(37167),u="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,b,m,g){var v=s(e),k=s(t),y=v?p:i(e),x=k?p:i(t),w=(y=y==u?h:y)==h,_=(x=x==u?h:x)==h,C=y==x;if(C&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(C&&!w)return g||(g=new o),v||d(e)?l(e,t,n,b,m,g):a(e,t,y,n,b,m,g);if(!(1&n)){var S=w&&f.call(e,"__wrapped__"),E=_&&f.call(t,"__wrapped__");if(S||E){var j=S?e.value():e,O=E?t.value():t;return g||(g=new o),m(j,O,n,b,g)}}return!!C&&(g||(g=new o),r(e,t,n,b,m,g))}},87296(e,t,n){var o,l=n(55481),a=(o=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},87730(e,t,n){var o=n(29172),l=n(27301),a=n(86009),r=a&&a.isMap,i=r?l(r):o;e.exports=i},87805(e,t,n){var o=n(43360),l=n(75288);e.exports=function(e,t,n){(void 0!==n&&!l(e[t],n)||void 0===n&&!(t in e))&&o(e,t,n)}},87978(e,t,n){var o=n(60270),l=n(58156),a=n(80631),r=n(28586),i=n(30756),s=n(67197),c=n(77797);e.exports=function(e,t){return r(e)&&i(t)?s(c(e),t):function(n){var r=l(n,e);return void 0===r&&r===t?a(n,e):o(t,r,3)}}},88055(e,t,n){var o=n(9999);e.exports=function(e){return o(e,5)}},88984(e,t,n){var o=n(55527),l=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return l(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89278(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,o){var l=o.clientWidth,a=o.clientHeight,r="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,i="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=r-(o.getBoundingClientRect().left+window.pageXOffset),c=i-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var d=void 0;if(d=c<0?359:c>a?0:360*(-100*c/a+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u=void 0;if(u=s<0?0:s>l?359:100*s/l*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},89935(e){e.exports=function(){return!1}},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289(e,t,n){var o=n(12651);e.exports=function(e){return o(this,e).get(e)}},90938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033(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)}},92271(e,t,n){var o=n(21791),l=n(4664);e.exports=function(e,t){return o(e,l(e),t)}},93243(e,t,n){var o=n(56110),l=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=l},93290(e,t,n){e=n.nmd(e);var o=n(9325),l=t&&!t.nodeType&&t,a=l&&e&&!e.nodeType&&e,r=a&&a.exports===l?o.Buffer:void 0,i=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=i?i(n):new e.constructor(n);return e.copy(o),o}},93663(e,t,n){var o=n(41799),l=n(10776),a=n(67197);e.exports=function(e){var t=l(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},93736(e,t,n){var o=n(51873),l=o?o.prototype:void 0,a=l?l.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},95950(e,t,n){var o=n(70695),l=n(88984),a=n(64894);e.exports=function(e){return a(e)?o(e):l(e)}},98222(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n){var o=n.getBoundingClientRect(),l=o.width,a=o.height,r="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,i="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=r-(n.getBoundingClientRect().left+window.pageXOffset),c=i-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>l&&(s=l),c<0?c=0:c>a&&(c=a);var d=s/l,u=1-c/a;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}},99250(e,t,n){"use strict";var o=n(74848);const l=(0,o.jsx)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:(0,o.jsxs)("g",{fill:"#0058b0",fillRule:"nonzero",children:[(0,o.jsx)("path",{d:"M46.538,6.714l-45.076,0c-0.484,0 -0.883,0.399 -0.883,0.883l0,32.806c0,0.484 0.399,0.883 0.883,0.883l45.076,0c0.484,0 0.883,-0.399 0.883,-0.883l0,-32.813c-0.004,-0.482 -0.402,-0.876 -0.883,-0.876Zm-44.192,32.798l0,-25.024l43.308,0l0,25.024l-43.308,0Z"}),(0,o.jsx)("path",{d:"M34.377,26.18l-20.754,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.883 0.883,0.883l20.754,0c0.484,0 0.883,-0.398 0.883,-0.883c0,-0.485 -0.399,-0.883 -0.883,-0.883Z"}),(0,o.jsx)("path",{d:"M28.319,32.417l-8.638,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.883 0.883,0.883l8.638,0c0.484,0 0.883,-0.398 0.883,-0.883c0,-0.485 -0.399,-0.883 -0.883,-0.883Z"}),(0,o.jsx)("path",{d:"M19.681,21.672l8.638,0c0.484,0 0.883,-0.399 0.883,-0.884c0,-0.485 -0.399,-0.883 -0.883,-0.883l-8.638,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.884 0.883,0.884Z"})]})});var a=n(51609),r=n.n(a),i=n(46942),s=n.n(i);const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Modal","name":"kadence/modal","category":"kadence-blocks","description":"","attributes":{"uniqueID":{"type":"string","default":""},"customID":{"type":"string","default":""},"modalAnimateIn":{"type":"string","default":"fadeup"},"modalAnimateOut":{"type":"string","default":"fadeout"},"modalHAlign":{"type":"string","default":"center"},"modalVAlign":{"type":"string","default":"middle"},"modalInnerHAlign":{"type":"string","default":"left"},"modalInnerVAlign":{"type":"string","default":"top"},"modalHeight":{"type":"string","default":"fittocontent"},"modalCustomHeight":{"type":"number","default":400},"modalWidth":{"type":"array","default":[100,100,100]},"modalMaxWidth":{"type":"number","default":600},"modalOverlay":{"type":"string","default":"#000000"},"modalOverlayOpacity":{"type":"number","default":0.6},"modalBackground":{"type":"string","default":"#ffffff"},"modalBackgroundOpacity":{"type":"number","default":1},"modalBorderColor":{"type":"string","default":"#ffffff"},"modalBorderOpacity":{"type":"number","default":1},"modalBorderWidth":{"type":"array","default":[0,0,0,0]},"borderStyleModal":{"type":"array","default":[{"top":["#ffffff","solid","0"],"right":["#ffffff","solid","0"],"bottom":["#ffffff","solid","0"],"left":["#ffffff","solid","0"],"unit":"px"}]},"tabletBorderStyleModal":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyleModal":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"borderRadiusModal":{"type":"array","default":["","","",""]},"tabletBorderRadiusModal":{"type":"array","default":["","","",""]},"mobileBorderRadiusModal":{"type":"array","default":["","","",""]},"borderRadiusModalUnit":{"type":"string","default":"px"},"modalBorderRadius":{"type":"number","default":0},"modalPadding":{"type":"array","default":[30,30,30,30]},"tabletModalPadding":{"type":"array","default":["","","",""]},"mobileModalPadding":{"type":"array","default":["","","",""]},"modalPaddingUnit":{"type":"string","default":"px"},"modalMargin":{"type":"array","default":[20,20,20,20]},"tabletModalMargin":{"type":"array","default":["","","",""]},"mobileModalMargin":{"type":"array","default":["","","",""]},"modalMarginUnit":{"type":"string","default":"px"},"displayClose":{"type":"boolean","default":true},"closePosition":{"type":"string","default":"inside"},"closeSize":{"type":"array","default":[24,24,24]},"closeModal":{"type":"string","default":"Close Modal"},"closeColor":{"type":"string","default":""},"closeHoverColor":{"type":"string","default":""},"closeBackground":{"type":"string","default":""},"closeHoverBackground":{"type":"string","default":""},"displayModalLink":{"type":"boolean","default":true},"modalLink":{"type":"rich-text","source":"rich-text","selector":".kt-blocks-modal-link-inner","default":"Learn More"},"modalLinkStyles":{"type":"array","default":[{"size":[16,"",""],"sizeType":"px","lineHeight":[24,"",""],"lineType":"px","letterSpacing":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":[4,8,4,8],"margin":[0,0,0,0],"hideLabel":false,"iconSide":"right","icon":"","color":"#555555","background":"transparent","border":"#555555","borderRadius":4,"borderWidth":[2,2,2,2],"colorHover":"#ffffff","backgroundHover":"#444444","borderHover":"#444444","hideLabelTablet":"","hideLabelMobile":""}]},"displayLinkShadow":{"type":"boolean","default":false},"linkShadow":{"type":"array","default":[{"color":"rgba(0,0,0,0.2)","opacity":0.2,"spread":0,"blur":2,"hOffset":1,"vOffset":1}]},"displayLinkHoverShadow":{"type":"boolean","default":false},"linkHoverShadow":{"type":"array","default":[{"color":"rgba(0,0,0,0.4)","opacity":0.4,"spread":0,"blur":3,"hOffset":2,"vOffset":2}]},"displayShadow":{"type":"boolean","default":false},"shadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":0,"vOffset":0}]},"linkAlign":{"type":"string","default":"center"},"loadFooter":{"type":"boolean","default":false},"inQueryBlock":{"type":"boolean","default":false},"hideModalContentPreview":{"type":"boolean","default":false},"linkInheritStyles":{"type":"string","default":"custom"},"anchor":{"type":"string","default":""},"modalLabel":{"type":"string","default":""}},"usesContext":["postId","queryId"],"supports":{"align":["left","right","center"],"anchor":true,"kbMetadata":true}}'),d=window.wp.components;function u({label:e,onChange:t,value:n="",className:l="",step:a=1,max:r=100,min:i=0,beforeIcon:s="",help:c="",unit:u="",onUnit:p,showUnit:h=!1,units:f=["px","em","rem"]}){return[t&&(0,o.jsxs)("div",{className:"components-base-control kadence-range-control"+(l?" "+l:""),children:[e&&(0,o.jsx)("label",{className:"components-base-control__label",children:e}),(0,o.jsxs)("div",{className:"kadence-controls-content",children:[(0,o.jsx)("div",{className:"kadence-range-control-inner",children:(0,o.jsx)(d.RangeControl,{className:"kadence-range-control-range",beforeIcon:s,value:n,onChange:e=>t(e),min:i,max:r,step:a,help:c,allowReset:!0})}),(p||h)&&(0,o.jsx)("div",{className:"kadence-units kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{p&&p(e.target.value)},value:u,disabled:1===f.length,children:f.map(e=>(0,o.jsx)("option",{value:e,selected:u===e||void 0,children:e},e))})})]})]})]}const p=window.lodash,h=window.wp.i18n;function f(e,t={},n=[],o=[],l=!1){let a={};const r=["uniqueID","inQueryBlock","anchor","noCustomDefaults"].concat(n);return a=(0,p.omit)(e,r),o.length>0&&o.forEach(e=>{a[e]=[(0,p.head)(a[e])]}),l||Object.keys(a).map((e,n)=>{void 0!==t[e]&&void 0!==t[e].default&&(0,p.isEqual)(a[e],t[e].default)&&delete a[e]}),a}const b=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{fillRule:"nonzero",d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1zm5.906-4.774a1.226 1.226 0 00-2.452 0l.001.001a2.453 2.453 0 01-1.226 2.122l.003.005a2.454 2.454 0 003.675-2.128h-.001zm3.41-4.635a.92.92 0 00-1.3 0l-2.621 2.62a2.144 2.144 0 011.3 1.302l2.621-2.622a.92.92 0 000-1.3z"})}),m=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{d:"M18.984 21V6.984H8.015V21h10.969zm0-15.984q.797 0 1.406.586t.609 1.383v14.016q0 .797-.609 1.406t-1.406.609H8.015q-.797 0-1.406-.609T6 21.001V6.985q0-.797.609-1.383t1.406-.586h10.969zm-3-4.032V3h-12v14.016H2.015V3q0-.797.586-1.406T3.984.985h12z"})}),g=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{d:"M18.984 20.016V3.985h-1.969v3H6.984v-3H5.015v16.031h13.969zM12 2.016q-.422 0-.703.281T11.016 3t.281.703.703.281.703-.281.281-.703-.281-.703T12 2.016zm6.984 0q.797 0 1.406.586t.609 1.383v16.031q0 .797-.609 1.383t-1.406.586H5.015q-.797 0-1.406-.586T3 20.016V3.985q0-.797.609-1.383t1.406-.586h4.172q.328-.891 1.078-1.453T11.999 0t1.734.563 1.078 1.453h4.172z"})}),{localStorage:v}=window;function k({attributes:e,defaultAttributes:t={},blockSlug:n,excludedAttrs:l=[],preventMultiple:a=[],onPaste:r}){const i=n+"-style",s=JSON.parse(v.getItem(i)),c=()=>{v.setItem(i,JSON.stringify(f(e,t,l,a,!0)))},u=()=>{const e=JSON.parse(v.getItem(i));if(e){const n=f(e,t,[],[],!1);r(n)}},k=()=>{const e=JSON.parse(v.getItem(i));e&&r(e)};return(0,o.jsx)(d.ToolbarDropdownMenu,{className:"components-toolbar kb-copy-paste-attributes",icon:b,label:(0,h.__)("Copy/Paste Styles","kadence-blocks-pro"),popoverProps:{className:"kb-copy-paste-attributes__popover"},children:({onClose:e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(d.MenuGroup,{children:[(0,o.jsx)(d.MenuItem,{icon:m,onClick:(0,p.flow)(e,c),label:(0,h.__)("Copy Styles","kadence-blocks-pro"),children:(0,h.__)("Copy Styles","kadence-blocks-pro")}),(0,o.jsx)(d.MenuItem,{icon:g,onClick:(0,p.flow)(e,u),disabled:!s,label:(0,h.__)("Paste Styles","kadence-blocks-pro"),children:(0,h.__)("Paste Styles","kadence-blocks-pro")}),(0,o.jsx)(d.MenuItem,{icon:g,onClick:(0,p.flow)(e,k),disabled:!s,label:(0,h.__)("Paste and Replace","kadence-blocks-pro"),children:(0,h.__)("Paste and Replace","kadence-blocks-pro")})]})})})}const y=window.wp.element,x=window.wp.blockEditor,w=window.wp.data;function _({clientId:e,onClick:t,label:n,icon:l=!1}){return(0,o.jsx)("div",{className:"kadence-blocks-panel-button",children:(0,o.jsx)(d.Button,{className:"kadence-blocks-panel-button__button",onClick:()=>t(),icon:l,children:n})})}const C=window.wp.compose,S=window.wp.primitives,E=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),j=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})),O=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,a.createElement)(S.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),M=(0,C.compose)([(0,w.withSelect)((e,t)=>{const n=void 0!==t.initialOpen?t.initialOpen:"general";return{openedTab:e("kadenceblocks/data").getOpenSidebarTabKey(t.panelName+e("core/block-editor").getSelectedBlockClientId(),n)}}),(0,w.withDispatch)((e,t,{select:n})=>{const{getSelectedBlockClientId:o}=n("core/block-editor");return{toggleOpened:n=>{e("kadenceblocks/data").switchEditorTabOpened(t.panelName+o(),n)}}})])(function({allowedTabs:e=null,activeTab:t,setActiveTab:n,openedTab:l,toggleOpened:a,tabs:r=null}){const i=[{key:"general",title:(0,h.__)("General","kadence-blocks-pro"),icon:E},{key:"style",title:(0,h.__)("Style","kadence-blocks-pro"),icon:j},{key:"advanced",title:(0,h.__)("Advanced","kadence-blocks-pro"),icon:O}],c=e||["general","style","advanced"],u=r||i,p=(0,y.createRef)();let f;return(0,y.useEffect)(()=>{f=p.current.closest(".components-panel")}),t!==l&&n(l),(0,y.useEffect)(()=>{var e;return e=t,f&&(f.setAttribute("data-kadence-hide-advanced","advanced"!==e),f.setAttribute("data-kadence-active-tab",e)),()=>{if(f){const e=f.querySelector(".kadence-blocks-inspector-tabs");e&&null!==e||(f.removeAttribute("data-kadence-hide-advanced"),f.removeAttribute("data-kadence-active-tab"))}}},[t]),(0,o.jsx)("div",{className:"kadence-blocks-inspector-tabs",ref:p,children:u.map(({key:e,title:l,icon:r},i)=>{if(c.includes(e))return(0,o.jsxs)("button",{"aria-label":l+" "+(0,h.__)("tab","kadence-blocks-pro"),onClick:()=>(e=>{a(e),n(e)})(e),className:s()({"is-active":e===t}),children:[(0,o.jsx)(d.Icon,{icon:r})," ",l]},e)})})}),N=(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",style:{paddingTop:"1px"},children:[(0,o.jsx)("rect",{width:"20",height:"16",fill:"#0073e6",rx:"3",ry:"3"}),(0,o.jsx)("text",{x:"50%",y:"57%",fontSize:"9",textAnchor:"middle",color:"#fff",children:"Pro"})]}),L=(0,C.compose)([(0,w.withSelect)((e,t)=>{const n=void 0===t.initialOpen||t.initialOpen,o=(0,p.get)(t,["index"],"");return{isOpened:e("kadenceblocks/data").isEditorPanelOpened(t.panelName+o+e("core/block-editor").getSelectedBlockClientId(),n)}}),(0,w.withDispatch)((e,t,{select:n})=>{const{getSelectedBlockClientId:o}=n("core/block-editor"),l=void 0===t.initialOpen||t.initialOpen,a=(0,p.get)(t,["index"],"");return{toggleOpened:()=>{e("kadenceblocks/data").toggleEditorPanelOpened(t.panelName+a+o(),l)}}})])(function({children:e,title:t,initialOpen:n=!0,isOpened:l,toggleOpened:a,className:r="",icon:i="",buttonProps:s={},blockSlug:c=!1,index:u=!1,proTag:p=!1,panelName:h}){return!1===c||((e,t,n=!0)=>{const o=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};let l={};void 0!==o[t]&&"object"==typeof o[t]&&(l=o[t]);const a=kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin";return void 0===l[e]?n:"all"===l[e]||"contributor"===l[e]&&("contributor"===a||"author"===a||"editor"===a||"admin"===a)||"author"===l[e]&&("author"===a||"editor"===a||"admin"===a)||"editor"===l[e]&&("editor"===a||"admin"===a)||"admin"===l[e]&&"admin"===a})(h,c)?(p&&(s.icon=N,s.iconPosition="right"),(0,o.jsx)(d.PanelBody,{title:t,initialOpen:n,onToggle:a,opened:l,className:r,icon:i,buttonProps:s,children:e})):null}),I=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})),A=e=>e.charAt(0).toUpperCase()+e.slice(1);function R({label:e,onChange:t,onChangeTablet:n,onChangeMobile:l,mobileValue:a,tabletValue:r,value:i,step:s=1,max:c=100,min:f=0,unit:b="",onUnit:m,showUnit:g=!1,units:v=["px","em","rem"],allowEmpty:k=!0,className:x="",reset:_}){const[C,S]=(0,y.useState)("Desktop"),E=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);E!==C&&S(E);const{setPreviewDeviceType:j}=(0,w.useDispatch)("kadenceblocks/data"),O=[{name:"Desktop",key:"desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",key:"tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],M={};return M.Mobile=(0,o.jsx)(u,{value:void 0!==a?a:"",onChange:e=>l(e),min:f,max:c,step:s,unit:b,onUnit:m,showUnit:g,units:v}),M.Tablet=(0,o.jsx)(u,{value:void 0!==r?r:"",onChange:e=>n(e),min:f,max:c,step:s,unit:b,onUnit:m,showUnit:g,units:v}),M.Desktop=(0,o.jsx)(u,{value:void 0!==i?i:"",onChange:e=>t(e),min:f,max:c,step:s,unit:b,onUnit:m,showUnit:g,units:v}),[t&&n&&l&&(0,o.jsxs)("div",{className:"components-base-control kb-responsive-range-control"+(""!==x?" "+x:""),children:[(0,o.jsxs)("div",{className:"kadence-title-bar",children:[e&&(0,o.jsxs)("span",{className:"kadence-control-title",children:[e,_&&(0,o.jsx)(d.Button,{className:"is-reset is-single",isSmall:!0,disabled:!!(0,p.isEqual)("",i),icon:I,onClick:()=>_()})]}),(0,o.jsx)(d.ButtonGroup,{className:"kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(O,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===C?" is-active":""}`,isSmall:!0,"aria-pressed":C===e,onClick:()=>{return j(A(t=e)),void S(A(t));var t},children:n},t))})]}),M[C]?M[C]:M.Desktop]})]}var B=n(58527),P={},T=function(e,t,n,o){var l=e+"-"+t+"-"+n+(o?"-server":"");if(P[l])return P[l];var a=function(e,t,n,o){if("undefined"==typeof document&&!o)return null;var l=o?new o:document.createElement("canvas");l.width=2*n,l.height=2*n;var a=l.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,l.width,l.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),l.toDataURL()):null}(e,t,n,o);return P[l]=a,a},F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},D=function(e){var t=e.white,n=e.grey,o=e.size,l=e.renderers,i=e.borderRadius,s=e.boxShadow,c=e.children,d=(0,B.default)({default:{grid:{borderRadius:i,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+T(t,n,o,l.canvas)+") center left"}}});return(0,a.isValidElement)(c)?r().cloneElement(c,F({},c.props,{style:F({},c.props.style,d.grid)})):r().createElement("div",{style:d.grid})};D.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const H=D;var V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},z=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();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}var U=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return n=o=$(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.handleChange=function(e){var t=function(e,t,n,o,l){var a=l.clientWidth,r=l.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=i-(l.getBoundingClientRect().left+window.pageXOffset),d=s-(l.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u;if(u=d<0?0:d>r?1:Math.round(100*d/r)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var p;if(o!==(p=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}(e,o.props.hsl,o.props.direction,o.props.a,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleChange),window.removeEventListener("mouseup",o.handleMouseUp)},$(o,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),z(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,B.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:V({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r().createElement("div",{style:n.alpha},r().createElement("div",{style:n.checkboard},r().createElement(H,{renderers:this.props.renderers})),r().createElement("div",{style:n.gradient}),r().createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r().createElement("div",{style:n.pointer},this.props.pointer?r().createElement(this.props.pointer,this.props):r().createElement("div",{style:n.slider}))))}}]),t}(a.PureComponent||a.Component);const W=U;var G=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),q=[38,40],X=1,Z=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));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,o=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(o)&&(t=e.keyCode,q.indexOf(t)>-1)){var l=n.getArrowOffset(),a=38===e.keyCode?o+l:o-l;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+X++,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),G(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,B.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r().createElement("div",{style:t.wrap},r().createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r().createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(a.PureComponent||a.Component);const J=Z;var Y=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function K(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Q=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return n=o=K(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.handleChange=function(e){var t=function(e,t,n,o){var l=o.clientWidth,a=o.clientHeight,r="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,i="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=r-(o.getBoundingClientRect().left+window.pageXOffset),c=i-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var d;if(d=c<0?359:c>a?0:360*(-100*c/a+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u;if(u=s<0?0:s>l?359:100*s/l*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,o.props.direction,o.props.hsl,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},K(o,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),Y(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=(0,B.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r().createElement("div",{style:o.hue},r().createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r().createElement("div",{style:o.pointer},this.props.pointer?r().createElement(this.props.pointer,this.props):r().createElement("div",{style:o.slider}))))}}]),t}(a.PureComponent||a.Component);const ee=Q;var te=n(5556),ne=n.n(te),oe=n(55364),le=n.n(oe),ae=function(e){var t=e.zDepth,n=e.radius,o=e.background,l=e.children,a=e.styles,i=void 0===a?{}:a,s=(0,B.default)(le()({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},i),{"zDepth-1":1===t});return r().createElement("div",{style:s.wrap},r().createElement("div",{style:s.bg}),r().createElement("div",{style:s.content},l))};ae.propTypes={background:ne().string,zDepth:ne().oneOf([0,1,2,3,4,5]),radius:ne().number,styles:ne().object},ae.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const re=ae;var ie=n(7350),se=n.n(ie),ce=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),de=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.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var o=n.getBoundingClientRect(),l=o.width,a=o.height,r="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,i="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=r-(n.getBoundingClientRect().left+window.pageXOffset),c=i-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>l&&(s=l),c<0?c=0:c>a&&(c=a);var d=s/l,u=1-c/a;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=se()(function(e,t,n){e(t,n)},50),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),ce(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,l=t.black,a=t.pointer,i=t.circle,s=(0,B.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:l,pointer:a,circle:i}},{custom:!!this.props.style});return r().createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r().createElement("div",{style:s.white,className:"saturation-white"},r().createElement("div",{style:s.black,className:"saturation-black"}),r().createElement("div",{style:s.pointer},this.props.pointer?r().createElement(this.props.pointer,this.props):r().createElement("div",{style:s.circle}))))}}]),t}(a.PureComponent||a.Component);const ue=de;var pe=n(38221),he=n.n(pe),fe=n(76135),be=n.n(fe);function me(e){return me="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},me(e)}var ge=/^\s+/,ve=/\s+$/;function ke(e,t){if(t=t||{},(e=e||"")instanceof ke)return e;if(!(this instanceof ke))return new ke(e,t);var n=function(e){var t,n,o,l={r:0,g:0,b:0},a=1,r=null,i=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){e=e.replace(ge,"").replace(ve,"").toLowerCase();var t,n=!1;if(Pe[e])e=Pe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Ze.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Ze.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ze.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Ze.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ze.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Ze.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ze.hex8.exec(e))?{r:Ve(t[1]),g:Ve(t[2]),b:Ve(t[3]),a:We(t[4]),format:n?"name":"hex8"}:(t=Ze.hex6.exec(e))?{r:Ve(t[1]),g:Ve(t[2]),b:Ve(t[3]),format:n?"name":"hex"}:(t=Ze.hex4.exec(e))?{r:Ve(t[1]+""+t[1]),g:Ve(t[2]+""+t[2]),b:Ve(t[3]+""+t[3]),a:We(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=Ze.hex3.exec(e))&&{r:Ve(t[1]+""+t[1]),g:Ve(t[2]+""+t[2]),b:Ve(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==me(e)&&(Je(e.r)&&Je(e.g)&&Je(e.b)?(t=e.r,n=e.g,o=e.b,l={r:255*De(t,255),g:255*De(n,255),b:255*De(o,255)},c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):Je(e.h)&&Je(e.s)&&Je(e.v)?(r=$e(e.s),i=$e(e.v),l=function(e,t,n){e=6*De(e,360),t=De(t,100),n=De(n,100);var o=Math.floor(e),l=e-o,a=n*(1-t),r=n*(1-l*t),i=n*(1-(1-l)*t),s=o%6;return{r:255*[n,r,a,a,i,n][s],g:255*[i,n,n,r,a,a][s],b:255*[a,a,i,n,n,r][s]}}(e.h,r,i),c=!0,d="hsv"):Je(e.h)&&Je(e.s)&&Je(e.l)&&(r=$e(e.s),s=$e(e.l),l=function(e,t,n){var o,l,a;function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=De(e,360),t=De(t,100),n=De(n,100),0===t)o=l=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;o=r(s,i,e+1/3),l=r(s,i,e),a=r(s,i,e-1/3)}return{r:255*o,g:255*l,b:255*a}}(e.h,r,s),c=!0,d="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=Fe(a),{ok:c,format:e.format||d,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function ye(e,t,n){e=De(e,255),t=De(t,255),n=De(n,255);var o,l,a=Math.max(e,t,n),r=Math.min(e,t,n),i=(a+r)/2;if(a==r)o=l=0;else{var s=a-r;switch(l=i>.5?s/(2-a-r):s/(a+r),a){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,l:i}}function xe(e,t,n){e=De(e,255),t=De(t,255),n=De(n,255);var o,l,a=Math.max(e,t,n),r=Math.min(e,t,n),i=a,s=a-r;if(l=0===a?0:s/a,a==r)o=0;else{switch(a){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:i}}function we(e,t,n,o){var l=[ze(Math.round(e).toString(16)),ze(Math.round(t).toString(16)),ze(Math.round(n).toString(16))];return o&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function _e(e,t,n,o){return[ze(Ue(o)),ze(Math.round(e).toString(16)),ze(Math.round(t).toString(16)),ze(Math.round(n).toString(16))].join("")}function Ce(e,t){t=0===t?0:t||10;var n=ke(e).toHsl();return n.s-=t/100,n.s=He(n.s),ke(n)}function Se(e,t){t=0===t?0:t||10;var n=ke(e).toHsl();return n.s+=t/100,n.s=He(n.s),ke(n)}function Ee(e){return ke(e).desaturate(100)}function je(e,t){t=0===t?0:t||10;var n=ke(e).toHsl();return n.l+=t/100,n.l=He(n.l),ke(n)}function Oe(e,t){t=0===t?0:t||10;var n=ke(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),ke(n)}function Me(e,t){t=0===t?0:t||10;var n=ke(e).toHsl();return n.l-=t/100,n.l=He(n.l),ke(n)}function Ne(e,t){var n=ke(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,ke(n)}function Le(e){var t=ke(e).toHsl();return t.h=(t.h+180)%360,ke(t)}function Ie(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ke(e).toHsl(),o=[ke(e)],l=360/t,a=1;a<t;a++)o.push(ke({h:(n.h+a*l)%360,s:n.s,l:n.l}));return o}function Ae(e){var t=ke(e).toHsl(),n=t.h;return[ke(e),ke({h:(n+72)%360,s:t.s,l:t.l}),ke({h:(n+216)%360,s:t.s,l:t.l})]}function Re(e,t,n){t=t||6,n=n||30;var o=ke(e).toHsl(),l=360/n,a=[ke(e)];for(o.h=(o.h-(l*t>>1)+720)%360;--t;)o.h=(o.h+l)%360,a.push(ke(o));return a}function Be(e,t){t=t||6;for(var n=ke(e).toHsv(),o=n.h,l=n.s,a=n.v,r=[],i=1/t;t--;)r.push(ke({h:o,s:l,v:a})),a=(a+i)%1;return r}ke.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Fe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=xe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=xe(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=ye(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ye(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return we(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,l){var a=[ze(Math.round(e).toString(16)),ze(Math.round(t).toString(16)),ze(Math.round(n).toString(16)),ze(Ue(o))];return l&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*De(this._r,255))+"%",g:Math.round(100*De(this._g,255))+"%",b:Math.round(100*De(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*De(this._r,255))+"%, "+Math.round(100*De(this._g,255))+"%, "+Math.round(100*De(this._b,255))+"%)":"rgba("+Math.round(100*De(this._r,255))+"%, "+Math.round(100*De(this._g,255))+"%, "+Math.round(100*De(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Te[we(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_e(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var l=ke(e);n="#"+_e(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return ke(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(je,arguments)},brighten:function(){return this._applyModification(Oe,arguments)},darken:function(){return this._applyModification(Me,arguments)},desaturate:function(){return this._applyModification(Ce,arguments)},saturate:function(){return this._applyModification(Se,arguments)},greyscale:function(){return this._applyModification(Ee,arguments)},spin:function(){return this._applyModification(Ne,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Re,arguments)},complement:function(){return this._applyCombination(Le,arguments)},monochromatic:function(){return this._applyCombination(Be,arguments)},splitcomplement:function(){return this._applyCombination(Ae,arguments)},triad:function(){return this._applyCombination(Ie,[3])},tetrad:function(){return this._applyCombination(Ie,[4])}},ke.fromRatio=function(e,t){if("object"==me(e)){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:$e(e[o]));e=n}return ke(e,t)},ke.equals=function(e,t){return!(!e||!t)&&ke(e).toRgbString()==ke(t).toRgbString()},ke.random=function(){return ke.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},ke.mix=function(e,t,n){n=0===n?0:n||50;var o=ke(e).toRgb(),l=ke(t).toRgb(),a=n/100;return ke({r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a})},ke.readability=function(e,t){var n=ke(e),o=ke(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},ke.isReadable=function(e,t,n){var o,l,a,r,i,s=ke.readability(e,t);switch(l=!1,"AA"!==(r=((a=(a=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==r&&(r="AA"),"small"!==(i=(a.size||"small").toLowerCase())&&"large"!==i&&(i="small"),(o={level:r,size:i}).level+o.size){case"AAsmall":case"AAAlarge":l=s>=4.5;break;case"AAlarge":l=s>=3;break;case"AAAsmall":l=s>=7}return l},ke.mostReadable=function(e,t,n){var o,l,a,r,i=null,s=0;l=(n=n||{}).includeFallbackColors,a=n.level,r=n.size;for(var c=0;c<t.length;c++)(o=ke.readability(e,t[c]))>s&&(s=o,i=ke(t[c]));return ke.isReadable(e,i,{level:a,size:r})||!l?i:(n.includeFallbackColors=!1,ke.mostReadable(e,["#fff","#000"],n))};var Pe=ke.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Te=ke.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Pe);function Fe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function De(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function He(e){return Math.min(1,Math.max(0,e))}function Ve(e){return parseInt(e,16)}function ze(e){return 1==e.length?"0"+e:""+e}function $e(e){return e<=1&&(e=100*e+"%"),e}function Ue(e){return Math.round(255*parseFloat(e)).toString(16)}function We(e){return Ve(e)/255}var Ge,qe,Xe,Ze=(qe="[\\s|\\(]+("+(Ge="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ge+")[,|\\s]+("+Ge+")\\s*\\)?",Xe="[\\s|\\(]+("+Ge+")[,|\\s]+("+Ge+")[,|\\s]+("+Ge+")[,|\\s]+("+Ge+")\\s*\\)?",{CSS_UNIT:new RegExp(Ge),rgb:new RegExp("rgb"+qe),rgba:new RegExp("rgba"+Xe),hsl:new RegExp("hsl"+qe),hsla:new RegExp("hsla"+Xe),hsv:new RegExp("hsv"+qe),hsva:new RegExp("hsva"+Xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Je(e){return!!Ze.CSS_UNIT.exec(e)}var Ye=function(e){var t=0,n=0;return be()(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1),"s"===o||"l"===o)&&/^\d+%$/.test(e[o])&&(n+=1)}),t===n&&e},Ke=function(e,t){var n=e.hex?ke(e.hex):ke(e),o=n.toHsl(),l=n.toHsv(),a=n.toRgb(),r=n.toHex();return 0===o.s&&(o.h=t||0,l.h=t||0),{hsl:o,hex:"000000"===r&&0===a.a?"transparent":"#"+r,rgb:a,hsv:l,oldHue:e.h||t||o.h,source:e.source}},Qe=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&ke(e).isValid()},et=function(e){if(!e)return"#fff";var t=Ke(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},tt=function(e,t){return ke(t+" ("+e.replace("°","")+")")._ok},nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ot=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();const lt=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(Ye(e)){var o=Ke(e,e.h||t.state.oldHue);t.setState(o),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,o,n),t.props.onChange&&t.props.onChange(o,n)}},t.handleSwatchHover=function(e,n){if(Ye(e)){var o=Ke(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(o,n)}},t.state=nt({},Ke(e.color,0)),t.debounce=he()(function(e,t,n){e(t,n)},100),t}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)}(n,t),ot(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),r().createElement(e,nt({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return nt({},Ke(e.color,t.oldHue))}}]),n}(a.PureComponent||a.Component);return t.propTypes=nt({},e.propTypes),t.defaultProps=nt({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rt=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function it(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,a=Array(l),r=0;r<l;r++)a[r]=arguments[r];return t=n=it(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},it(n,t)}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)}(o,n),rt(o,[{key:"render",value:function(){return r().createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},r().createElement(e,at({},this.props,this.state)))}}]),o}(r().Component)}(function(e){var t=e.color,n=e.style,o=e.onClick,l=void 0===o?function(){}:o,a=e.onHover,i=e.title,s=void 0===i?t:i,c=e.children,d=e.focus,u=e.focusStyle,p=void 0===u?{}:u,h="transparent"===t,f=(0,B.default)({default:{swatch:st({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?p:{})}}),b={};return a&&(b.onMouseOver=function(e){return a(t,e)}),r().createElement("div",st({style:f.swatch,onClick:function(e){return l(t,e)},title:s,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},b),c,h&&r().createElement(H,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ut=function(e){var t=e.rgb,n=e.hsl,o=e.width,l=e.height,a=e.onChange,i=e.direction,s=e.style,c=e.renderers,d=e.pointer,u=e.className,p=void 0===u?"":u,h=(0,B.default)({default:{picker:{position:"relative",width:o,height:l},alpha:{radius:"2px",style:s}}});return r().createElement("div",{style:h.picker,className:"alpha-picker "+p},r().createElement(W,dt({},h.alpha,{rgb:t,hsl:n,pointer:d,renderers:c,onChange:a,direction:i})))};ut.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,B.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r().createElement("div",{style:n.picker})}},lt(ut);var pt=n(55378),ht=n.n(pt);const ft=function(e){var t=e.colors,n=e.onClick,o=e.onSwatchHover,l=(0,B.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r().createElement("div",{style:l.swatches},ht()(t,function(e){return r().createElement(ct,{key:e,color:e,style:l.swatch,onClick:n,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})}),r().createElement("div",{style:l.clear}))};var bt=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,l=e.colors,a=e.width,i=e.triangle,s=e.styles,c=void 0===s?{}:s,d=e.className,u=void 0===d?"":d,p="transparent"===o,h=function(e,n){Qe(e)&&t({hex:e,source:"hex"},n)},f=(0,B.default)(le()({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:et(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===i});return r().createElement("div",{style:f.card,className:"block-picker "+u},r().createElement("div",{style:f.triangle}),r().createElement("div",{style:f.head},p&&r().createElement(H,{borderRadius:"6px 6px 0 0"}),r().createElement("div",{style:f.label},o)),r().createElement("div",{style:f.body},r().createElement(ft,{colors:l,onClick:h,onSwatchHover:n}),r().createElement(J,{style:{input:f.input},value:o,onChange:h})))};bt.propTypes={width:ne().oneOfType([ne().string,ne().number]),colors:ne().arrayOf(ne().string),triangle:ne().oneOf(["top","hide"]),styles:ne().object},bt.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},lt(bt);var mt="#ffcdd2",gt="#e57373",vt="#f44336",kt="#d32f2f",yt="#b71c1c",xt="#f8bbd0",wt="#f06292",_t="#e91e63",Ct="#c2185b",St="#880e4f",Et="#e1bee7",jt="#ba68c8",Ot="#9c27b0",Mt="#7b1fa2",Nt="#4a148c",Lt="#d1c4e9",It="#9575cd",At="#673ab7",Rt="#512da8",Bt="#311b92",Pt="#c5cae9",Tt="#7986cb",Ft="#3f51b5",Dt="#303f9f",Ht="#1a237e",Vt="#bbdefb",zt="#64b5f6",$t="#2196f3",Ut="#1976d2",Wt="#0d47a1",Gt="#b3e5fc",qt="#4fc3f7",Xt="#03a9f4",Zt="#0288d1",Jt="#01579b",Yt="#b2ebf2",Kt="#4dd0e1",Qt="#00bcd4",en="#0097a7",tn="#006064",nn="#b2dfdb",on="#4db6ac",ln="#009688",an="#00796b",rn="#004d40",sn="#c8e6c9",cn="#81c784",dn="#4caf50",un="#388e3c",pn="#dcedc8",hn="#aed581",fn="#8bc34a",bn="#689f38",mn="#33691e",gn="#f0f4c3",vn="#dce775",kn="#cddc39",yn="#afb42b",xn="#827717",wn="#fff9c4",Cn="#fff176",Sn="#ffeb3b",En="#fbc02d",jn="#f57f17",On="#ffecb3",Mn="#ffd54f",Nn="#ffc107",Ln="#ffa000",In="#ff6f00",An="#ffe0b2",Rn="#ffb74d",Bn="#ff9800",Pn="#f57c00",Tn="#e65100",Fn="#ffccbc",Dn="#ff8a65",Hn="#ff5722",Vn="#e64a19",zn="#bf360c",$n="#d7ccc8",Un="#a1887f",Wn="#795548",Gn="#5d4037",qn="#3e2723",Xn="#cfd8dc",Zn="#90a4ae",Jn="#607d8b",Yn="#455a64",Kn="#263238",Qn=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,l=e.hover,a=e.active,i=e.circleSize,s=e.circleSpacing,c=(0,B.default)({default:{swatch:{width:i,height:i,marginRight:s,marginBottom:s,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:l,active:a});return r().createElement("div",{style:c.swatch},r().createElement(ct,{style:c.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};Qn.defaultProps={circleSize:28,circleSpacing:14};const eo=(0,B.handleHover)(Qn);var to=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,l=e.colors,a=e.hex,i=e.circleSize,s=e.styles,c=void 0===s?{}:s,d=e.circleSpacing,u=e.className,p=void 0===u?"":u,h=(0,B.default)(le()({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),f=function(e,t){return n({hex:e,source:"hex"},t)};return r().createElement("div",{style:h.card,className:"circle-picker "+p},ht()(l,function(e){return r().createElement(eo,{key:e,color:e,onClick:f,onSwatchHover:o,active:a===e.toLowerCase(),circleSize:i,circleSpacing:d})}))};to.propTypes={width:ne().oneOfType([ne().string,ne().number]),circleSize:ne().number,circleSpacing:ne().number,styles:ne().object},to.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[vt,_t,Ot,At,Ft,$t,Xt,Qt,ln,dn,fn,kn,Sn,Nn,Bn,Hn,Wn,Jn],styles:{}},lt(to);var no=n(62216),oo=n.n(no),lo=n(54657),ao=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),ro=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));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?Qe(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(oo()(e.s)?n.props.hsl.s:e.s),l:Number(oo()(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},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),ao(t,[{key:"render",value:function(){var e=this,t=(0,B.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r().createElement("div",{style:t.fields,className:"flexbox-fix"},r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r().createElement("div",{style:t.fields,className:"flexbox-fix"},r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r().createElement("div",{style:t.alpha},r().createElement(J,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r().createElement("div",{style:t.fields,className:"flexbox-fix"},r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r().createElement("div",{style:t.field},r().createElement(J,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r().createElement("div",{style:t.alpha},r().createElement(J,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r().createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r().createElement("div",{style:t.toggle},r().createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r().createElement(lo.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r().Component);ro.defaultProps={view:"hex"};const io=ro,so=function(){var e=(0,B.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r().createElement("div",{style:e.picker})},co=function(){var e=(0,B.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r().createElement("div",{style:e.picker})};var uo=function(e){var t=e.width,n=e.onChange,o=e.disableAlpha,l=e.rgb,a=e.hsl,i=e.hsv,s=e.hex,c=e.renderers,d=e.styles,u=void 0===d?{}:d,p=e.className,h=void 0===p?"":p,f=e.defaultView,b=(0,B.default)(le()({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:o});return r().createElement("div",{style:b.picker,className:"chrome-picker "+h},r().createElement("div",{style:b.saturation},r().createElement(ue,{style:b.Saturation,hsl:a,hsv:i,pointer:co,onChange:n})),r().createElement("div",{style:b.body},r().createElement("div",{style:b.controls,className:"flexbox-fix"},r().createElement("div",{style:b.color},r().createElement("div",{style:b.swatch},r().createElement("div",{style:b.active}),r().createElement(H,{renderers:c}))),r().createElement("div",{style:b.toggles},r().createElement("div",{style:b.hue},r().createElement(ee,{style:b.Hue,hsl:a,pointer:so,onChange:n})),r().createElement("div",{style:b.alpha},r().createElement(W,{style:b.Alpha,rgb:l,hsl:a,pointer:so,renderers:c,onChange:n})))),r().createElement(io,{rgb:l,hsl:a,hex:s,view:f,onChange:n,disableAlpha:o})))};uo.propTypes={width:ne().oneOfType([ne().string,ne().number]),disableAlpha:ne().bool,styles:ne().object,defaultView:ne().oneOf(["hex","rgb","hsl"])},uo.defaultProps={width:225,disableAlpha:!1,styles:{}},lt(uo);const po=function(e){var t=e.color,n=e.onClick,o=void 0===n?function(){}:n,l=e.onSwatchHover,a=e.active,i=(0,B.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:et(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r().createElement(ct,{style:i.color,color:t,onClick:o,onHover:l,focusStyle:{boxShadow:"0 0 4px "+t}},r().createElement("div",{style:i.dot}))},ho=function(e){var t=e.hex,n=e.rgb,o=e.onChange,l=(0,B.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?o({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):o({hex:e.hex,source:"hex"},t)};return r().createElement("div",{style:l.fields,className:"flexbox-fix"},r().createElement("div",{style:l.active}),r().createElement(J,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:t,onChange:a}),r().createElement(J,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:a}),r().createElement(J,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:a}),r().createElement(J,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:a}))};var fo=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,l=e.hex,a=e.rgb,i=e.styles,s=void 0===i?{}:i,c=e.className,d=void 0===c?"":c,u=(0,B.default)(le()({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},s)),p=function(e,n){e.hex?Qe(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r().createElement(re,{style:u.Compact,styles:s},r().createElement("div",{style:u.compact,className:"compact-picker "+d},r().createElement("div",null,ht()(o,function(e){return r().createElement(po,{key:e,color:e,active:e.toLowerCase()===l,onClick:p,onSwatchHover:n})}),r().createElement("div",{style:u.clear})),r().createElement(ho,{hex:l,rgb:a,onChange:p})))};fo.propTypes={colors:ne().arrayOf(ne().string),styles:ne().object},fo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},lt(fo);const bo=(0,B.handleHover)(function(e){var t=e.hover,n=e.color,o=e.onClick,l=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=(0,B.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return r().createElement("div",{style:i.swatch},r().createElement(ct,{color:n,onClick:o,onHover:l,focusStyle:a}))});var mo=function(e){var t=e.width,n=e.colors,o=e.onChange,l=e.onSwatchHover,a=e.triangle,i=e.styles,s=void 0===i?{}:i,c=e.className,d=void 0===c?"":c,u=(0,B.default)(le()({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},s),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),p=function(e,t){return o({hex:e,source:"hex"},t)};return r().createElement("div",{style:u.card,className:"github-picker "+d},r().createElement("div",{style:u.triangleShadow}),r().createElement("div",{style:u.triangle}),ht()(n,function(e){return r().createElement(bo,{color:e,key:e,onClick:p,onSwatchHover:l})}))};mo.propTypes={width:ne().oneOfType([ne().string,ne().number]),colors:ne().arrayOf(ne().string),triangle:ne().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:ne().object},mo.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},lt(mo);var go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vo=function(e){var t=e.width,n=e.height,o=e.onChange,l=e.hsl,a=e.direction,i=e.pointer,s=e.styles,c=void 0===s?{}:s,d=e.className,u=void 0===d?"":d,p=(0,B.default)(le()({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return r().createElement("div",{style:p.picker,className:"hue-picker "+u},r().createElement(ee,go({},p.hue,{hsl:l,pointer:i,onChange:function(e){return o({a:1,h:e.h,l:.5,s:1})},direction:a})))};vo.propTypes={styles:ne().object},vo.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var t=e.direction,n=(0,B.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r().createElement("div",{style:n.picker})},styles:{}},lt(vo),lt(function(e){var t=e.onChange,n=e.hex,o=e.rgb,l=e.styles,a=void 0===l?{}:l,i=e.className,s=void 0===i?"":i,c=(0,B.default)(le()({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),d=function(e,n){e.hex?Qe(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,source:"rgb"},n)};return r().createElement(re,{styles:a},r().createElement("div",{style:c.material,className:"material-picker "+s},r().createElement(J,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),r().createElement("div",{style:c.split,className:"flexbox-fix"},r().createElement("div",{style:c.third},r().createElement(J,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:o.r,onChange:d})),r().createElement("div",{style:c.third},r().createElement(J,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:o.g,onChange:d})),r().createElement("div",{style:c.third},r().createElement(J,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:o.b,onChange:d})))))});const ko=function(e){var t=e.onChange,n=e.rgb,o=e.hsv,l=e.hex,a=(0,B.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),i=function(e,l){e["#"]?Qe(e["#"])&&t({hex:e["#"],source:"hex"},l):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},l):(e.h||e.s||e.v)&&t({h:e.h||o.h,s:e.s||o.s,v:e.v||o.v,source:"hsv"},l)};return r().createElement("div",{style:a.fields},r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(o.h),onChange:i}),r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*o.s),onChange:i}),r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*o.v),onChange:i}),r().createElement("div",{style:a.divider}),r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),r().createElement(J,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}),r().createElement("div",{style:a.divider}),r().createElement(J,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:l.replace("#",""),onChange:i}),r().createElement("div",{style:a.fieldSymbols},r().createElement("div",{style:a.symbol},"°"),r().createElement("div",{style:a.symbol},"%"),r().createElement("div",{style:a.symbol},"%")))},yo=function(e){var t=e.hsl,n=(0,B.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r().createElement("div",{style:n.picker})},xo=function(){var e=(0,B.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r().createElement("div",{style:e.pointer},r().createElement("div",{style:e.left},r().createElement("div",{style:e.leftInside})),r().createElement("div",{style:e.right},r().createElement("div",{style:e.rightInside})))},wo=function(e){var t=e.onClick,n=e.label,o=e.children,l=e.active,a=(0,B.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:l});return r().createElement("div",{style:a.button,onClick:t},n||o)},_o=function(e){var t=e.rgb,n=e.currentColor,o=(0,B.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r().createElement("div",null,r().createElement("div",{style:o.label},"new"),r().createElement("div",{style:o.swatches},r().createElement("div",{style:o.new}),r().createElement("div",{style:o.current})),r().createElement("div",{style:o.label},"current"))};var Co=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),So=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));return n.state={currentColor:e.hex},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),Co(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,o=e.className,l=void 0===o?"":o,a=(0,B.default)(le()({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return r().createElement("div",{style:a.picker,className:"photoshop-picker "+l},r().createElement("div",{style:a.head},this.props.header),r().createElement("div",{style:a.body,className:"flexbox-fix"},r().createElement("div",{style:a.saturation},r().createElement(ue,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:yo,onChange:this.props.onChange})),r().createElement("div",{style:a.hue},r().createElement(ee,{direction:"vertical",hsl:this.props.hsl,pointer:xo,onChange:this.props.onChange})),r().createElement("div",{style:a.controls},r().createElement("div",{style:a.top,className:"flexbox-fix"},r().createElement("div",{style:a.previews},r().createElement(_o,{rgb:this.props.rgb,currentColor:this.state.currentColor})),r().createElement("div",{style:a.actions},r().createElement(wo,{label:"OK",onClick:this.props.onAccept,active:!0}),r().createElement(wo,{label:"Cancel",onClick:this.props.onCancel}),r().createElement(ko,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(r().Component);So.propTypes={header:ne().string,styles:ne().object},So.defaultProps={header:"Color Picker",styles:{}},lt(So);const Eo=function(e){var t=e.onChange,n=e.rgb,o=e.hsl,l=e.hex,a=e.disableAlpha,i=(0,B.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),s=function(e,l){e.hex?Qe(e.hex)&&t({hex:e.hex,source:"hex"},l):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},l):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:o.h,s:o.s,l:o.l,a:e.a,source:"rgb"},l))};return r().createElement("div",{style:i.fields,className:"flexbox-fix"},r().createElement("div",{style:i.double},r().createElement(J,{style:{input:i.input,label:i.label},label:"hex",value:l.replace("#",""),onChange:s})),r().createElement("div",{style:i.single},r().createElement(J,{style:{input:i.input,label:i.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),r().createElement("div",{style:i.single},r().createElement(J,{style:{input:i.input,label:i.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),r().createElement("div",{style:i.single},r().createElement(J,{style:{input:i.input,label:i.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),r().createElement("div",{style:i.alpha},r().createElement(J,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};var jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Oo=function(e){var t=e.colors,n=e.onClick,o=void 0===n?function(){}:n,l=e.onSwatchHover,a=(0,B.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),i=function(e,t){o({hex:e,source:"hex"},t)};return r().createElement("div",{style:a.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return r().createElement("div",{key:n,style:a.swatchWrap},r().createElement(ct,jo({},t,{style:a.swatch,onClick:i,onHover:l,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};Oo.propTypes={colors:ne().arrayOf(ne().oneOfType([ne().string,ne().shape({color:ne().string,title:ne().string})])).isRequired};const Mo=Oo;var No=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Lo=function(e){var t=e.width,n=e.rgb,o=e.hex,l=e.hsv,a=e.hsl,i=e.onChange,s=e.onSwatchHover,c=e.disableAlpha,d=e.presetColors,u=e.renderers,p=e.styles,h=void 0===p?{}:p,f=e.className,b=void 0===f?"":f,m=(0,B.default)(le()({default:No({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:c});return r().createElement("div",{style:m.picker,className:"sketch-picker "+b},r().createElement("div",{style:m.saturation},r().createElement(ue,{style:m.Saturation,hsl:a,hsv:l,onChange:i})),r().createElement("div",{style:m.controls,className:"flexbox-fix"},r().createElement("div",{style:m.sliders},r().createElement("div",{style:m.hue},r().createElement(ee,{style:m.Hue,hsl:a,onChange:i})),r().createElement("div",{style:m.alpha},r().createElement(W,{style:m.Alpha,rgb:n,hsl:a,renderers:u,onChange:i}))),r().createElement("div",{style:m.color},r().createElement(H,null),r().createElement("div",{style:m.activeColor}))),r().createElement(Eo,{rgb:n,hsl:a,hex:o,onChange:i,disableAlpha:c}),r().createElement(Mo,{colors:d,onClick:i,onSwatchHover:s}))};Lo.propTypes={disableAlpha:ne().bool,width:ne().oneOfType([ne().string,ne().number]),styles:ne().object},Lo.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},lt(Lo);const Io=function(e){var t=e.hsl,n=e.offset,o=e.onClick,l=void 0===o?function(){}:o,a=e.active,i=e.first,s=e.last,c=(0,B.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:i,last:s});return r().createElement("div",{style:c.swatch,onClick:function(e){return l({h:t.h,s:.5,l:n,source:"hsl"},e)}})},Ao=function(e){var t=e.onClick,n=e.hsl,o=(0,B.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),l=.1;return r().createElement("div",{style:o.swatches},r().createElement("div",{style:o.swatch},r().createElement(Io,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<l&&Math.abs(n.s-.5)<l,onClick:t,first:!0})),r().createElement("div",{style:o.swatch},r().createElement(Io,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<l&&Math.abs(n.s-.5)<l,onClick:t})),r().createElement("div",{style:o.swatch},r().createElement(Io,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<l&&Math.abs(n.s-.5)<l,onClick:t})),r().createElement("div",{style:o.swatch},r().createElement(Io,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<l&&Math.abs(n.s-.5)<l,onClick:t})),r().createElement("div",{style:o.swatch},r().createElement(Io,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<l&&Math.abs(n.s-.5)<l,onClick:t,last:!0})),r().createElement("div",{style:o.clear}))};var Ro=function(e){var t=e.hsl,n=e.onChange,o=e.pointer,l=e.styles,a=void 0===l?{}:l,i=e.className,s=void 0===i?"":i,c=(0,B.default)(le()({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return r().createElement("div",{style:c.wrap||{},className:"slider-picker "+s},r().createElement("div",{style:c.hue},r().createElement(ee,{style:c.Hue,hsl:t,pointer:o,onChange:n})),r().createElement("div",{style:c.swatches},r().createElement(Ao,{hsl:t,onClick:n})))};Ro.propTypes={styles:ne().object},Ro.defaultProps={pointer:function(){var e=(0,B.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r().createElement("div",{style:e.picker})},styles:{}},lt(Ro);var Bo=n(20748);const Po=function(e){var t=e.color,n=e.onClick,o=void 0===n?function(){}:n,l=e.onSwatchHover,a=e.first,i=e.last,s=e.active,c=(0,B.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:et(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:i,active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r().createElement(ct,{color:t,style:c.color,onClick:o,onHover:l,focusStyle:{boxShadow:"0 0 4px "+t}},r().createElement("div",{style:c.check},r().createElement(Bo.A,null)))},To=function(e){var t=e.onClick,n=e.onSwatchHover,o=e.group,l=e.active,a=(0,B.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r().createElement("div",{style:a.group},ht()(o,function(e,a){return r().createElement(Po,{key:e,color:e,active:e.toLowerCase()===l,first:0===a,last:a===o.length-1,onClick:t,onSwatchHover:n})}))};var Fo=function(e){var t=e.width,n=e.height,o=e.onChange,l=e.onSwatchHover,a=e.colors,i=e.hex,s=e.styles,c=void 0===s?{}:s,d=e.className,u=void 0===d?"":d,p=(0,B.default)(le()({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return o({hex:e,source:"hex"},t)};return r().createElement("div",{style:p.picker,className:"swatches-picker "+u},r().createElement(re,null,r().createElement("div",{style:p.overflow},r().createElement("div",{style:p.body},ht()(a,function(e){return r().createElement(To,{key:e.toString(),group:e,active:i,onClick:h,onSwatchHover:l})}),r().createElement("div",{style:p.clear})))))};Fo.propTypes={width:ne().oneOfType([ne().string,ne().number]),height:ne().oneOfType([ne().string,ne().number]),colors:ne().arrayOf(ne().arrayOf(ne().string)),styles:ne().object},Fo.defaultProps={width:320,height:240,colors:[[yt,kt,vt,gt,mt],[St,Ct,_t,wt,xt],[Nt,Mt,Ot,jt,Et],[Bt,Rt,At,It,Lt],[Ht,Dt,Ft,Tt,Pt],[Wt,Ut,$t,zt,Vt],[Jt,Zt,Xt,qt,Gt],[tn,en,Qt,Kt,Yt],[rn,an,ln,on,nn],["#194D33",un,dn,cn,sn],[mn,bn,fn,hn,pn],[xn,yn,kn,vn,gn],[jn,En,Sn,Cn,wn],[In,Ln,Nn,Mn,On],[Tn,Pn,Bn,Rn,An],[zn,Vn,Hn,Dn,Fn],[qn,Gn,Wn,Un,$n],[Kn,Yn,Jn,Zn,Xn],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},lt(Fo);var Do=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,l=e.colors,a=e.width,i=e.triangle,s=e.styles,c=void 0===s?{}:s,d=e.className,u=void 0===d?"":d,p=(0,B.default)(le()({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i}),h=function(e,n){Qe(e)&&t({hex:e,source:"hex"},n)};return r().createElement("div",{style:p.card,className:"twitter-picker "+u},r().createElement("div",{style:p.triangleShadow}),r().createElement("div",{style:p.triangle}),r().createElement("div",{style:p.body},ht()(l,function(e,t){return r().createElement(ct,{key:t,color:e,hex:e,style:p.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),r().createElement("div",{style:p.hash},"#"),r().createElement(J,{label:null,style:{input:p.input},value:o.replace("#",""),onChange:h}),r().createElement("div",{style:p.clear})))};Do.propTypes={width:ne().oneOfType([ne().string,ne().number]),triangle:ne().oneOf(["hide","top-left","top-right"]),colors:ne().arrayOf(ne().string),styles:ne().object},Do.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},lt(Do);var Ho=function(e){var t=(0,B.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return r().createElement("div",{style:t.picker})};Ho.propTypes={hsl:ne().shape({h:ne().number,s:ne().number,l:ne().number,a:ne().number})},Ho.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Vo=Ho;var zo=function(e){var t=(0,B.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return r().createElement("div",{style:t.picker})};zo.propTypes={hsl:ne().shape({h:ne().number,s:ne().number,l:ne().number,a:ne().number})},zo.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const $o=zo,Uo=function(e){var t=e.onChange,n=e.rgb,o=e.hsl,l=e.hex,a=e.hsv,i=function(e,n){if(e.hex)Qe(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var o=e.rgb.split(",");tt(e.rgb,"rgb")&&t({r:o[0],g:o[1],b:o[2],a:1,source:"rgb"},n)}else if(e.hsv){var l=e.hsv.split(",");tt(e.hsv,"hsv")&&(l[2]=l[2].replace("%",""),l[1]=l[1].replace("%",""),l[0]=l[0].replace("°",""),1==l[1]?l[1]=.01:1==l[2]&&(l[2]=.01),t({h:Number(l[0]),s:Number(l[1]),v:Number(l[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");tt(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==u[1]?u[1]=.01:1==u[2]&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},s=(0,B.default)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,d=Math.round(o.h)+"°, "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%",u=Math.round(a.h)+"°, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return r().createElement("div",{style:s.wrap,className:"flexbox-fix"},r().createElement("div",{style:s.fields},r().createElement("div",{style:s.double},r().createElement(J,{style:{input:s.input,label:s.label},label:"hex",value:l,onChange:i})),r().createElement("div",{style:s.column},r().createElement("div",{style:s.single},r().createElement(J,{style:{input:s.input2,label:s.label2},label:"rgb",value:c,onChange:i})),r().createElement("div",{style:s.single},r().createElement(J,{style:{input:s.input2,label:s.label2},label:"hsv",value:u,onChange:i})),r().createElement("div",{style:s.single},r().createElement(J,{style:{input:s.input2,label:s.label2},label:"hsl",value:d,onChange:i})))))};var Wo=function(e){var t=e.width,n=e.onChange,o=e.rgb,l=e.hsl,a=e.hsv,i=e.hex,s=e.header,c=e.styles,d=void 0===c?{}:c,u=e.className,p=void 0===u?"":u,h=(0,B.default)(le()({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+o.r+", "+o.g+", "+o.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return r().createElement("div",{style:h.picker,className:"google-picker "+p},r().createElement("div",{style:h.head},s),r().createElement("div",{style:h.swatch}),r().createElement("div",{style:h.saturation},r().createElement(ue,{hsl:l,hsv:a,pointer:Vo,onChange:n})),r().createElement("div",{style:h.body},r().createElement("div",{style:h.controls,className:"flexbox-fix"},r().createElement("div",{style:h.hue},r().createElement(ee,{style:h.Hue,hsl:l,radius:"4px",pointer:$o,onChange:n}))),r().createElement(Uo,{rgb:o,hsl:l,hex:i,hsv:a,onChange:n})))};Wo.propTypes={width:ne().oneOfType([ne().string,ne().number]),styles:ne().object,header:ne().string},Wo.defaultProps={width:652,styles:{},header:"Color picker"},lt(Wo);var Go=n(2825),qo=n(46617),Xo=n(29537),Zo=n(26195);class Jo extends y.Component{constructor(e){super(e),this.toggleViews=this.toggleViews.bind(this),this.handleChange=this.handleChange.bind(this),this.state={view:"rgb"}}toggleViews(){"hsl"===this.state.view?this.setState({view:"rgb"}):"rgb"===this.state.view&&this.setState({view:"hsl"})}handleChange(e,t){e.hex&&(0,Zo.isValidHex)(e.hex)?this.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?this.props.onChange({r:e.r||this.props.rgb.r,g:e.g||this.props.rgb.g,b:e.b||this.props.rgb.b,a:this.props.rgb.a,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),this.props.onChange({h:this.props.hsl.h,s:this.props.hsl.s,l:this.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&(e.l=e.l.replace("%","")),this.props.onChange({h:e.h||this.props.hsl.h||0,s:Number(e.s&&e.s/100||this.props.hsl.s||0),l:Number(e.l&&e.l/100||this.props.hsl.l||0),a:Math.round(100*e.a)/100||this.props.rgb.a||1,source:"hsl"},t))}render(){const e={fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"100%",padding:"4px 10% 3px",border:"none",borderRadius:"2px",boxShadow:"rgb(218, 218, 218) 0px 0px 0px 1px inset",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"},toggle:{width:"32px",textAlign:"right",position:"relative"}};return(0,o.jsxs)("div",{style:e.fields,className:"flexbox-fix",children:[(0,o.jsx)("div",{style:e.double,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex.replace("#",""),onChange:this.handleChange})}),"rgb"===this.state.view&&(0,o.jsxs)(y.Fragment,{children:[(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,o.jsx)("div",{style:e.alpha,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange})})]}),"hsl"===this.state.view&&(0,o.jsxs)(y.Fragment,{children:[(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange,dragLabel:"true",dragMax:"359"})}),(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"s",value:`${Math.round(100*this.props.hsl.s)}`,onChange:this.handleChange})}),(0,o.jsx)("div",{style:e.single,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"l",value:`${Math.round(100*this.props.hsl.l)}`,onChange:this.handleChange})}),(0,o.jsx)("div",{style:e.alpha,children:(0,o.jsx)(Go.jc,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})})]}),(0,o.jsx)("div",{style:e.toggle,children:(0,o.jsxs)("div",{className:"toggle-icons",style:e.icon,onClick:this.toggleViews,ref:e=>this.icon=e,children:[(0,o.jsx)(d.Dashicon,{icon:"arrow-up-alt2"}),(0,o.jsx)(d.Dashicon,{icon:"arrow-down-alt2"})]})})]})}}const Yo=Jo,Ko=lt(({rgb:e,hex:t,hsv:n,hsl:l,onChange:a,renderers:r})=>{const i={picker:{width:300,position:"relative",marginBottom:10},hue:{height:10,position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"},input:{height:34,border:`1px solid ${t}`,paddingLeft:10},body:{padding:"10px 0"},controls:{display:"flex"},color:{width:"30px",height:"30px",position:"relative",marginTop:"3px",marginLeft:"10px",borderRadius:"50%",overflow:"hidden"},activeColor:{position:"absolute",left:0,right:0,top:0,bottom:0,borderRadius:"50%",background:`rgba(${e.r},${e.g},${e.b},${e.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)"},swatch:{width:54,height:38,background:t},sliders:{padding:"4px 0",flex:"1"},saturation:{width:"100%",paddingBottom:"50%",position:"relative",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}};return(0,o.jsxs)("div",{style:i.picker,className:"kadence-picker",children:[(0,o.jsx)("div",{style:i.saturation,children:(0,o.jsx)(Go.VI,{style:i.Saturation,hsl:l,hsv:n,pointer:qo.uy,onChange:a})}),(0,o.jsx)("div",{style:i.body,children:(0,o.jsxs)("div",{style:i.controls,className:"flexbox-fix",children:[(0,o.jsxs)("div",{style:i.sliders,children:[(0,o.jsx)("div",{style:i.hue,children:(0,o.jsx)(Go.RG,{style:i.Hue,hsl:l,onChange:a,pointer:Xo.o$})}),(0,o.jsx)("div",{style:i.alpha,children:(0,o.jsx)(Go.ry,{style:i.Alpha,rgb:e,hsl:l,renderers:r,pointer:Xo.o$,onChange:a})})]}),(0,o.jsxs)("div",{style:i.color,children:[(0,o.jsx)(Go.xu,{}),(0,o.jsx)("div",{style:i.activeColor})]})]})}),(0,o.jsx)(Yo,{rgb:e,hsl:l,hex:t,onChange:a})]})}),Qo=(e,t)=>null===e?"":(e.indexOf("var(")>-1&&(e=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(")",""))||"#fff"),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+")");function el(e){let t=100;return e&&(t=100*e),t}function tl({label:e,alpha:t=!0,opacityValue:n="",opacityUnit:l="",onOpacityChange:a=null,value:r,onChange:i,reload:s,reloaded:c,defaultValue:u,onClassChange:f,onArrayChange:b=null,disableCustomColors:m=!1}){const[g,v]=(0,y.useState)(!1),[k,w]=(0,y.useState)(""),[_,C]=(0,y.useState)(""!==n?n:1),[S,E]=(0,y.useState)(!(!r||!r.startsWith("palette"))),j=(0,x.useSetting)("color.palette"),O=(0,y.useMemo)(()=>{if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.colors)try{return JSON.parse(kadence_blocks_params.colors)}catch(e){return{palette:[],override:!1}}return{palette:[],override:!1}},[]),M=(0,y.useMemo)(()=>j&&Array.isArray(j)?!0===O.override?j.filter(e=>e.slug&&e.slug.startsWith("kb-palette")):j:[],[j,O.override]),N=()=>{v(!0)};s&&(c(!0),setTimeout(()=>{w(""),C(""),E(!1)},100));const L=100===l?(e=>{let t=1;return e&&(t=e/100),t})(_):_,I=k||r,A=S&&M&&I?I.match(/\d+$/)?.[0]-1:null;let R=null!==A&&M[A]?M[A].color:I;if(!S&&R&&R.startsWith("var(")&&(R=window.getComputedStyle(document.documentElement).getPropertyValue(r.replace("var(","").split(",")[0].replace(")",""))),R&&R.startsWith("var(")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(R.replace("var(","").replace(" ","").replace(")",""));""===e&&(e=window.getComputedStyle(document.documentElement).getPropertyValue(R.replace("var(","").replace(" ","").split(",")[0].replace(")",""))),R=e}""===R&&(R=u),a&&!S&&1!==Number(void 0!==L&&""!==L?L:1)&&(R=Qo(void 0===R?"":R,void 0!==L&&""!==L?L:1));let B=R;if(S&&I)switch(I){case"palette1":B="var(--global-palette1,#2B6CB0)";break;case"palette2":B="var(--global-palette2,#215387)";break;case"palette3":B="var(--global-palette3,#1A202C)";break;case"palette4":B="var(--global-palette4,#2D3748)";break;case"palette5":B="var(--global-palette5,#4A5568)";break;case"palette6":B="var(--global-palette6,#718096)";break;case"palette7":B="var(--global-palette7,#EDF2F7)";break;case"palette8":B="var(--global-palette8,#F7FAFC)";break;case"palette9":B="var(--global-palette9,#ffffff)"}const P=(e,t)=>{let n,o=100===l?100:1;t?n=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?a?(n="transparent"===e.hex?"#000000":e.hex,o=100===l?el(e.rgb.a):e.rgb.a):n="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":n=void 0!==e.hex?e.hex:e,w(n),C(o),E(!!t),null!==b?b(n,o):(i(n),null!==a&&setTimeout(()=>{a(o)},50))};return(0,o.jsxs)("div",{className:"single-pop-color",children:[g&&(0,o.jsxs)(d.Popover,{position:"top left",className:"kadence-pop-color-popover",onClose:()=>{!0===g&&v(!1)},children:[(0,o.jsx)(Ko,{color:R,onChange:e=>(e=>{let t,n=100===l?100:1;void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?a?(t="transparent"===e.hex?"#000000":e.hex,n=100===l?el(e.rgb.a):e.rgb.a):t="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":t=void 0!==e.hex?e.hex:e,w(t),C(n),E(!1)})(e),onChangeComplete:e=>{P(e,""),f&&f("")}}),M&&(0,o.jsx)("div",{className:"kadence-pop-color-palette-swatches",children:(0,p.map)(M,({color:e,slug:t,name:n})=>{const l={color:e},a=t.replace("theme-",""),i=a===r||!t.startsWith("theme-palette")&&r===e;return(0,o.jsxs)("div",{className:"kadence-color-palette__item-wrapper",children:[(0,o.jsx)(d.Tooltip,{text:n|| // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,h.sprintf)((0,h.__)("Color code: %s"),e),children:(0,o.jsx)(d.Button,{type:"button",className:"kadence-color-palette__item "+(i?"is-active":""),style:l,onClick:()=>{t.startsWith("theme-palette")?P(e,a):P(e,!1),f&&f(t)},"aria-label":n? // translators: %s: The name of the color e.g: "vivid red". // translators: %s: The name of the color e.g: "vivid red". (0,h.sprintf)((0,h.__)("Color: %s","kadence-blocks"),n): // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,h.sprintf)((0,h.__)("Color code: %s","kadence-blocks"),e),"aria-pressed":i})}),a===r&&(0,o.jsx)(d.Dashicon,{icon:"admin-site"}),!t.startsWith("theme-palette")&&r===e&&(0,o.jsx)(d.Dashicon,{icon:"saved"})]},e)})})]}),g&&(0,o.jsxs)(d.Button,{className:"kadence-pop-color-icon-indicate "+(t?"kadence-has-alpha":"kadence-no-alpha"),onClick:N,showTooltip:!0,label:e,children:[(0,o.jsx)(d.ColorIndicator,{className:"kadence-pop-color-indicate",colorValue:B}),r&&r.startsWith("palette")&&(0,o.jsx)("span",{className:"color-indicator-icon",children:(0,o.jsx)(d.Dashicon,{icon:"admin-site"})})]}),!g&&(0,o.jsxs)(d.Button,{className:"kadence-pop-color-icon-indicate "+(t?"kadence-has-alpha":"kadence-no-alpha"),onClick:N,showTooltip:!0,label:e,children:[(0,o.jsx)(d.ColorIndicator,{className:"kadence-pop-color-indicate",colorValue:B}),r&&r.startsWith("palette")&&(0,o.jsx)("span",{className:"color-indicator-icon",children:(0,o.jsx)(d.Dashicon,{icon:"admin-site"})})]})]})}const nl=class extends y.Component{constructor(){super(...arguments),this.state={reload:!1}}render(){let e=!1;const t=this.props.colorDefault?this.props.colorDefault:this.props.default,n=this.props.colorDefault2?this.props.colorDefault2:this.props.default2,l=this.props.colorDefault3?this.props.colorDefault3:this.props.default3,a=this.props.colorValue?this.props.colorValue:this.props.value,r=this.props.colorValue2?this.props.colorValue2:this.props.value2,i=this.props.colorValue3?this.props.colorValue3:this.props.value3,s=this.props.onColorChange?this.props.onColorChange:this.props.onChange,c=this.props.onColorChange2?this.props.onColorChange2:this.props.onChange2,u=this.props.onColorChange3?this.props.onColorChange3:this.props.onChange3;return a&&a!==t&&(e=!0),r&&r!==n&&(e=!0),i&&i!==l&&(e=!0),(0,o.jsx)("div",{className:"components-base-control kadence-pop-color-control",children:(0,o.jsxs)("div",{className:"kadence-pop-color-container",children:[this.props.label&&(0,o.jsx)("label",{className:"kadence-beside-label kadence-pop-color-label",children:this.props.label}),e&&!this.props.hideClear&&(0,o.jsx)(d.Button,{className:"kadence-pop-color-clear",type:"button",onClick:()=>{s(t||""),this.props.onClassChange&&this.props.onClassChange(""),c&&(c(n||""),this.props.onClassChange2&&this.props.onClassChange2("")),u&&(u(l||""),this.props.onClassChange3&&this.props.onClassChange3("")),this.setState({reload:!0})},isSmall:!0,children:(0,o.jsx)(d.Dashicon,{icon:"redo"})}),(0,o.jsxs)("div",{className:"kadence-pop-color-popovers",children:[(0,o.jsx)(tl,{label:this.props.swatchLabel?this.props.swatchLabel:(0,h.__)("Select Color","kadence-blocks-pro"),onChange:e=>s(e),onOpacityChange:this.props.onOpacityChange?e=>this.props.onOpacityChange(e):void 0,onArrayChange:this.props.onArrayChange?(e,t)=>this.props.onArrayChange(e,t):void 0,onClassChange:this.props.onClassChange?e=>this.props.onClassChange(e):void 0,value:a,opacityValue:void 0!==this.props?.opacityValue&&""!==this.props?.opacityValue?this.props.opacityValue:void 0,opacityUnit:this.props.opacityUnit?this.props.opacityUnit:void 0,defaultValue:t||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})}),c&&(0,o.jsx)(tl,{label:this.props.swatchLabel2?this.props.swatchLabel2:(0,h.__)("Select Color","kadence-blocks-pro"),onChange:e=>c(e),onOpacityChange:this.props.onOpacityChange2?e=>this.props.onOpacityChange2(e):void 0,onArrayChange:this.props.onArrayChange2?(e,t)=>this.props.onArrayChange2(e,t):void 0,onClassChange:this.props.onClassChange2?e=>this.props.onClassChange2(e):void 0,value:r,opacityValue:this.props.opacityValue2?this.props.opacityValue2:void 0,opacityUnit:this.props.opacityUnit2?this.props.opacityUnit2:void 0,defaultValue:n||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})}),u&&(0,o.jsx)(tl,{label:this.props.swatchLabel3?this.props.swatchLabel3:(0,h.__)("Select Color","kadence-blocks-pro"),onChange:e=>u(e),onOpacityChange:this.props.onOpacityChange3?e=>this.props.onOpacityChange3(e):void 0,onArrayChange:this.props.onArrayChange3?(e,t)=>this.props.onArrayChange3(e,t):void 0,onClassChange:this.props.onClassChange3?e=>this.props.onClassChange3(e):void 0,value:i,opacityValue:this.props.opacityValue3?this.props.opacityValue3:void 0,opacityUnit:this.props.opacityUnit3?this.props.opacityUnit3:void 0,defaultValue:l||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})})]})]})})}};function ol(e,t=null){return e&&e.startsWith("palette")?e="var(--global-"+e+")":null===t||isNaN(t)||1===Number(t)||void 0===e||""===e||(e=Qo(e,t)),e}const ll=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("rect",{x:"2.714",y:"5.492",width:"1.048",height:"9.017",fill:"#555d66"}),(0,o.jsx)("rect",{x:"16.265",y:"5.498",width:"1.023",height:"9.003",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.518",y:"2.186",width:"8.964",height:"2.482",fill:"#272b2f"}),(0,o.jsx)("rect",{x:"5.487",y:"16.261",width:"9.026",height:"1.037",fill:"#555d66"})]}),al=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("rect",{x:"2.714",y:"5.492",width:"1.046",height:"9.017",fill:"#555d66"}),(0,o.jsx)("rect",{x:"15.244",y:"5.498",width:"2.518",height:"9.003",fill:"#272b2f"}),(0,o.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.954",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.487",y:"16.308",width:"9.026",height:"0.99",fill:"#555d66"})]}),rl=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("rect",{x:"2.714",y:"5.492",width:"1",height:"9.017",fill:"#555d66"}),(0,o.jsx)("rect",{x:"16.261",y:"5.498",width:"1.027",height:"9.003",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.968",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.487",y:"15.28",width:"9.026",height:"2.499",fill:"#272b2f"})]}),il=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("rect",{x:"2.202",y:"5.492",width:"2.503",height:"9.017",fill:"#272b2f"}),(0,o.jsx)("rect",{x:"16.276",y:"5.498",width:"1.012",height:"9.003",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.966",fill:"#555d66"}),(0,o.jsx)("rect",{x:"5.487",y:"16.303",width:"9.026",height:"0.995",fill:"#555d66"})]}),sl=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),cl=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));function dl({label:e,onChange:t,value:n="",className:l="",step:a=1,max:r=200,min:i=0,unit:s="px",onUnit:c,units:u=["px","em","rem"],styles:p=["solid","dashed","dotted","double"],defaultLinked:f=!0}){const b=(0,C.useInstanceId)(dl),m=n?.[1]||"solid",g=e=>{const o=n;o[0]=e,t(o)},v=n?.[0]||"",k=void 0!==n?.[2]&&""!==n?.[2]?n[2]:"",y={solid:(0,o.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,o.jsx)("path",{d:"M18.988 11.478V8.522H1.012v2.956h17.976z"})}),dashed:(0,o.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,o.jsx)("path",{d:"M12.512 11.478V8.522H7.488v2.956h5.024zM14.004 8.522v2.956h4.984V8.522h-4.984zM1.012 8.522v2.956H6.05V8.522H1.012z"})}),dotted:(0,o.jsxs)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:[(0,o.jsx)("circle",{cx:"2.503",cy:"10",r:"1.487"}),(0,o.jsx)("circle",{cx:"17.486",cy:"10",r:"1.487"}),(0,o.jsx)("circle",{cx:"12.447",cy:"10",r:"1.487"}),(0,o.jsx)("circle",{cx:"7.455",cy:"10",r:"1.487"})]}),double:(0,o.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,o.jsx)("path",{d:"M1.02 6.561v2.957h17.968V6.561H1.02zM1.012 10.586v2.956H18.98v-2.956H1.012z"})})},x={solid:(0,h.__)("Solid","kadence-blocks-pro"),dashed:(0,h.__)("Dashed","kadence-blocks-pro"),dotted:(0,h.__)("Dotted","kadence-blocks-pro"),double:(0,h.__)("Double","kadence-blocks-pro")},w=u.map(e=>({value:e,label:e}));return[t&&(0,o.jsxs)("div",{className:`components-base-control kadence-single-border-control kadence-single-border-control${b}${l?" "+l:""}`,children:[e&&(0,o.jsx)(d.Flex,{justify:"space-between",className:"kadence-border-control__header",children:(0,o.jsx)(d.FlexItem,{children:(0,o.jsx)("label",{className:"components-base-control__label",children:e})})}),(0,o.jsxs)("div",{className:"kadence-single-border-control-wrap",children:[(0,o.jsx)(nl,{value:v,default:"",hideClear:!0,onChange:e=>g(e)},`border-color-${v}-${b}`),(0,o.jsx)(d.DropdownMenu,{className:"border-control-style-select",icon:y[m],label:(0,h.__)("Border Style","kadence-blocks-pro"),popoverProps:{className:"border-control-style-select__popover",placement:"bottom"},children:({onClose:e})=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(d.MenuGroup,{children:p.map(l=>(0,o.jsx)(d.MenuItem,{icon:y[l],onClick:()=>{e(),(e=>{const o=n;o[1]=e,t(o)})(l)},label:x[l]}))})})}),(0,o.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,o.jsx)(d.__experimentalUnitControl,{min:i,max:r,step:a,units:w,value:k,disableUnits:!0,onChange:e=>(e=>{const o=isNaN(parseFloat(e))?"":parseFloat(e),l=n;l[2]=o,t(l)})(e)}),(0,o.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{c(e.target.value)},disabled:1===u.length,children:u.map(e=>(0,o.jsx)("option",{value:e,selected:s===e||void 0,children:e},e))})})]})]})]})]}function ul({label:e,onChange:t,onControl:n,value:l="",className:a="",help:r="",defaultValue:i={top:{color:"",style:"solid",width:""},right:{color:"",style:"solid",width:""},bottom:{color:"",style:"solid",width:""},left:{color:"",style:"solid",width:""},unit:""},control:s="individual",units:c=["px","em","rem"],firstIcon:u=ll,secondIcon:f=al,thirdIcon:b=rl,fourthIcon:m=il,linkIcon:g=sl,unlinkIcon:v=cl,styles:k=["solid","dashed","dotted","double"],reset:x}){const w=(0,C.useInstanceId)(ul),[_,S]=(0,y.useState)(s),E=n?s:_,j=n||S,O={first:u,second:f,third:b,fourth:m,link:g,unlink:v},M=(0,y.useRef)(),N=l?.[0]||i,L="px"!==N.unit?.1:1,A="px"!==N.unit&&""!==N.unit?12:200,R=(e,n)=>{N[n]=e;const o=JSON.parse(JSON.stringify(N));t([o])},B=e=>{N.unit=e;const n=JSON.parse(JSON.stringify(N));t([n])};return[t&&(0,o.jsxs)("div",{ref:M,className:`components-base-control kadence-border-control kadence-border-control${w}${a?" "+a:""}`,children:[e&&(0,o.jsxs)("div",{className:"kadence-border-control__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-border-control__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),x&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(i,l),icon:I,onClick:()=>{"function"==typeof x?x():t([i])}})})]}),j&&(0,o.jsx)(d.Button,{className:"kadence-radio-item border-control-toggle is-single only-icon",label:"individual"!==E?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==E?O.link:O.unlink,onClick:()=>j("individual"!==E?"individual":"linked"),isPressed:"individual"!==E,isTertiary:"individual"===E})]}),(0,o.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==E&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(dl,{value:N?.top||["","",""],onChange:e=>(e=>{N.top=e,N.bottom=e,N.right=e,N.left=e;const n=JSON.parse(JSON.stringify(N));t([n])})(e),min:0,max:A,step:L,help:r,styles:k,unit:N?.unit||"px",units:c,onUnit:e=>B(e),defaultValue:i.top,allowReset:!1})}),"individual"===E&&(0,o.jsxs)("div",{className:"kadence-border-controls-grid-wrap",children:[(0,o.jsx)("div",{className:"kadence-border-control-grid-visualizer",style:{borderTopColor:N?.top?.[0]?ol(N?.top?.[0]):void 0,borderTopStyle:N?.top?.[1]||void 0,borderTopWidth:N?.top?.[2]?"clamp( 1px, "+N?.top?.[2]+N?.unit+", 10px )":void 0,borderRightColor:N?.right?.[0]?ol(N?.right?.[0]):void 0,borderRightStyle:N?.right?.[1]||void 0,borderRightWidth:N?.right?.[2]?"clamp( 1px, "+N?.right?.[2]+N?.unit+", 10px )":void 0,borderBottomColor:N?.bottom?.[0]?ol(N?.bottom?.[0]):void 0,borderBottomStyle:N?.bottom?.[1]||void 0,borderBottomWidth:N?.bottom?.[2]?"clamp( 1px, "+N?.bottom?.[2]+N?.unit+", 10px )":void 0,borderLeftColor:N?.left?.[0]?ol(N?.left?.[0]):void 0,borderLeftStyle:N?.left?.[1]||void 0,borderLeftWidth:N?.left?.[2]?"clamp( 1px, "+N?.left?.[2]+N?.unit+", 10px )":void 0}}),(0,o.jsx)(dl,{value:N?.top||["","",""],onChange:e=>R(e,"top"),min:0,max:A,step:L,help:r,styles:k,unit:N?.unit||"px",units:c,onUnit:e=>B(e),defaultValue:i.top,allowReset:!1}),(0,o.jsx)(dl,{value:N?.left||["","",""],onChange:e=>R(e,"left"),min:0,max:A,step:L,help:r,styles:k,unit:N?.unit||"px",units:c,onUnit:e=>B(e),defaultValue:i.left,allowReset:!1}),(0,o.jsx)(dl,{value:N?.right||["","",""],onChange:e=>R(e,"right"),min:0,max:A,step:L,help:r,styles:k,unit:N?.unit||"px",units:c,onUnit:e=>B(e),defaultValue:i.right,allowReset:!1}),(0,o.jsx)(dl,{value:N?.bottom||["","",""],onChange:e=>R(e,"bottom"),min:0,max:A,step:L,help:r,styles:k,unit:N?.unit||"px",units:c,onUnit:e=>B(e),defaultValue:i.bottom,allowReset:!1})]})]})]})]}function pl({label:e,onChange:t,onChangeTablet:n,onChangeMobile:l,onControl:a,mobileValue:r="",tabletValue:i="",value:s="",control:c="individual",units:u=["px","em","rem"],firstIcon:f=ll,secondIcon:b=al,thirdIcon:m=rl,fourthIcon:g=il,linkIcon:v=sl,unlinkIcon:k=cl,styles:x=["solid","dashed","dotted","double"],deskDefault:_={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"},tabletDefault:S={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},mobileDefault:E={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},reset:j=!0,defaultLinked:O=!0}){const M=(0,C.useInstanceId)(pl),N={first:f,second:b,third:m,fourth:g,link:v,unlink:k},[L,R]=(0,y.useState)(c),B=a?c:L,P=a||R,[T,F]=(0,y.useState)("Desktop"),D=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);D!==T&&F(D),(0,y.useEffect)(()=>{O&&("Mobile"===D?(0,p.isEqual)(r?.[0]?.top,r?.[0]?.bottom)&&(0,p.isEqual)(r?.[0]?.top,r?.[0]?.bottom)&&(0,p.isEqual)(r?.[0]?.top,r?.[0]?.right)&&(0,p.isEqual)(r?.[0]?.top,r?.[0]?.left)&&P("linked"):"Tablet"===D?(0,p.isEqual)(i?.[0]?.top,i?.[0]?.bottom)&&(0,p.isEqual)(i?.[0]?.top,i?.[0]?.bottom)&&(0,p.isEqual)(i?.[0]?.top,i?.[0]?.right)&&(0,p.isEqual)(i?.[0]?.top,i?.[0]?.left)&&P("linked"):(0,p.isEqual)(s?.[0]?.top,s?.[0]?.bottom)&&(0,p.isEqual)(s?.[0]?.top,s?.[0]?.bottom)&&(0,p.isEqual)(s?.[0]?.top,s?.[0]?.right)&&(0,p.isEqual)(s?.[0]?.top,s?.[0]?.left)&&P("linked")),r&&(0,p.isEqual)(s?.[0]?.unit,r?.[0]?.unit)&&(r[0].unit="",l(r)),i&&(0,p.isEqual)(s?.[0]?.unit,i?.[0]?.unit)&&(i[0].unit="",n(i))},[]);const{setPreviewDeviceType:H}=(0,w.useDispatch)("kadenceblocks/data"),V=[{name:"Desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let z=s?.[0]?s[0]:_;"Tablet"===T?z=i?.[0]?i[0]:S:"Mobile"===T&&(z=r?.[0]?r[0]:E);const $={},U=r?.[0]?.unit?r[0].unit:s?.[0]?.unit?s[0].unit:"px",W=i?.[0]?.unit?i[0].unit:s?.[0]?.unit?s[0].unit:"px";$.Mobile=(0,o.jsx)(ul,{value:r?JSON.parse(JSON.stringify(r)):void 0,onChange:e=>l(e),control:B,onControl:e=>P(e),defaultValue:E,styles:x,units:[U],firstIcon:f,secondIcon:b,thirdIcon:m,fourthIcon:g,linkIcon:v,unlinkIcon:k},"mobile"+M),$.Tablet=(0,o.jsx)(ul,{value:i?JSON.parse(JSON.stringify(i)):void 0,onChange:e=>n(e),control:B,onControl:e=>P(e),defaultValue:S,styles:x,units:[W],firstIcon:f,secondIcon:b,thirdIcon:m,fourthIcon:g,linkIcon:v,unlinkIcon:k},"tablet"+M),$.Desktop=(0,o.jsx)(ul,{value:s?JSON.parse(JSON.stringify(s)):void 0,onChange:e=>t(e),control:B,onControl:e=>P(e),defaultValue:_,styles:x,units:u,firstIcon:f,secondIcon:b,thirdIcon:m,fourthIcon:g,linkIcon:v,unlinkIcon:k},"desktop"+M);let G=_;return"Mobile"===T?G=E:"Mobile"===T&&(G=S),[t&&n&&l&&(0,o.jsxs)("div",{className:`components-base-control kb-responsive-border-control kadence-border-box-control kadence-border-box-control${M}`,children:[(0,o.jsxs)("div",{className:"kadence-border-control__header kadence-component__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),j&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(G,z),icon:I,onClick:()=>{"Tablet"===T?n([S]):"Mobile"===T?l([E]):t([_])}})})]}),(0,o.jsx)(d.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(V,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===T?" is-active":""}`,isSmall:!0,"aria-pressed":T===e,onClick:()=>{return H(A(t=e)),void F(A(t));var t},children:n},t))}),P&&(0,o.jsx)(d.Button,{isSmall:!0,className:"kadence-radio-item border-control-toggle is-single only-icon",label:"individual"!==B?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==B?N.link:N.unlink,onClick:()=>P("individual"!==B?"individual":"linked"),isPressed:"individual"!==B,isTertiary:"individual"===B})]}),(0,o.jsx)("div",{className:"kb-responsive-border-control-inner",children:$[T]?$[T]:$.Desktop})]})]}function hl({label:e,placement:t="top",measurement:n,onChange:l,step:a=1,max:r=100,min:i=0,icon:s,unit:c="",allowEmpty:f=!1,className:b="",preset:m=""}){const[g,v]=function(){const[e,t]=(0,y.useState)(!1);return[e,e=>{t(e)}]}();return(0,o.jsxs)("div",{className:`measure-input-wrap measure-input-${t}`,children:[(0,o.jsxs)("div",{className:"input-setting-toggle",children:[(0,o.jsx)(d.Button,{isSmall:!0,className:"input-setting-toggle-btn",disabled:!(!n||"auto"!=n),tabIndex:"-1",onClick:n&&"auto"==n?"":function(){v(!g)},children:e}),g&&(0,o.jsxs)(d.Popover,{onClose:function(){v(!1)},className:"kadence-range-popover-settings",children:[(0,o.jsx)(u,{beforeIcon:s,value:void 0!==n?n:"",onChange:e=>l(e?parseFloat(e):e),min:i,max:r,step:a}),""!==c||m&&Array.isArray(m)&&m.length>1&&(0,o.jsx)(d.ButtonGroup,{className:"kb-preset-size-options","aria-label":(0,h.__)("Choose a Preset Size","kadence-blocks-pro"),children:(0,p.map)(m&&Array.isArray(m)&&m.length>1?m:{px:[0,10,20,40,60,80,100,140,160,200],em:[0,.5,1,1.5,2,2.5,3,3.5,4,4.5],rem:[0,.5,1,1.5,2,2.5,3,3.5,4,4.5],"%":[0,2,5,8,10,20,30,40,50,60],vh:[0,2,5,8,10,20,30,40,50,60],vw:[0,2,5,8,10,20,30,40,50,60]}[c],e=>(0,o.jsx)(d.Button,{className:"kb-preset-sizes",isSmall:!0,onClick:()=>l(parseFloat(e)),children:e},e))})]})]}),(0,o.jsx)(d.TextControl,{label:e,hideLabelFromVision:!0,type:"number",className:"measure-inputs",disabled:!(!n||"auto"!=n),placeholder:n&&"auto"==n?(0,h.__)("auto","kadence-blocks-pro"):void 0,value:void 0!==n?n:"",onChange:e=>l(e?Number(e):e),min:i,max:r,step:a}),(0,o.jsx)("span",{className:"measure-label",children:s})]})}const fl=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("path",{d:"M6.077,2.124l-0.101,0.003l-0.101,0.007l-0.099,0.009l-0.099,0.011l-0.098,0.014l-0.098,0.016l-0.096,0.018l-0.096,0.021l-0.095,0.023l-0.094,0.026l-0.093,0.028l-0.092,0.03l-0.091,0.032l-0.09,0.034l-0.089,0.036l-0.088,0.039l-0.086,0.04l-0.086,0.043l-0.084,0.044l-0.083,0.047l-0.082,0.048l-0.081,0.051l-0.079,0.052l-0.078,0.054l-0.077,0.056l-0.075,0.057l-0.074,0.06l-0.072,0.061l-0.071,0.063l-0.069,0.064l-0.068,0.066l-0.066,0.068l-0.064,0.069l-0.063,0.071l-0.061,0.072l-0.059,0.074l-0.058,0.075l-0.056,0.076l-0.054,0.078l-0.052,0.08l-0.05,0.08l-0.049,0.082l-0.046,0.083l-0.045,0.085l-0.042,0.085l-0.041,0.087l-0.038,0.088l-0.037,0.089l-0.034,0.09l-0.032,0.091l-0.03,0.092l-0.028,0.093l-0.025,0.094l-0.023,0.094l-0.021,0.096l-0.019,0.097l-0.016,0.097l-0.014,0.098l-0.011,0.099l-0.009,0.1l-0.006,0.1l-0.004,0.101l-0.001,0.102l0,1.272l5.531,-5.213l-1.591,0l-0.101,0.002Zm1.692,-0.002l-5.531,5.213l2.5,-0.011l0,-1.245l0,-0.054l0.002,-0.038l0.002,-0.037l0.004,-0.037l0.004,-0.036l0.005,-0.036l0.006,-0.035l0.006,-0.035l0.008,-0.035l0.008,-0.034l0.009,-0.034l0.01,-0.033l0.011,-0.033l0.012,-0.033l0.012,-0.033l0.013,-0.032l0.014,-0.032l0.015,-0.031l0.015,-0.031l0.016,-0.031l0.017,-0.03l0.018,-0.03l0.018,-0.03l0.02,-0.029l0.019,-0.028l0.021,-0.029l0.021,-0.027l0.022,-0.028l0.023,-0.026l0.023,-0.026l0.024,-0.026l0.024,-0.025l0.025,-0.025l0.026,-0.023l0.026,-0.024l0.027,-0.022l0.027,-0.022l0.028,-0.021l0.028,-0.021l0.029,-0.02l0.029,-0.019l0.029,-0.018l0.03,-0.018l0.031,-0.017l0.03,-0.016l0.031,-0.016l0.032,-0.014l0.032,-0.014l0.032,-0.013l0.032,-0.013l0.033,-0.011l0.033,-0.011l0.034,-0.01l0.033,-0.009l0.035,-0.009l0.034,-0.007l0.035,-0.007l0.036,-0.006l0.035,-0.005l0.037,-0.004l0.036,-0.003l0.037,-0.003l0.038,-0.001l0.054,-0.001l1.569,0l0.006,-2.5Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),bl=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,1.273l-5.531,-5.214l1.591,0l0.101,0.002Zm-1.692,-0.002l5.531,5.214l-2.5,-0.012l0,-1.245l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-1.57,0l-0.005,-2.5Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),ml=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("path",{d:"M14.044,17.873l0.101,-0.003l0.101,-0.007l0.099,-0.009l0.099,-0.011l0.098,-0.014l0.098,-0.016l0.096,-0.018l0.096,-0.021l0.095,-0.023l0.094,-0.026l0.093,-0.028l0.092,-0.03l0.091,-0.032l0.09,-0.034l0.089,-0.036l0.088,-0.039l0.086,-0.04l0.086,-0.043l0.084,-0.044l0.083,-0.047l0.082,-0.048l0.081,-0.051l0.079,-0.052l0.078,-0.054l0.077,-0.056l0.075,-0.057l0.074,-0.06l0.072,-0.061l0.071,-0.063l0.069,-0.064l0.068,-0.066l0.066,-0.068l0.064,-0.069l0.063,-0.071l0.061,-0.072l0.059,-0.074l0.058,-0.075l0.056,-0.076l0.054,-0.078l0.052,-0.08l0.05,-0.08l0.049,-0.082l0.046,-0.083l0.045,-0.085l0.042,-0.085l0.041,-0.087l0.038,-0.088l0.037,-0.089l0.034,-0.09l0.032,-0.091l0.03,-0.092l0.028,-0.093l0.025,-0.094l0.023,-0.094l0.021,-0.096l0.019,-0.097l0.016,-0.097l0.014,-0.098l0.011,-0.099l0.009,-0.1l0.006,-0.1l0.004,-0.101l0.001,-0.102l0,-1.272l-5.531,5.213l1.591,0l0.101,-0.002Zm-1.692,0.002l5.531,-5.213l-2.5,0.012l0,1.244l0,0.054l-0.002,0.038l-0.002,0.037l-0.004,0.037l-0.004,0.036l-0.005,0.036l-0.006,0.035l-0.006,0.035l-0.008,0.035l-0.008,0.034l-0.009,0.034l-0.01,0.033l-0.011,0.033l-0.012,0.033l-0.012,0.033l-0.013,0.032l-0.014,0.032l-0.015,0.031l-0.015,0.031l-0.016,0.031l-0.017,0.03l-0.018,0.03l-0.018,0.03l-0.02,0.029l-0.019,0.028l-0.021,0.029l-0.021,0.027l-0.022,0.028l-0.023,0.026l-0.023,0.026l-0.024,0.026l-0.024,0.025l-0.025,0.025l-0.026,0.023l-0.026,0.024l-0.027,0.022l-0.027,0.022l-0.028,0.021l-0.028,0.021l-0.029,0.02l-0.029,0.019l-0.029,0.018l-0.03,0.018l-0.031,0.017l-0.03,0.016l-0.031,0.016l-0.032,0.014l-0.032,0.014l-0.032,0.013l-0.032,0.013l-0.033,0.011l-0.033,0.011l-0.034,0.01l-0.033,0.009l-0.035,0.009l-0.034,0.007l-0.035,0.007l-0.036,0.006l-0.035,0.005l-0.037,0.004l-0.036,0.003l-0.037,0.003l-0.038,0.001l-0.054,0.001l-1.57,0l-0.005,2.5Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),gl=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("path",{d:"M6.077,17.873l-0.101,-0.003l-0.101,-0.007l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.018l-0.096,-0.021l-0.095,-0.023l-0.094,-0.026l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.068,-0.066l-0.066,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.076l-0.054,-0.078l-0.052,-0.08l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.094l-0.021,-0.096l-0.019,-0.097l-0.016,-0.097l-0.014,-0.098l-0.011,-0.099l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-1.272l5.531,5.213l-1.591,0l-0.101,-0.002Zm1.692,0.002l-5.531,-5.213l2.5,0.012l0,1.244l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.035l0.008,0.034l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.033l0.013,0.032l0.014,0.032l0.015,0.031l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.018,0.03l0.02,0.029l0.019,0.028l0.021,0.029l0.021,0.027l0.022,0.028l0.023,0.026l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.025l0.026,0.023l0.026,0.024l0.027,0.022l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.033,0.009l0.035,0.009l0.034,0.007l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.003l0.038,0.001l0.054,0.001l1.569,0l0.006,2.5Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,o.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"})]}),vl=(0,o.jsx)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:(0,o.jsx)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,7.881l-0.001,0.102l-0.004,0.101l-0.006,0.1l-0.009,0.1l-0.011,0.098l-0.014,0.099l-0.016,0.097l-0.019,0.097l-0.021,0.095l-0.023,0.095l-0.025,0.094l-0.028,0.093l-0.03,0.092l-0.032,0.091l-0.034,0.09l-0.037,0.089l-0.038,0.088l-0.041,0.087l-0.042,0.085l-0.045,0.085l-0.046,0.083l-0.049,0.082l-0.05,0.08l-0.052,0.079l-0.054,0.078l-0.056,0.077l-0.058,0.075l-0.059,0.074l-0.061,0.072l-0.063,0.071l-0.064,0.069l-0.066,0.068l-0.068,0.066l-0.069,0.064l-0.071,0.063l-0.072,0.061l-0.074,0.06l-0.075,0.057l-0.077,0.056l-0.078,0.054l-0.079,0.052l-0.081,0.051l-0.082,0.048l-0.083,0.047l-0.084,0.044l-0.086,0.043l-0.086,0.04l-0.088,0.039l-0.089,0.036l-0.09,0.034l-0.091,0.032l-0.092,0.03l-0.093,0.028l-0.094,0.025l-0.095,0.023l-0.096,0.021l-0.096,0.019l-0.098,0.016l-0.098,0.014l-0.099,0.011l-0.099,0.009l-0.101,0.006l-0.101,0.004l-0.101,0.001l-7.905,0l-0.101,-0.001l-0.101,-0.004l-0.101,-0.006l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.019l-0.096,-0.021l-0.095,-0.023l-0.094,-0.025l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.067,-0.066l-0.067,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.077l-0.054,-0.078l-0.052,-0.079l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.095l-0.021,-0.095l-0.019,-0.097l-0.016,-0.097l-0.014,-0.099l-0.011,-0.098l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-7.881l0.001,-0.102l0.004,-0.101l0.006,-0.1l0.009,-0.1l0.011,-0.099l0.014,-0.098l0.016,-0.097l0.019,-0.097l0.021,-0.096l0.023,-0.094l0.025,-0.094l0.028,-0.093l0.03,-0.092l0.032,-0.091l0.034,-0.09l0.037,-0.089l0.038,-0.088l0.041,-0.087l0.042,-0.085l0.045,-0.085l0.046,-0.083l0.049,-0.082l0.05,-0.08l0.052,-0.08l0.054,-0.078l0.056,-0.076l0.058,-0.075l0.059,-0.074l0.061,-0.072l0.063,-0.071l0.064,-0.069l0.067,-0.068l0.067,-0.066l0.069,-0.064l0.071,-0.063l0.072,-0.061l0.074,-0.06l0.075,-0.057l0.077,-0.056l0.078,-0.054l0.079,-0.052l0.081,-0.051l0.082,-0.048l0.083,-0.047l0.084,-0.044l0.086,-0.043l0.086,-0.04l0.088,-0.039l0.089,-0.036l0.09,-0.034l0.091,-0.032l0.092,-0.03l0.093,-0.028l0.094,-0.026l0.095,-0.023l0.096,-0.021l0.096,-0.018l0.098,-0.016l0.098,-0.014l0.099,-0.011l0.099,-0.009l0.101,-0.007l0.101,-0.003l0.101,-0.002l7.905,0l0.101,0.002Zm-7.99,2.498l-0.054,0.001l-0.038,0.001l-0.037,0.003l-0.036,0.003l-0.037,0.004l-0.035,0.005l-0.036,0.006l-0.035,0.007l-0.034,0.007l-0.034,0.009l-0.034,0.009l-0.034,0.01l-0.033,0.011l-0.033,0.011l-0.032,0.013l-0.032,0.013l-0.032,0.014l-0.032,0.014l-0.031,0.016l-0.03,0.016l-0.031,0.017l-0.03,0.018l-0.029,0.018l-0.029,0.019l-0.029,0.02l-0.028,0.021l-0.028,0.021l-0.027,0.022l-0.027,0.022l-0.026,0.024l-0.026,0.023l-0.025,0.025l-0.024,0.025l-0.024,0.026l-0.023,0.026l-0.023,0.026l-0.022,0.028l-0.021,0.027l-0.02,0.029l-0.02,0.028l-0.019,0.029l-0.019,0.03l-0.018,0.03l-0.017,0.03l-0.016,0.031l-0.015,0.031l-0.015,0.031l-0.014,0.032l-0.013,0.032l-0.012,0.033l-0.012,0.033l-0.011,0.033l-0.01,0.033l-0.009,0.034l-0.008,0.034l-0.008,0.035l-0.006,0.035l-0.006,0.035l-0.005,0.036l-0.004,0.036l-0.004,0.037l-0.002,0.037l-0.002,0.038l0,0.054l0,7.849l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.034l0.008,0.035l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.032l0.013,0.033l0.014,0.031l0.015,0.032l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.019,0.029l0.019,0.03l0.02,0.028l0.02,0.028l0.021,0.028l0.022,0.027l0.023,0.027l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.024l0.026,0.024l0.026,0.023l0.027,0.023l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.034,0.009l0.034,0.008l0.034,0.008l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.002l0.038,0.002l0.054,0l7.873,0l0.054,0l0.038,-0.002l0.037,-0.002l0.036,-0.003l0.037,-0.004l0.035,-0.005l0.036,-0.006l0.035,-0.007l0.034,-0.008l0.034,-0.008l0.034,-0.009l0.034,-0.01l0.033,-0.011l0.033,-0.011l0.032,-0.013l0.032,-0.013l0.032,-0.014l0.032,-0.014l0.031,-0.016l0.03,-0.016l0.031,-0.017l0.03,-0.018l0.029,-0.018l0.029,-0.019l0.029,-0.02l0.028,-0.021l0.028,-0.021l0.027,-0.022l0.027,-0.023l0.026,-0.023l0.026,-0.024l0.025,-0.024l0.024,-0.025l0.024,-0.026l0.023,-0.026l0.023,-0.027l0.022,-0.027l0.021,-0.028l0.021,-0.028l0.019,-0.028l0.02,-0.03l0.018,-0.029l0.018,-0.03l0.017,-0.03l0.016,-0.031l0.015,-0.031l0.015,-0.032l0.014,-0.031l0.013,-0.033l0.012,-0.032l0.012,-0.033l0.011,-0.033l0.01,-0.033l0.009,-0.034l0.008,-0.035l0.008,-0.034l0.006,-0.035l0.006,-0.035l0.005,-0.036l0.004,-0.036l0.004,-0.037l0.002,-0.037l0.002,-0.038l0,-0.054l0,-7.849l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-7.873,0Z",fill:"#555d66"})}),kl=(0,o.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,o.jsx)("rect",{x:"2.024",y:"5.486",width:"2.61",height:"9.027"}),(0,o.jsx)("rect",{x:"15.379",y:"5.497",width:"2.56",height:"9.007"}),(0,o.jsx)("rect",{x:"5.509",y:"1.999",width:"8.983",height:"2.582"}),(0,o.jsx)("rect",{x:"5.51",y:"15.36",width:"8.979",height:"2.563"})]});function yl({label:e,measurement:t,control:n="individual",onChange:l,onControl:a=!1,step:r=1,max:i=100,min:s=0,firstIcon:c=ll,secondIcon:f=al,thirdIcon:b=rl,fourthIcon:m=il,linkIcon:g=sl,unlinkIcon:v=cl,isBorderRadius:k=!1,unit:x="",onUnit:w,showUnit:_=!1,units:C=["px","em","rem"],allowEmpty:S=!1,key:E,className:j="",reset:O,preset:M=""}){const N={first:k?fl:c,second:k?bl:f,third:k?ml:b,fourth:k?gl:m,link:k?vl:g,unlink:k?kl:v},L=S?"":0,[A,R]=(0,y.useState)(n),B=a?n:A,P=a||R,T=t;return(0,o.jsx)(o.Fragment,{children:l&&(0,o.jsxs)("div",{className:`components-base-control kb-measure-control ${N.first!==ll?"kb-measure-corners-control":"kb-measure-sides-control"}${""!==j?" "+j:""}`,children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header kadence-title-bar",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-measure-control__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),O&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!(!(0,p.isEqual)(["","","",""],T)&&!(0,p.isEqual)(["","auto","","auto"],T)),icon:I,onClick:()=>{"function"==typeof O?O():l(["","","",""])}})})]}),P&&(0,o.jsx)(d.Button,{isSmall:!0,className:"kadence-radio-item kadence-control-toggle radio-custom is-single only-icon",label:"individual"!==B?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==B?g:v,onClick:()=>P("individual"!==B?"individual":"linked"),isPressed:"individual"!==B,isTertiary:"individual"===B})]}),(0,o.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==B&&(0,o.jsx)(u,{value:t?t[0]:"",onChange:e=>l([e,e,e,e]),min:s,max:i,step:r}),"individual"===B&&(0,o.jsxs)(y.Fragment,{children:[(0,o.jsx)(hl,{placement:"top",label:(0,h.__)("Top","kadence-blocks-pro"),measurement:t?t[0]:"",onChange:e=>l([e?Number(e):e,t&&void 0!==t[1]&&""!==t[1]?t[1]:L,t&&void 0!==t[2]&&""!==t[2]?t[2]:L,t&&void 0!==t[3]&&""!==t[3]?t[3]:L]),min:s,max:i,step:r,icon:N.first,unit:x,allowEmpty:S,preset:M}),(0,o.jsx)(hl,{placement:"right",label:(0,h.__)("Right","kadence-blocks-pro"),measurement:t?t[1]:"",onChange:e=>l([t&&void 0!==t[0]&&""!==t[0]?t[0]:L,e?Number(e):e,t&&void 0!==t[2]&&""!==t[2]?t[2]:L,t&&void 0!==t[3]&&""!==t[3]?t[3]:L]),min:s,max:i,step:r,icon:N.second,unit:x,allowEmpty:S,preset:M}),(0,o.jsx)(hl,{placement:"bottom",label:(0,h.__)("Bottom","kadence-blocks-pro"),measurement:t?t[2]:"",onChange:e=>l([t&&void 0!==t[0]&&""!==t[0]?t[0]:L,t&&void 0!==t[1]&&""!==t[1]?t[1]:L,e?Number(e):e,t&&void 0!==t[3]&&""!==t[3]?t[3]:L]),min:s,max:i,step:r,icon:N.third,unit:x,allowEmpty:S,preset:M}),(0,o.jsx)(hl,{placement:"left",label:(0,h.__)("Left","kadence-blocks-pro"),measurement:t?t[3]:"",onChange:e=>l([t&&void 0!==t[0]&&""!==t[0]?t[0]:L,t&&void 0!==t[1]&&""!==t[1]?t[1]:L,t&&void 0!==t[2]&&""!==t[2]?t[2]:L,e?Number(e):e]),min:s,max:i,step:r,icon:N.fourth,unit:x,allowEmpty:S,preset:M})]}),(w||_)&&(0,o.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{w&&w(e.target.value)},value:x,children:C.map(e=>(0,o.jsx)("option",{value:e,selected:x===e||void 0,children:e},e))})})]})]},E)})}function xl({label:e,subLabel:t,onChange:n,onChangeTablet:l,onChangeMobile:a,mobileValue:r,tabletValue:i,value:s,onChangeControl:c=!1,control:u="individual",step:f=1,max:b=100,min:m=0,unit:g="",onUnit:v,showUnit:k=!1,units:x=["px","em","rem"],allowEmpty:_=!0,preset:C="",isBorderRadius:S=!1,firstIcon:E=ll,secondIcon:j=al,thirdIcon:O=rl,fourthIcon:M=il,linkIcon:N=sl,unlinkIcon:L=cl,reset:R=!0}){const B=(0,y.useRef)(),[P,T]=(0,y.useState)(u),F=c?u:P,D=c||T,H=!!_,[V,z]=(0,y.useState)("Desktop"),$=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);$!==V&&z($);const{setPreviewDeviceType:U}=(0,w.useDispatch)("kadenceblocks/data"),W=[{name:"Desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let G=s||["","","",""];"Tablet"===V?G=i||["","","",""]:"Mobile"===V&&(G=r||["","","",""]);const q={};return q.Mobile=(0,o.jsx)(yl,{className:"measure-mobile-size",label:t?(0,h.__)("Mobile:","kadence-blocks-pro")+t:void 0,measurement:r||["","","",""],control:F,onChange:e=>a(e),onControl:e=>D(e),min:m,max:b,step:f,allowEmpty:H,unit:g,showUnit:!0,units:[g],preset:C,isBorderRadius:S,firstIcon:E,secondIcon:j,thirdIcon:O,fourthIcon:M,linkIcon:N,unlinkIcon:L},2),q.Tablet=(0,o.jsx)(yl,{className:"measure-tablet-size",label:t?(0,h.__)("Tablet:","kadence-blocks-pro")+t:void 0,measurement:i||["","","",""],control:F,onChange:e=>l(e),onControl:e=>D(e),min:m,max:b,step:f,allowEmpty:H,unit:g,showUnit:!0,units:[g],preset:C,isBorderRadius:S,firstIcon:E,secondIcon:j,thirdIcon:O,fourthIcon:M,linkIcon:N,unlinkIcon:L},1),q.Desktop=(0,o.jsx)(yl,{className:"measure-desktop-size",label:t||void 0,measurement:s||["","","",""],control:F,onChange:e=>n(e),onControl:e=>D(e),min:m,max:b,step:f,allowEmpty:H,unit:g,onUnit:v||void 0,showUnit:k,units:x,preset:C,isBorderRadius:S,firstIcon:E,secondIcon:j,thirdIcon:O,fourthIcon:M,linkIcon:N,unlinkIcon:L},0),[n&&l&&a&&(0,o.jsxs)("div",{ref:B,className:"components-base-control kb-responsive-measure-control",children:[(0,o.jsxs)("div",{className:"kadence-component__header kadence-title-bar",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-title-bar kadence-measure-control__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),R&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!(!(0,p.isEqual)(["","","",""],G)&&!(0,p.isEqual)(["","auto","","auto"],G)),icon:I,onClick:()=>{"Tablet"===V?l(["","","",""]):"Mobile"===V?a(["","","",""]):n(["","","",""])}})})]}),(0,o.jsx)(d.ButtonGroup,{className:"kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(W,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===V?" is-active":""}`,isSmall:!0,"aria-pressed":V===e,onClick:()=>{return U(A(t=e)),void z(A(t));var t},children:n},t))}),D&&(0,o.jsx)(d.Button,{isSmall:!0,className:"kadence-radio-item kadence-control-toggle radio-custom is-single only-icon",label:"individual"!==F?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==F?N:L,onClick:()=>D("individual"!==F?"individual":"linked"),isPressed:"individual"!==F,isTertiary:"individual"===F})]}),(0,o.jsx)("div",{className:"kb-responsive-measure-control-inner",children:q[V]?q[V]:q.Desktop})]})]}const wl=[{value:"0",label:(0,h.__)("None","kadence-blocks-pro"),size:0,name:(0,h.__)("None","kadence-blocks-pro")},{value:"xxs",output:"var(--global-kb-spacing-xxs, 0.5rem)",size:8,label:(0,h.__)("XXS","kadence-blocks-pro"),name:(0,h.__)("2X Small","kadence-blocks-pro")},{value:"xs",output:"var(--global-kb-spacing-xs, 1rem)",size:16,label:(0,h.__)("XS","kadence-blocks-pro"),name:(0,h.__)("X Small","kadence-blocks-pro")},{value:"sm",output:"var(--global-kb-spacing-sm, 1.5rem)",size:24,label:(0,h.__)("SM","kadence-blocks-pro"),name:(0,h.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-spacing-md, 2rem)",size:32,label:(0,h.__)("MD","kadence-blocks-pro"),name:(0,h.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-spacing-lg, 3rem)",size:48,label:(0,h.__)("LG","kadence-blocks-pro"),name:(0,h.__)("Large","kadence-blocks-pro")},{value:"xl",output:"var(--global-kb-spacing-xl, 4rem)",size:64,label:(0,h.__)("XL","kadence-blocks-pro"),name:(0,h.__)("X Large","kadence-blocks-pro")},{value:"xxl",output:"var(--global-kb-spacing-xxl, 5rem)",size:80,label:(0,h.__)("XXL","kadence-blocks-pro"),name:(0,h.__)("2X Large","kadence-blocks-pro")},{value:"3xl",output:"var(--global-kb-spacing-3xl, 6.5rem)",size:104,label:(0,h.__)("3XL","kadence-blocks-pro"),name:(0,h.__)("3X Large","kadence-blocks-pro")},{value:"4xl",output:"var(--global-kb-spacing-4xl, 8rem)",size:128,label:(0,h.__)("4XL","kadence-blocks-pro"),name:(0,h.__)("4X Large","kadence-blocks-pro")},{value:"5xl",output:"var(--global-kb-spacing-5xl, 10rem)",size:160,label:(0,h.__)("5XL","kadence-blocks-pro"),name:(0,h.__)("5X Large","kadence-blocks-pro")}];function _l(e,t){if(!t)return;if(!e)return;if("0"===t||"default"===t)return 0;return e.findIndex(e=>e.value===t)||void 0}function Cl({label:e,onChange:t,value:n="",placeholder:l="",className:a="",options:r=wl,step:i=1,max:s=200,min:c=0,beforeIcon:u="",help:p="",defaultValue:f=0,unit:b="",onUnit:m,units:g=["px","em","rem"],disableCustomSizes:v=!1,customControl:k=!1,setCustomControl:x=null,isPopover:w=!1,isSingle:_=!1,parentLabel:C=null,onMouseOver:S,onMouseOut:E,allowAuto:j=!1}){const[M,N]=(0,y.useState)(!1),[L,I]=(0,y.useState)(!1),A=JSON.parse(JSON.stringify(r));A.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,h.__)("Auto","kadence-blocks-pro"),size:0,name:(0,h.__)("Auto","kadence-blocks-pro")}),(0,y.useEffect)(()=>{N(function(e,t){return!!t&&!!e&&!e.find(e=>e.value===t)}(A,n))},[]);const R=x?k:M,B=x||N,P=r.map((e,t)=>({value:t,label:void 0})),T=g.map(e=>({value:e,label:e})),F=R?Number(n):_l(A,n),D=R?Number(l):_l(A,l),H=A[F]?.label?A[F]?.label:(0,h.__)("Unset","kadence-blocks-pro"),V=A[F]?.name?A[F]?.name+" "+A[F]?.size+"px":(0,h.__)("Unset","kadence-blocks-pro"),z=C?C+" ":"";let $=e;_?$=V:e&&z&&($=z+e+" "+H);const U=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.RangeControl,{label:$||void 0,className:"components-spacing-sizes-control__range-control",beforeIcon:u,value:"ss-auto"==n?"":F,onChange:e=>{var n;t(void 0===e?f:void 0===(n=e)?"":0===parseInt(n,10)?"0":`${r[n]?.value}`)},min:0,max:r.length-1,marks:P,step:1,help:p,withInputField:!1,"aria-valuenow":F,"aria-valuetext":r[F]?.label,renderTooltipContent:e=>A[e]?.label,initialPosition:f||0,allowReset:!!_,hideLabelFromVision:!w&&!_,onMouseOver:S,onMouseOut:E,onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===n&&t("0")}}),!v&&(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,h.__)("Set custom size","kadence-blocks-pro"),icon:O,onClick:()=>B(!0),isPressed:!1,isTertiary:!0})]});return[t&&(0,o.jsxs)("div",{className:"components-base-control component-spacing-sizes-control kadence-single-measure-range-control"+(a?" "+a:""),children:[!x&&e&&(0,o.jsx)(d.Flex,{justify:"space-between",className:"kadence-radio-range__header",children:(0,o.jsx)(d.FlexItem,{children:(0,o.jsx)("label",{className:"components-base-control__label",children:e})})}),!R&&(0,o.jsxs)("div",{className:"kadence-controls-content",children:[w&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d.Button,{className:"kadence-popover-spacing-btn",disabled:!(!n||"auto"!=n),tabIndex:"-1",onClick:n&&"auto"==n?"":function(){I(!L)},onMouseOver:S,onMouseOut:E,children:[C&&e&&(0,o.jsx)("span",{className:"kadence-placement-label",children:e}),(0,o.jsxs)("span",{className:"kadence-spacing-btn-val",children:[A[F]?.label,!A[F]?.label&&(0,o.jsx)("span",{className:"kadence-spacing-btn-placeholder",children:A?.[D]?.label?A?.[D]?.label:l})]})]}),L&&(0,o.jsx)(d.Popover,{onClose:function(){I(!1)},className:"kadence-range-popover-settings",children:(0,o.jsxs)("div",{className:"kadence-range-popover-settings-inner",children:[U,j&&(0,o.jsx)(d.Button,{className:"custom-auto-button",variant:"secondary",isSmall:!0,text:(0,h.__)("Auto","kadence-blocks-pro"),onClick:()=>t("ss-auto"),isPressed:!(!n||"ss-auto"!=n)}),(0,o.jsx)(d.Button,{className:"custom-reset-button",variant:"secondary",isSmall:!0,text:(0,h.__)("Reset","kadence-blocks-pro"),onClick:()=>t("")})]})})]}),!w&&(0,o.jsx)(o.Fragment,{children:U})]}),R&&(0,o.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,o.jsx)(d.__experimentalUnitControl,{label:C&&e?e:void 0,labelPosition:"top",min:c,max:s,disabled:!(!n||"auto"!=n),step:i,units:T,value:n,placeholder:l||void 0,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e),onMouseOver:S,onMouseOut:E}),!C&&(0,o.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{m(e.target.value)},value:b,children:g.map(e=>(0,o.jsx)("option",{value:e,selected:b===e||void 0,children:e},e))})}),!v&&(0,o.jsx)(d.ButtonGroup,{className:"kadence-radio-container-control",children:(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,h.__)("Use size preset","kadence-blocks-pro"),icon:O,isPrimary:!0,onClick:()=>B(!1),isPressed:!0})})]})]})]}function Sl(e,t){return!(!t||!e||!(void 0===t[0]||""!==t[0]||void 0===t[1]||""!==t[1]&&"auto"!==t[1]||void 0===t[2]||""!==t[2]||void 0===t[3]||""!==t[3]&&"auto"!==t[3])||(void 0!==t[0]&&""!==t[0]?e.find(e=>e.value===t[0]):void 0!==t[1]&&""!==t[1]&&"auto"!==t[1]?e.find(e=>e.value===t[1]):void 0!==t[2]&&""!==t[2]?e.find(e=>e.value===t[2]):void 0!==t[3]&&""!==t[3]&&"auto"!==t[3]?e.find(e=>e.value===t[3]):e.find(e=>e.value===t)))}function El(e,t,n){if(!t)return"";if(!e)return"";if("0"===t)return 0;if("px"!==n)return"";const o=e.find(e=>e.value===t);return o?o.size:""}function jl(e,t,n){if(!t)return"";if(!e)return"";if(0===t)return"0";if("px"!==n)return"";const o=e.find(e=>e.size.toString()===t.toString());return o?o.value:""}function Ol({label:e,onChange:t,onControl:n,value:l="",className:a="",options:r=wl,step:i=1,max:s=200,min:c=0,beforeIcon:u="",help:f="",placeholder:b=["","","",""],defaultValue:m=["","","",""],control:g="individual",unit:v="",onUnit:k,units:x=["px","em","rem"],disableCustomSizes:w=!1,isBorderRadius:_=!1,firstIcon:C=ll,secondIcon:S=al,thirdIcon:E=rl,fourthIcon:j=il,linkIcon:M=sl,unlinkIcon:N=cl,customControl:L=!1,setCustomControl:A=null,parentLabel:R=null,reset:B,onMouseOver:P,onMouseOut:T,allowAuto:F=!1}){const D={first:_?fl:C,second:_?bl:S,third:_?ml:E,fourth:_?gl:j,link:_?vl:M,unlink:_?kl:N},[H,V]=(0,y.useState)(!1),[z,$]=(0,y.useState)(g),U=JSON.parse(JSON.stringify(r));U.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,h.__)("Auto","kadence-blocks-pro"),size:0,name:(0,h.__)("Auto","kadence-blocks-pro")}),(0,y.useEffect)(()=>{V(Sl(U,l))},[]);const W=A?L:H,G=A||V,q=n?g:z,X=n||$;return[t&&(0,o.jsxs)("div",{className:"components-base-control component-spacing-sizes-control kadence-measure-range-control "+(a?" "+a:""),children:[e&&(0,o.jsxs)(d.Flex,{justify:"space-between",className:"kadence-component__header kadence-radio-range__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),B&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(m,l),icon:I,onClick:()=>{"function"==typeof B?B():t(m)}})})]}),!w&&(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:W?(0,h.__)("Use size preset","kadence-blocks-pro"):(0,h.__)("Set custom size","kadence-blocks-pro"),icon:O,isSmall:!0,onClick:()=>{if(W){const e=[jl(r,l?l[0]:"",v),jl(r,l?l[1]:"",v),jl(r,l?l[2]:"",v),jl(r,l?l[3]:"",v)];t(e)}else{const e=[El(r,l?l[0]:"",v),El(r,l?l[1]:"",v),El(r,l?l[2]:"",v),El(r,l?l[3]:"",v)];t(e)}G(!W)},isPressed:!!W,isTertiary:!W}),X&&(0,o.jsx)(d.Button,{isSmall:!0,className:"kadence-radio-item radio-custom is-single only-icon",label:"individual"!==q?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==q?D.link:D.unlink,onClick:()=>X("individual"!==q?"individual":"linked"),isPressed:"individual"!==q,isTertiary:"individual"===q})]}),(0,o.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==q&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Cl,{value:l?l[0]:"",onChange:e=>t([e,e,e,e]),className:"kb-measure-input-all-inputs",min:c,max:s,options:r,step:i,help:f,unit:v,units:x,onUnit:k,defaultValue:m[0],placeholder:b?.[0]?b?.[0]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:G,customControl:W,isPopover:!1,isSingle:!0,onMouseOver:P,onMouseOut:T,allowAuto:F})}),"individual"===q&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Cl,{parentLabel:R||e,label:(0,h.__)("Top","kadence-blocks-pro"),className:"kb-measure-box-top",value:l?l[0]:"",onChange:e=>{t([e,l&&void 0!==l[1]?l[1]:"",l&&void 0!==l[2]?l[2]:"",l&&void 0!==l[3]?l[3]:""])},min:c,max:s,options:r,step:i,help:f,unit:v,units:x,onUnit:k,defaultValue:m[0],placeholder:b?.[0]?b?.[0]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:G,customControl:W,isPopover:!0,onMouseOver:P,onMouseOut:T,allowAuto:F}),(0,o.jsx)(Cl,{parentLabel:R||e,label:(0,h.__)("Right","kadence-blocks-pro"),className:"kb-measure-box-right",value:l?l[1]:"",onChange:e=>t([l&&void 0!==l[0]?l[0]:"",e,l&&void 0!==l[2]?l[2]:"",l&&void 0!==l[3]?l[3]:""]),min:c,max:s,options:r,step:i,help:f,unit:v,units:x,onUnit:k,defaultValue:m[1],placeholder:b?.[1]?b?.[1]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:G,customControl:W,isPopover:!0,onMouseOver:P,onMouseOut:T,allowAuto:F}),(0,o.jsx)(Cl,{parentLabel:R||e,label:(0,h.__)("Bottom","kadence-blocks-pro"),className:"kb-measure-box-bottom",value:l?l[2]:"",onChange:e=>t([l&&void 0!==l[0]?l[0]:"",l&&void 0!==l[1]?l[1]:"",e,l&&void 0!==l[3]?l[3]:""]),min:c,max:s,options:r,step:i,help:f,unit:v,units:x,onUnit:k,defaultValue:m[2],placeholder:b?.[2]?b?.[2]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:G,customControl:W,isPopover:!0,onMouseOver:P,onMouseOut:T,allowAuto:F}),(0,o.jsx)(Cl,{parentLabel:R||e,label:(0,h.__)("Left","kadence-blocks-pro"),className:"kb-measure-box-left",value:l?l[3]:"",onChange:e=>t([l&&void 0!==l[0]?l[0]:"",l&&void 0!==l[1]?l[1]:"",l&&void 0!==l[2]?l[2]:"",e]),min:c,max:s,options:r,step:i,help:f,unit:v,units:x,onUnit:k,defaultValue:m[3],placeholder:b?.[3]?b?.[3]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:G,customControl:W,isPopover:!0,onMouseOver:P,onMouseOut:T,allowAuto:F}),W&&(0,o.jsx)("div",{className:"kadence-units kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{k(e.target.value)},value:v,disabled:1===x.length,children:x.map(e=>(0,o.jsx)("option",{value:e,selected:v===e||void 0,children:e},e))})})]})]})]})]}const Ml=[{value:"0",output:"0",label:(0,h.__)("None","kadence-blocks-pro"),size:0,name:(0,h.__)("None","kadence-blocks-pro")},{value:"xxs",output:"var(--global-kb-spacing-xxs, 0.5rem)",size:8,label:(0,h.__)("XXS","kadence-blocks-pro"),name:(0,h.__)("2X Small","kadence-blocks-pro")},{value:"xs",output:"var(--global-kb-spacing-xs, 1rem)",size:16,label:(0,h.__)("XS","kadence-blocks-pro"),name:(0,h.__)("X Small","kadence-blocks-pro")},{value:"sm",output:"var(--global-kb-spacing-sm, 1.5rem)",size:24,label:(0,h.__)("SM","kadence-blocks-pro"),name:(0,h.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-spacing-md, 2rem)",size:32,label:(0,h.__)("MD","kadence-blocks-pro"),name:(0,h.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-spacing-lg, 3rem)",size:48,label:(0,h.__)("LG","kadence-blocks-pro"),name:(0,h.__)("Large","kadence-blocks-pro")},{value:"xl",output:"var(--global-kb-spacing-xl, 4rem)",size:64,label:(0,h.__)("XL","kadence-blocks-pro"),name:(0,h.__)("X Large","kadence-blocks-pro")},{value:"xxl",output:"var(--global-kb-spacing-xxl, 5rem)",size:80,label:(0,h.__)("XXL","kadence-blocks-pro"),name:(0,h.__)("2X Large","kadence-blocks-pro")},{value:"3xl",output:"var(--global-kb-spacing-3xl, 6.5rem)",size:104,label:(0,h.__)("3XL","kadence-blocks-pro"),name:(0,h.__)("3X Large","kadence-blocks-pro")},{value:"4xl",output:"var(--global-kb-spacing-4xl, 8rem)",size:128,label:(0,h.__)("4XL","kadence-blocks-pro"),name:(0,h.__)("4X Large","kadence-blocks-pro")},{value:"5xl",output:"var(--global-kb-spacing-5xl, 10rem)",size:160,label:(0,h.__)("5XL","kadence-blocks-pro"),name:(0,h.__)("5X Large","kadence-blocks-pro")}],Nl=[{value:"sm",output:"var(--global-kb-font-size-sm, 0.9rem)",size:14,label:(0,h.__)("SM","kadence-blocks-pro"),name:(0,h.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-font-size-md, 1.25rem)",size:20,label:(0,h.__)("MD","kadence-blocks-pro"),name:(0,h.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-font-size-lg, 2rem)",size:32,label:(0,h.__)("LG","kadence-blocks-pro"),name:(0,h.__)("Large","kadence-blocks-pro")},{value:"xl",output:"var(--global-kb-font-size-xl, 3rem)",size:48,label:(0,h.__)("XL","kadence-blocks-pro"),name:(0,h.__)("X Large","kadence-blocks-pro")},{value:"xxl",output:"var(--global-kb-font-size-xxl, 4rem)",size:64,label:(0,h.__)("2XL","kadence-blocks-pro"),name:(0,h.__)("2X Large","kadence-blocks-pro")},{value:"3xl",output:"var(--global-kb-font-size-xxxl, 5rem)",size:80,label:(0,h.__)("3XL","kadence-blocks-pro"),name:(0,h.__)("3X Large","kadence-blocks-pro")}];function Ll(e,t,n=Ml){if(void 0===e)return"";if(""===e)return"";if(null===e)return"";if(""===e)return"0"+t;if(!n)return e;if("0"===e)return"0"+t;if(0===e)return"0"+t;const o=n.find(t=>t.value===e);return o?o.output:e+t}function Il(e,t){if("object"!=typeof e||"object"!=typeof t)return!1;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],l=t[n];if(o&&!l||!o&&l)return!1}return!0}function Al(e,t){if("object"!=typeof e||"object"!=typeof t)return t;if(e.length!=t.length)return t;let n=null;for(let o=0;o<e.length;o++){const l=e[o],a=t[o];l!==a&&(n=a)}return n?t.map(e=>typeof e==typeof n?e:""):t}function Rl({label:e,subLabel:t,onChange:n,onChangeTablet:l,onChangeMobile:a,mobileValue:r,tabletValue:i,value:s,onControl:c,control:u="individual",options:f=wl,step:b=1,max:m=100,min:g=0,unit:v="",onUnit:k,showUnit:x=!1,units:_=["px","em","rem"],isBorderRadius:C=!1,disableCustomSizes:S=!1,firstIcon:E=ll,secondIcon:j=al,thirdIcon:M=rl,fourthIcon:N=il,linkIcon:L=sl,unlinkIcon:R=cl,deskDefault:B=["","","",""],tabletDefault:P=["","","",""],mobileDefault:T=["","","",""],reset:F=!0,setCustomControl:D=null,onMouseOver:H,onMouseOut:V,allowAuto:z=!1}){const $=(0,y.useRef)(),U={first:C?fl:E,second:C?bl:j,third:C?ml:M,fourth:C?gl:N,link:C?vl:L,unlink:C?kl:R},[W,G]=(0,y.useState)(!1),[q,X]=(0,y.useState)(u),Z=D?customControl:W,J=D||G,Y=JSON.parse(JSON.stringify(f));Y.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,h.__)("Auto","kadence-blocks-pro"),size:0,name:(0,h.__)("Auto","kadence-blocks-pro")});const K=e=>{let t=[];return t=Z?[jl(f,e?e[0]:"",v),jl(f,e?e[1]:"",v),jl(f,e?e[2]:"",v),jl(f,e?e[3]:"",v)]:[El(f,e?e[0]:"",v),El(f,e?e[1]:"",v),El(f,e?e[2]:"",v),El(f,e?e[3]:"",v)],t},Q=c?u:q,ee=c||X,[te,ne]=(0,y.useState)("Desktop"),oe=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);oe!==te&&ne(oe),(0,y.useEffect)(()=>{let e=s;"Tablet"==oe?e=i:"Mobile"==oe&&(e=r),G(Sl(Y,e))},[oe]);const{setPreviewDeviceType:le}=(0,w.useDispatch)("kadenceblocks/data"),ae=[{name:"Desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let re=s||["","","",""];"Tablet"===te?re=i||["","","",""]:"Mobile"===te&&(re=r||["","","",""]);let ie=i?JSON.parse(JSON.stringify(i)):["","","",""];ie?.[0]||(ie[0]=s?.[0]?s[0]:""),ie?.[1]||(ie[1]=s?.[1]?s[1]:""),ie?.[2]||(ie[2]=s?.[2]?s[2]:""),ie?.[3]||(ie[3]=s?.[3]?s[3]:"");const se={};se.Mobile=(0,o.jsx)(Ol,{className:"measure-mobile-size",parentLabel:e,label:t?(0,h.__)("Mobile:","kadence-blocks-pro")+t:void 0,value:r||["","","",""],placeholder:ie,onChange:e=>a(Al(r,e)),control:Q,onControl:e=>ee(e),setCustomControl:J,customControl:Z,options:f,defaultValue:T,min:g,max:m,step:b,unit:v,onUnit:k||void 0,showUnit:!0,units:[v],isBorderRadius:C,firstIcon:E,secondIcon:j,thirdIcon:M,fourthIcon:N,linkIcon:L,unlinkIcon:R,onMouseOver:H,onMouseOut:V,allowAuto:z},2),se.Tablet=(0,o.jsx)(Ol,{className:"measure-tablet-size",parentLabel:e,label:t?(0,h.__)("Tablet:","kadence-blocks-pro")+t:void 0,value:i||["","","",""],placeholder:s||["","","",""],onChange:e=>l(Al(i,e)),control:Q,onControl:e=>ee(e),setCustomControl:J,customControl:Z,options:f,defaultValue:P,min:g,max:m,step:b,unit:v,onUnit:k||void 0,showUnit:!0,units:[v],isBorderRadius:C,firstIcon:E,secondIcon:j,thirdIcon:M,fourthIcon:N,linkIcon:L,unlinkIcon:R,onMouseOver:H,onMouseOut:V,allowAuto:z},1),se.Desktop=(0,o.jsx)(Ol,{className:"measure-desktop-size",parentLabel:e,label:t||void 0,value:s||["","","",""],onChange:e=>n(Al(s,e)),control:Q,onControl:e=>ee(e),setCustomControl:J,customControl:Z,options:f,defaultValue:B,min:g,max:m,step:b,unit:v,onUnit:k||void 0,showUnit:x,units:_,isBorderRadius:C,firstIcon:E,secondIcon:j,thirdIcon:M,fourthIcon:N,linkIcon:L,unlinkIcon:R,onMouseOver:H,onMouseOut:V,allowAuto:z},0);let ce=B;return"Mobile"===te?ce=T:"Mobile"===te&&(ce=P),[n&&l&&a&&(0,o.jsxs)("div",{ref:$,className:"components-base-control kb-responsive-measure-control kadence-measure-range-control",children:[(0,o.jsxs)(d.Flex,{justify:"space-between",className:"kadence-title-bar kadence-component__header kadence-measure-range__header kadence-radio-range__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),F&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(ce,re),icon:I,onClick:()=>{"Tablet"===te?l(P):"Mobile"===te?a(T):n(B)}})})]}),(0,o.jsx)(d.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(ae,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===te?" is-active":""}`,isSmall:!0,"aria-pressed":te===e,onClick:()=>{return le(A(t=e)),void ne(A(t));var t},children:n},t))}),!S&&!t&&(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:Z?(0,h.__)("Use size preset","kadence-blocks-pro"):(0,h.__)("Set custom size","kadence-blocks-pro"),icon:O,isSmall:!0,onClick:()=>{(()=>{if("Mobile"==te){const e=K(r);Il(r,e)&&a(e)}else if("Tablet"==te){const e=K(i);Il(i,e)&&l(e)}else{const e=K(s);Il(s,e)&&n(e)}})(),J(!Z)},isPressed:!!Z,isTertiary:!Z}),ee&&!t&&(0,o.jsx)(d.Button,{isSmall:!0,className:"kadence-radio-item radio-custom is-single only-icon",label:"individual"!==Q?(0,h.__)("Individual","kadence-blocks-pro"):(0,h.__)("Linked","kadence-blocks-pro"),icon:"individual"!==Q?U.link:U.unlink,onClick:()=>ee("individual"!==Q?"individual":"linked"),isPressed:"individual"!==Q,isTertiary:"individual"===Q})]}),(0,o.jsx)("div",{className:"kb-responsive-measure-control-inner",children:se[te]?se[te]:se.Desktop})]})]}function Bl({label:e,value:t,onChange:n,options:l=[],className:a,hideLabel:r=!1,wrap:i=!1,allowClear:s=!1,...c}){const u=`inspector-radio-control-${(0,C.useInstanceId)(Bl)}`;return(0,o.jsxs)("div",{className:"components-base-control kadence-radio-buttons-wrap"+(a?" "+a:""),children:[e&&(0,o.jsx)("div",{className:"kadence-component__header",children:(0,o.jsx)("label",{htmlFor:u,className:"kadence-radio-control-label components-radio-control__label kadence-component__header__title",children:e})}),(0,o.jsx)(d.ButtonGroup,{id:u,className:"kadence-radio-container-control"+(i?" kadence-radio-control-flexwrap":""),children:l.map((e,l)=>(0,o.jsx)(d.Button,{isTertiary:t!==e.value,className:`kadence-radio-item radio-${e.value}${r?" radio-no-label":""}${void 0!==e?.isDisabled&&e.isDisabled?" kb-disabled-btn":""}`,isPrimary:t===e.value,icon:void 0!==e.icon?e.icon:void 0,"aria-pressed":t===e.value,onClick:()=>{void 0!==e?.isDisabled&&e.isDisabled||(s&&e.value===t?n(""):n(e.value))},label:r?e.label:e?.tooltip,children:!r&&e.label},`${e.label}-${e.value}-${l}`))})]})}(0,h.__)("None","kadence-blocks-pro"),(0,h.__)("None","kadence-blocks-pro"),(0,h.__)("XS","kadence-blocks-pro"),(0,h.__)("X Small","kadence-blocks-pro"),(0,h.__)("SM","kadence-blocks-pro"),(0,h.__)("Small","kadence-blocks-pro"),(0,h.__)("MD","kadence-blocks-pro"),(0,h.__)("Medium","kadence-blocks-pro"),(0,h.__)("LG","kadence-blocks-pro"),(0,h.__)("Large","kadence-blocks-pro"),document.body?.classList.contains("rtl");const Pl=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 136 136",children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{fill:"#929292",strokeWidth:"0",d:"M68 35.97c-17.66 0-32.03 14.37-32.03 32.03S50.34 100.03 68 100.03 100.03 85.66 100.03 68 85.66 35.97 68 35.97M91.03 68c0 4.51-1.31 8.73-3.57 12.29l-32.13-31.5c3.64-2.4 7.99-3.81 12.67-3.81 12.7 0 23.03 10.33 23.03 23.03Zm-46.06 0c0-4.77 1.46-9.21 3.96-12.89l32.33 31.7A22.92 22.92 0 0 1 68 91.03C55.3 91.03 44.97 80.7 44.97 68"})})});class Tl extends y.Component{constructor(e,t=!0,n,o,l,a,r,i,s,c,d,u,p,h,f,b,m,g){super(...arguments)}render(){const e=[{value:"none",label:(0,h.__)("None","kadence-blocks-pro"),icon:Pl},{value:"soft-inner-glow",label:(0,h.__)("Soft Inner Glow","kadence-blocks-pro"),icon:"soft-inner-glow"},{value:"soft-outer-glow",label:(0,h.__)("Soft Outer Glow","kadence-blocks-pro"),icon:"soft-outer-glow"},{value:"right-offset-glow",label:(0,h.__)("Right Offset Glow","kadence-blocks-pro"),icon:"right-offset-glow"},{value:"bottom-offset-glow",label:(0,h.__)("Bottom Offset Glow","kadence-blocks-pro"),icon:"bottom-offset-glow"},{value:"inner-solid",label:(0,h.__)("Inner Solid","kadence-blocks-pro"),icon:"inner-solid"},{value:"right-bottom-solid",label:(0,h.__)("Right Bottom Solid","kadence-blocks-pro"),icon:"right-bottom-solid"},{value:"top-left-solid",label:(0,h.__)("Top Left Solid","kadence-blocks-pro"),icon:"top-left-solid"}],t={none:{hOffset:0,vOffset:0,blur:0,spread:0,inset:!1},"soft-inner-glow":{hOffset:0,vOffset:0,blur:60,spread:-15,inset:!0},"soft-outer-glow":{hOffset:0,vOffset:0,blur:60,spread:5,inset:!1},"right-offset-glow":{hOffset:20,vOffset:20,blur:30,spread:0,inset:!1},"bottom-offset-glow":{hOffset:0,vOffset:35,blur:30,spread:-5,inset:!1},"inner-solid":{hOffset:0,vOffset:0,blur:0,spread:15,inset:!0},"right-bottom-solid":{hOffset:15,vOffset:15,blur:0,spread:0,inset:!1},"top-left-solid":{hOffset:-15,vOffset:-15,blur:0,spread:0,inset:!1}},n=e=>{Promise.resolve().then(()=>this.props.onHOffsetChange(t[e].hOffset)).then(()=>this.props.onVOffsetChange(t[e].vOffset)).then(()=>this.props.onBlurChange(t[e].blur)).then(()=>this.props.onSpreadChange(t[e].spread)).then(()=>this.props.onInsetChange(t[e].inset))};return(0,o.jsxs)("div",{className:"components-base-control kt-box-shadow-container",children:[this.props.label&&(0,o.jsxs)("div",{className:"kt-box-shadow-label",children:[(0,o.jsx)("h2",{className:"kt-beside-color-label",children:this.props.label}),this.props.onEnableChange&&(0,o.jsx)(d.ToggleControl,{checked:this.props.enable,onChange:e=>this.props.onEnableChange(e)})]}),this.props.enable&&(0,o.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,o.jsx)(Bl,{value:0,options:e,wrap:!0,hideLabel:!0,className:"kadence-box-shadow-radio-btns",onChange:e=>{n(e)}}),(0,o.jsxs)("div",{className:"kt-inner-sub-section-row",children:[(0,o.jsxs)("div",{className:"kt-box-color-settings kt-box-shadow-subset",children:[(0,o.jsx)("p",{className:"kt-box-shadow-title",children:(0,h.__)("Color")}),(0,o.jsx)(nl,{value:this.props.color?this.props.color:this.props.colorDefault,default:this.props.colorDefault,onChange:e=>this.props.onColorChange(e),opacityValue:this.props.opacity,onOpacityChange:e=>this.props.onOpacityChange(e),onArrayChange:this.props.onArrayChange?(e,t)=>this.props.onArrayChange(e,t):void 0})]}),(0,o.jsxs)("div",{className:"kt-box-x-settings kt-box-shadow-subset",children:[(0,o.jsx)("p",{className:"kt-box-shadow-title",children:(0,h.__)("X")}),(0,o.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,o.jsx)("div",{className:"components-base-control__field",children:(0,o.jsx)("input",{value:void 0!==this.props.hOffset?this.props.hOffset:"",onChange:e=>this.props.onHOffsetChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,o.jsxs)("div",{className:"kt-box-y-settings kt-box-shadow-subset",children:[(0,o.jsx)("p",{className:"kt-box-shadow-title",children:(0,h.__)("Y")}),(0,o.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,o.jsx)("div",{className:"components-base-control__field",children:(0,o.jsx)("input",{value:void 0!==this.props.vOffset?this.props.vOffset:"",onChange:e=>this.props.onVOffsetChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,o.jsxs)("div",{className:"kt-box-blur-settings kt-box-shadow-subset",children:[(0,o.jsx)("p",{className:"kt-box-shadow-title",children:(0,h.__)("Blur")}),(0,o.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,o.jsx)("div",{className:"components-base-control__field",children:(0,o.jsx)("input",{value:void 0!==this.props.blur?this.props.blur:"",onChange:e=>this.props.onBlurChange(Number(e.target.value)),min:0,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,o.jsxs)("div",{className:"kt-box-spread-settings kt-box-shadow-subset",children:[(0,o.jsx)("p",{className:"kt-box-shadow-title",children:(0,h.__)("Spread")}),(0,o.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,o.jsx)("div",{className:"components-base-control__field",children:(0,o.jsx)("input",{value:void 0!==this.props.spread?this.props.spread:"",onChange:e=>this.props.onSpreadChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]})]}),this.props.onInsetChange&&(0,o.jsx)("div",{className:"kt-box-inset-settings",children:(0,o.jsx)(d.ToggleControl,{label:(0,h.__)("Inset"),checked:this.props.inset,onChange:e=>this.props.onInsetChange(e)})})]})]})}}const Fl=Tl,Dl=window.wp.hooks,Hl=e=>e.map((e,t)=>{const{nE:n,aBs:o,children:l=null}=e,a=Object.keys(o).filter(e=>"fill"!==e&&"stroke"!==e&&"none"!==o[e]).reduce((e,t)=>(e[t]=o[t],e),{});let r={};return"none"===o.fill&&o.stroke&&(r={fill:"none",stroke:"currentColor"}),(0,y.createElement)(n,{key:t,...a,...r},null===l?l:Hl(l))}),Vl=e=>{const{style:t,className:n,icon:l,name:a,htmltag:r,...i}=e,s=a.substring(0,2),c=a.substring(0,3),d=!(!s||"fe"!=s),u=d?"none":"currentColor",p=d?e.strokeWidth:void 0,h=d?"currentColor":void 0,f=d?"round":void 0,b=d?"round":void 0,m=e.ariaHidden?"true":void 0,g=r||"div",v=!(!e.icon||!e.icon.vB)&&e.icon.vB.split(" ");return(0,o.jsx)(g,{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",...t},className:n,children:(0,o.jsxs)("svg",{style:{display:"inline-block",verticalAlign:"middle"},viewBox:e.icon?e.icon.vB:"0 0 24 24",height:e.size,width:e.size,fill:u,stroke:h,xmlns:e.xmlns,preserveAspectRatio:c&&"fas"!==c&&v&&void 0!==v[2]&&void 0!==v[3]&&v[2]!==v[3]?"xMinYMin meet":void 0,"stroke-width":p,"stroke-linecap":f,"stroke-linejoin":b,"aria-hidden":m,children:[e.title?(0,o.jsx)("title",{children:e.title}):null,e.icon&&Hl(e.icon.cD)]})})};Vl.defaultProps={size:24,xmlns:"http://www.w3.org/2000/svg",strokeWidth:2,htmltag:"div"},Vl.propTypes={icon:ne().string.isRequired,size:ne().oneOfType([ne().number,ne().string]),style:ne().object,className:ne().string};const zl=Vl,$l=(0,a.createElement)(S.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(S.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Ul=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Wl=(0,a.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(S.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),Gl=window.wp.apiFetch;var ql=n.n(Gl);const Xl=window.wp.notices,Zl=window.wp.url;function Jl({isOpen:e,setIsOpen:t,callback:n}){const[l,a]=(0,y.useState)(""),[r,i]=(0,y.useState)([]),[s,c]=(0,y.useState)([]),[u,p]=(0,y.useState)(null),[f,b]=(0,y.useState)(!1),[m,g]=(0,y.useState)(!1),[v,k]=(0,y.useState)(!1),[x,_]=(0,y.useState)(0),{createSuccessNotice:C}=(0,w.useDispatch)(Xl.store),[S,E]=(0,y.useState)(1),[j,O]=(0,y.useState)(!1),M=(0,y.useRef)(null);(0,y.useEffect)(()=>{e&&M.current&&M.current.focus()},[e]);const N=async()=>{if(i([]),c([]),p(null),b(!0),E(1),_(0),l)try{const e=await ql()({path:(0,Zl.addQueryArgs)("/kb-custom-svg/v1/search",{search:l,page:1}),method:"GET"});e.success?(i(e),c(e.svgs.icons),O(e.svgs.has_more)):p(`Error ${e.code}: ${e.message||"Unexpected error occurred."}`)}catch(e){p(`Error ${e.code||"unknown"}: ${e.message||"An unexpected error occurred."}`)}finally{b(!1)}else b(!1)};return(0,o.jsxs)("div",{className:"svg-search-modal",children:[(0,o.jsxs)("div",{className:"svg-search-modal__input_row",children:[(0,o.jsx)(d.TextControl,{label:(0,h.__)("Search Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:l,placeholder:(0,h.__)("Search Icons","kadence-blocks-pro"),onChange:e=>{a(e)},onKeyDown:e=>{"Enter"===e.key&&N()},ref:M}),(0,o.jsx)(d.Button,{isPrimary:!0,className:"svg-search-modal__search-button",onClick:N,isBusy:f,disabled:f||0===l.length||m||v,children:(0,h.__)("Search","kadence-blocks-pro")})]}),f&&(0,o.jsx)("div",{className:"svg-search-modal__loading",children:(0,o.jsx)(d.Spinner,{className:"wp-spinner"})}),!f&&s.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ul",{className:"svg-search-modal__results",children:s.map((e,t)=>(0,o.jsx)("li",{onClick:()=>(e=>{_(e)})(t),style:{width:"84px",height:"88px",border:x===t?"2px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))":"2px solid transparent"},children:(0,o.jsx)("img",{src:e.url,alt:e.title})},t))}),(0,o.jsxs)("div",{className:"footer",children:[(0,o.jsx)(d.Button,{isSecondary:!0,onClick:async()=>{if(j){p(null),g(!0);try{const e=S+1,t=await ql()({path:(0,Zl.addQueryArgs)("/kb-custom-svg/v1/search",{search:l,page:e}),method:"GET"});t.svgs&&t.svgs.icons?(c(e=>[...e,...t.svgs.icons]),E(e),O(t.svgs.has_more)):p("No further results found.")}catch(e){p("Failed to load more icons, please try again.")}finally{g(!1)}}},isBusy:m,disabled:!j||v,children:(0,h.__)("Load More","kadence-blocks-pro")}),(0,o.jsx)(d.Button,{isPrimary:!0,isBusy:v,disabled:m,onClick:()=>(async()=>{if(s&&x>=0){const e=s[x];if(!e||!e.url)return void p((0,h.__)("Selected SVG is invalid. Please try again.","kadence-blocks-pro"));const o=e.url;k(!0);try{const l=await ql()({path:"/kb-custom-svg/v1/search/add",method:"POST",data:{svgUrl:o,title:e.title||"",id:e.id||""}});if(!l?.value||!l?.label)throw new Error((0,h.__)("Invalid response from the server.","kadence-blocks-pro"));C((0,h.__)("SVG Saved.","kadence-blocks-pro"),{type:"snackbar"}),n(l.value),t(!1)}catch(e){p((0,h.__)("Failed to add the SVG. Please try again.","kadence-blocks-pro"))}finally{k(!1)}}else p((0,h.__)("No SVG selected","kadence-blocks-pro"))})(),children:(0,h.__)("Add","kadence-blocks-pro")})]})]}),u&&(0,o.jsx)("p",{className:"svg-search-modal__error",style:{color:"red"},children:u}),!f&&!u&&(!r||r.svgs&&0===r.svgs.icons.length)&&(0,o.jsx)("p",{className:"svg-search-modal__no-results",children:(0,h.__)("No results found. Please try a different search.","kadence-blocks-pro")}),!f&&!r.svgs&&!u&&(0,o.jsx)("p",{className:"svg-search-modal__start-search",children:(0,h.__)("Start Search...","kadence-blocks-pro")})]})}const Yl=(e,t)=>{var n=e.split(".").map(e=>isNaN(parseInt(e))?e:parseInt(e)).filter(e=>!isNaN(e)),o=t.split(".").map(e=>isNaN(parseInt(e))?e:parseInt(e)).filter(e=>!isNaN(e));for(let e=0;e<Math.max(n.length,o.length);e++){if(e>=n.length){if(0===o[e])continue;return-1}if(e>=o.length){if(0===n[e])continue;return 1}if(n[e]>o[e])return 1;if(n[e]<o[e])return-1}return 0};function Kl({isOpen:e,setIsOpen:t,callback:n,proVersion:l}){const[a,r]=(0,y.useState)("upload"),[i,s]=(0,y.useState)(""),[c,u]=(0,y.useState)(""),[f,b]=(0,y.useState)(null),[m,g]=(0,y.useState)(""),{createSuccessNotice:v}=(0,w.useDispatch)(Xl.store),k=Yl(l,"2.7.0")>=0;return(0,o.jsx)(o.Fragment,{children:e&&(0,o.jsx)(d.Modal,{title:(0,h.__)("Add a Custom Icon ","kadence-blocks-pro"),className:"upload-svg-modal",size:"medium",onRequestClose:()=>t(!1),children:(0,o.jsx)(d.TabPanel,{className:"kb-icon-block__add-icon-modal-tabs",activeClass:"active-tab",tabs:[{name:"upload",title:"Upload",className:"tab-one"},...k?[{name:"search",title:"Search",className:"tab-two"}]:[]],children:l=>(0,o.jsxs)("div",{className:"modal-body",children:["upload"===l.name&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"security-notice",children:[(0,o.jsx)("h4",{children:(0,h.__)("Important: SVG Safety","kadence-blocks-pro")}),(0,o.jsxs)("p",{children:[(0,h.__)("SVGs can contain malicious code. For your security, we suggest sanitizing your files before uploading.","kadence-blocks-pro")," ",(0,o.jsx)("a",{href:"https://www.kadencewp.com/help-center/?post_type=docs&p=8510",children:(0,h.__)("Learn more about SVG security and supported SVG formatting.","kadence-blocks-pro")})]})]}),""!==c&&(0,o.jsx)("div",{className:"error-message",children:c}),"upload"===a&&(0,o.jsxs)("div",{className:"drag-drop-container",children:[(0,o.jsx)(d.TextControl,{placeholder:(0,h.__)("Title your SVG","kadence-blocks-pro"),value:m,onChange:e=>g(e)}),(0,o.jsx)(d.FormFileUpload,{accept:"image/svg+xml",onChange:e=>{b(e.currentTarget.files),""===m&&g((0,p.get)(e.currentTarget.files,["0","name"],"").replace(".svg",""))},render:({openFileDialog:e})=>(0,o.jsxs)("div",{onClick:e,className:"drag-drop-target",style:{position:"relative"},children:[(0,o.jsx)(d.DropZone,{label:(0,h.__)("Upload SVG","kadence-blocks-pro"),onFilesDrop:e=>{b(e),""===m&&g((0,p.get)(e,["0","name"],"").replace(".svg",""))}}),null===f||0===f.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{children:(0,h.__)("Select a file or drop it here","kadence-blocks-pro")}),(0,o.jsx)("p",{children:(0,h.__)("SVG dimensions: 24px by 24px","kadence-blocks-pro")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{children:(0,h.__)("File Selected","kadence-blocks-pro")}),(0,o.jsx)("p",{children:(0,p.get)(f,["0","name"],"")})]}),(0,o.jsx)(d.Button,{isPrimary:!0,children:null===f?(0,h.__)("Select a file","kadence-blocks-pro"):(0,h.__)("Change file","kadence-blocks-pro")})]})}),(0,o.jsx)(d.Button,{type:"link",onClick:()=>{r("paste"),b(null)},children:(0,h.__)("Paste an SVG","kadence-blocks-pro")})]}),"paste"===a&&(0,o.jsxs)("div",{className:"paste-container",children:[(0,o.jsx)("h3",{children:(0,h.__)("Paste your SVG","kadence-blocks-pro")}),(0,o.jsx)(d.TextControl,{placeholder:(0,h.__)("Title your SVG","kadence-blocks-pro"),value:m,onChange:e=>g(e)}),(0,o.jsx)(d.TextareaControl,{value:i,onChange:e=>s(e)}),(0,o.jsx)(d.Button,{type:"link",onClick:()=>{r("upload"),s("")},children:(0,h.__)("Upload an SVG","kadence-blocks-pro")})]}),(0,o.jsxs)("div",{className:"footer",children:[(0,o.jsx)(d.Button,{isSecondary:!0,onClick:()=>t(!1),children:(0,h.__)("Cancel","kadence-blocks-pro")}),(0,o.jsx)(d.Button,{isPrimary:!0,onClick:()=>{!function(){const e=new FileReader;let o;if("upload"==(null!==f?"upload":"paste")){if(!f||0===f.length)return void u((0,h.__)("No file selected","kadence-blocks-pro"));if(o=f[0],"image/svg+xml"!==o.type)return void u((0,h.__)("The selected file is not an SVG","kadence-blocks-pro"))}else{if(!i.trim())return void u((0,h.__)("No SVG content pasted","kadence-blocks-pro"));o=new Blob([i],{type:"image/svg+xml"})}e.onload=function(e){const o=e.target.result;""!==o&&ql()({path:"/kb-custom-svg/v1/manage",data:{file:o,title:m},method:"POST"}).then(e=>{(0,p.has)(e,"value")&&(0,p.has)(e,"label")?(v((0,h.__)("SVG Saved.","kadence-blocks-pro"),{type:"snackbar"}),n(e.value),t(!1)):(0,p.has)(e,"error")&&(0,p.has)(e,"message")?u(e.message):u((0,h.__)("An error occurred when uploading your file","kadence-blocks-pro"))})},e.readAsText(o)}()},children:(0,h.__)("Add","kadence-blocks-pro")})]})]}),"search"===l.name&&k&&(0,o.jsx)(Jl,{isOpen:e,setIsOpen:t,callback:n})]})})})})}function Ql({isOpen:e,setIsOpen:t,id:n,callback:l}){const{createSuccessNotice:a,createErrorNotice:r}=(0,w.useDispatch)(Xl.store),i=()=>{r((0,h.__)("There was an error deleting the SVG.","kadence-blocks-pro"),{type:"snackbar"})};return(0,o.jsx)(o.Fragment,{children:e&&null!==n&&(0,o.jsxs)(d.Modal,{title:(0,h.__)("Delete SVG"),onRequestClose:()=>t(!1),children:[(0,o.jsx)(d.Button,{isSecondary:!0,onClick:()=>t(!1),children:(0,h.__)("Cancel","kadence-blocks-pro")}),(0,o.jsx)(d.Button,{isDestructive:!0,onClick:()=>{(e=>{ql()({path:`/wp/v2/kadence_custom_svg/${e}`,method:"DELETE"}).then(e=>{console.log("response"),console.log(e),(0,p.get)(e,"id",!1)?(a((0,h.__)("SVG Deleted.","kadence-blocks-pro"),{type:"snackbar"}),l()):(0,p.has)(e,"error")&&(0,p.has)(e,"message")?(console.log(e.message),i()):(console.log("An error occurred when delete your svg"),i())}).catch(e=>{console.log(e),i()})})(n),t(!1)},children:(0,h.__)("Delete","kadence-blocks-pro")})]})})}class ea extends y.Component{constructor(){super(...arguments),this.updateIcons=this.updateIcons.bind(this),this.getCustomSvg=this.getCustomSvg.bind(this),this.state={iconOptions:void 0,isLoading:!1,customSvg:""}}componentDidMount(){const e={...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons};this.setState({iconOptions:(0,Dl.applyFilters)("kadence.icon_options",e)}),this.props.name.startsWith("kb-custom")&&this.getCustomSvg(this.props.name.replace("kb-custom-",""))}componentDidUpdate(e,t,n){this.props.name!==e.name&&this.props.name.startsWith("kb-custom")&&this.getCustomSvg(this.props.name.replace("kb-custom-",""))}getCustomSvg=async e=>{try{const t=localStorage.getItem(`kb-custom-${e}`);if(t)return void this.setState({customSvg:JSON.parse(t)});this.setState({isLoading:!0});const n=await(async e=>{const t=await fetch(`/wp-json/wp/v2/kadence_custom_svg/${e}`,{method:"GET"});if(!t.ok)throw new Error("Network response was not ok");return t.json()})(e);if(n){const t=n.content.rendered.replace("<p>","").replace("</p>","").replace(/“/g,'"').replace(/”/g,'"').replace(/„/g,'"').replace(/″/g,'"'),o=JSON.parse(t);localStorage.setItem(`kb-custom-${e}`,JSON.stringify(o)),this.setState({customSvg:o})}else this.setState({customSvg:""})}catch(e){this.setState({customSvg:""}),console.error("Failed to fetch custom SVGs:",e)}this.setState({isLoading:!1})};updateIcons(){const e={...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons};return(0,Dl.applyFilters)("kadence.icon_options",e)}render(){const{name:e}=this.props;let{iconOptions:t,isLoading:n,customSvg:l}=this.state;return t||(t=this.updateIcons()),e.startsWith("kb-custom")&&n?(0,o.jsx)(d.Spinner,{}):e.startsWith("kb-custom")&&""!==l?(0,o.jsx)(zl,{name:e,icon:l,...this.props}):(0,o.jsx)(zl,{name:e,icon:t[e],...this.props})}}const ta=ea;function na({value:e,onChange:t,label:n,placeholder:l=(0,h.__)("Select Icon","kadence-blocks-pro"),showSearch:a=!0,renderFunc:r=null,className:i,theme:s="default",allowClear:c=!1,icons:u=null}){const[f,b]=(0,y.useState)(),[m,g]=(0,y.useState)(!1),[v,k]=(0,y.useState)(""),[x,w]=(0,y.useState)("all"),[_,C]=(0,y.useState)(!1),[S,E]=(0,y.useState)(!1),[j,O]=(0,y.useState)(null),[M,N]=(0,y.useState)(!1),[L,I]=(0,y.useState)([]),[A,R]=(0,y.useState)(!1),B=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro),P=window?.kbpData?(0,p.get)(window.kbpData,["pVersion"],"1.0.0"):"1.0.0",T=Yl(P,"2.4.0")>=0,F=(0,p.debounce)(()=>{g(!m)},100),D=async(e=!1)=>{if(e||B&&T&&!1===M&&!A){try{R(!0);const t=await oa(e);if(t.length>0){const e=t.map(e=>e.id.toString()),n={};t.forEach(e=>{n[e.id.toString()]=e.title.rendered.toLowerCase()}),!(0,p.isEqual)(e,M)&&e.length>0&&(N(e),I(n))}else N([])}catch(e){N([]),console.error("Failed to fetch custom SVGs (picker):",e)}R(!1)}};(0,y.useEffect)(()=>{D()});const H=(0,h.__)("My Icons","kadence-blocks-pro"),V=(0,y.useMemo)(()=>{if(u){const e=u.map(e=>({value:e,label:e}));return M.length>0?{[H]:M,...e}:B&&T?{[H]:["placeholder"],...e}:e}const e=(0,Dl.applyFilters)("kadence.icon_options_names",kadence_blocks_params.icon_names);return M.length>0?{[H]:M,...e}:B&&T?{[H]:["placeholder"],...e}:e},[kadence_blocks_params.icon_names,u,M]),z=(0,y.useMemo)(()=>(0,Dl.applyFilters)("kadence.icon_options",{...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons}),[kadence_blocks_params_ico.icons,kadence_blocks_params_fa.icons,M]),$=(0,y.useMemo)(()=>{let e=Object.keys(V).map((e,t)=>({value:t,label:e}));return[{value:"all",label:(0,h.__)("Show All","kadence-blocks-pro")},...e]},[kadence_blocks_params.icon_names,V]),U=(0,y.useCallback)(e=>e.startsWith("kb-custom")?(0,o.jsx)(ta,{className:`kt-svg-icon-single-${e}`,name:e}):(0,o.jsx)(zl,{className:`kt-svg-icon-single-${e}`,name:e,icon:z[e]}),[z]),W=r||U,G=(0,y.useMemo)(()=>{let e={};if(!u){const t=v.toLowerCase();Object.keys(V).map((n,o)=>{"all"!==x&&o!==parseInt(x)||V[n].map((l,a)=>{const r=l.toLowerCase();if(""===v||r.includes(t)||0===o&&(0,p.has)(L,r.toString())&&L[r.toString()].includes(t))return e={...e,[o]:{label:n,icons:{...e[o]?.icons,[l]:z[l]}}},l})})}return e},[v,x,V]);return(0,o.jsxs)("div",{className:"kadence-icon-picker",children:[(0,o.jsx)(Kl,{isOpen:_,setIsOpen:C,callback:e=>{t("kb-custom-"+e.toString()),D(!0)},proVersion:P}),(0,o.jsx)(Ql,{isOpen:S,setIsOpen:E,id:j,callback:()=>{D(!0),O(null)}}),(0,o.jsxs)("div",{className:`kadence-icon-picker-selection kadence-icon-picker-theme-${s||"default"}${i?" "+i:""}`,children:[n&&(0,o.jsx)("div",{className:"kadence-icon-picker__title",children:(0,o.jsx)("label",{className:"components-base-control__label",children:n})}),(0,o.jsxs)("div",{className:"kadence-icon-picker-toggle-wrap",children:[(0,o.jsxs)("button",{onClick:()=>F(),ref:b,className:"kadence-icon-picker-link kadence-icon-picker-selection-toggle",children:[(0,o.jsx)("span",{className:"kadence-icon-picker-selection-value"+(e?"":" kadence-icon-picker-placeholder"),children:e?W(e):l}),(0,o.jsx)("span",{className:"kadence-icon-picker-selection-arrow",children:(0,o.jsx)(d.Icon,{icon:$l})})]}),e&&c&&(0,o.jsx)("button",{className:"kadence-icon-picker-clear",onClick:()=>{t(""),g(!1)},children:(0,o.jsx)(d.Icon,{icon:Ul})})]})]}),m&&(0,o.jsx)(d.Popover,{headerTitle:(0,h.__)("Select Icon","kadence-blocks-pro"),noArrow:!1,onClose:F,placement:"bottom-end",anchor:f,className:`kadence-icon-picker-pop-selection kadence-icon-picker-pop-theme-${s||"default"}`,children:(0,o.jsxs)("div",{className:"kadence-icon-picker-container",children:[a&&(0,o.jsxs)("div",{className:"kadence-icon-picker-search",children:[(0,o.jsx)(d.TextControl,{label:(0,h.__)("Search Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:v,placeholder:(0,h.__)("Search Icons","kadence-blocks-pro"),onChange:e=>k(e)}),(0,o.jsx)(d.SelectControl,{label:(0,h.__)("Filter Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:x,options:$,onChange:w})]}),(0,o.jsxs)("div",{className:"kadence-icon-picker-content"+(a?" has-search":""),children:[u&&(0,o.jsx)("div",{className:"kadence-icon-grid-wrap",children:u.map(e=>(0,o.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t(e),F()},children:W(e)}))}),!u&&(0,o.jsxs)(o.Fragment,{children:[0===Object.keys(G).length&&(0,o.jsx)("div",{style:{padding:"15px"},children:(0,o.jsx)("p",{children:(0,h.__)("No icons found","kadence-blocks-pro")})}),Object.keys(G).map(e=>(0,o.jsx)(d.PanelBody,{title:G[e].label,children:(0,o.jsxs)("div",{className:"kadence-icon-grid-wrap",children:[G[e].label===H&&""===v&&T&&B&&(0,o.jsx)("button",{className:"kadence-icon-picker-link add-custom-svg",onClick:()=>{C(!0),F()},children:(0,o.jsx)(d.Icon,{icon:Wl})}),Object.keys(G[e].icons).map(n=>{if(G[e].label===H){if("placeholder"===n)return;return(0,o.jsxs)("div",{className:"kb-custom-svg",children:[B&&T&&(0,o.jsx)("div",{className:"custom-svg-delete",onClick:()=>{O(n),E(!0)},children:(0,o.jsx)(d.Icon,{icon:Ul,size:20})}),(0,o.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t("kb-custom-"+n),F()},children:W("kb-custom-"+n)},G[e].label+n)]})}return(0,o.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t(n),F()},children:W(n)},G[e].label+n)})]})},e))]})]})]})})]})}const oa=async(e=!1)=>{const t={per_page:100};e&&(t.cache_bust=(new Date).getTime());const n=new URLSearchParams(t),o=await fetch(`/wp-json/wp/v2/kadence_custom_svg?${n.toString()}`,{method:"GET"});if(!o.ok)throw new Error("Network response was not ok");return o.json()};function la(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.size:""}function aa({label:e,onChange:t,value:n="",className:l="",options:a=Nl,step:r=1,max:i=200,min:s=0,defaultValue:c="",unit:u="px",onUnit:f,units:b=["px","em","rem"],disableCustomSizes:m=!1,customControl:g=!1,setCustomControl:v=null,parentLabel:k=null,reset:x=!0,radio:w=!0}){const[_,C]=(0,y.useState)(!1);(0,y.useEffect)(()=>{C(function(e,t){return!!t&&!!e&&!e.find(e=>e.value===t)}(a,n))},[]);const S=v?g:_,E=v||C,j=b.map(e=>({value:e,label:e})),M=S?n:function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.value:""}(a,n),N=[{value:"",output:"",size:"",label:(0,h.__)("Inherit","kadence-blocks-pro"),name:(0,h.__)("Inherit","kadence-blocks-pro")},...a];return[t&&(0,o.jsxs)("div",{className:"components-base-control component-font-size-control kadence-font-size-control"+(l?" "+l:""),children:[!v&&e&&(0,o.jsx)("div",{className:"kadence-font-size-control__header kadence-component__header",children:(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),x&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(c,n),icon:I,onClick:()=>{"function"==typeof x?x():t(c)}})})]})}),!S&&w&&(0,o.jsx)("div",{className:"kadence-controls-content",children:(0,o.jsxs)(d.ButtonGroup,{className:"kadence-radio-container-control",children:[a.map((e,n)=>(0,o.jsx)(d.Button,{isTertiary:M!==e.value,className:"kadence-radio-item radio-"+e.value,isPrimary:M===e.value,icon:void 0!==e.icon?e.icon:void 0,"aria-pressed":M===e.value,onClick:()=>{M==e.value&&""==c?t(""):t(e.value)},children:e.label},`${e.label}-${e.value}-${n}`)),!m&&(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,h.__)("Set custom size","kadence-blocks-pro"),icon:O,onClick:()=>{M&&"px"===u&&t(la(a,M)),E(!0)},isPressed:!1,isTertiary:!0})]})}),!S&&!w&&(0,o.jsxs)("div",{className:"kadence-controls-content kadence-font-size-select-control-wrap",children:[(0,o.jsx)(d.SelectControl,{className:"kadence-font-size-select-control",value:M,options:N,onChange:e=>{t(M==e&&""==c?"":e)}}),!m&&(0,o.jsx)(d.ButtonGroup,{className:"kadence-radio-container-control",children:(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,h.__)("Set custom size","kadence-blocks-pro"),icon:O,onClick:()=>{M&&"px"===u&&t(la(a,M)),E(!0)},isPressed:!1,isTertiary:!0})})]}),S&&(0,o.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,o.jsx)(d.__experimentalUnitControl,{label:k&&e?e:void 0,labelPosition:"top",min:s,max:i,step:r,units:j,value:n,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e)}),(0,o.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{f(e.target.value)},value:u,children:b.map(e=>(0,o.jsx)("option",{value:e,selected:u===e||void 0,children:e},e))})}),!m&&(0,o.jsx)(d.ButtonGroup,{className:"kadence-radio-container-control",children:(0,o.jsx)(d.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,h.__)("Use size preset","kadence-blocks-pro"),icon:O,isPrimary:!0,onClick:()=>{n&&"px"===u&&t(function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return"";const n=e.find(e=>e.size===t);return n?n.value:""}(a,n)),E(!1)},isPressed:!0})})]})]})]}function ra({label:e,onChange:t,onChangeTablet:n,onChangeMobile:l,mobileValue:a,tabletValue:r,value:i,units:s=["px","em","rem"],onUnit:c,options:u=Nl,step:f=1,max:b=200,min:m=0,unit:g="px",defaultValue:v=["","",""],reset:k=!0,radio:x=!0,compressedDevice:_=!1}){const C=(0,y.useRef)(),[S,E]=(0,y.useState)("Desktop"),j=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);j!==S&&E(j);const{setPreviewDeviceType:O}=(0,w.useDispatch)("kadenceblocks/data"),M=e=>{O(A(e)),E(A(e))},N=[{name:"Desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],L=[i,r,a],R={};R.Mobile=(0,o.jsx)(aa,{value:a||void 0,onChange:e=>l(e),options:u,onUnit:c,defaultValue:v[2],units:s,step:f,max:b,min:m,unit:g,radio:x}),R.Tablet=(0,o.jsx)(aa,{value:r||void 0,onChange:e=>n(e),options:u,onUnit:c,defaultValue:v[1],units:s,step:f,max:b,min:m,unit:g,radio:x}),R.Desktop=(0,o.jsx)(aa,{value:i||void 0,onChange:e=>t(e),options:u,onUnit:c,defaultValue:v[0],units:s,step:f,max:b,min:m,unit:g,radio:x});const B={Desktop:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),Tablet:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),Mobile:(0,o.jsx)(d.Dashicon,{icon:"smartphone"})};return[t&&n&&l&&(0,o.jsxs)("div",{ref:C,className:"components-base-control kb-responsive-font-size-control kadence-font-size-control",children:[(0,o.jsxs)("div",{className:"kadence-font-size-control__header kadence-component__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-font-size__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(v,L),icon:I,onClick:()=>{"function"==typeof k?k():"Mobile"===S?l(v[2]):"Tablet"===S?n(v[1]):t(v[0])}})})]}),!_&&(0,o.jsx)(d.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(N,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===S?" is-active":""}`,isSmall:!0,"aria-pressed":S===e,onClick:()=>M(e),children:n},t))}),_&&(0,o.jsx)(d.DropdownMenu,{className:"kb-responsive-options-dropdown",icon:B[S]?B[S]:B.Desktop,label:(0,h.__)("Target Device","kadence-blocks-pro"),controls:N.map(e=>{return[{title:(t=e).name,icon:t.title,isActive:S===t.name,onClick:()=>{M(t.name)}}];var t})})]}),(0,o.jsx)("div",{className:"kb-responsive-border-control-inner",children:R[S]?R[S]:R.Desktop})]})]}function ia({label:e,onChange:t,value:n="",className:l="",step:a=1,max:r=200,min:i=0,defaultValue:s="",unit:c="",onUnit:u,units:h=["px","em","rem"],parentLabel:f=null,reset:b=!0}){const m=h.map(e=>({value:e,label:e}));return[t&&(0,o.jsxs)("div",{className:"components-base-control component-font-size-control kadence-font-size-control"+(l?" "+l:""),children:[e&&(0,o.jsx)("div",{className:"kadence-font-size-control__header kadence-component__header",children:(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),b&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(s,n),icon:I,onClick:()=>{"function"==typeof b?b():t(s)}})})]})}),(0,o.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,o.jsx)(d.__experimentalUnitControl,{label:f&&e?e:void 0,labelPosition:"top",min:i,max:r,step:a,units:m,value:n,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e)}),(0,o.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,o.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{"-"===e.target.value?u(""):u(e.target.value)},value:c,children:h.map(e=>(0,o.jsx)("option",{value:e,selected:c===e||""===c&&"-"===e||void 0,children:e},e))})})]})]})]}function sa({label:e,onChange:t,onChangeTablet:n,onChangeMobile:l,mobileValue:a,tabletValue:r,value:i,units:s=["px","em","rem"],onUnit:c,step:u=1,max:f=200,min:b=0,unit:m="",defaultValue:g=["","",""],compressedDevice:v=!1,reset:k=!0}){const x=(0,y.useRef)(),[_,C]=(0,y.useState)("Desktop"),S=(0,w.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);S!==_&&C(S);const{setPreviewDeviceType:E}=(0,w.useDispatch)("kadenceblocks/data"),j=e=>{E(A(e)),C(A(e))},O=[{name:"Desktop",title:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,o.jsx)(d.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],M={Desktop:(0,o.jsx)(d.Dashicon,{icon:"desktop"}),Tablet:(0,o.jsx)(d.Dashicon,{icon:"tablet"}),Mobile:(0,o.jsx)(d.Dashicon,{icon:"smartphone"})},N=[i,r,a],L={};return L.Mobile=(0,o.jsx)(ia,{value:a||void 0,onChange:e=>l(e),onUnit:c,defaultValue:g[2],units:s,step:u,max:f,min:b,unit:m}),L.Tablet=(0,o.jsx)(ia,{value:r||void 0,onChange:e=>n(e),onUnit:c,defaultValue:g[1],units:s,step:u,max:f,min:b,unit:m}),L.Desktop=(0,o.jsx)(ia,{value:i||void 0,onChange:e=>t(e),onUnit:c,defaultValue:g[0],units:s,step:u,max:f,min:b,unit:m}),[t&&n&&l&&(0,o.jsxs)("div",{ref:x,className:"components-base-control kb-responsive-unit-control kadence-unit-control",children:[(0,o.jsxs)("div",{className:"kadence-unit-control__header kadence-component__header",children:[e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-unit__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(g,N),icon:I,onClick:()=>{"function"==typeof k?k():"Mobile"===_?l(g[2]):"Tablet"===_?n(g[1]):t(g[0])}})})]}),!v&&(0,o.jsx)(d.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,h.__)("Device","kadence-blocks-pro"),children:(0,p.map)(O,({name:e,key:t,title:n,itemClass:l})=>(0,o.jsx)(d.Button,{className:`kb-responsive-btn ${l}${e===_?" is-active":""}`,isSmall:!0,"aria-pressed":_===e,onClick:()=>j(e),children:n},t))}),v&&(0,o.jsx)(d.DropdownMenu,{className:"kb-responsive-options-dropdown",icon:M[_]?M[_]:M.Desktop,label:(0,h.__)("Target Device","kadence-blocks-pro"),controls:O.map(e=>{return[{title:(t=e).name,icon:t.title,isActive:_===t.name,onClick:()=>{j(t.name)}}];var t})})]}),(0,o.jsx)("div",{className:"kb-responsive-border-control-inner",children:L[_]?L[_]:L.Desktop})]})]}function ca({children:e}){return(0,o.jsx)("div",{className:"components-base-control kadence-two-column-group",children:e})}function da({level:e,isPressed:t=!1}){const n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z",span:"M.067 10.841l1.461-.092c.032.237.096.418.193.542.158.202.384.302.678.302.219 0 .388-.051.507-.154a.465.465 0 00.178-.358.454.454 0 00-.17-.345c-.113-.102-.375-.198-.786-.289-.674-.151-1.154-.352-1.441-.603a1.214 1.214 0 01-.434-.959c0-.255.074-.497.222-.724.148-.227.371-.405.668-.535.297-.13.705-.195 1.222-.195.635 0 1.119.118 1.453.354.333.236.531.612.594 1.127l-1.447.085c-.038-.224-.119-.387-.242-.488-.123-.102-.293-.153-.51-.153-.179 0-.313.038-.404.114a.346.346 0 00-.135.276c0 .079.037.15.112.213.072.066.244.127.515.183.671.145 1.152.291 1.442.439.29.148.502.332.634.551a1.4 1.4 0 01.198.736c0 .318-.088.612-.264.881a1.66 1.66 0 01-.739.612c-.317.139-.715.208-1.197.208-.845 0-1.43-.162-1.755-.488-.326-.325-.51-.739-.553-1.24zm5.274-3.326h2.552c.556 0 .973.133 1.249.397.277.264.416.641.416 1.129 0 .501-.151.893-.453 1.176-.301.282-.762.424-1.381.424h-.841v1.844H5.341v-4.97zm9.84 0h1.434l1.871 2.749V7.515h1.447v4.97h-1.447l-1.861-2.729v2.729h-1.444v-4.97zm-2.352 4.149H11.08l-.241.821H9.27l1.867-4.97h1.675l1.867 4.97h-1.606l-.244-.821zm-.322-1.074l-.55-1.786-.545 1.786h1.095zm-5.624-.956h.377c.296 0 .503-.051.623-.154a.498.498 0 00.18-.395.553.553 0 00-.156-.397c-.104-.108-.299-.162-.586-.162h-.438v1.108z",div:"M.035 6.184h3.504c.691 0 1.249.094 1.674.281.425.187.776.456 1.054.807.278.35.479.758.604 1.223.125.465.187.958.187 1.479 0 .816-.092 1.448-.278 1.898a3.136 3.136 0 01-.773 1.129c-.33.304-.684.506-1.062.607a5.464 5.464 0 01-1.406.208H.035V6.184zm8.356 0h2.364v7.632H8.391V6.184zm3.301 0h2.468l1.718 5.492 1.692-5.492h2.395l-2.832 7.632h-2.557l-2.884-7.632zM2.394 7.912v4.17h.578c.492 0 .843-.054 1.051-.164.208-.109.372-.3.49-.572.118-.273.177-.714.177-1.325 0-.809-.132-1.362-.396-1.661-.264-.298-.701-.448-1.312-.448h-.588z"};return n.hasOwnProperty(e)?(0,o.jsx)(d.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t,children:(0,o.jsx)(d.Path,{d:n[e]})}):null}function ua({label:e,onChange:t,value:n="",className:l="",ariaLabel:a=(0,h.__)("Change HTML Tag","kadence-blocks-pro"),reset:r=!1,headingOnly:i=!1,tagLowLevel:s=1,tagHighLevel:c=7,otherTags:u}){const f="span"!==n&&"div"!==n&&"p"!==n?n:2,b="span"===n||"div"===n||"p"===n?n:"heading",m=(0,p.range)(s,c).map(e=>[{icon:(0,o.jsx)(da,{level:e,isPressed:!(e!==f||!b||"heading"!==b)}),title:(0,h.sprintf)(/* translators: %d: heading level e.g: "1", "2", "3" */ /* translators: %d: heading level e.g: "1", "2", "3" */ (0,h.__)("Heading %d","kadence-blocks-pro"),e),isActive:!(e!==f||!b||"heading"!==b),onClick:()=>t(e)}]),g=m.map(e=>e);return(u&&u.p||!u)&&g.push([{icon:(0,o.jsx)(da,{level:"p",isPressed:!(!b||"p"!==b)}),title:(0,h.__)("Paragraph","kadence-blocks-pro"),isActive:!(!b||"p"!==b),onClick:()=>t("p")}]),(u&&u.span||!u)&&g.push([{icon:(0,o.jsx)(da,{level:"span",isPressed:!(!b||"span"!==b)}),title:(0,h.__)("Span","kadence-blocks-pro"),isActive:!(!b||"span"!==b),onClick:()=>t("span")}]),(u&&u.div||!u)&&g.push([{icon:(0,o.jsx)(da,{level:"div",isPressed:!(!b||"div"!==b)}),title:(0,h.__)("div","kadence-blocks-pro"),isActive:!(!b||"div"!==b),onClick:()=>t("div")}]),[t&&(0,o.jsxs)("div",{className:"kb-tag-level-control components-base-control"+(l?" "+l:""),children:[e&&(0,o.jsx)("div",{className:"kadence-component__header kadence-tag-select__header",children:e&&(0,o.jsxs)("div",{className:"kadence-component__header__title kadence-tag-select__title",children:[(0,o.jsx)("label",{className:"components-base-control__label",children:e}),r&&(0,o.jsx)("div",{className:"title-reset-wrap",children:(0,o.jsx)(d.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,p.isEqual)(defaultValue,n),icon:I,onClick:()=>onReset()})})]})}),(0,o.jsx)("div",{className:"kadence-controls-content kb-tag-select-control-inner",children:(0,o.jsx)(d.ToolbarGroup,{isCollapsed:!1,label:a,controls:i?m:g})})]})]}function pa(e){return pa="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},pa(e)}function ha(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}function fa(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(t){fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function va(e,t){if(e){if("string"==typeof e)return ga(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)?ga(e,t):void 0}}function ka(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 o,l,a,r,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,l=e}finally{try{if(!s&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw l}}return i}}(e,t)||va(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 ya(e,t){if(null==e)return{};var n,o,l=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var xa=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wa.apply(null,arguments)}function _a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ha(o.key),o)}}function Ca(e,t){return Ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ca(e,t)}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sa(e)}function Ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ea=function(){return!!e})()}function ja(e){return function(e){if(Array.isArray(e))return ga(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||va(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 Oa=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}(),Ma=Math.abs,Na=String.fromCharCode,La=Object.assign;function Ia(e){return e.trim()}function Aa(e,t,n){return e.replace(t,n)}function Ra(e,t){return e.indexOf(t)}function Ba(e,t){return 0|e.charCodeAt(t)}function Pa(e,t,n){return e.slice(t,n)}function Ta(e){return e.length}function Fa(e){return e.length}function Da(e,t){return t.push(e),e}var Ha=1,Va=1,za=0,$a=0,Ua=0,Wa="";function Ga(e,t,n,o,l,a,r){return{value:e,root:t,parent:n,type:o,props:l,children:a,line:Ha,column:Va,length:r,return:""}}function qa(e,t){return La(Ga("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xa(){return Ua=$a>0?Ba(Wa,--$a):0,Va--,10===Ua&&(Va=1,Ha--),Ua}function Za(){return Ua=$a<za?Ba(Wa,$a++):0,Va++,10===Ua&&(Va=1,Ha++),Ua}function Ja(){return Ba(Wa,$a)}function Ya(){return $a}function Ka(e,t){return Pa(Wa,e,t)}function Qa(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 er(e){return Ha=Va=1,za=Ta(Wa=e),$a=0,[]}function tr(e){return Wa="",e}function nr(e){return Ia(Ka($a-1,ar(91===e?e+2:40===e?e+1:e)))}function or(e){for(;(Ua=Ja())&&Ua<33;)Za();return Qa(e)>2||Qa(Ua)>3?"":" "}function lr(e,t){for(;--t&&Za()&&!(Ua<48||Ua>102||Ua>57&&Ua<65||Ua>70&&Ua<97););return Ka(e,Ya()+(t<6&&32==Ja()&&32==Za()))}function ar(e){for(;Za();)switch(Ua){case e:return $a;case 34:case 39:34!==e&&39!==e&&ar(Ua);break;case 40:41===e&&ar(e);break;case 92:Za()}return $a}function rr(e,t){for(;Za()&&e+Ua!==57&&(e+Ua!==84||47!==Ja()););return"/*"+Ka(t,$a-1)+"*"+Na(47===e?e:Za())}function ir(e){for(;!Qa(Ja());)Za();return Ka(e,$a)}var sr="-ms-",cr="-moz-",dr="-webkit-",ur="comm",pr="rule",hr="decl",fr="@keyframes";function br(e,t){for(var n="",o=Fa(e),l=0;l<o;l++)n+=t(e[l],l,e,t)||"";return n}function mr(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case hr:return e.return=e.return||e.value;case ur:return"";case fr:return e.return=e.value+"{"+br(e.children,o)+"}";case pr:e.value=e.props.join(",")}return Ta(n=br(e.children,o))?e.return=e.value+"{"+n+"}":""}function gr(e){return tr(vr("",null,null,null,[""],e=er(e),0,[0],e))}function vr(e,t,n,o,l,a,r,i,s){for(var c=0,d=0,u=r,p=0,h=0,f=0,b=1,m=1,g=1,v=0,k="",y=l,x=a,w=o,_=k;m;)switch(f=v,v=Za()){case 40:if(108!=f&&58==Ba(_,u-1)){-1!=Ra(_+=Aa(nr(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=nr(v);break;case 9:case 10:case 13:case 32:_+=or(f);break;case 92:_+=lr(Ya()-1,7);continue;case 47:switch(Ja()){case 42:case 47:Da(yr(rr(Za(),Ya()),t,n),s);break;default:_+="/"}break;case 123*b:i[c++]=Ta(_)*g;case 125*b:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:-1==g&&(_=Aa(_,/\f/g,"")),h>0&&Ta(_)-u&&Da(h>32?xr(_+";",o,n,u-1):xr(Aa(_," ","")+";",o,n,u-2),s);break;case 59:_+=";";default:if(Da(w=kr(_,t,n,c,d,l,i,k,y=[],x=[],u),a),123===v)if(0===d)vr(_,t,w,w,y,a,u,i,x);else switch(99===p&&110===Ba(_,3)?100:p){case 100:case 108:case 109:case 115:vr(e,w,w,o&&Da(kr(e,w,w,0,0,l,i,k,l,y=[],u),x),l,x,u,i,o?y:x);break;default:vr(_,w,w,w,[""],x,0,i,x)}}c=d=h=0,b=g=1,k=_="",u=r;break;case 58:u=1+Ta(_),h=f;default:if(b<1)if(123==v)--b;else if(125==v&&0==b++&&125==Xa())continue;switch(_+=Na(v),v*b){case 38:g=d>0?1:(_+="\f",-1);break;case 44:i[c++]=(Ta(_)-1)*g,g=1;break;case 64:45===Ja()&&(_+=nr(Za())),p=Ja(),d=u=Ta(k=_+=ir(Ya())),v++;break;case 45:45===f&&2==Ta(_)&&(b=0)}}return a}function kr(e,t,n,o,l,a,r,i,s,c,d){for(var u=l-1,p=0===l?a:[""],h=Fa(p),f=0,b=0,m=0;f<o;++f)for(var g=0,v=Pa(e,u+1,u=Ma(b=r[f])),k=e;g<h;++g)(k=Ia(b>0?p[g]+" "+v:Aa(v,/&\f/g,p[g])))&&(s[m++]=k);return Ga(e,t,n,0===l?pr:i,s,c,d)}function yr(e,t,n){return Ga(e,t,n,ur,Na(Ua),Pa(e,2,-2),0)}function xr(e,t,n,o){return Ga(e,t,n,hr,Pa(e,0,o),Pa(e,o+1,-1),o)}var wr=function(e,t,n){for(var o=0,l=0;o=l,l=Ja(),38===o&&12===l&&(t[n]=1),!Qa(l);)Za();return Ka(e,$a)},_r=new WeakMap,Cr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=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))&&!o){_r.set(e,!0);for(var l=[],a=function(e,t){return tr(function(e,t){var n=-1,o=44;do{switch(Qa(o)){case 0:38===o&&12===Ja()&&(t[n]=1),e[n]+=wr($a-1,t,n);break;case 2:e[n]+=nr(o);break;case 4:if(44===o){e[++n]=58===Ja()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Na(o)}}while(o=Za());return e}(er(e),t))}(t,l),r=n.props,i=0,s=0;i<a.length;i++)for(var c=0;c<r.length;c++,s++)e.props[s]=l[i]?a[i].replace(/&\f/g,r[c]):r[c]+" "+a[i]}}},Sr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Er(e,t){switch(function(e,t){return 45^Ba(e,0)?(((t<<2^Ba(e,0))<<2^Ba(e,1))<<2^Ba(e,2))<<2^Ba(e,3):0}(e,t)){case 5103:return dr+"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 dr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dr+e+cr+e+sr+e+e;case 6828:case 4268:return dr+e+sr+e+e;case 6165:return dr+e+sr+"flex-"+e+e;case 5187:return dr+e+Aa(e,/(\w+).+(:[^]+)/,dr+"box-$1$2"+sr+"flex-$1$2")+e;case 5443:return dr+e+sr+"flex-item-"+Aa(e,/flex-|-self/,"")+e;case 4675:return dr+e+sr+"flex-line-pack"+Aa(e,/align-content|flex-|-self/,"")+e;case 5548:return dr+e+sr+Aa(e,"shrink","negative")+e;case 5292:return dr+e+sr+Aa(e,"basis","preferred-size")+e;case 6060:return dr+"box-"+Aa(e,"-grow","")+dr+e+sr+Aa(e,"grow","positive")+e;case 4554:return dr+Aa(e,/([^-])(transform)/g,"$1"+dr+"$2")+e;case 6187:return Aa(Aa(Aa(e,/(zoom-|grab)/,dr+"$1"),/(image-set)/,dr+"$1"),e,"")+e;case 5495:case 3959:return Aa(e,/(image-set\([^]*)/,dr+"$1$`$1");case 4968:return Aa(Aa(e,/(.+:)(flex-)?(.*)/,dr+"box-pack:$3"+sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dr+e+e;case 4095:case 3583:case 4068:case 2532:return Aa(e,/(.+)-inline(.+)/,dr+"$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(Ta(e)-1-t>6)switch(Ba(e,t+1)){case 109:if(45!==Ba(e,t+4))break;case 102:return Aa(e,/(.+:)(.+)-([^]+)/,"$1"+dr+"$2-$3$1"+cr+(108==Ba(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ra(e,"stretch")?Er(Aa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ba(e,t+1))break;case 6444:switch(Ba(e,Ta(e)-3-(~Ra(e,"!important")&&10))){case 107:return Aa(e,":",":"+dr)+e;case 101:return Aa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dr+(45===Ba(e,14)?"inline-":"")+"box$3$1"+dr+"$2$3$1"+sr+"$2box$3")+e}break;case 5936:switch(Ba(e,t+11)){case 114:return dr+e+sr+Aa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dr+e+sr+Aa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dr+e+sr+Aa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dr+e+sr+e+e}return e}var jr=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case hr:e.return=Er(e.value,e.length);break;case fr:return br([qa(e,{value:Aa(e.value,"@","@"+dr)})],o);case pr: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 br([qa(e,{props:[Aa(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return br([qa(e,{props:[Aa(t,/:(plac\w+)/,":"+dr+"input-$1")]}),qa(e,{props:[Aa(t,/:(plac\w+)/,":-moz-$1")]}),qa(e,{props:[Aa(t,/:(plac\w+)/,sr+"input-$1")]})],o)}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 o,l,a=e.stylisPlugins||jr,r={},i=[];o=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++)r[t[n]]=!0;i.push(e)});var s,c,d,u,p=[mr,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=(c=[Cr,Sr].concat(a,p),d=Fa(c),function(e,t,n,o){for(var l="",a=0;a<d;a++)l+=c[a](e,t,n,o)||"";return l});l=function(e,t,n,o){s=n,br(gr(e?e+"{"+t.styles+"}":t.styles),h),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Oa({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:l};return f.sheet.hydrate(i),f},Mr=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Nr={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 Lr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ir=/[A-Z]|^ms/g,Ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rr=function(e){return 45===e.charCodeAt(1)},Br=function(e){return null!=e&&"boolean"!=typeof e},Pr=Lr(function(e){return Rr(e)?e:e.replace(Ir,"-$&").toLowerCase()}),Tr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ar,function(e,t,n){return Dr={name:t,styles:n,next:Dr},t})}return 1===Nr[e]||Rr(e)||"number"!=typeof t||0===t?t:t+"px"};function Fr(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var l=n;if(1===l.anim)return Dr={name:l.name,styles:l.styles,next:Dr},l.name;var a=n;if(void 0!==a.styles){var r=a.next;if(void 0!==r)for(;void 0!==r;)Dr={name:r.name,styles:r.styles,next:Dr},r=r.next;return a.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var l=0;l<n.length;l++)o+=Fr(e,t,n[l])+";";else for(var a in n){var r=n[a];if("object"!=typeof r){var i=r;null!=t&&void 0!==t[i]?o+=a+"{"+t[i]+"}":Br(i)&&(o+=Pr(a)+":"+Tr(a,i)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var s=Fr(e,t,r);switch(a){case"animation":case"animationName":o+=Pr(a)+":"+s+";";break;default:o+=a+"{"+s+"}"}}else for(var c=0;c<r.length;c++)Br(r[c])&&(o+=Pr(a)+":"+Tr(a,r[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var i=Dr,s=n(e);return Dr=i,Fr(e,t,s)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var Dr,Hr=/label:\s*([^\s;{]+)\s*(;|$)/g;function Vr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,l="";Dr=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,l+=Fr(n,t,a)):l+=a[0];for(var r=1;r<e.length;r++)l+=Fr(n,t,e[r]),o&&(l+=a[r]);Hr.lastIndex=0;for(var i,s="";null!==(i=Hr.exec(l));)s+="-"+i[1];var c=function(e){for(var t,n=0,o=0,l=e.length;l>=4;++o,l-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(l){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(l)+s;return{name:c,styles:l,next:Dr}}var zr,$r,Ur=!!a.useInsertionEffect&&a.useInsertionEffect,Wr=Ur||function(e){return e()},Gr=(Ur||a.useLayoutEffect,a.createContext("undefined"!=typeof HTMLElement?Or({key:"css"}):null)),qr=(Gr.Provider,function(e){return(0,a.forwardRef)(function(t,n){var o=(0,a.useContext)(Gr);return e(t,o,n)})}),Xr=a.createContext({}),Zr={}.hasOwnProperty,Jr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yr=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Mr(t,n,o),Wr(function(){return function(e,t,n){Mr(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var l=t;do{e.insert(t===l?"."+o:"",l,e.sheet,!0),l=l.next}while(void 0!==l)}}(t,n,o)}),null},Kr=qr(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var l=e[Jr],r=[o],i="";"string"==typeof e.className?i=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")}),o}(t.registered,r,e.className):null!=e.className&&(i=e.className+" ");var s=Vr(r,void 0,a.useContext(Xr));i+=t.key+"-"+s.name;var c={};for(var d in e)Zr.call(e,d)&&"css"!==d&&d!==Jr&&(c[d]=e[d]);return c.className=i,n&&(c.ref=n),a.createElement(a.Fragment,null,a.createElement(Yr,{cache:t,serialized:s,isStringTag:"string"==typeof l}),a.createElement(l,c))}),Qr=Kr,ei=(n(4146),function(e,t){var n=arguments;if(null==t||!Zr.call(t,"css"))return a.createElement.apply(void 0,n);var o=n.length,l=new Array(o);l[0]=Qr,l[1]=function(e,t){var n={};for(var o in t)Zr.call(t,o)&&(n[o]=t[o]);return n[Jr]=e,n}(e,t);for(var r=2;r<o;r++)l[r]=n[r];return a.createElement.apply(null,l)});function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vr(t)}zr=ei||(ei={}),$r||($r=zr.JSX||(zr.JSX={}));const ni=window.ReactDOM,oi=Math.min,li=Math.max,ai=Math.round,ri=Math.floor,ii=e=>({x:e,y:e});function si(){return"undefined"!=typeof window}function ci(e){return pi(e)?(e.nodeName||"").toLowerCase():"#document"}function di(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ui(e){var t;return null==(t=(pi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function pi(e){return!!si()&&(e instanceof Node||e instanceof di(e).Node)}function hi(e){return!!si()&&(e instanceof Element||e instanceof di(e).Element)}function fi(e){return!!si()&&(e instanceof HTMLElement||e instanceof di(e).HTMLElement)}function bi(e){return!(!si()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof di(e).ShadowRoot)}const mi=new Set(["inline","contents"]);function gi(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=ki(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!mi.has(l)}const vi=new Set(["html","body","#document"]);function ki(e){return di(e).getComputedStyle(e)}function yi(e){const t=function(e){if("html"===ci(e))return e;const t=e.assignedSlot||e.parentNode||bi(e)&&e.host||ui(e);return bi(t)?t.host:t}(e);return function(e){return vi.has(ci(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:fi(t)&&gi(t)?t:yi(t)}function xi(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const l=yi(e),a=l===(null==(o=e.ownerDocument)?void 0:o.body),r=di(l);if(a){const e=wi(r);return t.concat(r,r.visualViewport||[],gi(l)?l:[],e&&n?xi(e):[])}return t.concat(l,xi(l,[],n))}function wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _i(e){return hi(e)?e:e.contextElement}function Ci(e){const t=_i(e);if(!fi(t))return ii(1);const n=t.getBoundingClientRect(),{width:o,height:l,$:a}=function(e){const t=ki(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=fi(e),a=l?e.offsetWidth:n,r=l?e.offsetHeight:o,i=ai(n)!==a||ai(o)!==r;return i&&(n=a,o=r),{width:n,height:o,$:i}}(t);let r=(a?ai(n.width):n.width)/o,i=(a?ai(n.height):n.height)/l;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}const Si=ii(0);function Ei(e){const t=di(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Si}function ji(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect(),a=_i(e);let r=ii(1);t&&(o?hi(o)&&(r=Ci(o)):r=Ci(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==di(e))&&t}(a,n,o)?Ei(a):ii(0);let s=(l.left+i.x)/r.x,c=(l.top+i.y)/r.y,d=l.width/r.x,u=l.height/r.y;if(a){const e=di(a),t=o&&hi(o)?di(o):o;let n=e,l=wi(n);for(;l&&o&&t!==n;){const e=Ci(l),t=l.getBoundingClientRect(),o=ki(l),a=t.left+(l.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(l.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=a,c+=r,n=di(l),l=wi(n)}}return function(e){const{x:t,y:n,width:o,height:l}=e;return{width:o,height:l,top:n,left:t,right:t+o,bottom:n+l,x:t,y:n}}({width:d,height:u,x:s,y:c})}function Oi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Mi=a.useLayoutEffect,Ni=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Li=function(){};function Ii(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ai(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l<n;l++)o[l-2]=arguments[l];var a=[].concat(o);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&a.push("".concat(Ii(e,r)));return a.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Ri=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===pa(e)&&null!==e?[e]:[];var t},Bi=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,ma({},ya(e,Ni))},Pi=function(e,t,n){var o=e.cx,l=e.getStyles,a=e.getClassNames,r=e.className;return{css:l(t,e),className:o(null!=n?n:{},a(t,e),r)}};function Ti(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Fi(e){return Ti(e)?window.pageYOffset:e.scrollTop}function Di(e,t){Ti(e)?window.scrollTo(0,t):e.scrollTop=t}function Hi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Li,l=Fi(e),a=t-l,r=0;!function t(){var i,s=a*((i=(i=r+=10)/n-1)*i*i+1)+l;Di(e,s),r<n?window.requestAnimationFrame(t):o(e)}()}function Vi(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),l=t.offsetHeight/3;o.bottom+l>n.bottom?Di(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+l,e.scrollHeight)):o.top-l<n.top&&Di(e,Math.max(t.offsetTop-l,0))}function zi(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var $i=!1,Ui={get passive(){return $i=!0}},Wi="undefined"!=typeof window?window:{};Wi.addEventListener&&Wi.removeEventListener&&(Wi.addEventListener("p",Li,Ui),Wi.removeEventListener("p",Li,!1));var Gi=$i;function qi(e){return null!=e}function Xi(e,t,n){return e?t:n}var Zi=["children","innerProps"],Ji=["children","innerProps"];var Yi,Ki,Qi,es=function(e){return"auto"===e?"bottom":e},ts=(0,a.createContext)(null),ns=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,l=e.menuPlacement,r=e.menuPosition,i=e.menuShouldScrollIntoView,s=e.theme,c=((0,a.useContext)(ts)||{}).setPortalPlacement,d=(0,a.useRef)(null),u=ka((0,a.useState)(o),2),p=u[0],h=u[1],f=ka((0,a.useState)(null),2),b=f[0],m=f[1],g=s.spacing.controlHeight;return Mi(function(){var e=d.current;if(e){var t="fixed"===r,a=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,l=e.placement,a=e.shouldScroll,r=e.isFixedPosition,i=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var l=e;l=l.parentElement;)if(t=getComputedStyle(l),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return l;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,f=p.height,b=p.top,m=n.offsetParent.getBoundingClientRect().top,g=r||Ti(d=s)?window.innerHeight:d.clientHeight,v=Fi(s),k=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=m-y,w=g-b,_=x+v,C=u-v-b,S=h-g+v+k,E=v+b-y,j=160;switch(l){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!r)return a&&Hi(s,S,j),{placement:"bottom",maxHeight:t};if(!r&&C>=o||r&&w>=o)return a&&Hi(s,S,j),{placement:"bottom",maxHeight:r?w-k:C-k};if("auto"===l||r){var O=t,M=r?x:_;return M>=o&&(O=Math.min(M-k-i,t)),{placement:"top",maxHeight:O}}if("bottom"===l)return a&&Di(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(_>=f&&!r)return a&&Hi(s,E,j),{placement:"top",maxHeight:t};if(!r&&_>=o||r&&x>=o){var N=t;return(!r&&_>=o||r&&x>=o)&&(N=r?x-y:_-y),a&&Hi(s,E,j),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:l,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:g});h(a.maxHeight),m(a.placement),null==c||c(a.placement)}},[o,l,r,i,n,c,g]),t({ref:d,placerProps:ma(ma({},e),{},{placement:b||es(l),maxHeight:p})})},os=function(e,t){var n=e.theme,o=n.spacing.baseUnit,l=n.colors;return ma({textAlign:"center"},t?{}:{color:l.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ls=os,as=os,rs=["size"],is=["innerProps","isRtl","size"],ss={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},cs=function(e){var t=e.size,n=ya(e,rs);return ei("svg",wa({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ss},n))},ds=function(e){return ei(cs,wa({size:20},e),ei("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"}))},us=function(e){return ei(cs,wa({size:20},e),ei("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"}))},ps=function(e,t){var n=e.isFocused,o=e.theme,l=o.spacing.baseUnit,a=o.colors;return ma({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*l,":hover":{color:n?a.neutral80:a.neutral40}})},hs=ps,fs=ps,bs=function(){var e=ti.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_"}}}(Yi||(Ki=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Qi||(Qi=Ki.slice(0)),Yi=Object.freeze(Object.defineProperties(Ki,{raw:{value:Object.freeze(Qi)}})))),ms=function(e){var t=e.delay,n=e.offset;return ei("span",{css:ti({animation:"".concat(bs," 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"},"","")})},gs=["data"],vs=["innerRef","isDisabled","isHidden","inputClassName"],ks={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ys={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ma({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ks)},xs=function(e){return ma({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ks)},ws=function(e){var t=e.children,n=e.innerProps;return ei("div",n,t)},_s={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ei("div",wa({},Pi(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ei(ds,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,l=e.innerRef,a=e.innerProps,r=e.menuIsOpen;return ei("div",wa({ref:l},Pi(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":r}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ei("div",wa({},Pi(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ei(us,null))},DownChevron:us,CrossIcon:ds,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,l=e.getClassNames,a=e.Heading,r=e.headingProps,i=e.innerProps,s=e.label,c=e.theme,d=e.selectProps;return ei("div",wa({},Pi(e,"group",{group:!0}),i),ei(a,wa({},r,{selectProps:d,theme:c,getStyles:o,getClassNames:l,cx:n}),s),ei("div",null,t))},GroupHeading:function(e){var t=Bi(e);t.data;var n=ya(t,gs);return ei("div",wa({},Pi(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ei("div",wa({},Pi(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ei("span",wa({},t,Pi(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Bi(e),l=o.innerRef,a=o.isDisabled,r=o.isHidden,i=o.inputClassName,s=ya(o,vs);return ei("div",wa({},Pi(e,"input",{"input-container":!0}),{"data-value":n||""}),ei("input",wa({className:t({input:!0},i),ref:l,style:xs(r),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,l=void 0===o?4:o,a=ya(e,is);return ei("div",wa({},Pi(ma(ma({},a),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ei(ms,{delay:0,offset:n}),ei(ms,{delay:160,offset:!0}),ei(ms,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return ei("div",wa({},Pi(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,l=e.isMulti;return ei("div",wa({},Pi(e,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,l=e.innerProps,r=e.menuPlacement,i=e.menuPosition,s=(0,a.useRef)(null),c=(0,a.useRef)(null),d=ka((0,a.useState)(es(r)),2),u=d[0],p=d[1],h=(0,a.useMemo)(function(){return{setPortalPlacement:p}},[]),f=ka((0,a.useState)(null),2),b=f[0],m=f[1],g=(0,a.useCallback)(function(){if(o){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}}(o),t="fixed"===i?0:window.pageYOffset,n=e[u]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||m({offset:n,rect:e})}},[o,i,u,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Mi(function(){g()},[g]);var v=(0,a.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=_i(e),d=l||a?[...c?xi(c):[],...xi(t)]:[];d.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const u=c&&i?function(e,t){let n,o=null;const l=ui(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function r(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(i||t(),!p||!h)return;const f={rootMargin:-ri(u)+"px "+-ri(l.clientWidth-(d+p))+"px "+-ri(l.clientHeight-(u+h))+"px "+-ri(d)+"px",threshold:li(0,oi(1,s))||1};let b=!0;function m(t){const o=t[0].intersectionRatio;if(o!==s){if(!b)return r();o?r(!1,o):n=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==o||Oi(c,e.getBoundingClientRect())||r(),b=!1}try{o=new IntersectionObserver(m,{...f,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(m,f)}o.observe(e)}(!0),a}(c,n):null;let p,h=-1,f=null;r&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!s&&f.observe(c),f.observe(t));let b=s?ji(e):null;return s&&function t(){const o=ji(e);b&&!Oi(b,o)&&n(),b=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(p)}}(o,s.current,g,{elementResize:"ResizeObserver"in window}))},[o,g]);Mi(function(){v()},[v]);var k=(0,a.useCallback)(function(e){s.current=e,v()},[v]);if(!t&&"fixed"!==i||!b)return null;var y=ei("div",wa({ref:k},Pi(ma(ma({},e),{},{offset:b.offset,position:i,rect:b.rect}),"menuPortal",{"menu-portal":!0}),l),n);return ei(ts.Provider,{value:h},t?(0,ni.createPortal)(y,t):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,l=ya(e,Ji);return ei("div",wa({},Pi(ma(ma({},l),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,l=ya(e,Zi);return ei("div",wa({},Pi(ma(ma({},l),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,l=e.innerProps,a=e.isDisabled,r=e.removeProps,i=e.selectProps,s=n.Container,c=n.Label,d=n.Remove;return ei(s,{data:o,innerProps:ma(ma({},Pi(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),l),selectProps:i},ei(c,{data:o,innerProps:ma({},Pi(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},t),ei(d,{data:o,innerProps:ma(ma({},Pi(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:i}))},MultiValueContainer:ws,MultiValueLabel:ws,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ei("div",wa({role:"button"},n),t||ei(ds,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,l=e.isSelected,a=e.innerRef,r=e.innerProps;return ei("div",wa({},Pi(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":l}),{ref:a,"aria-disabled":n},r),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ei("div",wa({},Pi(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,l=e.isRtl;return ei("div",wa({},Pi(e,"container",{"--is-disabled":o,"--is-rtl":l}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return ei("div",wa({},Pi(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,l=e.hasValue;return ei("div",wa({},Pi(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l}),n),t)}},Cs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ss(e,t){return e===t||!(!Cs(e)||!Cs(t))}function Es(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Ss(e[n],t[n]))return!1;return!0}for(var js={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"},Os=function(e){return ei("span",wa({css:js},e))},Ms={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,l=e.context,a=e.isInitialFocus;switch(l){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(o?", 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,o=void 0===n?"":n,l=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(l.length>1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return"option ".concat(o,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,l=e.label,a=void 0===l?"":l,r=e.selectValue,i=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(a," focused, ").concat(d(r,n),".");if("menu"===t&&c){var u=i?" disabled":"",p="".concat(s?" selected":"").concat(u);return"".concat(a).concat(p,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ns=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,l=e.focusableOptions,r=e.isFocused,i=e.selectValue,s=e.selectProps,c=e.id,d=e.isAppleDevice,u=s.ariaLiveMessages,p=s.getOptionLabel,h=s.inputValue,f=s.isMulti,b=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,v=s.options,k=s.screenReaderStatus,y=s.tabSelectsValue,x=s.isLoading,w=s["aria-label"],_=s["aria-live"],C=(0,a.useMemo)(function(){return ma(ma({},Ms),u||{})},[u]),S=(0,a.useMemo)(function(){var e,n="";if(t&&C.onChange){var o=t.option,l=t.options,a=t.removedValue,r=t.removedValues,s=t.value,c=a||o||(e=s,Array.isArray(e)?null:e),d=c?p(c):"",u=l||r||void 0,h=u?u.map(p):[],f=ma({isDisabled:c&&b(c,i),label:d,labels:h},t);n=C.onChange(f)}return n},[t,C,b,i,p]),E=(0,a.useMemo)(function(){var e="",t=n||o,a=!!(n&&i&&i.includes(n));if(t&&C.onFocus){var r={focused:t,label:p(t),isDisabled:b(t,i),isSelected:a,options:l,context:t===n?"menu":"value",selectValue:i,isAppleDevice:d};e=C.onFocus(r)}return e},[n,o,p,b,C,l,i,d]),j=(0,a.useMemo)(function(){var e="";if(g&&v.length&&!x&&C.onFilter){var t=k({count:l.length});e=C.onFilter({inputValue:h,resultsMessage:t})}return e},[l,h,g,C,v,k,x]),O="initial-input-focus"===(null==t?void 0:t.action),M=(0,a.useMemo)(function(){var e="";if(C.guidance){var t=o?"value":g?"menu":"input";e=C.guidance({"aria-label":w,context:t,isDisabled:n&&b(n,i),isMulti:f,isSearchable:m,tabSelectsValue:y,isInitialFocus:O})}return e},[w,n,o,f,b,m,g,C,i,y,O]),N=ei(a.Fragment,null,ei("span",{id:"aria-selection"},S),ei("span",{id:"aria-focused"},E),ei("span",{id:"aria-results"},j),ei("span",{id:"aria-guidance"},M));return ei(a.Fragment,null,ei(Os,{id:c},O&&N),ei(Os,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!O&&N))},Ls=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Is=new RegExp("["+Ls.map(function(e){return e.letters}).join("")+"]","g"),As={},Rs=0;Rs<Ls.length;Rs++)for(var Bs=Ls[Rs],Ps=0;Ps<Bs.letters.length;Ps++)As[Bs.letters[Ps]]=Bs.base;var Ts=function(e){return e.replace(Is,function(e){return As[e]})},Fs=function(e,t){void 0===t&&(t=Es);var n=null;function o(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return o.clear=function(){n=null},o}(Ts),Ds=function(e){return e.replace(/^\s+|\s+$/g,"")},Hs=function(e){return"".concat(e.label," ").concat(e.value)},Vs=["innerRef"];function zs(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var l=Object.entries(e).filter(function(e){var t=ka(e,1)[0];return!n.includes(t)});return l.reduce(function(e,t){var n=ka(t,2),o=n[0],l=n[1];return e[o]=l,e},{})}(ya(e,Vs),"onExited","in","enter","exit","appear");return ei("input",wa({ref:t},n,{css:ti({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 $s=["boxSizing","height","overflow","paddingRight","position"],Us={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ws(e){e.cancelable&&e.preventDefault()}function Gs(e){e.stopPropagation()}function qs(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Xs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zs=!("undefined"==typeof window||!window.document||!window.document.createElement),Js=0,Ys={capture:!1,passive:!1},Ks=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Qs={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ec(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,l=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,l=e.onTopArrive,r=e.onTopLeave,i=(0,a.useRef)(!1),s=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(null),u=(0,a.useCallback)(function(e,t){if(null!==d.current){var a=d.current,c=a.scrollTop,u=a.scrollHeight,p=a.clientHeight,h=d.current,f=t>0,b=u-p-c,m=!1;b>t&&i.current&&(o&&o(e),i.current=!1),f&&s.current&&(r&&r(e),s.current=!1),f&&t>b?(n&&!i.current&&n(e),h.scrollTop=u,m=!0,i.current=!0):!f&&-t>c&&(l&&!s.current&&l(e),h.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,o,l,r]),p=(0,a.useCallback)(function(e){u(e,e.deltaY)},[u]),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;u(e,t)},[u]),b=(0,a.useCallback)(function(e){if(e){var t=!!Gi&&{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=d.current;return b(e),function(){m(e)}}},[t,b,m]),function(e){d.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,l=(0,a.useRef)({}),r=(0,a.useRef)(null),i=(0,a.useCallback)(function(e){if(Zs){var t=document.body,n=t&&t.style;if(o&&$s.forEach(function(e){var t=n&&n[e];l.current[e]=t}),o&&Js<1){var a=parseInt(l.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,i=window.innerWidth-r+a||0;Object.keys(Us).forEach(function(e){var t=Us[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(i,"px"))}t&&Xs()&&(t.addEventListener("touchmove",Ws,Ys),e&&(e.addEventListener("touchstart",qs,Ys),e.addEventListener("touchmove",Gs,Ys))),Js+=1}},[o]),s=(0,a.useCallback)(function(e){if(Zs){var t=document.body,n=t&&t.style;Js=Math.max(Js-1,0),o&&Js<1&&$s.forEach(function(e){var t=l.current[e];n&&(n[e]=t)}),t&&Xs()&&(t.removeEventListener("touchmove",Ws,Ys),e&&(e.removeEventListener("touchstart",qs,Ys),e.removeEventListener("touchmove",Gs,Ys)))}},[o]);return(0,a.useEffect)(function(){if(t){var e=r.current;return i(e),function(){s(e)}}},[t,i,s]),function(e){r.current=e}}({isEnabled:n});return ei(a.Fragment,null,n&&ei("div",{onClick:Ks,css:Qs}),t(function(e){l(e),r(e)}))}var tc={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},nc=function(e){var t=e.name,n=e.onFocus;return ei("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tc,value:"",onChange:function(){}})};function oc(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 lc(){return oc(/^Mac/i)}var ac={clearIndicator:fs,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,o=e.isFocused,l=e.theme,a=l.colors,r=l.borderRadius;return ma({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},dropdownIndicator:hs,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,o=n.colors,l=n.spacing;return ma({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*l.baseUnit,paddingRight:3*l.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,l=o.spacing.baseUnit,a=o.colors;return ma({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*l,marginTop:2*l})},input:function(e,t){var n=e.isDisabled,o=e.value,l=e.theme,a=l.spacing,r=l.colors;return ma(ma({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ys),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,l=e.theme,a=l.colors,r=l.spacing.baseUnit;return ma({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r})},loadingMessage:as,menu:function(e,t){var n,o=e.placement,l=e.theme,a=l.borderRadius,r=l.spacing,i=l.colors;return ma((fa(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),fa(n,"position","absolute"),fa(n,"width","100%"),fa(n,"zIndex",1),n),t?{}:{backgroundColor:i.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return ma({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,l=n.borderRadius,a=n.colors;return ma({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:l/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,l=n.colors,a=e.cropWithEllipsis;return ma({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,l=n.borderRadius,a=n.colors,r=e.isFocused;return ma({alignItems:"center",display:"flex"},t?{}:{borderRadius:l/2,backgroundColor:r?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:ls,option:function(e,t){var n=e.isDisabled,o=e.isFocused,l=e.isSelected,a=e.theme,r=a.spacing,i=a.colors;return ma({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:l?i.primary:o?i.primary25:"transparent",color:n?i.neutral20:l?i.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:n?void 0:l?i.primary:i.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,l=n.colors;return ma({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:l.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,l=o.spacing,a=o.colors;return ma({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,l=e.hasValue,a=e.selectProps.controlShouldRenderValue;return ma({alignItems:"center",display:o&&l&&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")})}},rc={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}},ic={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:zi(),captureMenuScroll:!zi(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ma({ignoreCase:!0,ignoreAccents:!0,stringify:Hs,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,l=n.ignoreAccents,a=n.stringify,r=n.trim,i=n.matchFrom,s=r?Ds(t):t,c=r?Ds(a(e)):a(e);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),l&&(s=Fs(s),c=Ts(c)),"start"===i?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},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 sc(e,t,n,o){return{type:"option",data:t,isDisabled:mc(e,t,n),isSelected:gc(e,t,n),label:fc(e,t),value:bc(e,t),index:o}}function cc(e,t){return e.options.map(function(n,o){if("options"in n){var l=n.options.map(function(n,o){return sc(e,n,t,o)}).filter(function(t){return pc(e,t)});return l.length>0?{type:"group",data:n,options:l,index:o}:void 0}var a=sc(e,n,t,o);return pc(e,a)?a:void 0}).filter(qi)}function dc(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,ja(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function uc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,ja(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 pc(e,t){var n=e.inputValue,o=void 0===n?"":n,l=t.data,a=t.isSelected,r=t.label,i=t.value;return(!kc(e)||!a)&&vc(e,{label:r,value:i,data:l},o)}var hc=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},fc=function(e,t){return e.getOptionLabel(t)},bc=function(e,t){return e.getOptionValue(t)};function mc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function gc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=bc(e,t);return n.some(function(t){return bc(e,t)===o})}function vc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var kc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},yc=1,xc=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&&Ca(e,t)}(n,e);var t=function(e){var t=Ea();return function(){var n,o=Sa(e);if(t){var l=Sa(this).constructor;n=Reflect.construct(o,arguments,l)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==pa(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 o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=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:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,l=n.onChange,a=n.name;t.name=a,o.ariaOnChange(e,t),l(e,t)},o.setValue=function(e,t,n){var l=o.props,a=l.closeMenuOnSelect,r=l.isMulti,i=l.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:i}),a&&(o.setState({inputIsHiddenAfterUpdate:!r}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,l=t.isMulti,a=t.name,r=o.state.selectValue,i=l&&o.isOptionSelected(e,r),s=o.isOptionDisabled(e,r);if(i){var c=o.getOptionValue(e);o.setValue(r.filter(function(e){return o.getOptionValue(e)!==c}),"deselect-option",e)}else{if(s)return void o.ariaOnChange(e,{action:"select-option",option:e,name:a});l?o.setValue([].concat(ja(r),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,l=o.getOptionValue(e),a=n.filter(function(e){return o.getOptionValue(e)!==l}),r=Xi(t,a,a[0]||null);o.onChange(r,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(Xi(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],l=t.slice(0,t.length-1),a=Xi(e,l,l[0]||null);n&&o.onChange(a,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return hc(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return uc(cc(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ai.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return fc(o.props,e)},o.getOptionValue=function(e){return bc(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,l=ac[e](t,n);l.boxSizing="border-box";var a=o.props.styles[e];return a?a(l,t):l},o.getClassNames=function(e,t){var n,l;return null===(n=(l=o.props.classNames)[e])||void 0===n?void 0:n.call(l,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,ma(ma({},_s),e.components);var e},o.buildCategorizedOptions=function(){return cc(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return dc(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:ma({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,l=t.menuIsOpen;o.focusInput(),l?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ti(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var l=Math.abs(n.clientX-o.initialTouchX),a=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=l>5||a>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return kc(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,l=t.backspaceRemovesValue,a=t.escapeClearsValue,r=t.inputValue,i=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,d=t.onKeyDown,u=t.tabSelectsValue,p=t.openMenuOnFocus,h=o.state,f=h.focusedOption,b=h.focusedValue,m=h.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||r)return;o.focusValue("previous");break;case"ArrowRight":if(!n||r)return;o.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(b)o.removeValue(b);else{if(!l)return;n?o.popValue():i&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!u||!f||p&&o.isOptionSelected(f,m))return;o.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(o.isComposing)return;o.selectOption(f);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:r}),o.onMenuClose()):i&&a&&o.clearValue();break;case" ":if(r)return;if(!c){o.openMenu("first");break}if(!f)return;o.selectOption(f);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++yc),o.state.selectValue=Ri(e.value),e.menuIsOpen&&o.state.selectValue.length){var l=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),r=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=l,o.state.focusedOption=a[r],o.state.focusedOptionId=hc(l,a[r])}return o}return function(e,t,n){t&&_a(e.prototype,t),n&&_a(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&&Vi(this.menuListRef,this.focusedOptionRef),(lc()||oc(/^iPhone/i)||oc(/^iPad/i)||lc()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,l=this.state.isFocused;(l&&!n&&e.isDisabled||l&&o&&!e.menuIsOpen)&&this.focusInput(),l&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):l||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vi(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,o=n.selectValue,l=n.isFocused,a=this.buildFocusableOptions(),r="first"===e?0:a.length-1;if(!this.props.isMulti){var i=a.indexOf(o[0]);i>-1&&(r=i)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[r],focusedOptionId:this.getFocusedOptionId(a[r])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=n.indexOf(o);o||(l=-1);var a=n.length-1,r=-1;if(n.length){switch(e){case"previous":r=0===l?0:-1===l?a:l-1;break;case"next":l>-1&&l<a&&(r=l+1)}this.setState({inputIsHidden:-1!==r,focusedValue:n[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var l=0,a=o.indexOf(n);n||(a=-1),"up"===e?l=a>0?a-1:o.length-1:"down"===e?l=(a+1)%o.length:"pageup"===e?(l=a-t)<0&&(l=0):"pagedown"===e?(l=a+t)>o.length-1&&(l=o.length-1):"last"===e&&(l=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[l])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(rc):ma(ma({},rc),this.props.theme):rc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,l=this.getValue,a=this.selectOption,r=this.setValue,i=this.props,s=i.isMulti,c=i.isRtl,d=i.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:l,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:d,selectOption:a,selectProps:i,setValue:r,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 mc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return gc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return vc(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}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,o=e.inputId,l=e.inputValue,r=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,d=this.getComponents().Input,u=this.state,p=u.inputIsHidden,h=u.ariaSelection,f=this.commonProps,b=o||this.getElementId("input"),m=ma(ma(ma({"aria-autocomplete":"list","aria-expanded":s,"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.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"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(d,wa({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:i,type:"text",value:l},m)):a.createElement(zs,wa({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Li,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,l=t.MultiValueLabel,r=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,d=this.props,u=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,f=d.inputValue,b=d.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,k=m.isFocused;if(!this.hasValue()||!u)return f?null:a.createElement(s,wa({},c,{key:"placeholder",isDisabled:p,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),b);if(h)return g.map(function(t,i){var s=t===v,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,wa({},c,{components:{Container:o,Label:l,Remove:r},isFocused:s,isDisabled:p,key:d,index:i,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 y=g[0];return a.createElement(i,wa({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,l=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||l)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,wa({},t,{innerProps:i,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,l=n.isLoading,r=this.state.isFocused;return e&&l?a.createElement(e,wa({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,l=this.props.isDisabled,r=this.state.isFocused;return a.createElement(n,wa({},o,{isDisabled:l,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,wa({},t,{innerProps:l,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,l=t.Menu,r=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,u=this.commonProps,p=this.state.focusedOption,h=this.props,f=h.captureMenuScroll,b=h.inputValue,m=h.isLoading,g=h.loadingMessage,v=h.minMenuHeight,k=h.maxMenuHeight,y=h.menuIsOpen,x=h.menuPlacement,w=h.menuPosition,_=h.menuPortalTarget,C=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,E=h.noOptionsMessage,j=h.onMenuScrollToTop,O=h.onMenuScrollToBottom;if(!y)return null;var M,N=function(t,n){var o=t.type,l=t.data,r=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,h=p===l,f=r?void 0:function(){return e.onOptionHover(l)},b=r?void 0:function(){return e.selectOption(l)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:b,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:i};return a.createElement(d,wa({},u,{innerProps:g,data:l,isDisabled:r,isSelected:i,key:m,label:s,type:o,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map(function(t){if("group"===t.type){var l=t.data,r=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return a.createElement(n,wa({},u,{key:s,data:l,options:r,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return N(e,"".concat(i,"-").concat(e.index))}))}if("option"===t.type)return N(t,"".concat(t.index))});else if(m){var L=g({inputValue:b});if(null===L)return null;M=a.createElement(s,u,L)}else{var I=E({inputValue:b});if(null===I)return null;M=a.createElement(c,u,I)}var A={minMenuHeight:v,maxMenuHeight:k,menuPlacement:x,menuPosition:w,menuShouldScrollIntoView:S},R=a.createElement(ns,wa({},u,A),function(t){var n=t.ref,o=t.placerProps,i=o.placement,s=o.maxHeight;return a.createElement(l,wa({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:i}),a.createElement(ec,{captureEnabled:f,onTopArrive:j,onBottomArrive:O,lockEnabled:C},function(t){return a.createElement(r,wa({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:p}),M)}))});return _||"fixed"===w?a.createElement(i,wa({},u,{appendTo:_,controlElement:this.controlRef,menuPlacement:x,menuPosition:w}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,l=t.isMulti,r=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!o)return a.createElement(nc,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(l){if(n){var c=s.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:r,type:"hidden",value:c})}var d=s.length>0?s.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:r,type:"hidden",value:""});return a.createElement("div",null,d)}var u=s[0]?this.getOptionValue(s[0]):"";return a.createElement("input",{name:r,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,l=t.focusedValue,r=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return a.createElement(Ns,wa({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:l,isFocused:r,selectValue:i,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,l=e.ValueContainer,r=this.props,i=r.className,s=r.id,c=r.isDisabled,d=r.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.createElement(o,wa({},p,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),a.createElement(t,wa({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),a.createElement(l,wa({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,wa({},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,o=t.clearFocusValueOnUpdate,l=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,r=t.isFocused,i=t.prevWasFocused,s=t.instancePrefix,c=e.options,d=e.value,u=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=Ri(d),b={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var m=u?function(e,t){return dc(cc(e,t))}(e,f):[],g=u?uc(cc(e,f),"".concat(s,"-option")):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,f):null,k=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);b={selectValue:f,focusedOption:k,focusedOptionId:hc(g,k),focusableOptionsWithIds:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=l&&e!==n?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},x=a,w=r&&i;return r&&!w&&(x={value:Xi(h,f,f[0]||null),options:f,action:"initial-input-focus"},w=!i),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),ma(ma(ma({},b),y),{},{prevProps:e,ariaSelection:x,prevWasFocused:w})}}]),n}(a.Component);xc.defaultProps=ic;var wc=(0,a.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,l=void 0!==o&&o,r=e.defaultValue,i=void 0===r?null:r,s=e.inputValue,c=e.menuIsOpen,d=e.onChange,u=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,f=e.value,b=ya(e,xa),m=ka((0,a.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],k=ka((0,a.useState)(void 0!==c?c:l),2),y=k[0],x=k[1],w=ka((0,a.useState)(void 0!==f?f:i),2),_=w[0],C=w[1],S=(0,a.useCallback)(function(e,t){"function"==typeof d&&d(e,t),C(e)},[d]),E=(0,a.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)},[u]),j=(0,a.useCallback)(function(){"function"==typeof h&&h(),x(!0)},[h]),O=(0,a.useCallback)(function(){"function"==typeof p&&p(),x(!1)},[p]),M=void 0!==s?s:g,N=void 0!==c?c:y,L=void 0!==f?f:_;return ma(ma({},b),{},{inputValue:M,menuIsOpen:N,onChange:S,onInputChange:E,onMenuClose:O,onMenuOpen:j,value:L})}(e);return a.createElement(xc,wa({ref:t},n))}),_c=wc;class Cc extends y.Component{constructor(){super(...arguments),this.state={typographyOptions:[],typographySelectOptions:[],typographyWeights:[],typographyStyles:[],typographySubsets:""}}componentDidMount(){const e="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_font_names?kadence_blocks_params.g_font_names.map(e=>({label:e,value:e,google:!0})):{};let t=[{type:"group",label:(0,h.__)("Standard Fonts","kadence-blocks-pro"),options:[{label:"System Default",value:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',google:!1},{label:"Arial, Helvetica, sans-serif",value:"Arial, Helvetica, sans-serif",google:!1},{label:'"Arial Black", Gadget, sans-serif',value:'"Arial Black", Gadget, sans-serif',google:!1},{label:"Helvetica, sans-serif",value:"Helvetica, sans-serif",google:!1},{label:'"Comic Sans MS", cursive, sans-serif',value:'"Comic Sans MS", cursive, sans-serif',google:!1},{label:"Impact, Charcoal, sans-serif",value:"Impact, Charcoal, sans-serif",google:!1},{label:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',google:!1},{label:"Tahoma, Geneva, sans-serif",value:"Tahoma, Geneva, sans-serif",google:!1},{label:'"Trebuchet MS", Helvetica, sans-serif',value:'"Trebuchet MS", Helvetica, sans-serif',google:!1},{label:"Verdana, Geneva, sans-serif",value:"Verdana, Geneva, sans-serif",google:!1},{label:"Georgia, serif",value:"Georgia, serif",google:!1},{label:'"Palatino Linotype", "Book Antiqua", Palatino, serif',value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',google:!1},{label:'"Times New Roman", Times, serif',value:'"Times New Roman", Times, serif',google:!1},{label:"Courier, monospace",value:"Courier, monospace",google:!1},{label:'"Lucida Console", Monaco, monospace',value:'"Lucida Console", Monaco, monospace',google:!1}]},{type:"group",label:(0,h.__)("Google Fonts","kadence-blocks-pro"),options:e}];if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.c_fonts){const e=[];Object.keys(kadence_blocks_params.c_fonts).forEach(function(t){const n=kadence_blocks_params.c_fonts[t].name,o=kadence_blocks_params.c_fonts[t].label?kadence_blocks_params.c_fonts[t].label:n,l=[];Object.keys(kadence_blocks_params.c_fonts[t].weights).forEach(function(e){l.push({value:kadence_blocks_params.c_fonts[t].weights[e],label:kadence_blocks_params.c_fonts[t].weights[e]})});const a=[];Object.keys(kadence_blocks_params.c_fonts[t].styles).forEach(function(e){a.push({value:kadence_blocks_params.c_fonts[t].weights[e],label:kadence_blocks_params.c_fonts[t].weights[e]})}),e.push({label:o,value:n,google:!1,weights:l,styles:a})}),t=[{type:"group",label:(0,h.__)("Custom Fonts","kadence-blocks-pro"),options:e}].concat(t)}if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params?.isKadenceT){const e=[{label:"Inherit Heading Font Family",value:"var( --global-heading-font-family, inherit )",google:!1},{label:"Inherit Body Font Family",value:"var( --global-body-font-family, inherit )",google:!1}];t=[{type:"group",label:(0,h.__)("Theme Global Fonts","kadence-blocks-pro"),options:e}].concat(t)}let n=(0,Dl.applyFilters)("kadence.typography_options",t),o=[].concat.apply([],n.map(e=>e.options));const l=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==l["kadence/typography"]&&"object"==typeof l["kadence/typography"]&&(void 0===l["kadence/typography"].showAll||l["kadence/typography"].showAll||(n=l["kadence/typography"].choiceArray,o=l["kadence/typography"].choiceArray)),this.setState({typographyOptions:n}),this.setState({typographySelectOptions:o}),this.setTypographyOptions(o)}componentDidUpdate(e){this.props.fontFamily!==e.fontFamily&&this.setTypographyOptions(this.state.typographySelectOptions)}setTypographyOptions(e){let t=[{value:"inherit",label:(0,h.__)("Inherit","kadence-blocks-pro")},{value:"400",label:(0,h.__)("Normal","kadence-blocks-pro")},{value:"bold",label:(0,h.__)("Bold","kadence-blocks-pro")}];const n=[{value:"inherit",label:(0,h.__)("Inherit","kadence-blocks-pro")},{value:"100",label:(0,h.__)("Thin 100","kadence-blocks-pro")},{value:"200",label:(0,h.__)("Extra-Light 200","kadence-blocks-pro")},{value:"300",label:(0,h.__)("Light 300","kadence-blocks-pro")},{value:"400",label:(0,h.__)("Regular","kadence-blocks-pro")},{value:"500",label:(0,h.__)("Medium 500","kadence-blocks-pro")},{value:"600",label:(0,h.__)("Semi-Bold 600","kadence-blocks-pro")},{value:"700",label:(0,h.__)("Bold 700","kadence-blocks-pro")},{value:"800",label:(0,h.__)("Extra-Bold 800","kadence-blocks-pro")},{value:"900",label:(0,h.__)("Ultra-Bold 900","kadence-blocks-pro")}],o=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),l="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.headingWeights?kadence_blocks_params.headingWeights:[],a="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.bodyWeights?kadence_blocks_params.bodyWeights:[],r="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.buttonWeights?kadence_blocks_params.buttonWeights:[];o&&"heading"===this.props.fontGroup&&l&&Array.isArray(l)&&l.length&&(t=l),o&&"body"===this.props.fontGroup&&a&&Array.isArray(a)&&a.length&&(t=a),o&&"button"===this.props.fontGroup&&r&&Array.isArray(r)&&r.length&&(t=r);const i=[{value:"normal",label:(0,h.__)("Normal","kadence-blocks-pro")},{value:"italic",label:(0,h.__)("Italic","kadence-blocks-pro")}],s=e?e.filter(({value:e})=>e===this.props.fontFamily):"";let c=t,d=i,u="";s&&s[0]&&(void 0!==s[0].weights&&(c=s[0].weights),void 0!==s[0].styles&&(d=s[0].styles)),'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'===this.props.fontFamily?c=n:"var( --global-heading-font-family, inherit )"===this.props.fontFamily?c=l:"var( --global-body-font-family, inherit )"===this.props.fontFamily?c=a:this.props.googleFont&&this.props.fontFamily&&"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[this.props.fontFamily]&&(c=kadence_blocks_params.g_fonts[this.props.fontFamily].w.map(e=>({label:A(e),value:e})),d=kadence_blocks_params.g_fonts[this.props.fontFamily].i.map(e=>({label:A(e),value:e})),u=kadence_blocks_params.g_fonts[this.props.fontFamily].s.map(e=>({label:A(e),value:e}))),this.setState({typographyWeights:c}),this.setState({typographyStyles:d}),this.setState({typographySubsets:u}),this.setState({fontFamilyValue:s})}render(){const{tagLevel:e,label:t,htmlTag:n="heading",tagLowLevel:l=1,tagHighLevel:a=7,lineHeight:r,lineHeightType:i="",fontSize:s,fontSizeType:c="px",googleFont:f,loadGoogleFont:b,fontFamily:m,fontVariant:g,fontWeight:v,fontStyle:k,fontSubset:y,letterSpacing:x,margin:w,marginControl:_,padding:C,paddingControl:S,onTagLevel:E,onTagLevelHTML:j,onLineHeight:O,onFontSize:M,onFontFamily:N,onFontVariant:L,onFontWeight:A,onFontStyle:R,onFontSubset:B,onFontChange:P,onFontArrayChange:T,onLoadGoogleFont:F,onGoogleFont:D,onLetterSpacing:H,onFontSizeType:V,onLineHeightType:z,onPadding:$,onPaddingControl:U,onMargin:W,onMarginControl:G,loadItalic:q,onLoadItalic:X,textTransform:Z,onTextTransform:J,reLetterSpacing:Y=!1,letterSpacingType:K="px",otherTags:Q=[],onLetterSpacingType:ee,reset:te,defaultValue:ne={size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}}=this.props,{controlSize:oe,typographySelectOptions:le,typographyOptions:ae,typographySubsets:re,typographyStyles:ie,typographyWeights:se,fontFamilyValue:ce}=this.state,de={size:s,sizeType:c,lineHeight:r,lineType:i,letterSpacing:x,letterType:K,textTransform:Z,family:m,google:f,style:k,weight:v,variant:g,subset:y,loadGoogle:b},ue=(0,p.range)(l,a).map(t=>[{icon:(0,o.jsx)(da,{level:t,isPressed:!(1!==e||!n||"heading"!==n)}),title:(0,h.sprintf)(/* translators: %d: heading level e.g: "1", "2", "3" */ /* translators: %d: heading level e.g: "1", "2", "3" */ (0,h.__)("Heading %d","kadence-blocks-pro"),t),isActive:!(t!==e||!n||"heading"!==n),onClick:()=>j(t,"heading")}]);Q.p&&ue.push([{icon:(0,o.jsx)(da,{level:"p",isPressed:!(!n||"p"!==n)}),title:(0,h.__)("Paragraph","kadence-blocks-pro"),isActive:!(!n||"p"!==n),onClick:()=>j(2,"p")}]),Q.span&&ue.push([{icon:(0,o.jsx)(da,{level:"span",isPressed:!(!n||"span"!==n)}),title:(0,h.__)("Span","kadence-blocks-pro"),isActive:!(!n||"span"!==n),onClick:()=>j(2,"span")}]),Q.div&&ue.push([{icon:(0,o.jsx)(da,{level:"div",isPressed:!(!n||"div"!==n)}),title:(0,h.__)("Div","kadence-blocks-pro"),isActive:!(!n||"div"!==n),onClick:()=>j(2,"div")}]);const pe=()=>{T?T({google:!1,family:"",variant:"",weight:"inherit",style:"normal",subset:""}):(D(!1),N(""),L(""),A("inherit"),R("normal"),B(""))},he=[{value:"none",label:(0,h.__)("-","kadence-blocks-pro"),tooltip:(0,h.__)("None","kadence-blocks-pro")},{value:"uppercase",label:(0,h.__)("AB","kadence-blocks-pro"),tooltip:(0,h.__)("Uppercase","kadence-blocks-pro")},{value:"lowercase",label:(0,h.__)("ab","kadence-blocks-pro"),tooltip:(0,h.__)("Lowercase","kadence-blocks-pro")},{value:"capitalize",label:(0,h.__)("Ab","kadence-blocks-pro"),tooltip:(0,h.__)("Capitalize","kadence-blocks-pro")}],fe="px"!==c?120:3e3,be="px"!==c?.001:1,me="px"!==i?.2:5,ge="px"!==i?120:3e3,ve="px"!==i?.001:1,ke=se.some(function(e){return"regular"===e.value});return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"components-base-control kb-typography-control",children:[t&&(0,o.jsx)("div",{className:"kadence-title-bar kadence-component__header",children:(0,o.jsx)("label",{className:"kadence-heading-fontfamily-title components-typography-control__label kadence-component__header__title",children:t})}),(0,o.jsxs)("div",{className:"kadence-title-bar",children:[t&&(0,o.jsx)("h2",{className:"kt-heading-fontfamily-title",children:t}),te&&(0,o.jsx)(d.Button,{className:"is-reset is-single",isSmall:!0,disabled:!!(0,p.isEqual)(de,ne),icon:I,onClick:()=>{"function"==typeof te?te():T(ne)}})]}),E&&(0,o.jsxs)(o.Fragment,{children:[j&&(0,o.jsx)(ua,{label:(0,h.__)("HTML Tag","kadence-blocks-pro"),value:"heading"===n?e:n,onChange:e=>{"div"===e||"p"===e||"span"===e?j(2,e):j(e,"heading")},otherTags:Q}),!j&&(0,o.jsx)(ua,{label:(0,h.__)("HTML Tag","kadence-blocks-pro"),value:e,headingOnly:!0,tagHighLevel:a,tagLowLevel:l,onChange:e=>{E(e)}})]}),M&&V&&(0,o.jsx)(ra,{label:(0,h.__)("Font Size","kadence-blocks-pro"),value:s&&void 0!==s[0]?s[0]:"",onChange:e=>M([e,s&&void 0!==s[1]?s[1]:"",s&&void 0!==s[2]?s[2]:""]),tabletValue:s&&void 0!==s[1]?s[1]:"",onChangeTablet:e=>M([s&&void 0!==s[0]?s[0]:"",e,s&&void 0!==s[2]?s[2]:""]),mobileValue:s&&void 0!==s[2]?s[2]:"",onChangeMobile:e=>M([s&&void 0!==s[0]?s[0]:"",s&&void 0!==s[1]?s[1]:"",e]),min:0,max:fe,step:be,unit:c||"px",onUnit:e=>V(e),units:["px","em","rem","vw"]}),!J&&O&&z&&(0,o.jsx)(sa,{label:(0,h.__)("Line Height","kadence-blocks-pro"),value:r&&void 0!==r[0]?r[0]:"",onChange:e=>O([e,r&&void 0!==r[1]?r[1]:"",r&&void 0!==r[2]?r[2]:""]),tabletValue:r&&void 0!==r[1]?r[1]:"",onChangeTablet:e=>O([r&&void 0!==r[0]?r[0]:"",e,r&&void 0!==r[2]?r[2]:""]),mobileValue:r&&void 0!==r[2]?r[2]:"",onChangeMobile:e=>O([r&&void 0!==r[0]?r[0]:"",r&&void 0!==r[1]?r[1]:"",e]),min:me,max:ge,step:ve,unit:i||"-",onUnit:e=>z(e),units:["-","px","em","rem"]}),J&&O&&z&&(0,o.jsxs)(ca,{className:"kb-font-settings",children:[(0,o.jsx)(sa,{label:(0,h.__)("Line Height","kadence-blocks-pro"),value:r&&void 0!==r[0]?r[0]:"",onChange:e=>O([e,r&&void 0!==r[1]?r[1]:"",r&&void 0!==r[2]?r[2]:""]),tabletValue:r&&void 0!==r[1]?r[1]:"",onChangeTablet:e=>O([r&&void 0!==r[0]?r[0]:"",e,r&&void 0!==r[2]?r[2]:""]),mobileValue:r&&void 0!==r[2]?r[2]:"",onChangeMobile:e=>O([r&&void 0!==r[0]?r[0]:"",r&&void 0!==r[1]?r[1]:"",e]),min:me,max:ge,step:ve,unit:i||"-",onUnit:e=>z(e),units:["-","px","em","rem"],compressedDevice:!0}),(0,o.jsx)(Bl,{label:(0,h.__)("Letter Case","kadence-blocks-pro"),value:Z,options:he,className:"kb-letter-case",allowClear:!0,onChange:e=>J(e)})]}),J&&(!O||!z)&&(0,o.jsx)(Bl,{label:(0,h.__)("Letter Case","kadence-blocks-pro"),value:Z,options:he,className:"kb-letter-case",allowClear:!0,onChange:e=>J(e)}),N&&pe&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"components-base-control",children:[(0,o.jsx)("div",{className:"kadence-component__header kadence-title-bar",children:(0,o.jsx)("label",{className:"kadence-control-title kadence-component__header__title",children:(0,h.__)("Font Family","kadence-blocks-pro")})}),(0,o.jsx)("div",{className:"typography-family-select-form-row",children:(0,o.jsx)(_c,{options:ae,value:ce,classNamePrefix:"kb-react-select",isMulti:!1,maxMenuHeight:300,isClearable:!0,placeholder:(0,h.__)("Select a font family","kadence-blocks-pro"),onChange:e=>{if(null===e)pe();else{let t,n,o;e.google?(t="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].v.includes("regular")?kadence_blocks_params.g_fonts[e.value].v[0]:"regular",n="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].w.includes("regular")?kadence_blocks_params.g_fonts[e.value].w[0]:"400",o="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[e.value].s.length>1?"latin":""):(o="",t="",n=void 0!==e.weights?.[0]?.value?e.weights[0].value:"inherit"),T?T({google:e.google,family:e.value,variant:t,weight:n,style:"normal",subset:o}):(P(e),L(t),A(n),R("normal"),B(o))}},styles:{control:(e,t)=>({...e,borderColor:"rgb(30, 30, 30)",borderRadius:"2px",":hover":{borderColor:"rgb(30, 30, 30)"}})}})})]}),A&&(0,o.jsx)(d.SelectControl,{label:(0,h.__)("Font Weight","kadence-blocks-pro"),value:"400"===v&&ke?"regular":v,options:se,onChange:e=>{if(f){let t;t="italic"===k?"regular"===e?"italic":e+"italic":e,T?T({variant:t,weight:"regular"===e?"400":e}):(L(t),A("regular"===e?"400":e))}else T?T({variant:"",weight:"regular"===e?"400":e}):(L(""),A("regular"===e?"400":e))},className:"kb-select-style"}),m&&R&&(0,o.jsx)(d.SelectControl,{label:(0,h.__)("Font Style","kadence-blocks-pro"),value:k,options:ie,onChange:e=>{if(f){let t;t="italic"===e?v&&"regular"!==v?v+"italic":"italic":v||"regular",T?T({variant:t,style:e}):(L(t),R(e))}else T?T({variant:"",style:e}):(L(""),R(e))},className:"kb-select-style"}),m&&f&&F&&(0,o.jsx)(d.ToggleControl,{label:(0,h.__)("Load Google Font on Frontend","kadence-blocks-pro"),checked:b,onChange:F}),m&&f&&b&&R&&"normal"===k&&X&&void 0!==ie[1]&&void 0!==ie[1].value&&"italic"===ie[1].value&&(0,o.jsx)(d.ToggleControl,{label:(0,h.__)("Load Italic Styles Also","kadence-blocks-pro"),checked:q,onChange:X}),H&&Y&&(0,o.jsx)(sa,{label:(0,h.__)("Letter Spacing","kadence-blocks-pro"),value:void 0!==Y&&void 0!==Y[0]?Y[0]:"",onChange:e=>H([e,void 0!==Y&&void 0!==Y[1]?Y[1]:"",void 0!==Y&&void 0!==Y[2]?Y[2]:""]),tabletValue:void 0!==Y&&void 0!==Y[1]?Y[1]:"",onChangeTablet:e=>H([void 0!==Y&&void 0!==Y[0]?Y[0]:"",e,void 0!==Y&&void 0!==Y[2]?Y[2]:""]),mobileValue:void 0!==Y&&void 0!==Y[2]?Y[2]:"",onChangeMobile:e=>H([void 0!==Y&&void 0!==Y[0]?Y[0]:"",void 0!==Y&&void 0!==Y[1]?Y[1]:"",e]),min:-5,max:25,step:ee&&"px"===ee?.1:.01,unit:ee?K:"px",onUnit:e=>ee(e),units:ee?["px","em","rem"]:["px"]}),H&&!Y&&(0,o.jsx)(u,{label:(0,h.__)("Letter Spacing","kadence-blocks-pro"),value:void 0!==x?x:"",onChange:e=>H(e),min:-5,max:25,step:.1})]}),$&&U&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(yl,{label:(0,h.__)("Padding (px)","kadence-blocks-pro"),measurement:C||"",control:S,onChange:e=>$(e),onControl:e=>U(e),min:0,max:100,step:1,allowEmpty:!1})}),W&&G&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(yl,{label:(0,h.__)("Margin (px)","kadence-blocks-pro"),measurement:w||"",control:_,onChange:e=>W(e),onControl:e=>G(e),min:-100,max:100,step:1,allowEmpty:!1})})]})})}}const Sc=Cc,Ec=(e,t=!0)=>{try{var n=JSON.parse(e);if(n&&"object"==typeof n)return n}catch(e){}return e&&"object"==typeof e?e:!!t&&{}};function jc({attributes:e,defaultAttributes:t={},blockSlug:n,excludedAttrs:l=[],preventMultiple:a=[]}){const[r,i]=(0,y.useState)(kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin");if("admin"!==r)return null;const{createErrorNotice:s,createSuccessNotice:c}=(0,w.useDispatch)(Xl.store),[u,b]=(0,y.useState)(!1),[m,g]=(0,y.useState)(!1),[v,k]=(0,y.useState)(!1),x=Ec((0,p.get)(kadence_blocks_params,["configuration"],{}),!0),_=(0,p.get)(x,n,{}),[C,S]=(0,y.useState)(_),E=0!==Object.keys(_).length;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(L,{title:(0,h.__)("Block Defaults","kadence-blocks-pro"),initialOpen:!1,panelName:`kb-${n}-defaults`,children:[(0,h.__)("This will set the current block attributes as the default styles for this block type.","kadence-blocks-pro")," ",(0,h.__)("This will not modify any blocks that have already been created.","kadence-blocks-pro")," ",(0,h.__)("Block content is not included.","kadence-blocks-pro")," ",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)(d.Button,{isPrimary:!0,onClick:()=>g(!0),children:(0,h.__)(" Save as default","kadence-blocks-pro")}),E&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)("a",{href:"#",onClick:()=>k(!0),children:(0,h.__)("Modify attributes","kadence-blocks-pro")}),(0,o.jsx)("a",{href:"#",style:{color:"red",float:"right"},onClick:()=>b(!0),children:(0,h.__)("Reset defaults","kadence-blocks-pro")})]})]}),(0,o.jsx)(d.__experimentalConfirmDialog,{isOpen:u,onConfirm:()=>(()=>{let e=kadence_blocks_params.configuration?Ec(kadence_blocks_params.configuration,!0):{};e=(0,p.omit)(e,n),ql()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_config_blocks:JSON.stringify(e)}}).then(()=>{c((0,h.__)("Block default saved","kadence-blocks-pro"),{type:"snackbar"}),b(!1),kadence_blocks_params.configuration=JSON.stringify(e),S({})})})(),onCancel:()=>b(!1),children:(0,h.__)("Are you sure you'd like to reset this blocks default attributes?","kadence-blocks-pro")}),(0,o.jsx)(d.__experimentalConfirmDialog,{isOpen:m,onConfirm:()=>(()=>{const o=f(e,t,l,a),r=kadence_blocks_params.configuration?Ec(kadence_blocks_params.configuration,!0):{};r[n]=o,ql()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_config_blocks:JSON.stringify(r)}}).then(()=>{c((0,h.__)("Block default saved","kadence-blocks-pro"),{type:"snackbar"}),b(!1),kadence_blocks_params.configuration=JSON.stringify(r),S({})})})(),onCancel:()=>g(!1),children:(0,h.__)("Are you sure you'd like to save this as the blocks default attributes?","kadence-blocks-pro")}),v?(0,o.jsxs)(d.Modal,{className:"kt-block-defaults-modal",title:(0,h.__)("Modify Block Defaults","kadence-blocks-pro"),onRequestClose:()=>{S(_),k(!1)},children:[Object.keys(C).map((e,t)=>(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{style:{marginBottom:"10px"},children:[(0,o.jsx)(d.Button,{onClick:()=>S((0,p.omit)(C,e)),children:(0,o.jsx)("span",{className:"dashicons dashicons-trash"})}),(0,o.jsx)("span",{style:{verticalAlign:"super"},children:e})]},t)})),(0,o.jsxs)("div",{className:"kb-modal-footer",children:[(0,o.jsx)(d.Button,{className:"kt-defaults-save",isDestructive:!0,disabled:!1,onClick:()=>{S(_),k(!1)},children:(0,h.__)("Cancel","kadence-blocks-pro")}),(0,o.jsx)(d.Button,{className:"kt-defaults-save",isPrimary:!0,onClick:()=>{(()=>{const e=kadence_blocks_params.configuration?Ec(kadence_blocks_params.configuration,!0):{};e[n]=C,ql()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_config_blocks:JSON.stringify(e)}}).then(()=>{c((0,h.__)("Block default saved","kadence-blocks-pro"),{type:"snackbar"}),kadence_blocks_params.configuration=JSON.stringify(e)})})(),k(!1)},children:(0,h.__)("Save","kadence-blocks-pro")})]})]}):null]})}class Oc extends y.Component{constructor(){super(...arguments),this.state={status:void 0,mounted:!1,loadedFonts:new Set},this.linkElements=new Map}loadFonts(){this.state.mounted&&this.props.config?.google?.families?.length&&this.props.config.google.families.forEach(e=>{if(!this.state.loadedFonts.has(e)){this.setState({status:"loading"});const t=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(e.replace(/ /g,"+"))}&display=swap`,n=document.createElement("link");n.rel="stylesheet",n.href=t,n.onload=()=>{this.setState(t=>({status:"active",loadedFonts:new Set([...t.loadedFonts,e])}))},n.onerror=()=>{this.setState({status:"inactive"})},(frames["editor-canvas"]?.document||document).head.appendChild(n),this.linkElements.set(e,n)}})}componentDidMount(){this.setState({mounted:!0,device:this.props.getPreviewDevice}),this.loadFonts()}componentDidUpdate(e,t){const{onStatus:n,config:o,getPreviewDevice:l}=this.props;t.status!==this.state.status&&n(this.state.status),this.state.device!==l?(this.state.loadedFonts.clear(),this.setState({device:l}),this.loadFonts()):e.config!==o&&this.loadFonts()}componentWillUnmount(){this.setState({mounted:!1}),this.linkElements.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),this.linkElements.clear()}render(){const{children:e}=this.props;return e||null}}Oc.propTypes={config:ne().object.isRequired,children:ne().element,onStatus:ne().func.isRequired},Oc.defaultProps={onStatus:()=>{}};const Mc=(0,C.compose)([(0,w.withSelect)(e=>({getPreviewDevice:e("kadenceblocks/data").getPreviewDeviceType()}))])(Oc),Nc=window.wp.widgets;function Lc(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function Ic(e,t,n){return Ac(e,t,void 0!==n?.[0]?n?.[0]:[],void 0!==n?.[1]?n?.[1]:[],void 0!==n?.[2]?n?.[2]:[])}function Ac(e,t="top",n,o,l,a=!1){if("Mobile"===e){if(void 0!==l?.[0]?.[t]?.[0]&&""!==l?.[0]?.[t]?.[0])return ol(l?.[0]?.[t]?.[0]);if(""!==o?.[0]?.[t]?.[0])return ol(o?.[0]?.[t]?.[0]);if(a&&Ic(e,t,a))return Ic(e,t,a)}else if("Tablet"===e){if(void 0!==o?.[0]?.[t]?.[0]&&""!==o?.[0]?.[t]?.[0])return ol(o?.[0]?.[t]?.[0]);if(a&&Ic(e,t,a))return Ic(e,t,a)}return void 0!==n?.[0]?.[t]?.[0]&&""!==n?.[0]?.[t]?.[0]?ol(n?.[0]?.[t]?.[0]):a&&Ic(e,t,a)?Ic(e,t,a):""}function Rc(e,t,n){return Bc(e,t,void 0!==n?.[0]?n?.[0]:[],void 0!==n?.[1]?n?.[1]:[],void 0!==n?.[2]?n?.[2]:[])}function Bc(e,t="top",n,o,l,a=!1){if("Mobile"===e){if(void 0!==l?.[0]?.[t]?.[1]&&""!==l?.[0]?.[t]?.[1])return l?.[0]?.[t]?.[1];if(""!==o?.[0]?.[t]?.[1])return o?.[0]?.[t]?.[1];if(a&&Rc(e,t,a))return Rc(e,t,a)}else if("Tablet"===e){if(void 0!==o?.[0]?.[t]?.[1]&&""!==o?.[0]?.[t]?.[1])return o?.[0]?.[t]?.[1];if(a&&Rc(e,t,a))return Rc(e,t,a)}return void 0!==n?.[0]?.[t]?.[1]&&""!==n?.[0]?.[t]?.[1]?n?.[0]?.[t]?.[1]:a&&Rc(e,t,a)?Rc(e,t,a):""}function Pc(e,t,n){return Tc(e,t,void 0!==n?.[0]?n?.[0]:[],void 0!==n?.[1]?n?.[1]:[],void 0!==n?.[2]?n?.[2]:[])}function Tc(e,t="top",n,o,l,a=!1){if("Mobile"===e){if(void 0!==l?.[0]?.[t]?.[2]&&""!==l?.[0]?.[t]?.[2])return l?.[0]?.[t]?.[2]+Dc(e,n,o,l,a);if(""!==o?.[0]?.[t]?.[2])return o?.[0]?.[t]?.[2]+Dc(e,n,o,l,a);if(a&&Pc(e,t,a))return Pc(e,t,a)}else if("Tablet"===e){if(void 0!==o?.[0]?.[t]?.[2]&&""!==o?.[0]?.[t]?.[2])return o?.[0]?.[t]?.[2]+Dc(e,n,o,l,a);if(a&&Pc(e,t,a))return Pc(e,t,a)}return void 0!==n?.[0]?.[t]?.[2]&&""!==n?.[0]?.[t]?.[2]?n?.[0]?.[t]?.[2]+Dc(e,n,o,l,a):a&&Pc(e,t,a)?Pc(e,t,a):""}function Fc(e,t){return Dc(e,void 0!==t?.[0]?t?.[0]:[],void 0!==t?.[1]?t?.[1]:[],void 0!==t?.[2]?t?.[2]:[])}function Dc(e,t,n,o,l=!1){if("Mobile"===e){if(void 0!==o?.[0]?.unit&&""!==o?.[0]?.unit)return o[0].unit;if(void 0!==n?.[0]?.unit&&""!==n?.[0]?.unit)return n[0].unit;if(l&&Fc(e,l))return Fc(e,l)}else if("Tablet"===e){if(void 0!==n?.[0]?.unit&&""!==n?.[0]?.unit)return n[0].unit;if(l&&Fc(e,l))return Fc(e,l)}return void 0!==t?.[0]?.unit&&""!==t?.[0]?.unit?t[0].unit:l&&Fc(e,l)?Fc(e,l):"px"}const Hc=(e,t="top",n,o,l,a=!1)=>(0,y.useMemo)(()=>{const r=Tc(e,t,n,o,l,a);if(!r)return"";let i=Ac(e,t,n,o,l,a);i||(i="transparent");let s=Bc(e,t,n,o,l,a);return s||(s="solid"),r+" "+s+" "+i},[e,t,n,o,l,a]),Vc=(e,t,n,o,l=!1)=>l?zc(e,t,n,o):(0,y.useMemo)(()=>zc(e,t,n,o),[e,t,n,o]);function zc(e,t,n,o){if("Mobile"===e){if(void 0!==o&&""!==o&&null!==o)return o;if(void 0!==n&&""!==n&&null!==n)return n}else if("Tablet"===e&&void 0!==n&&""!==n&&null!==n)return n;return void 0!==t?t:""}function $c(e,t,n=Nl){if(!e)return"";if(!n)return e;if("0"===e)return"0";const o=n.find(t=>t.value===e);return o?o.output:e+t}const Uc=window.wp.editor,Wc=/[\s#]/g,Gc=[{attributes:{uniqueID:{type:"string",default:""},customID:{type:"string",default:""},modalAnimateIn:{type:"string",default:"fadeup"},modalAnimateOut:{type:"string",default:"fadeout"},modalHAlign:{type:"string",default:"center"},modalVAlign:{type:"string",default:"middle"},modalInnerHAlign:{type:"string",default:"left"},modalInnerVAlign:{type:"string",default:"top"},modalHeight:{type:"string",default:"fittocontent"},modalCustomHeight:{type:"number",default:400},modalWidth:{type:"array",default:[100,100,100]},modalMaxWidth:{type:"number",default:600},modalOverlay:{type:"string",default:"#000000"},modalOverlayOpacity:{type:"number",default:.6},modalBackground:{type:"string",default:"#ffffff"},modalBackgroundOpacity:{type:"number",default:1},modalBorderColor:{type:"string",default:"#ffffff"},modalBorderOpacity:{type:"number",default:1},modalBorderWidth:{type:"array",default:[0,0,0,0]},modalBorderRadius:{type:"number",default:0},modalPadding:{type:"array",default:[30,30,30,30]},modalMargin:{type:"array",default:[20,20,20,20]},displayClose:{type:"boolean",default:!0},closePosition:{type:"string",default:"inside"},closeSize:{type:"array",default:[24,24,24]},closeModal:{type:"string",default:(0,h.__)("Close Modal")},closeColor:{type:"string",default:""},closeHoverColor:{type:"string",default:""},closeBackground:{type:"string",default:""},closeHoverBackground:{type:"string",default:""},displayModalLink:{type:"boolean",default:!0},modalLink:{type:"array",source:"children",selector:".kt-blocks-modal-link-inner",default:(0,h.__)("Learn More")},modalLinkStyles:{type:"array",default:[{size:[16,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],margin:[0,0,0,0],hideLabel:!1,iconSide:"right",icon:"",color:"#555555",background:"transparent",border:"#555555",borderRadius:4,borderWidth:[2,2,2,2],colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hideLabelTablet:"",hideLabelMobile:""}]},displayLinkShadow:{type:"boolean",default:!1},linkShadow:{type:"array",default:[{color:"rgba(0,0,0,0.2)",spread:0,blur:2,hOffset:1,vOffset:1}]},displayLinkHoverShadow:{type:"boolean",default:!1},linkHoverShadow:{type:"array",default:[{color:"rgba(0,0,0,0.4)",spread:0,blur:3,hOffset:2,vOffset:2}]},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},linkAlign:{type:"string",default:"center"},loadFooter:{type:"boolean",default:!1},inQueryBlock:{type:"boolean",default:!1},hideModalContentPreview:{type:"boolean",default:!1},linkInheritStyles:{type:"string",default:"custom"},anchor:{type:"string",default:""}},save:({attributes:e})=>{const{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:c,modalLinkStyles:d,modalAnimateIn:u,modalAnimateOut:p,align:h,linkAlign:f,closePosition:b,loadFooter:m,linkInheritStyles:g}=e,v=s()({[`kb-btn-global-${g}`]:g,"kt-button":g&&"inherit"===g,"wp-block-button__link":g&&"inherit"===g,"kt-modal-label-hide":d[0].hideLabel,"kt-modal-label-show":!d[0].hideLabel,"kt-blocks-modal-link":!0}),k=s()({"wp-block-kadence-modal":!0,[`align${h||"none"}`]:!0,[`kt-modal-linkalign-${f||"none"}`]:!0}),w=x.useBlockProps.save({className:k,id:`kt-modal${t}`});return(0,a.createElement)("div",{...w,id:`kt-modal${t}`},m?(0,a.createElement)(y.Fragment,null,(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer"}),(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${u} kt-m-animate-out-${p}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${b}`,role:"dialog","aria-modal":"true"},o&&"inside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer-end"})):(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${u} kt-m-animate-out-${p}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${b}`,role:"dialog","aria-modal":"true"},o&&"inside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),c&&(0,a.createElement)("button",{className:v,"data-modal-open":`${n||"kt-target-modal"+t}`},d[0].icon&&"left"===d[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${d[0].icon} kt-btn-side-${d[0].iconSide}`,name:d[0].icon,size:d[0].size[0]?d[0].size[0]:"14"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),d[0].icon&&"right"===d[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${d[0].icon} kt-btn-side-${d[0].iconSide}`,name:d[0].icon,size:d[0].size[0]?d[0].size[0]:"14"})))}},{attributes:{uniqueID:{type:"string",default:""},customID:{type:"string",default:""},modalAnimateIn:{type:"string",default:"fadeup"},modalAnimateOut:{type:"string",default:"fadeout"},modalHAlign:{type:"string",default:"center"},modalVAlign:{type:"string",default:"middle"},modalInnerHAlign:{type:"string",default:"left"},modalInnerVAlign:{type:"string",default:"top"},modalHeight:{type:"string",default:"fittocontent"},modalCustomHeight:{type:"number",default:400},modalWidth:{type:"array",default:[100,100,100]},modalMaxWidth:{type:"number",default:600},modalOverlay:{type:"string",default:"#000000"},modalOverlayOpacity:{type:"number",default:.6},modalBackground:{type:"string",default:"#ffffff"},modalBackgroundOpacity:{type:"number",default:1},modalBorderColor:{type:"string",default:"#ffffff"},modalBorderOpacity:{type:"number",default:1},modalBorderWidth:{type:"array",default:[0,0,0,0]},modalBorderRadius:{type:"number",default:0},modalPadding:{type:"array",default:[30,30,30,30]},modalMargin:{type:"array",default:[20,20,20,20]},displayClose:{type:"boolean",default:!0},closePosition:{type:"string",default:"inside"},closeSize:{type:"array",default:[24,24,24]},closeModal:{type:"string",default:(0,h.__)("Close Modal")},closeColor:{type:"string",default:""},closeHoverColor:{type:"string",default:""},closeBackground:{type:"string",default:""},closeHoverBackground:{type:"string",default:""},displayModalLink:{type:"boolean",default:!0},modalLink:{type:"array",source:"children",selector:".kt-blocks-modal-link-inner",default:(0,h.__)("Learn More")},modalLinkStyles:{type:"array",default:[{size:[16,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],margin:[0,0,0,0],hideLabel:!1,iconSide:"right",icon:"",color:"#555555",background:"transparent",border:"#555555",borderRadius:4,borderWidth:[2,2,2,2],colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hideLabelTablet:"",hideLabelMobile:""}]},displayLinkShadow:{type:"boolean",default:!1},linkShadow:{type:"array",default:[{color:"rgba(0,0,0,0.2)",spread:0,blur:2,hOffset:1,vOffset:1}]},displayLinkHoverShadow:{type:"boolean",default:!1},linkHoverShadow:{type:"array",default:[{color:"rgba(0,0,0,0.4)",spread:0,blur:3,hOffset:2,vOffset:2}]},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},linkAlign:{type:"string",default:"center"},loadFooter:{type:"boolean",default:!1},inQueryBlock:{type:"boolean",default:!1},hideModalContentPreview:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:s,modalLinkStyles:c,modalAnimateIn:d,modalAnimateOut:u,align:p,linkAlign:h,closePosition:f,loadFooter:b}=e;return(0,a.createElement)("div",{id:`kt-modal${t}`,className:`wp-block-kadence-modal align${p||"none"} kt-modal-linkalign-${h||"none"}`},b?(0,a.createElement)(y.Fragment,null,(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer"}),(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer-end"})):(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),s&&(0,a.createElement)("button",{className:"kt-blocks-modal-link kt-modal-label-"+(c[0].hideLabel?"hide":"show"),"data-modal-open":`${n||"kt-target-modal"+t}`},c[0].icon&&"left"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),c[0].icon&&"right"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"})))}},{attributes:{uniqueID:{type:"string",default:""},customID:{type:"string",default:""},modalAnimateIn:{type:"string",default:"fadeup"},modalAnimateOut:{type:"string",default:"fadeout"},modalHAlign:{type:"string",default:"center"},modalVAlign:{type:"string",default:"middle"},modalInnerHAlign:{type:"string",default:"left"},modalInnerVAlign:{type:"string",default:"top"},modalHeight:{type:"string",default:"fittocontent"},modalCustomHeight:{type:"number",default:400},modalWidth:{type:"array",default:[100,100,100]},modalMaxWidth:{type:"number",default:600},modalOverlay:{type:"string",default:"#000000"},modalOverlayOpacity:{type:"number",default:.6},modalBackground:{type:"string",default:"#ffffff"},modalBackgroundOpacity:{type:"number",default:1},modalBorderColor:{type:"string",default:"#ffffff"},modalBorderOpacity:{type:"number",default:1},modalBorderWidth:{type:"array",default:[0,0,0,0]},modalBorderRadius:{type:"number",default:0},modalPadding:{type:"array",default:[30,30,30,30]},modalMargin:{type:"array",default:[20,20,20,20]},displayClose:{type:"boolean",default:!0},closePosition:{type:"string",default:"inside"},closeSize:{type:"array",default:[24,24,24]},closeModal:{type:"string",default:(0,h.__)("Close Modal")},closeColor:{type:"string",default:""},closeHoverColor:{type:"string",default:""},closeBackground:{type:"string",default:""},closeHoverBackground:{type:"string",default:""},displayModalLink:{type:"boolean",default:!0},modalLink:{type:"array",source:"children",selector:".kt-blocks-modal-link-inner",default:(0,h.__)("Learn More")},modalLinkStyles:{type:"array",default:[{size:[16,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],margin:[0,0,0,0],hideLabel:!1,iconSide:"right",icon:"",color:"#555555",background:"transparent",border:"#555555",borderRadius:4,borderWidth:[2,2,2,2],colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hideLabelTablet:"",hideLabelMobile:""}]},displayLinkShadow:{type:"boolean",default:!1},linkShadow:{type:"array",default:[{color:"rgba(0,0,0,0.2)",spread:0,blur:2,hOffset:1,vOffset:1}]},displayLinkHoverShadow:{type:"boolean",default:!1},linkHoverShadow:{type:"array",default:[{color:"rgba(0,0,0,0.4)",spread:0,blur:3,hOffset:2,vOffset:2}]},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},linkAlign:{type:"string",default:"center"},loadFooter:{type:"boolean",default:!1},inQueryBlock:{type:"boolean",default:!1},hideModalContentPreview:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:s,modalLinkStyles:c,modalAnimateIn:d,modalAnimateOut:u,align:p,linkAlign:h,closePosition:f,loadFooter:b}=e;return(0,a.createElement)("div",{id:`kt-modal${t}`,className:`wp-block-kadence-modal align${p||"none"} kt-modal-linkalign-${h||"none"}`},b?(0,a.createElement)(y.Fragment,null,(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer"}),(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer-end"})):(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),s&&(0,a.createElement)("a",{className:"kt-blocks-modal-link kt-modal-label-"+(c[0].hideLabel?"hide":"show"),role:"button","data-modal-open":`${n||"kt-target-modal"+t}`},c[0].icon&&"left"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),c[0].icon&&"right"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"})))}},{attributes:{uniqueID:{type:"string",default:""},customID:{type:"string",default:""},modalAnimateIn:{type:"string",default:"fadeup"},modalAnimateOut:{type:"string",default:"fadeout"},modalHAlign:{type:"string",default:"center"},modalVAlign:{type:"string",default:"middle"},modalInnerHAlign:{type:"string",default:"left"},modalInnerVAlign:{type:"string",default:"top"},modalHeight:{type:"string",default:"fittocontent"},modalCustomHeight:{type:"number",default:400},modalWidth:{type:"array",default:[100,100,100]},modalMaxWidth:{type:"number",default:600},modalOverlay:{type:"string",default:"#000000"},modalOverlayOpacity:{type:"number",default:.6},modalBackground:{type:"string",default:"#ffffff"},modalBackgroundOpacity:{type:"number",default:1},modalBorderColor:{type:"string",default:"#ffffff"},modalBorderOpacity:{type:"number",default:1},modalBorderWidth:{type:"array",default:[0,0,0,0]},modalBorderRadius:{type:"number",default:0},modalPadding:{type:"array",default:[30,30,30,30]},modalMargin:{type:"array",default:[20,20,20,20]},displayClose:{type:"boolean",default:!0},closePosition:{type:"string",default:"inside"},closeSize:{type:"array",default:[24,24,24]},closeModal:{type:"string",default:(0,h.__)("Close Modal")},closeColor:{type:"string",default:""},closeHoverColor:{type:"string",default:""},closeBackground:{type:"string",default:""},closeHoverBackground:{type:"string",default:""},displayModalLink:{type:"boolean",default:!0},modalLink:{type:"array",source:"children",selector:".kt-blocks-modal-link-inner",default:(0,h.__)("Learn More")},modalLinkStyles:{type:"array",default:[{size:[16,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],margin:[0,0,0,0],hideLabel:!1,iconSide:"right",icon:"",color:"#555555",background:"transparent",border:"#555555",borderRadius:4,borderWidth:[2,2,2,2],colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hideLabelTablet:"",hideLabelMobile:""}]},displayLinkShadow:{type:"boolean",default:!1},linkShadow:{type:"array",default:[{color:"rgba(0,0,0,0.2)",spread:0,blur:2,hOffset:1,vOffset:1}]},displayLinkHoverShadow:{type:"boolean",default:!1},linkHoverShadow:{type:"array",default:[{color:"rgba(0,0,0,0.4)",spread:0,blur:3,hOffset:2,vOffset:2}]},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},linkAlign:{type:"string",default:"center"},loadFooter:{type:"boolean",default:!1},inQueryBlock:{type:"boolean",default:!1},hideModalContentPreview:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:s,modalLinkStyles:c,modalAnimateIn:d,modalAnimateOut:u,align:p,linkAlign:h,closePosition:f,loadFooter:b}=e;return(0,a.createElement)("div",{id:`kt-modal${t}`,className:`wp-block-kadence-modal align${p||"none"} kt-modal-linkalign-${h||"none"}`},b?(0,a.createElement)(y.Fragment,null,(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer"}),(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer-end"})):(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),s&&(0,a.createElement)("a",{className:"kt-blocks-modal-link kt-modal-label-"+(c[0].hideLabel?"hide":"show"),role:"button","data-modal-open":`${n||"kt-target-modal"+t}`},c[0].icon&&"left"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),c[0].icon&&"right"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"})))}},{attributes:{uniqueID:{type:"string",default:""},customID:{type:"string",default:""},modalAnimateIn:{type:"string",default:"fadeup"},modalAnimateOut:{type:"string",default:"fadeout"},modalHAlign:{type:"string",default:"center"},modalVAlign:{type:"string",default:"middle"},modalInnerHAlign:{type:"string",default:"left"},modalInnerVAlign:{type:"string",default:"top"},modalHeight:{type:"string",default:"fittocontent"},modalCustomHeight:{type:"number",default:400},modalWidth:{type:"array",default:[100,100,100]},modalMaxWidth:{type:"number",default:600},modalOverlay:{type:"string",default:"#000000"},modalOverlayOpacity:{type:"number",default:.6},modalBackground:{type:"string",default:"#ffffff"},modalBackgroundOpacity:{type:"number",default:1},modalBorderColor:{type:"string",default:"#ffffff"},modalBorderOpacity:{type:"number",default:1},modalBorderWidth:{type:"array",default:[0,0,0,0]},modalBorderRadius:{type:"number",default:0},modalPadding:{type:"array",default:[30,30,30,30]},modalMargin:{type:"array",default:[20,20,20,20]},displayClose:{type:"boolean",default:!0},closePosition:{type:"string",default:"inside"},closeSize:{type:"array",default:[24,24,24]},closeModal:{type:"string",default:(0,h.__)("Close Modal")},closeColor:{type:"string",default:""},closeHoverColor:{type:"string",default:""},closeBackground:{type:"string",default:""},closeHoverBackground:{type:"string",default:""},displayModalLink:{type:"boolean",default:!0},modalLink:{type:"array",source:"children",selector:".kt-blocks-modal-link-inner",default:(0,h.__)("Learn More")},modalLinkStyles:{type:"array",default:[{size:[16,"",""],sizeType:"px",lineHeight:[24,"",""],lineType:"px",letterSpacing:"",family:"",google:"",style:"",weight:"",variant:"",subset:"",loadGoogle:!0,padding:[4,8,4,8],margin:[0,0,0,0],hideLabel:!1,iconSide:"right",icon:"",color:"#555555",background:"transparent",border:"#555555",borderRadius:4,borderWidth:[2,2,2,2],colorHover:"#ffffff",backgroundHover:"#444444",borderHover:"#444444",hideLabelTablet:"",hideLabelMobile:""}]},displayLinkShadow:{type:"boolean",default:!1},linkShadow:{type:"array",default:[{color:"rgba(0,0,0,0.2)",spread:0,blur:2,hOffset:1,vOffset:1}]},displayLinkHoverShadow:{type:"boolean",default:!1},linkHoverShadow:{type:"array",default:[{color:"rgba(0,0,0,0.4)",spread:0,blur:3,hOffset:2,vOffset:2}]},displayShadow:{type:"boolean",default:!1},shadow:{type:"array",default:[{color:"#000000",opacity:.2,spread:0,blur:14,hOffset:0,vOffset:0}]},linkAlign:{type:"string",default:"center"},loadFooter:{type:"boolean",default:!1},inQueryBlock:{type:"boolean",default:!1},hideModalContentPreview:{type:"boolean",default:!1}},save:({attributes:e})=>{const{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:s,modalLinkStyles:c,modalAnimateIn:d,modalAnimateOut:u,align:p,linkAlign:h,closePosition:f}=e;return(0,a.createElement)("div",{id:`kt-modal${t}`,className:`wp-block-kadence-modal align${p||"none"} kt-modal-linkalign-${h||"none"}`},(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kadence-block-pro-modal kt-m-animate-in-${d} kt-m-animate-out-${u}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${f}`,role:"dialog","aria-modal":"true"},o&&"inside"===f&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),s&&(0,a.createElement)("a",{className:"kt-blocks-modal-link kt-modal-label-"+(c[0].hideLabel?"hide":"show"),role:"button","data-modal-open":`${n||"kt-target-modal"+t}`},c[0].icon&&"left"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),c[0].icon&&"right"===c[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${c[0].icon} kt-btn-side-${c[0].iconSide}`,name:c[0].icon,size:c[0].size[0]?c[0].size[0]:"14"})))}}];(0,window.wp.blocks.registerBlockType)("kadence/modal",{...c,title:(0,h.__)("Modal","kadence-blocks-pro"),icon:{src:l},example:{},category:"kadence-blocks",keywords:[(0,h.__)("Popup","kadence-blocks-pro"),(0,h.__)("Modal","kadence-blocks-pro"),"KB"],usesContext:["postId","queryId"],edit:function(e){const{attributes:t,setAttributes:n,context:o,clientId:l,className:r,isSelected:i}=e,{uniqueID:f,customID:b,modalHAlign:m,modalAnimateIn:g,modalAnimateOut:v,modalWidth:C,modalMaxWidth:S,modalHeight:E,modalCustomHeight:j,modalBackground:O,modalBorderColor:N,modalBorderWidth:I,modalBorderRadius:A,borderStyleModal:B,tabletBorderStyleModal:P,mobileBorderStyleModal:T,borderRadiusModal:F,tabletBorderRadiusModal:D,mobileBorderRadiusModal:H,borderRadiusModalUnit:V,modalPadding:z,tabletModalPadding:$,mobileModalPadding:U,modalPaddingUnit:W,modalMargin:G,tabletModalMargin:q,mobileModalMargin:X,modalMarginUnit:Z,modalBackgroundOpacity:J,modalOverlay:Y,modalOverlayOpacity:K,modalBorderOpacity:Q,modalVAlign:ee,modalInnerHAlign:te,modalInnerVAlign:ne,displayModalLink:oe,modalLink:le,modalLinkStyles:ae,linkAlign:re,displayShadow:ie,shadow:se,linkShadow:ce,displayLinkShadow:de,displayLinkHoverShadow:ue,linkHoverShadow:pe,align:he,displayClose:fe,closeColor:be,closeBackground:me,closeHoverBackground:ge,closeHoverColor:ve,closeSize:ke,closePosition:ye,closeModal:xe,loadFooter:we,linkInheritStyles:_e,inQueryBlock:Ce,modalLabel:Se}=t,[Ee,je]=(0,y.useState)("linked"),[Oe,Me]=(0,y.useState)("individual"),[Ne,Le]=(0,y.useState)("linked"),[Ie,Ae]=(0,y.useState)("general"),[Re,Be]=(0,y.useState)(!1),Pe=(0,y.useRef)(!1),Te=(0,y.useRef)(null),Fe=(0,y.useRef)(null),De=s()(r,{"kt-modal-is-hidden":!i&&!oe}),He=(0,x.useBlockProps)({ref:Te,className:De}),{previewDevice:Ve,hasInnerBlockSelection:ze,inQueryLoopCard:$e}=(0,w.useSelect)(e=>{const{hasSelectedInnerBlock:t}=e(x.store);return{previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),hasInnerBlockSelection:t(l,!0),inQueryLoopCard:e("core/block-editor").getBlockParentsByBlockName(l,"kadence/query-card").length>0}},[l]),Ue=(0,w.useSelect)(e=>"wp_block"===e(Uc.store).getCurrentPostType(),[]);(0,y.useEffect)(()=>{const e=JSON.parse(JSON.stringify(t.borderStyleModal?t.borderStyleModal:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let o=JSON.parse(JSON.stringify(t.borderRadiusModal?t.borderRadiusModal:["","","",""])),l=!1;void 0!==Q&&1!==Q?(e[0].top[0]=ol(N,Q),e[0].right[0]=ol(N,Q),e[0].bottom[0]=ol(N,Q),e[0].left[0]=ol(N,Q),l=!0):void 0!==N&&"#ffffff"!==N&&(e[0].top[0]=N,e[0].right[0]=N,e[0].bottom[0]=N,e[0].left[0]=N,l=!0),0===I?.[0]&&0===I?.[1]&&0===I?.[2]&&0===I?.[3]||(e[0].top[2]=I?.[0]||"",e[0].right[2]=I?.[1]||"",e[0].bottom[2]=I?.[2]||"",e[0].left[2]=I?.[3]||"",l=!0),0!==A&&(o=[A,A,A,A],l=!0),l&&(n({borderStyleModal:e}),n({borderRadiusModal:o}),n({modalBorderColor:"#ffffff"}),n({modalBorderOpacity:1}),n({modalBorderWidth:[0,0,0,0]}),n({modalBorderRadius:0}))},[]),function(e){const{attributes:t,setAttributes:n,isSelected:o,clientId:l,context:a,className:r}=e,{addUniqueID:i}=(0,w.useDispatch)("kadenceblocks/data"),s=(0,w.useSelect)(e=>e,[l]),{isUniqueID:c,isUniqueBlock:d,parentData:u}=(0,y.useMemo)(()=>({isUniqueID:e=>s("kadenceblocks/data").isUniqueID(e),isUniqueBlock:(e,t)=>s("kadenceblocks/data").isUniqueBlock(e,t),parentData:{rootBlock:s("core/block-editor").getBlock(s("core/block-editor").getBlockHierarchyRootClientId(l)),postId:s("core/editor")?.getCurrentPostId()?s("core/editor")?.getCurrentPostId():"",reusableParent:s("core/block-editor").getBlockAttributes(s("core/block-editor").getBlockParentsByBlockName(l,"core/block").slice(-1)[0]),editedPostId:!!s("core/edit-site")&&s("core/edit-site").getEditedPostId()}}),[s,l]),h=(o,a=!1)=>{c(o)||(o=(0,p.uniqueId)(o));let r={uniqueID:o};if(a){const n=((e,t)=>{if(!(t.uniqueID||void 0!==t.noCustomDefaults&&t.noCustomDefaults)){const n=kadence_blocks_params.config&&kadence_blocks_params.config[e]?kadence_blocks_params.config[e]:void 0,o=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==o[e]&&"object"==typeof o[e]?Object.keys(o[e]).map(n=>{t[n]=o[e][n]}):void 0!==n&&"object"==typeof n&&Object.keys(n).map(e=>{t[e]=n[e]})}return t})(e.name,t);r={...n,uniqueID:o}}Object.assign(t,r),n(r),i(o,l)},f=t=>{const{postId:n,reusableParent:o,rootBlock:l,editedPostId:a}=t;let r=function(e,t,n,o="block-unknown"){return(0,p.has)(n,"ref")?n.ref:t?t="string"==typeof t?t.replace(/\//g,"_"):t:(0,Nc.getWidgetIdFromBlock)(e)?(0,Nc.getWidgetIdFromBlock)(e):o}(e,n,o,0);return 0===r&&("core/template-part"===(0,p.get)(l,"name")&&(0,p.has)(l,["attributes","slug"])?r=Lc(l.attributes.slug)%1e6:a&&(r=Lc(a)%1e6)),r};if(!t?.uniqueID){const e=f(u),t=(e?e+"_":"")+l.substr(2,9);h(t,!0)}(0,y.useEffect)(()=>{const e=f(u),n=t?.uniqueID&&2===t?.uniqueID.split("_").length,o=(e?e+"_":"")+l.substr(2,9);return!t?.uniqueID||n&&t?.uniqueID.split("_")[0]!==e.toString()?h(o,!0):c(t?.uniqueID)||d(t?.uniqueID,l)?void i(t?.uniqueID,l):h(o,!1)},[l])}(e),(0,y.useEffect)(()=>{const e=function(e){const t=Boolean(e&&(e.queryId||Number.isFinite(e.queryId))&&e.postId),n=Boolean(e&&void 0!==e["kadence/dynamicSource"]&&e["kadence/dynamicSource"]);return!(!t&&!n)}(o);e!==Ce&&n({inQueryBlock:e})},[o]),(0,y.useEffect)(()=>{void 0!==t.modalLinkStyles&&void 0!==t.modalLinkStyles[0]&&void 0!==t.modalLinkStyles[0].borderWidth&&void 0!==t.modalLinkStyles[0].borderWidth[0]&&t.modalLinkStyles[0].borderWidth[0]===t.modalLinkStyles[0].borderWidth[1]&&t.modalLinkStyles[0].borderWidth[0]===t.modalLinkStyles[0].borderWidth[2]&&t.modalLinkStyles[0].borderWidth[0]===t.modalLinkStyles[0].borderWidth[3]?je("linked"):je("individual"),void 0!==t.modalLinkStyles&&void 0!==t.modalLinkStyles[0]&&void 0!==t.modalLinkStyles[0].padding&&void 0!==t.modalLinkStyles[0].padding[0]&&t.modalLinkStyles[0].padding[0]===t.modalLinkStyles[0].padding[1]&&t.modalLinkStyles[0].padding[0]===t.modalLinkStyles[0].padding[2]&&t.modalLinkStyles[0].padding[0]===t.modalLinkStyles[0].padding[3]?Me("linked"):Me("individual"),void 0!==t.modalLinkStyles&&void 0!==t.modalLinkStyles[0]&&void 0!==t.modalLinkStyles[0].margin&&void 0!==t.modalLinkStyles[0].margin[0]&&t.modalLinkStyles[0].margin[0]===t.modalLinkStyles[0].margin[1]&&t.modalLinkStyles[0].margin[0]===t.modalLinkStyles[0].margin[2]&&t.modalLinkStyles[0].margin[0]===t.modalLinkStyles[0].margin[3]?Le("linked"):Le("individual")},[]),(0,y.useEffect)(()=>{if(!i&&!ze)return Be(!1),void(Pe.current=!1);ze&&!Pe.current&&Be(!0),Pe.current=ze});const We="kt-modal-preview-open";(0,y.useEffect)(()=>{if(!Re||!Te.current)return void(Fe.current&&(Fe.current.classList.remove(We),Fe.current=null));const e=Te.current.closest("[data-aos]");return e&&(e.classList.add(We),Fe.current=e),()=>{Fe.current&&(Fe.current.classList.remove(We),Fe.current=null)}},[Re]);const Ge={google:{families:[ae[0].family+(ae[0].variant?":"+ae[0].variant:"")]}},qe=ae[0].google?Ge:"",Xe=e=>{const t=ae.map((t,n)=>(0===n&&(t={...t,...e}),t));n({modalLinkStyles:t})},Ze=e=>{const t=ce.map((t,n)=>(0===n&&(t={...t,...e}),t));n({linkShadow:t})},Je=e=>{const t=pe.map((t,n)=>(0===n&&(t={...t,...e}),t));n({linkHoverShadow:t})},Ye=e=>{const t=se.map((t,n)=>(0===n&&(t={...t,...e}),t));n({shadow:t})},Ke=[{value:"custom",label:(0,h.__)("Custom","kadence-blocks-pro")},{value:"inherit",label:(0,h.__)("Theme","kadence-blocks-pro")}],Qe=s()({[`kb-btn-global-${_e}`]:_e,"kt-button":_e&&"inherit"===_e,"wp-block-button__link":_e&&"inherit"===_e,"kt-modal-label-hide":ae[0].hideLabel,"kt-modal-label-show":!ae[0].hideLabel,"kt-blocks-modal-link":!0}),et=Hc(Ve,"top",B,P,T),tt=Hc(Ve,"right",B,P,T),nt=Hc(Ve,"bottom",B,P,T),ot=Hc(Ve,"left",B,P,T),lt=Vc(Ve,void 0!==F?F[0]:"",void 0!==D?D[0]:"",void 0!==H?H[0]:""),at=Vc(Ve,void 0!==F?F[1]:"",void 0!==D?D[1]:"",void 0!==H?H[1]:""),rt=Vc(Ve,void 0!==F?F[2]:"",void 0!==D?D[2]:"",void 0!==H?H[2]:""),it=Vc(Ve,void 0!==F?F[3]:"",void 0!==D?D[3]:"",void 0!==H?H[3]:""),st=Vc(Ve,void 0!==G?G[0]:"",void 0!==q?q[0]:"",void 0!==X?X[0]:""),ct=Vc(Ve,void 0!==G?G[1]:"",void 0!==q?q[1]:"",void 0!==X?X[1]:""),dt=Vc(Ve,void 0!==G?G[2]:"",void 0!==q?q[2]:"",void 0!==X?X[2]:""),ut=Vc(Ve,void 0!==G?G[3]:"",void 0!==q?q[3]:"",void 0!==X?X[3]:""),pt=Vc(Ve,void 0!==z?z[0]:"",void 0!==$?$[0]:"",void 0!==U?U[0]:""),ht=Vc(Ve,void 0!==z?z[1]:"",void 0!==$?$[1]:"",void 0!==U?U[1]:""),ft=Vc(Ve,void 0!==z?z[2]:"",void 0!==$?$[2]:"",void 0!==U?U[2]:""),bt=Vc(Ve,void 0!==z?z[3]:"",void 0!==$?$[3]:"",void 0!==U?U[3]:""),mt=Vc(Ve,void 0!==ae[0].size[0]?ae[0].size[0]:"",void 0!==ae[0].size[1]?ae[0].size[1]:"",void 0!==ae[0].size[2]?ae[0].size[2]:""),gt=["modalLink"],vt=(0,a.createElement)("style",null,i&&Re&&".block-editor-block-popover { display: none; }",ae[0].colorHover?`#kt-modal${f} .kt-blocks-modal-link:hover { color: ${ol(ae[0].colorHover)} !important; }`:"",ae[0].borderHover?`#kt-modal${f} .kt-blocks-modal-link:hover { border-color: ${ol(ae[0].borderHover)} !important; }`:"",ae[0].backgroundHover?`#kt-modal${f} .kt-blocks-modal-link:hover { background-color: ${ol(ae[0].backgroundHover)} !important; }`:"",ve?`#kt-modal${f} .kt-modal-close:hover { color: ${ol(ve)} !important; }`:"",ge?`#kt-modal${f} .kt-modal-close:hover { background: ${ol(ge)} !important; }`:"",void 0!==ue&&ue&&void 0!==pe&&void 0!==pe[0]&&void 0!==pe[0].color?`#kt-modal${f} .kt-blocks-modal-link:hover { box-shadow: ${(void 0!==pe[0].inset&&pe[0].inset?"inset ":"")+(void 0!==pe[0].hOffset?pe[0].hOffset:0)+"px "+(void 0!==pe[0].vOffset?pe[0].vOffset:0)+"px "+(void 0!==pe[0].blur?pe[0].blur:14)+"px "+(void 0!==pe[0].spread?pe[0].spread:0)+"px "+ol(void 0!==pe[0].color?pe[0].color:"rgba(0,0,0,0.2)",pe[0].opacity)} !important; }`:"");return(0,a.createElement)(u,{label:(0,h.__)("Close X Tablet Size","kadence-blocks-pro"),value:ke?ke[1]:"",onChange:e=>n({closeSize:[ke[0],e,ke[2]]}),min:5,max:100,step:1}),(0,a.createElement)(u,{label:(0,h.__)("Close X Desktop Size","kadence-blocks-pro"),value:ke?ke[0]:"",onChange:e=>n({closeSize:[e,ke[1],ke[2]]}),min:5,max:100,step:1}),(0,a.createElement)("div",{...He},(0,a.createElement)("div",{id:`kt-modal${f}`,className:`wp-block-kadence-modal align${he||"none"} kt-modal-linkalign-${re||"none"}`,style:{minHeight:Re&&Ue?"500px":void 0}},vt,(0,a.createElement)(x.BlockControls,{key:"controls"},(0,a.createElement)(x.AlignmentToolbar,{value:re,onChange:e=>n({linkAlign:e})}),(0,a.createElement)(k,{attributes:t,excludedAttrs:gt,defaultAttributes:c.attributes,blockSlug:c.name,onPaste:e=>n(e)})),(0,a.createElement)(x.InspectorControls,null,!Re&&(0,a.createElement)(_,{clientId:l,onClick:()=>Be(!0),label:(0,h.__)("Show Modal Content","kadence-blocks-pro")}),Re&&(0,a.createElement)(_,{clientId:l,onClick:()=>Be(!1),label:(0,h.__)("Hide Modal Content","kadence-blocks-pro")}),(0,a.createElement)(M,{panelName:"modal",initialOpen:"general",setActiveTab:e=>Ae(e),activeTab:Ie}),"general"===Ie&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)(L,null,(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Modal Box Horizonal Align","kadence-blocks-pro"),value:m,options:[{value:"center",label:(0,h.__)("Center","kadence-blocks-pro")},{value:"left",label:(0,h.__)("Left","kadence-blocks-pro")},{value:"right",label:(0,h.__)("Right","kadence-blocks-pro")}],onChange:e=>n({modalHAlign:e})}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Modal Box Vertical Align","kadence-blocks-pro"),value:ee,options:[{value:"middle",label:(0,h.__)("Middle","kadence-blocks-pro")},{value:"top",label:(0,h.__)("Top","kadence-blocks-pro")},{value:"bottom",label:(0,h.__)("Bottom","kadence-blocks-pro")}],onChange:e=>n({modalVAlign:e})}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Modal Box Height","kadence-blocks-pro"),value:E,options:[{value:"fittocontent",label:(0,h.__)("Fit to Content","kadence-blocks-pro")},{value:"fixed",label:(0,h.__)("Fixed Minimum Height","kadence-blocks-pro")},{value:"full",label:(0,h.__)("Full Screen Height","kadence-blocks-pro")}],onChange:e=>n({modalHeight:e})}),"fixed"===E&&(0,a.createElement)(u,{label:(0,h.__)("Fixed Minimum Height (px)","kadence-blocks-pro"),value:j,onChange:e=>n({modalCustomHeight:e}),min:200,max:1e3,step:1}),(0,a.createElement)(R,{label:(0,h.__)("Modal Width (%)","kadence-blocks-pro"),value:C?C[0]:"",onChange:e=>{n({modalWidth:[e,C[1],C[2]]})},tabletValue:C?C[1]:"",onChangeTablet:e=>{n({modalWidth:[C[0],e,C[2]]})},mobileValue:C?C[2]:"",onChangeMobile:e=>{n({modalWidth:[C[0],C[1],e]})},min:0,max:100,step:1,unit:"px"}),(0,a.createElement)(u,{label:(0,h.__)("Modal Max Width (px)","kadence-blocks-pro"),value:S,onChange:e=>n({modalMaxWidth:e}),min:200,max:3e3,step:1}),(0,a.createElement)(d.ToggleControl,{label:(0,h.__)("Show Link"),checked:oe,onChange:e=>n({displayModalLink:e})}),(0,a.createElement)(d.TextControl,{label:(0,h.__)("Modal Aria Label","kadence-blocks-pro"),help:(0,h.__)("This defines the aria label for the modal which has a role of dialog. This is used for accessibility purposes.","kadence-blocks-pro"),value:Se||"",onChange:e=>n({modalLabel:e})}))),"style"===Ie&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)(L,null,(0,a.createElement)(nl,{label:(0,h.__)("Overlay Background Color","kadence-blocks-pro"),colorValue:Y,colorDefault:"",onColorChange:e=>n({modalOverlay:e}),opacityValue:K,onOpacityChange:e=>n({modalOverlayOpacity:e})}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Modal Open Animation","kadence-blocks-pro"),value:g,options:[{value:"fade",label:(0,h.__)("Fade In","kadence-blocks-pro")},{value:"fadeup",label:(0,h.__)("Fade In Up","kadence-blocks-pro")},{value:"fadedown",label:(0,h.__)("Fade In Down","kadence-blocks-pro")},{value:"fadeleft",label:(0,h.__)("Fade In Left","kadence-blocks-pro")},{value:"faderight",label:(0,h.__)("Fade In Right","kadence-blocks-pro")},{value:"slideup",label:(0,h.__)("Slide In Up","kadence-blocks-pro")},{value:"slidedown",label:(0,h.__)("Slide In Down","kadence-blocks-pro")},{value:"slideleft",label:(0,h.__)("Slide In Left","kadence-blocks-pro")},{value:"slideright",label:(0,h.__)("Slide In Right","kadence-blocks-pro")},{value:"zoomin",label:(0,h.__)("Zoom In","kadence-blocks-pro")}],onChange:e=>n({modalAnimateIn:e})}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Modal Close Animation","kadence-blocks-pro"),value:v,options:[{value:"fadeout",label:(0,h.__)("Fade Out","kadence-blocks-pro")},{value:"fadeoutup",label:(0,h.__)("Fade Out Up","kadence-blocks-pro")},{value:"fadeoutdown",label:(0,h.__)("Fade Out Down","kadence-blocks-pro")},{value:"fadeoutleft",label:(0,h.__)("Fade Out Left","kadence-blocks-pro")},{value:"fadeoutright",label:(0,h.__)("Fade Out Right","kadence-blocks-pro")},{value:"slideoutup",label:(0,h.__)("Slide Out Up","kadence-blocks-pro")},{value:"slideoutdown",label:(0,h.__)("Slide Out Down","kadence-blocks-pro")},{value:"slideoutleft",label:(0,h.__)("Slide Out Left","kadence-blocks-pro")},{value:"slideoutright",label:(0,h.__)("Slide Out Right","kadence-blocks-pro")},{value:"zoomout",label:(0,h.__)("Zoom Out","kadence-blocks-pro")}],onChange:e=>n({modalAnimateOut:e})})),(0,a.createElement)(L,{title:(0,h.__)("Modal Close Button","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-modal-close-button"},(0,a.createElement)(d.ToggleControl,{label:(0,h.__)("Enable Close X","kadence-blocks-pro"),checked:fe,onChange:e=>n({displayClose:e})}),fe&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Close X Position","kadence-blocks-pro"),value:ye,options:[{value:"inside",label:(0,h.__)("Inside Box")},{value:"outside",label:(0,h.__)("Outside Box")}],onChange:e=>n({closePosition:e})}),(0,a.createElement)(R,{label:(0,h.__)("Close X Size (px)","kadence-blocks-pro"),value:ke?ke[0]:"",onChange:e=>n({closeSize:[e,ke[1],ke[2]]}),tabletValue:ke?ke[1]:"",onChangeTablet:e=>{n({closeSize:[ke[0],e,ke[2]]})},mobileValue:ke?ke[2]:"",onChangeMobile:e=>{n({closeSize:[ke[0],ke[1],e]})},min:5,max:100,step:1,unit:"px"}),(0,a.createElement)("h2",{className:"kt-tab-wrap-title"},(0,h.__)("Color Settings","kadence-blocks-pro")),(0,a.createElement)(d.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs border-panel",activeClass:"active-tab",tabs:[{name:"normal",title:(0,h.__)("Normal","kadence-blocks-pro"),className:"kt-normal-tab"},{name:"hover",title:(0,h.__)("Hover","kadence-blocks-pro"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?(0,a.createElement)(y.Fragment,null,(0,a.createElement)(nl,{label:(0,h.__)("HOVER: X Color","kadence-blocks-pro"),colorValue:ve,colorDefault:"",onColorChange:e=>n({closeHoverColor:e})}),(0,a.createElement)(nl,{label:(0,h.__)("HOVER: X Background","kadence-blocks-pro"),colorValue:ge,colorDefault:"",onColorChange:e=>n({closeHoverBackground:e})})):(0,a.createElement)(y.Fragment,null,(0,a.createElement)(nl,{label:(0,h.__)("X Color","kadence-blocks-pro"),colorValue:be,colorDefault:"",onColorChange:e=>n({closeColor:e})}),(0,a.createElement)(nl,{label:(0,h.__)("X Background","kadence-blocks-pro"),colorValue:me,colorDefault:"",onColorChange:e=>n({closeBackground:e})}))),(0,a.createElement)("div",null,t)}),(0,a.createElement)(d.TextControl,{label:(0,h.__)("Close Button Aria Label","kadence-blocks-pro"),help:(0,h.__)("This defines the aria label to make the close button more accessible.","kadence-blocks-pro"),value:xe||"",onChange:e=>n({closeModal:e})}))),(0,a.createElement)(L,{title:(0,h.__)("Modal Box Styling","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-modal-box-styling"},(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Inner Horizonal Align","kadence-blocks-pro"),value:te,options:[{value:"center",label:(0,h.__)("Center","kadence-blocks-pro")},{value:"left",label:(0,h.__)("Left","kadence-blocks-pro")},{value:"right",label:(0,h.__)("Right","kadence-blocks-pro")}],onChange:e=>n({modalInnerHAlign:e})}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Inner Vertical Align","kadence-blocks-pro"),value:ne,options:[{value:"middle",label:(0,h.__)("Middle","kadence-blocks-pro")},{value:"top",label:(0,h.__)("Top","kadence-blocks-pro")},{value:"bottom",label:(0,h.__)("Bottom","kadence-blocks-pro")}],onChange:e=>n({modalInnerVAlign:e})}),(0,a.createElement)(nl,{label:(0,h.__)("Modal Background Color","kadence-blocks-pro"),colorValue:O,colorDefault:"",onColorChange:e=>n({modalBackground:e}),opacityValue:J,onOpacityChange:e=>n({modalBackgroundOpacity:e})}),(0,a.createElement)(pl,{label:(0,h.__)("Border","kadence-blocks-pro"),value:B,tabletValue:P,mobileValue:T,onChange:e=>n({borderStyleModal:e}),onChangeTablet:e=>n({tableBorderStyleModal:e}),onChangeMobile:e=>n({mobileBorderStyleModal:e})}),(0,a.createElement)(xl,{label:(0,h.__)("Border Radius","kadence-blocks-pro"),value:F,tabletValue:D,mobileValue:H,onChange:e=>n({borderRadiusModal:e}),onChangeTablet:e=>n({tabletBorderRadiusModal:e}),onChangeMobile:e=>n({mobileBorderRadiusModal:e}),min:0,max:"em"===V||"rem"===V?24:200,step:"em"===V||"rem"===V?.1:1,unit:V,units:["px","em","rem","%"],onUnit:e=>n({borderRadiusModalUnit:e}),isBorderRadius:!0,allowEmpty:!0,control:"linked"}),(0,a.createElement)(Rl,{label:(0,h.__)("Modal Padding","kadence-blocks-pro"),value:z,tabletValue:$,mobileValue:U,onChange:e=>{n({modalPadding:e})},onChangeTablet:e=>n({tabletModalPadding:e}),onChangeMobile:e=>n({mobileModalPadding:e}),min:"em"===W||"rem"===W?-25:-400,max:"em"===W||"rem"===W?25:400,step:"em"===W||"rem"===W?.1:1,unit:W,units:["px","em","rem","%","vh"],onUnit:e=>n({modalPaddingUnit:e})}),(0,a.createElement)(Rl,{label:(0,h.__)("Modal Margin","kadence-blocks-pro"),value:G,tabletValue:q,mobileValue:X,onChange:e=>{n({modalMargin:e})},onChangeTablet:e=>n({tabletModalMargin:e}),onChangeMobile:e=>n({mobileModalMargin:e}),min:"em"===Z||"rem"===Z?-25:-400,max:"em"===Z||"rem"===Z?25:400,step:"em"===Z||"rem"===Z?.1:1,unit:Z,units:["px","em","rem","%","vh"],onUnit:e=>n({modalMarginUnit:e})})),(0,a.createElement)(L,{title:(0,h.__)("Modal Box Shadow","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-modal-box-shadow"},(0,a.createElement)(d.ToggleControl,{label:(0,h.__)("Enable Shadow","kadence-blocks-pro"),checked:ie,onChange:e=>n({displayShadow:e})}),ie&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)(Fl,{label:(0,h.__)("Modal Box Shadow","kadence-blocks-pro"),enable:ie||!1,color:void 0!==se&&void 0!==se[0].color?void 0!==se[0].opacity?ol(se[0].color,se[0].opacity):se[0].color:"rgba(0,0,0,0.2)",colorDefault:"rgba(0,0,0,0.2)",hOffset:void 0!==se&&void 0!==se[0].hOffset?se[0].hOffset:1,vOffset:void 0!==se&&void 0!==se[0].vOffset?se[0].vOffset:1,blur:void 0!==se&&void 0!==se[0].blur?se[0].blur:2,spread:void 0!==se&&void 0!==se[0].spread?se[0].spread:0,onEnableChange:e=>{n({displayShadow:e})},onColorChange:e=>{Ye({color:e})},onHOffsetChange:e=>{Ye({hOffset:e})},onVOffsetChange:e=>{Ye({vOffset:e})},onBlurChange:e=>{Ye({blur:e})},onSpreadChange:e=>{Ye({spread:e})}}))),oe&&(0,a.createElement)(L,{title:(0,h.__)("Link Styling","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-modal-link-styling"},(0,a.createElement)(Bl,{value:_e,options:Ke,hideLabel:!1,onChange:e=>{n({linkInheritStyles:e})}}),"inherit"!=_e&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)("h2",{className:"kt-tab-wrap-title"},(0,h.__)("Color Settings","kadence-blocks-pro")),(0,a.createElement)(d.TabPanel,{style:{border:"1px solid black",padding:"10px"},className:"kt-inspect-tabs kt-hover-tabs border-panel",activeClass:"active-tab",tabs:[{name:"normal",title:(0,h.__)("Normal","kadence-blocks-pro"),className:"kt-normal-tab"},{name:"hover",title:(0,h.__)("Hover","kadence-blocks-pro"),className:"kt-hover-tab"}]},e=>{let t;return e.name&&(t="hover"===e.name?(0,a.createElement)(y.Fragment,null,(0,a.createElement)(nl,{key:"hover-link-color",label:(0,h.__)("HOVER: Link Color","kadence-blocks-pro"),colorValue:ae[0].colorHover,colorDefault:"",onColorChange:e=>Xe({colorHover:e})}),(0,a.createElement)(nl,{key:"hover-link-background",label:(0,h.__)("HOVER: Link Background","kadence-blocks-pro"),colorValue:ae[0].backgroundHover,colorDefault:"",onColorChange:e=>Xe({backgroundHover:e})}),(0,a.createElement)(nl,{key:"hover-link-border-color",label:(0,h.__)("HOVER: Link Border Color","kadence-blocks-pro"),colorValue:ae[0].borderHover,colorDefault:"",onColorChange:e=>Xe({borderHover:e})}),(0,a.createElement)(Fl,{key:"hover-link-box-shadow-control",label:(0,h.__)("HOVER: Link Box Shadow","kadence-blocks-pro"),enable:ue||!1,color:void 0!==se&&void 0!==pe[0].color?pe[0].color:"rgba(0,0,0,0.4)",colorDefault:"rgba(0,0,0,0.4)",opacity:void 0!==pe&&void 0!==pe[0].opacity?pe[0].opacity:.4,hOffset:void 0!==pe&&void 0!==pe[0].hOffset?pe[0].hOffset:1,vOffset:void 0!==pe&&void 0!==pe[0].vOffset?pe[0].vOffset:1,blur:void 0!==pe&&void 0!==pe[0].blur?pe[0].blur:2,spread:void 0!==pe&&void 0!==pe[0].spread?pe[0].spread:0,onEnableChange:e=>{n({displayLinkHoverShadow:e})},onColorChange:e=>{Je({color:e})},onOpacityChange:e=>{Je({opacity:e})},onHOffsetChange:e=>{Je({hOffset:e})},onVOffsetChange:e=>{Je({vOffset:e})},onBlurChange:e=>{Je({blur:e})},onSpreadChange:e=>{Je({spread:e})}})):(0,a.createElement)(y.Fragment,null,(0,a.createElement)(nl,{key:"link-color",label:(0,h.__)("Link Color","kadence-blocks-pro"),colorValue:ae[0].color,colorDefault:"",onColorChange:e=>Xe({color:e})}),(0,a.createElement)(nl,{key:"link-background",label:(0,h.__)("Link Background","kadence-blocks-pro"),colorValue:ae[0].background,colorDefault:"",onColorChange:e=>Xe({background:e})}),(0,a.createElement)(nl,{key:"link-border-color",label:(0,h.__)("Link Border Color","kadence-blocks-pro"),colorValue:ae[0].border,colorDefault:"",onColorChange:e=>Xe({border:e})}),(0,a.createElement)(Fl,{key:"link-box-shadow-control",label:(0,h.__)("Link Box Shadow","kadence-blocks-pro"),enable:de||!1,color:void 0!==se&&void 0!==ce[0].color?ce[0].color:"rgba(0,0,0,0.2)",colorDefault:"rgba(0,0,0,0.2)",opacity:void 0!==ce&&void 0!==ce[0].opacity?ce[0].opacity:.2,hOffset:void 0!==ce&&void 0!==ce[0].hOffset?ce[0].hOffset:1,vOffset:void 0!==ce&&void 0!==ce[0].vOffset?ce[0].vOffset:1,blur:void 0!==ce&&void 0!==ce[0].blur?ce[0].blur:2,spread:void 0!==ce&&void 0!==ce[0].spread?ce[0].spread:0,onEnableChange:e=>{n({displayLinkShadow:e})},onColorChange:e=>{Ze({color:e})},onOpacityChange:e=>{Ze({opacity:e})},onHOffsetChange:e=>{Ze({hOffset:e})},onVOffsetChange:e=>{Ze({vOffset:e})},onBlurChange:e=>{Ze({blur:e})},onSpreadChange:e=>{Ze({spread:e})}}))),(0,a.createElement)("div",null,t)}),(0,a.createElement)(yl,{label:(0,h.__)("Link Border Width (px)","kadence-blocks-pro"),measurement:ae[0].borderWidth,control:Ee,onChange:e=>Xe({borderWidth:e}),onControl:e=>setlinkBorderControl(e),min:0,max:40,step:1}),(0,a.createElement)(u,{label:(0,h.__)("Link Border Radius (px)","kadence-blocks-pro"),value:ae[0].borderRadius,onChange:e=>Xe({borderRadius:e}),step:1,min:0,max:200}),(0,a.createElement)(na,{value:ae[0].icon,onChange:e=>Xe({icon:e}),allowClear:!0}),(0,a.createElement)(d.SelectControl,{label:(0,h.__)("Icon Side","kadence-blocks-pro"),value:ae[0].iconSide,options:[{value:"right",label:(0,h.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,h.__)("Left","kadence-blocks-pro")}],onChange:e=>Xe({iconSide:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,h.__)("Show only Icon","kadence-blocks-pro"),checked:ae[0].hideLabel,onChange:e=>Xe({hideLabel:e})})),"inherit"!=_e&&(0,a.createElement)(L,{title:(0,h.__)("Typography","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-modal-typography"},(0,a.createElement)(Sc,{fontSize:ae[0].size,onFontSize:e=>Xe({size:e}),fontSizeType:ae[0].sizeType,onFontSizeType:e=>Xe({sizeType:e}),lineHeight:ae[0].lineHeight,onLineHeight:e=>Xe({lineHeight:e}),lineHeightType:ae[0].lineType,onLineHeightType:e=>Xe({lineType:e}),letterSpacing:ae[0].letterSpacing,onLetterSpacing:e=>Xe({letterSpacing:e}),fontFamily:ae[0].family,onFontFamily:e=>Xe({family:e}),onFontChange:e=>{Xe({family:e.value,google:e.google})},onFontArrayChange:e=>Xe(e),googleFont:ae[0].google,onGoogleFont:e=>Xe({google:e}),loadGoogleFont:ae[0].loadGoogle,onLoadGoogleFont:e=>Xe({loadGoogle:e}),fontVariant:ae[0].variant,onFontVariant:e=>Xe({variant:e}),fontWeight:ae[0].weight,onFontWeight:e=>Xe({weight:e}),fontStyle:ae[0].style,onFontStyle:e=>Xe({style:e}),fontSubset:ae[0].subset,onFontSubset:e=>Xe({subset:e}),padding:ae[0].padding,onPadding:e=>Xe({padding:e}),paddingControl:Oe,onPaddingControl:e=>Me(e),margin:ae[0].margin,onMargin:e=>Xe({margin:e}),marginControl:Ne,onMarginControl:e=>Le(e)})))),"advanced"===Ie&&(0,a.createElement)(y.Fragment,null,(0,a.createElement)(L,null,!$e&&(0,a.createElement)(d.ToggleControl,{label:(0,h.__)("Load Content After Footer","kadence-blocks-pro"),help:(0,h.__)("This creates better support for a modal if placed outside of content area.","kadence-blocks-pro"),checked:we,onChange:e=>n({loadFooter:e})}),(0,a.createElement)(d.TextControl,{label:(0,h.__)("Custom Open ID","kadence-blocks-pro"),help:(0,h.__)("Using this you can define a custom open ID making it possible to open from another link on your page. The link should be #CUSTOMID and you need to give the link the class “modal-trigger”.","kadence-blocks-pro"),value:b||"",onChange:e=>{e=e.replace(Wc,"-"),n({customID:e})}})),(0,a.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,a.createElement)(jc,{attributes:t,defaultAttributes:c.attributes,blockSlug:c.name,excludedAttrs:gt}))),oe&&ae[0].google&&(0,a.createElement)(Mc,{config:qe}),oe&&(0,a.createElement)("div",{className:"kt-blocks-modal-link-wrap",style:{margin:ae[0].margin?ae[0].margin[0]+"px "+ae[0].margin[1]+"px "+ae[0].margin[2]+"px "+ae[0].margin[3]+"px":"",textAlign:re}},(0,a.createElement)("div",{className:Qe,style:"inherit"==_e?{}:{fontWeight:ae[0].weight,fontStyle:ae[0].style,color:ol(ae[0].color),borderRadius:ae[0].borderRadius+"px",background:ol(ae[0].background),borderColor:ol(ae[0].border),fontSize:$c(mt,ae[0].sizeType),lineHeight:ae[0].lineHeight&&ae[0].lineHeight[0]?ae[0].lineHeight[0]+ae[0].lineType:void 0,letterSpacing:ae[0].letterSpacing+"px",fontFamily:ae[0].family?ae[0].family:"",borderWidth:ae[0].borderWidth?ae[0].borderWidth[0]+"px "+ae[0].borderWidth[1]+"px "+ae[0].borderWidth[2]+"px "+ae[0].borderWidth[3]+"px":"",padding:ae[0].padding?ae[0].padding[0]+"px "+ae[0].padding[1]+"px "+ae[0].padding[2]+"px "+ae[0].padding[3]+"px":"",boxShadow:void 0!==de&&de&&void 0!==ce&&void 0!==ce[0]&&void 0!==ce[0].color?(void 0!==ce[0].inset&&ce[0].inset?"inset ":"")+(void 0!==ce[0].hOffset?ce[0].hOffset:0)+"px "+(void 0!==ce[0].vOffset?ce[0].vOffset:0)+"px "+(void 0!==ce[0].blur?ce[0].blur:14)+"px "+(void 0!==ce[0].spread?ce[0].spread:0)+"px "+ol(void 0!==ce[0].color?ce[0].color:"rgba(0,0,0,0.2)",ce[0].opacity):void 0}},ae[0].icon&&"left"===ae[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${ae[0].icon} kt-btn-side-${ae[0].iconSide}`,name:ae[0].icon,size:"1em"}),!ae[0].hideLabel&&(0,a.createElement)(x.RichText,{className:"kt-blocks-modal-link-inner",tagName:"div",placeholder:(0,h.__)("Learn More","kadence-blocks-pro"),onChange:e=>n({modalLink:e}),value:le,keepPlaceholderOnFocus:!0,isSelected:!Re&&null}),ae[0].icon&&"right"===ae[0].iconSide&&(0,a.createElement)(ta,{className:`kt-btn-svg-icon kt-btn-svg-icon-${ae[0].icon} kt-btn-side-${ae[0].iconSide}`,name:ae[0].icon,size:"1em"}))),i&&!Re&&(0,a.createElement)("div",{className:"kt-blocks-modal-preview-button-wrap",style:{textAlign:re}},(0,a.createElement)(d.Button,{className:"kt-blocks-modal-preview-button",variant:"primary",onClick:()=>Be(!0)},(0,h.__)("Show Modal Content","kadence-blocks-pro"))),!i&&!oe&&(0,a.createElement)("div",{className:"kt-blocks-modal-placeholder"},(0,a.createElement)("span",{className:"kt-blocks-modal-placeholder-preview"},(0,h.__)("Modal Content","kadence-blocks-pro"))),Re&&(0,a.createElement)("div",{className:`kadence-block-pro-modal preview-mode preview-active kt-modal-halign-${m} kt-modal-valign-${ee} kt-modal-inner-halign-${te} kt-modal-inner-valign-${ne} kt-modal-height-${E}`,onClick:e=>(e=>{e.target.classList.contains("kadence-block-pro-modal")&&Be(!1)})(e),style:{background:ol(Y||"#000000",K)}},(0,a.createElement)("style",null,".components-popover.block-editor-block-popover {\n\t\t\t\t\t\t\t\tz-index: 100000;\n\t\t\t\t\t\t\t}"),(0,a.createElement)("span",{className:"kt-modal-label"},(0,h.__)("Popup Content","kadence-blocks-pro")),(0,a.createElement)("div",{className:`kt-modal-popup kt-close-position-${ye}`,style:{borderTop:et||void 0,borderRight:tt||void 0,borderBottom:nt||void 0,borderLeft:ot||void 0,borderTopLeftRadius:""!==lt?lt+(V||"px"):void 0,borderTopRightRadius:""!==at?at+(V||"px"):void 0,borderBottomRightRadius:""!==rt?rt+(V||"px"):void 0,borderBottomLeftRadius:""!==it?it+(V||"px"):void 0,background:ol(O,J),boxShadow:ie?se[0].hOffset+"px "+se[0].vOffset+"px "+se[0].blur+"px "+se[0].spread+"px "+ol(se[0].color,se[0].opacity):void 0,width:C[0]+"%",minHeight:E&&"fixed"===E?j:"",maxWidth:S+"px",paddingTop:""!==pt?Ll(pt,W):void 0,paddingRight:""!==ht?Ll(ht,W):void 0,paddingBottom:""!==ft?Ll(ft,W):void 0,paddingLeft:""!==bt?Ll(bt,W):void 0,marginTop:""!==st?Ll(st,Z):void 0,marginRight:""!==ct?Ll(ct,Z):void 0,marginBottom:""!==dt?Ll(dt,Z):void 0,marginLeft:""!==ut?Ll(ut,Z):void 0}},fe&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":xe,onClick:()=>Be(!1),style:{background:ol(me),color:ol(be)}},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",width:ke[0],height:ke[0],stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)(x.InnerBlocks,{template:[["core/paragraph",{placeholder:(0,h.__)("Create Awesome","kadence-blocks-pro")}]]})))))},save:function(e){const{attributes:{uniqueID:t,customID:n,displayClose:o,closeModal:l,modalLink:r,modalHeight:i,displayModalLink:c,modalLinkStyles:d,modalAnimateIn:u,modalAnimateOut:p,align:h,linkAlign:f,closePosition:b,loadFooter:m,linkInheritStyles:g,modalLabel:v,anchor:k}}=e,w=s()({[`kb-btn-global-${g}`]:g,"kt-button":g&&"inherit"===g,"wp-block-button__link":g&&"inherit"===g,"kt-modal-label-hide":d[0].hideLabel,"kt-modal-label-show":!d[0].hideLabel,"kt-blocks-modal-link":!0}),_=s()({"wp-block-kadence-modal":!0,[`align${h||"none"}`]:!0,[`kt-modal-linkalign-${f||"none"}`]:!0}),C=x.useBlockProps.save({className:_,id:""!==k?k:`kt-modal${t}`});return(0,a.createElement)("div",{...C},m?(0,a.createElement)(y.Fragment,null,(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer"}),(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${u} kt-m-animate-out-${p}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${b}`,role:"dialog","aria-modal":"true","aria-label":v||void 0},o&&"inside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),(0,a.createElement)("div",{className:"kadence-block-pro-modal-load-footer-end"})):(0,a.createElement)("div",{id:`${n||"kt-target-modal"+t}`,className:`kb-modal-content${t} kadence-block-pro-modal kt-m-animate-in-${u} kt-m-animate-out-${p}`,"aria-hidden":"true"},(0,a.createElement)("div",{className:"kt-modal-overlay",tabIndex:"-1","data-modal-close":!0},o&&"outside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{className:`kt-modal-container kt-modal-height-${i} kt-close-position-${b}`,role:"dialog","aria-modal":"true","aria-label":v||void 0},o&&"inside"===b&&(0,a.createElement)("button",{className:"kt-modal-close","aria-label":l,"data-modal-close":!0},(0,a.createElement)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"https://www.w3.org/2000/svg","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,a.createElement)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,a.createElement)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))),(0,a.createElement)("div",{id:`kt-modal${t}-content`,className:"kt-modal-content"},(0,a.createElement)(x.InnerBlocks.Content,null))))),c&&(0,a.createElement)("button",{className:w,"data-modal-open":`${n||"kt-target-modal"+t}`},d[0].icon&&"left"===d[0].iconSide&&(0,a.createElement)("span",{"data-name":d[0].icon,"data-class":`kt-btn-svg-icon_kt-btn-svg-icon-${d[0].icon}_kt-btn-side-left`,class:"kadence-dynamic-icon"}),(0,a.createElement)(x.RichText.Content,{className:"kt-blocks-modal-link-inner",tagName:"span",value:r}),d[0].icon&&"right"===d[0].iconSide&&(0,a.createElement)("span",{"data-name":d[0].icon,"data-class":`kt-btn-svg-icon_kt-btn-svg-icon-${d[0].icon}_kt-btn-side-right`,class:"kadence-dynamic-icon"})))},deprecated:Gc})},99265(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var o=i(n(85015)),l=i(n(33215)),a=i(n(11331)),r=i(n(55378));function i(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,r.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,a.default)(t)?(0,l.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,o.default)(t)&&n.push(t)}),n};t.default=s},99374(e,t,n){var o=n(54128),l=n(23805),a=n(44394),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=i.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):r.test(e)?NaN:+e}}},n={};function o(e){var l=n[e];if(void 0!==l)return l.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,e=[],o.O=(t,n,l,a)=>{if(!n){var r=1/0;for(d=0;d<e.length;d++){for(var[n,l,a]=e[d],i=!0,s=0;s<n.length;s++)(!1&a||r>=a)&&Object.keys(o.O).every(e=>o.O[e](n[s]))?n.splice(s--,1):(i=!1,a<r&&(r=a));if(i){e.splice(d--,1);var c=l();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,l,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={649:0,208:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var l,a,[r,i,s]=n,c=0;if(r.some(t=>0!==e[t])){for(l in i)o.o(i,l)&&(o.m[l]=i[l]);if(s)var d=s(o)}for(t&&t(n);c<r.length;c++)a=r[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=globalThis.webpackChunkkadence=globalThis.webpackChunkkadence||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=o.O(void 0,[208],()=>o(99250));l=o.O(l),(this.kadence=this.kadence||{})["blocks-modal"]=l})();
💾 Save Changes
❌ Cancel