!function(e){function t(t){for(var n,o,i=t[0],a=t[1],c=0,u=[];c=0||(o[n]=e[n]);return o}n.d(t,"a",function(){return r})},function(e,t){e.exports=window._},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return r})},function(e,t){e.exports=window.jQuery},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return u});var r=n(6),o=n.n(r),i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["__CT_KEYS_ORDER__"]);return Object.keys(n).reduce(function(n,r){return t[r].type?t[r].options?i({},n,e(t[r].options)):i({},n,a({},r,t[r])):i({},n,e(t[r]))},{})},s=function e(t){return Object.keys(t).reduce(function(n,r){return i({},n,t[r].type?a({},r,t[r]):"__CT_KEYS_ORDER__"===r?a({},r,t[r]):e(t[r]))},{})},u=function(e,t){var n=c(e);return i({},t,Object.keys(n).reduce(function(e,r){var c=null;return Object.keys(t).indexOf(r)>-1?((o.a.isString(t[r])||o.a.isNumber(t[r]))&&(c=t[r]),o.a.isObject(t[r])&&(c=i({},n[r].value||{},t[r])),o.a.isArray(t[r])&&(c=t[r]?t[r]:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1?n[r].value:"",i({},e,a({},r,c))},{}))}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=function(e){return Array.isArray(e)?e:Array.from(e)},o=function e(t,n,r){var o=(t="string"==typeof t?t.split("/"):[t]).shift();return void 0===n[o]?r:t.length?e(t=t.join("/"),n[o],r):n[o]},i=function(e){return e.all||e.any||(e={all:e}),e},a=function e(t,n){var i=Object.values(t)[0],a=function(e){return 0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all"},c=Object.keys(i).map(function(t,c){var s,u,l,p=Object.values(i)[c];return"all"===a(t)||"any"===a(t)?e((l=p,(u=t)in(s={})?Object.defineProperty(s,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[u]=l,s),n):function(e,t,n){var i=function(e,t){var n=function(e){return o(e,t)};if(e.indexOf(":")>-1){var i=null;if(function(e){var t=r(e),o=t[0],a=t.slice(1);if("truthy"===(a=a.join(":"))&&(i=n(o)?"yes":"no"),a.indexOf("json:")>-1&&(i=n(o+"/"+a.split(":")[1]).toString()),"array_length"===a){var c=n(o);i=(c||[]).length.toString()}if(!i)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+a+".")}(e.split(":")),i)return i;e=e.split(":")[0]}var a=n(e);return!!a&&a.toString()}(t,n);if(i=i.toString(),e=e.toString(),!i)return!1;if(e.indexOf("|")>-1)return 0===e.indexOf("!")?-1===e.substring(1).split("|").map(function(e){return e.trim()}).includes(i.trim()):e.split("|").map(function(e){return e.trim()}).indexOf(i.trim())>-1;if(0===e.indexOf("!"))return i!==e.substring(1).trim();if(0===e.indexOf("*"))return i.indexOf(e.trim().substring(1).trim())>-1;return i===e.trim()}(p,t,n)});return"all"===a(Object.keys(t)[0])?c.every(function(e){return!!e}):"any"===a(Object.keys(t)[0])?c.some(function(e){return!!e}):void 0}},function(e,t,n){e.exports=n(48)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return Array.isArray(e)?e:Object.keys(e).reduce(function(t,n){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1?e:{desktop:e,tablet:e,mobile:e}},u=function(e){var t=e.device,n=e.setDevice,o=e.responsiveDescriptor;return Object(r.createElement)("div",{className:"ct-control-options"},Object(r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].map(function(e){return Object(r.createElement)("li",{onClick:function(){return n(e)},className:i()({active:e===t,"ct-disabled":!c(e,o)},"ct-"+e),key:e})})))},l=n(41),p=n.n(l),f=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function y(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1&&b.keys()[t]},O=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},o=t.wrapperAttr,a=(o=void 0===o?{}:o).className,s=h(o,["className"]);h(t,["wrapperAttr"]);return Object(r.createElement)("div",f({className:i()("ct-control",a,{}),"data-design":_},f({},l.responsive&&!c(e.state.device,l.responsive)||"disabled"===l.state?{"data-state":"disabled"}:{}),f({},l.wrapperAttr||{},s)),Object(r.createElement)("header",null,I&&Object(r.createElement)("label",null,I),"ct-image-picker"!==l.type&&"ct-layers"!==l.type&&"ct-image-uploader"!==l.type&&"ct-panel"!==l.type&&e.props.hasRevertButton&&!l.disableRevertButton&&Object(r.createElement)("button",{type:"button",disabled:p()(l.value,n),className:"ct-revert",onClick:function(){return w(l.value)}}),Object(r.createElement)(C,{option:l,value:O,id:d,onChange:j}),l.responsive&&"block"===_&&Object(r.createElement)(u,{device:e.state.device,responsiveDescriptor:l.responsive,setDevice:function(t){return e.setDevice(t)}})),l.responsive&&!c(e.state.device,l.responsive)&&Object(r.createElement)("div",{className:"ct-disabled-notification"},"This option can't be edited for current device"),(l.responsive&&c(e.state.device,l.responsive)||!l.responsive)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("section",{className:i()({"ct-responsive-container":l.responsive&&"inline"===_})},l.responsive&&"inline"===_&&Object(r.createElement)(u,{device:e.state.device,responsiveDescriptor:l.responsive,setDevice:function(t){return e.setDevice(t)}}),k),A&&Object(r.createElement)("div",{dangerouslySetInnerHTML:{__html:A},className:"ct-option-description"})),Object(r.createElement)(S,null))};return E?Object(r.createElement)(E,{option:l,value:O,getActualOption:T}):T()}}]),t}(),w=n(10),j=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e,t){return!e},C=function(){var e=Object(r.useReducer)(x,!0),t=j(e,2)[1];return Object(r.useMemo)(function(){return function(){t(null)}},[t])},E=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(S)}}]),e}();function S(e,t){var n=e.node.sortableInfo.index,r=t.node.sortableInfo.index;return n-r}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:F(e.parentNode,t,r)}}function U(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var c=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);C(null!==c,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=c[1]}return C(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function V(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:V(e.parentNode):null}var H={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function B(e){var n,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return o=n=function(n){function o(){return h(this,o),g(this,O(o).apply(this,arguments))}return j(o,n),v(o,[{key:"componentDidMount",value:function(){var e=r.findDOMNode(this);e.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return C(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var n=a.withRef?"wrappedInstance":null;return t.createElement(e,i({ref:n},this.props))}}]),o}(t.Component),x(n,"displayName",M("sortableHandle",e)),o}function L(e){return null!=e.sortableHandle}var W=function(){function e(t,n){h(this,e),this.container=t,this.onScrollCallback=n}return v(e,[{key:"clear",value:function(){clearInterval(this.interval),this.interval=null}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,c={x:0,y:0},s={x:1,y:1},u={x:10,y:10},l=this.container,p=l.scrollTop,f=l.scrollLeft,d=l.scrollHeight,h=l.scrollWidth,y=l.clientHeight,v=l.clientWidth,m=0===p,b=d-p-y==0,g=0===f,O=h-f-v==0;n.y>=o.y-a/2&&!b?(c.y=1,s.y=u.y*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!O?(c.x=1,s.x=u.x*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!m?(c.y=-1,s.y=u.y*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!g&&(c.x=-1,s.x=u.x*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===c.x&&0===c.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*c.x,top:s.y*c.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),K={axis:n.oneOf(["x","y","xy"]),contentWindow:n.any,disableAutoscroll:n.bool,distance:n.number,getContainer:n.func,getHelperDimensions:n.func,helperClass:n.string,helperContainer:n.oneOfType([n.func,"undefined"==typeof HTMLElement?n.any:n.instanceOf(HTMLElement)]),hideSortableGhost:n.bool,lockAxis:n.string,lockOffset:n.oneOfType([n.number,n.string,n.arrayOf(n.oneOfType([n.number,n.string]))]),lockToContainerEdges:n.bool,onSortEnd:n.func,onSortMove:n.func,onSortOver:n.func,onSortStart:n.func,pressDelay:n.number,pressThreshold:n.number,shouldCancelStart:n.func,transitionDuration:n.number,updateBeforeSortStart:n.func,useDragHandle:n.bool,useWindowAsScrollContainer:n.bool},z={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,shouldCancelStart:function(e){return-1!==[H.Input,H.Textarea,H.Select,H.Option,H.Button].indexOf(e.target.tagName)},transitionDuration:300,useWindowAsScrollContainer:!1},G=Object.keys(K);function q(e){var o,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=o=function(n){function o(e){var t;return h(this,o),t=g(this,O(o).call(this,e)),x(b(b(t)),"handleStart",function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=$(e);var i=R(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,c=i.sortableInfo,s=c.index,u=c.collection,l=c.disabled;if(l)return;if(a&&!R(e.target,L))return;t.manager.active={collection:u,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==H.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),x(b(b(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),x(b(b(t)),"handleMove",function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=$(e),a={x:t.position.x-i.x,y:t.position.y-i.y},c=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||o&&!(c>=o)?r&&c>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),x(b(b(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),x(b(b(t)),"cancel",function(){var e=t.props.distance,n=t.state.sorting;n||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),x(b(b(t)),"handlePress",function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,o=f.sortableInfo.index,u=(n=f,{bottom:D((r=window.getComputedStyle(n)).marginBottom),left:D(r.marginLeft),right:D(r.marginRight),top:D(r.marginTop)}),y=t.scrollContainer.getBoundingClientRect(),v=a({collection:h,index:o,node:f});t.node=f,t.margin=u,t.width=v.width,t.height=v.height,t.marginOffset={x:t.margin.left+t.margin.right,y:Math.max(t.margin.top,t.margin.bottom)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=y,t.index=o,t.newIndex=o,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=F(f,t.container),t.initialOffset=$(e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset};var m=f.querySelectorAll("input, textarea, select, canvas"),b=f.cloneNode(!0),g=d(b.querySelectorAll("input, textarea, select, canvas"));g.forEach(function(e,t){if("file"!==e.type&&m[o]&&(e.value=m[t].value),e.tagName===H.Canvas){var n=e.getContext("2d");n.drawImage(m[t],0,0)}}),t.helper=t.helperContainer.appendChild(b),A(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-u.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-u.top,"px"),width:"".concat(t.width,"px")}),s&&(t.sortableGhost=f,A(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},t.axis.x&&(t.minTranslate.x=(p?0:y.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(p?t.contentWindow.innerWidth:y.left+y.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(p?0:y.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(p?t.contentWindow.innerHeight:y.top+y.height)-t.boundingClientRect.top-t.height/2),c&&c.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?f:t.contentWindow,P.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),P.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}),t.setState({sorting:!0,sortingIndex:o}),l&&l({collection:h,index:o,node:f},e)},o=t.props,i=o.axis,a=o.getHelperDimensions,c=o.helperClass,s=o.hideSortableGhost,u=o.updateBeforeSortStart,l=o.onSortStart,p=o.useWindowAsScrollContainer,f=n.node,h=n.collection,y=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=f.sortableInfo.index;return Promise.resolve(u({collection:h,index:t,node:f},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return y&&y.then?y.then(r):r()}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),x(b(b(t)),"handleSortMove",function(e){var n=t.props.onSortMove;e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),x(b(b(t)),"handleSortEnd",function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager.active.collection,a=t.manager.refs[i];t.listenerNode&&(P.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),P.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&A(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,s=a.length;ch?h/2:this.height/2,width:this.width>d?d/2:this.width/2},v={x:0,y:0},m=a[u].edgeOffset;m||(m=F(p,this.container),a[u].edgeOffset=m);var b=u0&&a[u-1];b&&!b.edgeOffset&&(b.edgeOffset=F(b.node,this.container)),f!==this.index?(t&&T(p,t),this.axis.x?this.axis.y?fthis.containerBoundingRect.width-y.width&&b&&(v.x=b.edgeOffset.left-m.left,v.y=b.edgeOffset.top-m.top),null===this.newIndex&&(this.newIndex=f)):f>this.index&&(c.left+i.left+y.width>=m.left&&c.top+i.top+y.height>=m.top||c.top+i.top+y.height>=m.top+h)&&(v.x=-(this.width+this.marginOffset.x),m.left+v.xthis.index&&c.left+i.left+y.width>=m.left?(v.x=-(this.width+this.marginOffset.x),this.newIndex=f):fthis.index&&c.top+i.top+y.height>=m.top?(v.y=-(this.height+this.marginOffset.y),this.newIndex=f):f1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=o=function(n){function o(){return h(this,o),g(this,O(o).apply(this,arguments))}return j(o,n),v(o,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,o=e.index,i=r.findDOMNode(this);i.sortableInfo={collection:t,disabled:n,index:o,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return C(c.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var n=c.withRef?"wrappedInstance":null;return t.createElement(e,i({ref:n},k(this.props,Y)))}}]),o}(t.Component),x(o,"displayName",M("sortableElement",e)),x(o,"contextTypes",{manager:n.object.isRequired}),x(o,"propTypes",J),x(o,"defaultProps",{collection:0}),a}e.SortableContainer=q,e.sortableContainer=q,e.SortableElement=X,e.sortableElement=X,e.SortableHandle=B,e.sortableHandle=B,e.arrayMove=function(e,t,n){return"undefined"!=typeof console&&console.warn("Deprecation warning: arrayMove will no longer be exported by 'react-sortable-hoc' in the next major release. Please install the `array-move` package locally instead. https://www.npmjs.com/package/array-move"),(e=e.slice()).splice(n<0?e.length+n:n,0,e.splice(t,1)[0]),e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(4),n(21),n(24))},function(e,t,n){"use strict";var r=n(59);e.exports=Function.prototype.bind||r},function(e,t){var n=4,r=.001,o=1e-7,i=10,a=11,c=1/(a-1),s="function"==typeof Float32Array;function u(e,t){return 1-3*t+3*e}function l(e,t){return 3*t-6*e}function p(e){return 3*e}function f(e,t,n){return((u(t,n)*e+l(t,n))*e+p(t))*e}function d(e,t,n){return 3*u(t,n)*e*e+2*l(t,n)*e+p(t)}function h(e){return e}e.exports=function(e,t,u,l){if(!(0<=e&&e<=1&&0<=u&&u<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&u===l)return h;for(var p=s?new Float32Array(a):new Array(a),y=0;y=r?function(e,t,r,o){for(var i=0;i0?n=s:t=s}while(Math.abs(c)>o&&++u=e);++n);return n-1}(e,o);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,o[t],o[t+1],r[t],r[t+1],i,a,s,c)}},e}();var E="[-+]?\\d*\\.?\\d+",S=E+"%";function k(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var P=new RegExp("rgb"+k(E,E,E)),I=new RegExp("rgba"+k(E,E,E,E)),A=new RegExp("hsl"+k(E,S,S)),_=new RegExp("hsla"+k(E,S,S,E)),T=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,R=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,N=/^#([0-9a-fA-F]{6})$/,D=/^#([0-9a-fA-F]{8})$/;function M(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}function $(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=M(o,r,e+1/3),a=M(o,r,e),c=M(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function F(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function U(e){return(parseFloat(e)%360+360)%360/360}function V(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function H(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function B(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=N.exec(t))?parseInt(n[1]+"ff",16)>>>0:x.hasOwnProperty(t)?x[t]:(n=P.exec(t))?(F(n[1])<<24|F(n[2])<<16|F(n[3])<<8|255)>>>0:(n=I.exec(t))?(F(n[1])<<24|F(n[2])<<16|F(n[3])<<8|V(n[4]))>>>0:(n=T.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=D.exec(t))?parseInt(n[1],16)>>>0:(n=R.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=A.exec(t))?(255|$(U(n[1]),H(n[2]),H(n[3])))>>>0:(n=_.exec(t))?($(U(n[1]),H(n[2]),H(n[3]))|V(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var L=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,W=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,K=new RegExp("("+Object.keys(x).join("|")+")","g");var z=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),G=function(e){return Object.keys(e).map(function(t){return e[t]})},q=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o2?n-2:0),o=2;o=n.startTime+Oe.delay+Oe.duration;else{for(ke=void 0!==we.lastTime?we.lastTime:ye,Pe=void 0!==we.lastVelocity?we.lastVelocity:Oe.initialVelocity,ye>ke+64&&(ke=ye),Ie=Math.floor(ye-ke),Re=0;ReEe:je1?j-1:0),C=1;C=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var c=a;c.update(Object(r.a)({},c.props,c.merged),!0)}}},t.stop=function(e){void 0===e&&(e=!1),Oe=void 0,we=void 0,xe=void 0,Ce=void 0,Ee=void 0,e&&oe(this.animations).forEach(function(e){return e.changes=void 0}),this.isActive=!1,y(this.frame),this.debouncedOnEnd({finished:e})},t.debouncedOnEnd=function(e){this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e)},e}();function Ve(e){var t=function(t){function n(e){var n;return(n=t.call(this)||this).callback=function(){n.node&&(!1===f.fn(n.node,n.propsAnimated.getAnimatedValue(),Object(i.a)(Object(i.a)(n)))&&n.forceUpdate())},n.attachProps(e),n}Object(o.a)(n,t);var c=n.prototype;return c.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},c.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},c.attachProps=function(e){e.forwardRef;var t=Object(a.a)(e,["forwardRef"]),n=this.propsAnimated;this.propsAnimated=new Fe(t,this.callback),n&&n.detach()},c.shouldComponentUpdate=function(e){var t=e.style,n=Object(a.a)(e,["style"]),r=this.props,o=r.style;return(!ne(Object(a.a)(r,["style"]),n)||!ne(o,t))&&(this.attachProps(e),!0)},c.render=function(){var t=this,n=(this.props.forwardRef,this.propsAnimated.getValue()),o=(n.scrollTop,n.scrollLeft,Object(a.a)(n,["scrollTop","scrollLeft"]));return s.a.createElement(e,Object(r.a)({},o,{ref:function(e){return t.node=se(e,t.props.forwardRef)}}))},n}(s.a.Component);return s.a.forwardRef(function(e,n){return s.a.createElement(t,Object(r.a)({},e,{forwardRef:n}))})}s.a.version.split(".");var He=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i-1?getComputedStyle(document.documentElement).getPropertyValue(this.props.value.color.replace(/var\(/,"").replace(/\)/,"")).trim().replace(/\s/g,""):this.props.value.color})})))}}]),t}(),b=n(11),g=n.n(b),O=n(18),w=n(17),j=n.n(w),x=function(){function e(e,t){for(var n=0;n1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t){e.exports=BlocksyReactDOM},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(12),i=n(5),a=n(1),c=n(7),s=n(3),u=(n(21),n(4)),l=n.n(u);n(26);function p(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function f(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function d(e,t){if(e.clientHeightt||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0}var y=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,c="function"==typeof i?i:function(e){return e!==i};if(!p(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,u=[],l=e;p(l)&&c(l);){if((l=l.parentNode)===s){u.push(l);break}l===document.body&&d(l)&&!d(document.documentElement)||d(l,a)&&u.push(l)}for(var f=window.visualViewport?visualViewport.width:innerWidth,y=window.visualViewport?visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),g=b.height,O=b.width,w=b.top,j=b.right,x=b.bottom,C=b.left,E="start"===r||"nearest"===r?w:"end"===r?x:w+g/2,S="center"===o?C+O/2:"end"===o?j:C,k=[],P=0;P=0&&C>=0&&x<=y&&j<=f&&w>=R&&x<=D&&C>=M&&j<=N)return k;var $=getComputedStyle(I),F=parseInt($.borderLeftWidth,10),U=parseInt($.borderTopWidth,10),V=parseInt($.borderRightWidth,10),H=parseInt($.borderBottomWidth,10),B=0,L=0,W="offsetWidth"in I?I.offsetWidth-I.clientWidth-F-V:0,K="offsetHeight"in I?I.offsetHeight-I.clientHeight-U-H:0;if(s===I)B="start"===r?E:"end"===r?E-y:"nearest"===r?h(m,m+y,y,U,H,m+E,m+E+g,g):E-y/2,L="start"===o?S:"center"===o?S-f/2:"end"===o?S-f:h(v,v+f,f,F,V,v+S,v+S+O,O),B=Math.max(0,B+m),L=Math.max(0,L+v);else{B="start"===r?E-R-U:"end"===r?E-D+H+K:"nearest"===r?h(R,D,_,U,H+K,E,E+g,g):E-(R+_/2)+K/2,L="start"===o?S-M-F:"center"===o?S-(M+T/2)+W/2:"end"===o?S-N+V+W:h(M,N,T,F,V+W,S,S+O,O);var z=I.scrollLeft,G=I.scrollTop;E+=G-(B=Math.max(0,Math.min(G+B,I.scrollHeight-_+K))),S+=z-(L=Math.max(0,Math.min(z+L,I.scrollWidth-T+W)))}k.push({el:I,top:B,left:L})}return k},v="undefined"==typeof document?null:document.getElementById("a11y-status-message"),m=[];function b(e){var t=m[m.length-1]===e;m=t?[].concat(m,[e]):[e];for(var n=function(){if(v)return v;return(v=document.createElement("div")).setAttribute("id","a11y-status-message"),v.setAttribute("role","status"),v.setAttribute("aria-live","polite"),v.setAttribute("aria-relevant","additions text"),Object.assign(v.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),document.body.appendChild(v),v}();n.lastChild;)n.removeChild(n.firstChild);m.filter(Boolean).forEach(function(e,t){n.appendChild(function(e,t){var n=t===m.length-1?"block":"none",r=document.createElement("div");return r.style.display=n,r.textContent=e,r}(e,t))})}var g=0,O=2,w=3,j=4,x=5,C=6,E=7,S=8,k=9,P=10,I=11,A=12,_=13,T=14,R=Object.freeze({unknown:g,mouseUp:1,itemMouseEnter:O,keyDownArrowUp:w,keyDownArrowDown:j,keyDownEscape:x,keyDownEnter:C,keyDownHome:E,keyDownEnd:S,clickItem:k,blurInput:P,changeInput:I,keyDownSpaceButton:A,clickButton:_,blurButton:T,controlledPropUpdatedSelectedItem:15,touchEnd:16}),N=0;function D(e){return"function"==typeof e?e:M}function M(){}function $(e,t){return e===t||e.contains&&e.contains(t)}function F(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function K(e,t,n){var r=n-1;null===t&&(t=e>0?-1:r+1);var o=t+e;return o<0?o=r:o>r&&(o=0),o}var z=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(N++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r}),e()},t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=L(t),n.internalSetState(Object(a.a)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=L(t),n.internalSetState(Object(a.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},c="function"==typeof e;return!c&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Object(a.a)({},n.getStateAndHelpers(),e)),n.setState(function(t){t=n.getState(t);var s=c?e(t):e;s=n.props.stateReducer(t,s),r=s.hasOwnProperty("selectedItem");var u={},l={};return r&&s.selectedItem!==t.selectedItem&&(o=s.selectedItem),s.type=s.type||g,Object.keys(s).forEach(function(e){t[e]!==s[e]&&(i[e]=s[e]),"type"!==e&&(l[e]=s[e],n.isControlledProp(e)||(u[e]=s[e]))}),c&&s.hasOwnProperty("inputValue")&&n.props.onInputValueChange(s.inputValue,Object(a.a)({},n.getStateAndHelpers(),s)),u},function(){D(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())})},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,c=o.refKey,s=void 0===c?"ref":c,u=Object(i.a)(o,["refKey"]),l=(void 0===t?{}:t).suppressRefError,p=void 0!==l&&l;n.getRootProps.called=!0,n.getRootProps.refKey=s,n.getRootProps.suppressRefError=p;var f=n.getState().isOpen;return Object(a.a)(((r={})[s]=n.rootRef,r.role="combobox",r["aria-expanded"]=f,r["aria-haspopup"]="listbox",r["aria-owns"]=f?n.menuId:null,r["aria-labelledby"]=n.labelId,r),u)},n.keyDownHandlers={ArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:j})},ArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:w})},Enter:function(e){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:C})}},Escape:function(e){e.preventDefault(),this.reset({type:x})}},n.buttonKeyDownHandlers=Object(a.a)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:A})}}),n.inputKeyDownHandlers=Object(a.a)({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:E})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:S})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,o=(t.onPress,t.onKeyDown),c=t.onKeyUp,s=t.onBlur,u=Object(i.a)(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),l=n.getState().isOpen,p={onClick:F(r,n.buttonHandleClick),onKeyDown:F(o,n.buttonHandleKeyDown),onKeyUp:F(c,n.buttonHandleKeyUp),onBlur:F(s,n.buttonHandleBlur)},f=u.disabled?{}:p;return Object(a.a)({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},f,u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=W(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Object(s.a)(Object(s.a)(n)),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout(function(){return n.toggleMenu({type:_})})},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:T})})},n.getLabelProps=function(e){return Object(a.a)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,c=t.onChange,s=t.onInput,u=(t.onChangeText,Object(i.a)(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),l={};var p,f=n.getState(),d=f.inputValue,h=f.isOpen,y=f.highlightedIndex;u.disabled||((p={}).onChange=F(c,s,n.inputHandleChange),p.onKeyDown=F(r,n.inputHandleKeyDown),p.onBlur=F(o,n.inputHandleBlur),l=p);return Object(a.a)({"aria-autocomplete":"list","aria-activedescendant":h&&"number"==typeof y&&y>=0?n.getItemId(y):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:d,id:n.inputId},l,u)},n.inputHandleKeyDown=function(e){var t=W(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Object(s.a)(Object(s.a)(n)),e)},n.inputHandleChange=function(e){n.internalSetState({type:I,isOpen:!0,inputValue:e.target.value})},n.inputHandleTextChange=function(e){n.internalSetState({type:I,isOpen:!0,inputValue:e})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:P})})},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,c=o.refKey,s=void 0===c?"ref":c,u=o.ref,l=Object(i.a)(o,["refKey","ref"]),p=(void 0===t?{}:t).suppressRefError,f=void 0!==p&&p;return n.getMenuProps.called=!0,n.getMenuProps.refKey=s,n.getMenuProps.suppressRefError=f,Object(a.a)(((r={})[s]=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?this.setHighlightedIndex(K(e,this.getState().highlightedIndex,this.getItemCount()),t):this.openMenu(function(){if(0!==n.getItemCount()){var e=t.type;e===j&&n.setHighlightedIndex(K(1,n.props.defaultHighlightedIndex,n.getItemCount()),t),e===w&&n.setHighlightedIndex(K(-1,n.props.defaultHighlightedIndex,n.getItemCount()),t)}})},n.highlightFirstOrLastIndex=function(e,t,n){var r=this.getItemCount()-1;r<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:r,n))},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,c=this.getRootProps,s=this.getToggleButtonProps,u=this.getLabelProps,l=this.getMenuProps,p=this.getInputProps,f=this.getItemProps,d=this.openMenu,h=this.closeMenu,y=this.toggleMenu,v=this.selectItem,m=this.selectItemAtIndex,b=this.selectHighlightedItem,g=this.setHighlightedIndex,O=this.clearSelection,w=this.clearItems;return{getRootProps:c,getToggleButtonProps:s,getLabelProps:u,getMenuProps:l,getInputProps:p,getItemProps:f,reset:this.reset,openMenu:d,closeMenu:h,toggleMenu:y,selectItem:v,selectItemAtIndex:m,selectHighlightedItem:b,setHighlightedIndex:g,clearSelection:O,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},n.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var r=e.props.environment.document;return[e._rootNode,e._menuNode].some(function(e){return e&&($(e,t)||n&&$(e,r.activeElement))})},n=function(){e.isMouseDown=!0},r=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},function(){return e.props.onOuterClick(e.getStateAndHelpers())})},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(n){var r=t(n.target,!1);e.isTouchMove||r||!e.getState().isOpen||e.reset({type:16},function(){return e.props.onOuterClick(e.getStateAndHelpers())})};this.props.environment.addEventListener("mousedown",n),this.props.environment.addEventListener("mouseup",r),this.props.environment.addEventListener("touchstart",o),this.props.environment.addEventListener("touchmove",i),this.props.environment.addEventListener("touchend",a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),e.props.environment.removeEventListener("mousedown",n),e.props.environment.removeEventListener("mouseup",r),e.props.environment.removeEventListener("touchstart",o),e.props.environment.removeEventListener("touchmove",i),e.props.environment.removeEventListener("touchend",a)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.state:this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.state.isOpen&&!e.isOpen||n!==r},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=U(this.props.children,M);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=U(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:V(t)?l.a.cloneElement(t,this.getRootProps(H(t))):void 0:null},t}(u.Component);z.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:function(e){var t=e.isOpen,n=e.selectedItem,r=e.resultCount,o=e.previousResultCount,i=e.itemToString;return t?r?r!==o?r+" result"+(1===r?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?i(n):""},itemToString:function(e){return null==e?"":String(e)},onStateChange:M,onInputValueChange:M,onUserAction:M,onChange:M,onSelect:M,onOuterClick:M,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:function(e,t){null!==e&&y(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}},z.stateChangeTypes=R;var G=z,q=n(2),J=n.n(q),Y=Object.assign||function(e){for(var t=1;t2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(56),o=n(14),i=n(16).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)o(t,a)&&i(t,a)&&n.push(t[a]);return n}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(23),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(14),c={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),c=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&c)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=c[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){var r=n(16).call(Function.call,Object.prototype.hasOwnProperty),o=Object.assign;e.exports=function(e,t){if(o)return o(e,t);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(32);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t,n){var r=Array.prototype.slice,o=n(44),i=n(45),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,l;if(c(e)||c(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(u=0;u=0;u--)if(p[u]!=f[u])return!1;for(u=p.length-1;u>=0;u--)if(l=p[u],!a(e[l],t[l],n))return!1;return typeof e==typeof t}(e,t,n))};function c(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t,n){n.p=ct_localizations.public_url},function(e,t){window.ctEvents=new function(){var e={},t=1,n=!1;function r(e,t){if("string"!=typeof e)return e;for(var n=e.replace(/\s\s+/g," ").trim().split(" "),r=n.length,o=Object.create(null),i=0;i0&&(a=o.apply(this,arguments)),c<=1&&(o=null),a})),n&&i("✚ ["+t+"]")}),this},this.off=function(t,a){return o(r(t,a),function(t,r){e[t]&&(r?e[t].splice(e[t].indexOf(r)>>>0,1):e[t]=[],n&&i("✖ "+t))}),this},this.trigger=function(n,a){return o(r(n),function(t){i("╭─ "+t,a),c(1);try{"fw:options:init"===t&&fw.options.startListeningToEvents(a.$elements||document.body),(e[t]||[]).map(n),(e.all||[]).map(n)}catch(e){if(console.log("%c [Events] Exception raised. Please contact support in https://github.com/ThemeFuse/Unyson/issues/new. Don't forget to attach this stack trace to the issue.","color: red; font-weight: bold;"),"undefined"==typeof console)throw e;console.error(e)}function n(e){e&&e.call(window,a)}c(-1),i("╰─ "+t,a)}),this;function c(e){void 0!==e&&(t+=e>0?1:-1),t<0&&(t=0)}},this.hasListeners=function(t){return!!e&&(e[t]||[]).length>0}}},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t,n){var r={"./ct-border.js":47,"./ct-checkboxes.js":74,"./ct-color-picker.js":75,"./ct-divider.js":91,"./ct-image-picker.js":87,"./ct-image-uploader.js":76,"./ct-layers.js":77,"./ct-notification.js":79,"./ct-number.js":89,"./ct-panel.js":86,"./ct-radio.js":88,"./ct-select.js":25,"./ct-slider.js":92,"./ct-switch.js":80,"./ct-title.js":81,"./ct-visibility.js":82,"./hidden.js":83,"./text.js":84,"./textarea.js":85};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=46},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(11),i=n.n(o),a=n(2),c=n.n(a),s=n(19),u=Object.assign||function(e){for(var t=1;t0&&!o.call(e,0))for(var y=0;y0)for(var v=0;v2?arguments[2]:[];if(!this.IsCallable(e))throw new c(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=x(e)?e:o(e,f);if("symbol"==typeof t)throw new c("Cannot convert a Symbol value to a number");if("string"==typeof t){if(P(t))return this.ToNumber(C(k(t,2),2));if(I(t))return this.ToNumber(C(k(t,2),8));if(T(t)||R(t))return NaN;var n=function(e){return q(e,G,"")}(t);if(n!==t)return this.ToNumber(n)}return f(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!b(t))return 0;var n=w(t)*V(H(t));return j(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=V(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==D(e))throw new c("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:J.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===D(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!x(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!b(e))return!1;var t=H(e);return V(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(y){var t=e[d.match];if(void 0!==t)return J.ToBoolean(t)}return Y(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new c(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":J.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new c("O.constructor is not an Object");var r=y&&d.species?n[d.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new c("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");if("Boolean"!==this.Type(r))throw new c("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(y&&"symbol"==typeof d.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");var n=S(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!y)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,d.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new c("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new c("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new c("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new c("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new c("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new c("R must be an Object");if("String"!==this.Type(t))throw new c("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new c('"exec" method must return `null` or an Object')}return A(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new c("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&y&&d.species&&null===(n=this.Get(n,d.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new c("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=L(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(K(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new c("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new c("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!B)throw new s("native Object.create support is required to create null objects");return B(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new c("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new c("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new c("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=N(e,t);if(r<55296||r>56319)return t+1;var o=N(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!K(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!K(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:M(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:$(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return U(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=Math.max(0,t.length-i.length),c=[],s=0;s1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var s=t.call(e,n);if(o(s))return s;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return p(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(h(e,n)&&!t[n])return!1;var r=h(e,"[[Value]]"),o=h(e,"[[Get]]")||h(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!h(e,"[[Get]]")&&!h(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!h(e,"[[Value]]")&&!h(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(h(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),h(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),h(e,"value")&&(t["[[Value]]"]=e.value),h(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),h(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(h(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((h(t,"[[Get]]")||h(t,"[[Set]]"))&&(h(t,"[[Value]]")||h(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=y},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(33),i=n(22),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t,n){"use strict";var r=n(14),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(40),o=n(29);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,p=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):p=-1,u.length&&d())}function d(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++p1)for(var n=1;n').insertBefore(t.closest(".ct-color-picker-bottom")),e.wrap=t.parent().prev(".wp-picker-container"),t.iris({target:e.pickerContainer,hide:!1,width:230,mode:e.options.mode,palettes:!1,change:function(t,r){n.isFunction(e.options.change)&&e.options.change.call(this,t,r)}}),t.val(e.initialValue),e._addListeners()}},_addListeners:function(){var e=this;e.wrap.on("click.wpcolorpicker",function(e){}),e.element.change(function(t){var r=n(this).val();""!==r&&"#"!==r||n.isFunction(e.options.clear)&&e.options.clear.call(this,t)})},open:function(){this.element.show().iris("toggle").focus(),this.wrap.addClass("wp-picker-active"),n("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker",this.close)},close:function(){this.element.iris("toggle"),this.wrap.removeClass("wp-picker-active"),n("body").off("click.wpcolorpicker",this.close)},color:function(e){if(void 0===e)return this.element.iris("option","color");this.element.iris("option","color",e)},defaultColor:function(e){if(void 0===e)return this.options.defaultColor;this.options.defaultColor=e}},n.widget("wp.ctColorPicker",r),function(e){window.Color&&(Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var e=parseInt(this._color,10).toString(16);if(this.error)return"";if(e.length<6)for(var t=6-e.length-1;t>=0;t--)e="0"+e;return"#"+e},Color.fn.isDark=function(){var e,t,n,r,o=this.toRgb();return e=o.r,t=o.g,n=o.b,r=this._alpha,(299*e+587*t+114*n)/1e3<128&&r>.4},e.widget("wp.ctColorPicker",e.wp.ctColorPicker,{_addListeners:function(){this.wrap.on("click.wpcolorpicker",function(e){})}}),e.widget("a8c.iris",e.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=!0,this.element.is(":input"),void 0!==this.options.alpha&&this.options.alpha){var t=this,n=(t.element,e('
').appendTo(t.picker.find(".iris-picker-inner"))),r=n.find(".iris-slider-offset-alpha"),o={aContainer:n,aSlider:r};e.each(o,function(e,n){t.controls[e]=n}),t._initControls(),t._change()}},_initControls:function(){if(this._super(),this.controls.square.append(jQuery('
').css({position:"absolute",top:0,left:0,right:0,bottom:0})),this.controls.squareDrag.draggable("option","containment",this.controls.square.find(".iris-square-inner-wrapper")),this.options.alpha){var e=this;e.controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*e._color._alpha),slide:function(t,n){e._color._alpha=parseFloat(n.value/100),e._change.apply(e,arguments),e.element.trigger("ctalphasliderchange")}})}},_change:function(){this._super();var e=this,t=e.element;if(t.change(),this.options.alpha){var n=e.controls,r=parseInt(100*e._color._alpha),o=e._color.toRgb(),i=["rgb("+o.r+","+o.g+","+o.b+") 0%","rgba("+o.r+","+o.g+","+o.b+", 0) 100%"];e.options.defaultWidth,e.options.customWidth,e.picker.closest(".wp-picker-container").find(".wp-color-result");if(n.aContainer.css({background:"linear-gradient(to bottom, "+i.join(", ")+"), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==)"}),n.aSlider.slider("value",r),e._color._alpha<1){var a=n.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)");n.strip.attr("style",a)}}(t.data("reset-alpha")||!1)&&e.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){e._color._alpha=1,e.active="external",e._change()})},_addInputListeners:function(e){var t=this,n=function(n){var r=new Color(e.val()),o=e.val();e.removeClass("iris-error"),r.error?""!==o?e.addClass("iris-error"):e.css("background-color",""):r.toString()!==t._color.toString()&&("keyup"===n.type&&o.match(/^[0-9a-fA-F]{3}$/)||t._setOption("color",r.toString()))};e.on("change",n).on("keyup",t._debounce(n,100))}}))}(jQuery)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(12),i=(n(6),Object.assign||function(e){for(var t=1;t1)&&c(i({},n,a({},t,r)))}}),o)}))}},function(e,t,n){"use strict";n.r(t);var r=n(19);t.default=r.a},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),i=n.n(o),a=(n(28),n(6)),c=n.n(a),s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],t=r.props.value.attachment_id;t&&(!wp.media.attachment(t).get("url")||e?wp.media.attachment(t).fetch().then(function(){return r.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(t).toJSON()))})}):r.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(t).toJSON()))}),r.detachListener(),wp.media.attachment(t).on("change",r.updateAttachmentInfo))},f(r,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,r["Component"]),u(t,[{key:"initFrame",value:function(){this.frame=wp.media({button:{text:"Select",close:!1},states:[new wp.media.controller.Library({title:"Select logo",library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:(this.props.option.logo||{}).width,suggestedHeight:(this.props.option.logo||{}).height})].concat(p((this.props.option.skipCrop,[])))}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)}},{key:"openFrame",value:function(){this.initFrame(),this.frame.setState("library").open()}},{key:"calculateImageSelectOptions",value:function(e,t){var n,r,o,i=t.get("control"),a=!!parseInt((i.props.option.logo||{}).flex_width,10),c=!!parseInt((i.props.option.logo||{}).flex_height,10),s=e.get("width"),u=e.get("height"),l=parseInt((i.props.option.logo||{}).width,10),p=parseInt((i.props.option.logo||{}).height,10),f=l/p,d=l,h=p;return t.set("canSkipCrop",!i.mustBeCropped(a,c,l,p,s,u)),s/u>f?l=(p=u)*f:p=(l=s)/f,o={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:u,minWidth:d>l?l:d,minHeight:h>p?p:h,x1:n=(s-l)/2,y1:r=(u-p)/2,x2:l+n,y2:p+r},!1===c&&!1===a&&(o.aspectRatio=l+":"+p),!0===c&&(delete o.minHeight,o.maxWidth=s),!0===a&&(delete o.minWidth,o.maxHeight=u),o}},{key:"mustBeCropped",value:function(e,t,n,r,o,i){return(!0!==e||!0!==t)&&((!0!==e||r!==i)&&((!0!==t||n!==o)&&((n!==o||r!==i)&&!(o<=n))))}},{key:"setImageFromAttachment",value:function(e){this.props.onChange(s({},this.props.value,{attachment_id:e.id})),this.updateAttachmentInfo()}},{key:"detachListener",value:function(){this.props.value.attachment_id&&wp.media.attachment(this.props.value.attachment_id).off("change",this.updateAttachmentInfo)}},{key:"componentDidMount",value:function(){this.updateAttachmentInfo()}},{key:"componentWillUnmount",value:function(){this.detachListener()}},{key:"render",value:function(){var e,t=this;return Object(r.createElement)("div",s({className:i()("attachment-media-view ct-attachment",(e={},l(e,"landscape",this.props.value.attachment_id&&this.state.attachment_info),l(e,"attachment-media-view-image",this.props.value.attachment_id&&this.state.attachment_info),e))},this.props.option.attr||{}),this.props.value.attachment_id&&this.state.attachment_info?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"thumbnail thumbnail-image",onClick:function(){return t.openFrame()}},Object(r.createElement)("img",{className:"attachment-thumb",src:(this.state.attachment_info.width<700?this.state.attachment_info.sizes.full:c.a.max(c.a.values(1===c.a.keys(this.state.attachment_info.sizes).length?this.state.attachment_info.sizes:c.a.omit(this.state.attachment_info.sizes,"full")),function(e){return e.width})).url||this.state.attachment_info.url,draggable:"false",alt:""}),Object(r.createElement)("span",{onClick:function(e){t.setState({attachment_info:null}),e.stopPropagation(),t.props.onChange(s({},t.props.value,{attachment_id:null}))},className:"small-remove-button"},"×")),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)("button",{onClick:function(){t.setState({attachment_info:null}),t.props.onChange(s({},t.props.value,{attachment_id:null}))},type:"button",className:"button remove-button"},"Remove"),Object(r.createElement)("button",{type:"button",className:"button upload-button control-focus",onClick:function(){return t.openFrame()},id:"customize-media-control-button-35"},this.props.option.filledLabel||"Change logo"))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"placeholder"},"No logo selected"),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)("button",{type:"button",onClick:function(){return t.openFrame()},className:"button upload-button",id:"customize-media-control-button-50"},this.props.option.emptyLabel||"Select logo"))))}}]),t}();t.default=d},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),i=n.n(o),a=n(15),c=n(13),s=n(9),u=n(25),l=n(27),p=n.n(l),f=function(){function e(e,t){for(var n=0;n1||!s.settings[i.id])&&Object(r.createElement)("button",{type:"button",className:"ct-remove",onClick:function(){return a(i.__id)}}),s.settings[i.id]&&s.settings[i.id].options&&Object(r.createElement)("button",{type:"button",className:"ct-toggle",onClick:function(){return o()}}))})}),E=function(e){function t(){var e,n,r;y(this,t);for(var o=arguments.length,i=Array(o),a=0;a0?Object(r.createElement)(x,null,function(e){var t=e.currentlyPickedItem,i=e.setCurrentItem,a=e.addCurrentlySelectedItem;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ct-add-layer-controls"},Object(r.createElement)(u.default,{onChange:function(e){return i(e)},option:{choices:o.map(function(e){return{key:e,value:(n.settings[e]||{label:e}).label}})},value:t||o[0]}),Object(r.createElement)("button",{type:"button",className:"button",onClick:function(){return a()}},"Add")))}):null},I=function(e){function t(){var e,n,r;y(this,t);for(var o=arguments.length,i=Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return r.props.onChange([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&i.a.isNumber(parseInt(t,10))&&o(parseInt(t,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&i.a.isNumber(parseInt(t,10))&&o(parseInt(t,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:function(e){var t=e.target.value;return o(t)},placeholder:"Default",onBlur:function(){return n&&n},disabled:"auto"===t})};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){var t=e.value,n=e.option,o=e.onChange;return Object(r.createElement)("div",{className:c()("ct-option-number",u({},"ct-reached-limits",parseInt(t,10)===parseInt(n.min)||parseInt(t,10)===parseInt(n.max)))},Object(r.createElement)("a",{className:c()("ct-minus",u({},"ct-disabled",parseInt(t,10)===parseInt(n.min))),onClick:function(){return o(Math.min(Math.max(parseInt(t,10)-1,n.min||-1/0),n.max||1/0))}}),Object(r.createElement)(s,{value:t,onBlur:function(){return parseInt(t,10)?o(Math.min(Math.max(t,n.min||-1/0),n.max||1/0)):[]},onChange:function(e,t){return t&&i.a.isNumber(parseInt(e,10))?o(Math.min(Math.max(e,n.min||-1/0),n.max||1/0)):o(e)}}),Object(r.createElement)("a",{className:c()("ct-plus",u({},"ct-disabled",parseInt(t,10)===parseInt(n.max))),onClick:function(){return o(Math.min(Math.max(parseInt(t,10)+1,n.min||-1/0),n.max||1/0))}}))}},function(e,t,n){"use strict";n.r(t);n(42),n(43);var r=n(9),o=n(0),i=n(13),a=n(8),c=n.n(a),s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["class"]);return Object(r.createElement)("div",a({className:i()("ct-divider",n)},o))};c.renderingConfig={design:"none"};var s=c;t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(2),i=n.n(o),a=n(20),c=n.n(a),s=n(11),u=n.n(s),l=function(){function e(e,t){for(var n=0;n