Gutenberg Blocks and Template Library by Otter - Version 1.5.8

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Gutenberg Blocks and Template Library by Otter
Version 1.5.8
Comparing to
See all releases

Code changes from version 1.5.7 to 1.5.8

CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
2
 
3
  - Fix Button Group Block borders
1
+ ##### [Version 1.5.8](https://github.com/Codeinwp/otter-blocks/compare/v1.5.7...v1.5.8) (2020-09-14)
2
+
3
+ - Add Lottie Animations Block.
4
+ - Add Progress Bar Block.
5
+ - Prevent old custom CSS from being cached.
6
+ - Fix Slider in Section's Vertical Alignment on AMP.
7
+ - Consensual Tracking Data.
8
+
9
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
10
 
11
  - Fix Button Group Block borders
build/build.js CHANGED
@@ -33,7 +33,7 @@
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
  * SOFTWARE.
35
  */
36
- var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?p:u||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,o=f(10)&&getComputedStyle(n);return{height:g("Height",t,n,o),width:g("Width",t,n,o)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},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}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=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 x(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=b(p,"x"),u-=b(p,"y"),r.width-=c,r.height-=u}return x(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(10),r="HTML"===t.nodeName,i=P(e),s=P(t),c=l(e),u=a(t),p=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=x({top:i.top-s.top-p,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop),y=parseFloat(u.marginLeft);h.top-=p-m,h.bottom-=p-m,h.left-=d-y,h.right-=d-y,h.marginTop=m,h.marginLeft=y}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=v(h,t)),h}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=C(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return x(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function j(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?j(e):m(e,c(t));if("viewport"===o)i=N(a,r);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===o?e.ownerDocument.documentElement:o;var p=C(u,a,r);if("HTML"!==u.nodeName||T(a))i=p;else{var f=w(e.ownerDocument),d=f.height,h=f.width;i.top+=p.top-p.marginTop,i.bottom=d+p.top,i.left+=p.left-p.marginLeft,i.right=h+p.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function R(e){return e.width*e.height}function M(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function _(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?j(t):m(t,c(n));return C(n,r,o)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var o=L(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[c]:t[A(s)],r}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=F(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function U(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,o){n.updateBound=o,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function $(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Y(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var X=n&&/Firefox/i.test(navigator.userAgent);function J(e,t,n){var o=F(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=Z.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),o=Q.slice(n+1).concat(Q.slice(0,n));return t?o.reverse():o}var te="flip",ne="clockwise",oe="counterclockwise";function re(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return x(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Y(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:S({},l,i[l]),end:S({},l,i[l]+i[c]-a[c])};e.offsets.popper=k({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var o=H("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),S({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[c]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=L(o)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=x(e.offsets.popper);var y=l[f]+l[u]/2-m/2,v=a(e.instance.popper),b=parseFloat(v["margin"+p]),g=parseFloat(v["border"+p+"Width"]),w=y-e.offsets.popper[f]-b-g;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(S(n={},f,Math.round(w)),S(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=A(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[o,r];break;case ne:a=ee(o);break;case oe:a=ee(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=A(o);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),v="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=g||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(o=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=d(e.instance.popper),l=P(s),c={position:r.position},u=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),c=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?u||p||l%2==c%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&c%2==1&&!p&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}(e,window.devicePixelRatio<2||!X),p="bottom"===n?"top":"bottom",f="right"===o?"left":"right",h=H("transform"),m=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+m+"px, "+y+"px, 0)",c[p]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,b="right"===f?-1:1;c[p]=y*v,c[f]=m*b,c.willChange=p+", "+f}var g={"x-placement":e.placement};return e.attributes=k({},g,e.attributes),e.styles=k({},c,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=_(r,t,e,n.positionFixed),a=M(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=k({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=ie,t.a=ae}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=new Error("Element already at target scroll position"),o=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function a(e){return function(t,a,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=l);var p=i(),f=t[e],d=c.ease||s,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===a?u(n,t[e]):requestAnimationFrame((function n(s){if(m)return u(o,t[e]);var l=i(),c=r(1,(l-p)/h),y=d(c);t[e]=y*(a-f)+f,c<1?requestAnimationFrame(n):requestAnimationFrame((function(){u(null,t[e])}))})),function(){m=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function l(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(11),l=n.n(s),c=n(12),u=n(3),p=n.n(u),f=n(2),d=n.n(f),h=n(5),m=n.n(h),y=n(4),v=n.n(y),b=n(8);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(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}}),t&&C(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?T(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},R={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},M=n.n(b).a.canUseDOM,_=void 0!==v.a.createPortal;function L(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function D(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function B(){}var W=function(e){function t(e){var n;return g(this,t),n=j(this,P(t).call(this,e)),M?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):j(n)}return x(t,e),E(t,[{key:"componentDidMount",value:function(){M&&(_||this.renderPortal())}},{key:"componentDidUpdate",value:function(){M&&(_||this.renderPortal())}},{key:"componentWillUnmount",value:function(){M&&this.node&&(_||v.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!M)return null;var e=this.props,t=e.children,n=e.setRef;return _?v.a.createPortal(t,this.node):(n(v.a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,o=e.target;return t||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return _?this.renderReact16():null}}]),t}(r.a.Component);O(W,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var z=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:s,position:u},d=p,h=l;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):n.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):n.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),r.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.a.createElement("span",{ref:o,style:f},r.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(o.bottom=0,o.left=0,o.right=0,o.height=n):t.startsWith("bottom")?(o.left=0,o.right=0,o.top=0,o.height=n):t.startsWith("left")?(o.right=0,o.top=0,o.bottom=0):t.startsWith("right")&&(o.left=0,o.top=0),o}}]),t}(r.a.Component);O(z,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var H=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=N(n,["color","height","width"]);return r.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};H.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var U=function(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.a.isValidElement(t)?t:r.a.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.a.isValidElement(l)?l:r.a.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.a.isValidElement(n)?n:r.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(i)||(u.close=r.a.createElement(H,{styles:c.close,handleClick:o})),r.a.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};U.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var q=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return t?r.a.isValidElement(t)?s.content=r.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r.a.createElement(U,this.props),a===R.OPEN&&l.push("__floater__open"),o||(s.arrow=r.a.createElement(z,this.props)),r.a.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,o=e.placement,r=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[R.OPENING,R.OPEN].indexOf(i)&&(h=k({},h,{},p)),i===R.CLOSING&&(h=k({},h,{},u)),i!==R.OPEN||t||(h=k({},h,{},f)),"center"===o&&(h=k({},h,{},c)),n&&(h=k({},h,{},d)),k({},l,{},h)}}]),t}(r.a.Component);O(q,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var G=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.a.Children.count(n))if(r.a.isValidElement(n)){var p=d.a.function(n.type)?"innerRef":"ref";e=r.a.cloneElement(r.a.Children.only(n),O({},p,s))}else e=r.a.createElement("span",null,n);else e=n;return e?r.a.createElement("span",{ref:l,style:k({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r.a.Component);O(G,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var V={zIndex:100};var $=["position","top","right","bottom","left"],Y=function(t){function n(e){var t;return g(this,n),O(T(t=j(this,P(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),O(T(t),"setChildRef",(function(e){t.childRef=e})),O(T(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),O(T(t),"setWrapperRef",(function(e){t.wrapperRef=e})),O(T(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===R.OPENING?R.OPEN:R.IDLE},(function(){var e=t.state.status;n(e===R.OPEN?"open":"close",t.props)}))})),O(T(t),"handleClick",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)){var r=t.state,i=r.positionWrapper,a=r.status;("click"===t.event||"hover"===t.event&&i)&&(A({title:"click",data:[{event:n,status:a===R.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),O(T(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)&&!L()){var r=t.state.status;"hover"===t.event&&r===R.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),O(T(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,o=e.eventDelay,r=e.open;if(!d.a.boolean(r)&&!L()){var i=t.state,a=i.status,s=i.positionWrapper;"hover"===t.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),o?-1===[R.OPENING,R.OPEN].indexOf(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*o)):t.toggle(R.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:R.INIT,statusWrapper:R.INIT},t._isMounted=!1,M&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return x(n,t),E(n,[{key:"componentDidMount",value:function(){if(M){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,A({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:d.a.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&d.a.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(M){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=m()(t,this.state),c=l.changedFrom,u=l.changedTo;if(e.open!==i)d.a.boolean(i)&&(n=i?R.OPENING:R.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",R.IDLE)&&i||c("status",R.INIT,R.IDLE)&&r)&&this.toggle(R.OPEN),this.popper&&u("status",R.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",R.OPENING)||u("status",R.CLOSING))&&function(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];D(e,t,o=function(r){n(r),F(e,t,o)},r)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){M&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,o=this.props,r=o.disableFlip,i=o.getPopper,a=o.hideArrow,s=o.offset,l=o.placement,u=o.wrapperOptions,p="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:R.IDLE});else if(t&&this.floaterRef){var f=this.options,h=f.arrow,m=f.flip,y=f.offset,v=N(f,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:l,modifiers:k({arrow:k({enabled:!a,element:this.arrowRef},h),flip:k({enabled:!r,behavior:p},m),offset:k({offset:"0, ".concat(s,"px")},y)},v),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:R.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var b=d.a.undefined(u.offset)?0:u.offset;new c.a(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(b,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:R.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===R.OPEN?R.CLOSING:R.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,m=i.style,y=i.target,v=i.title,b=r.a.createElement(G,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),g={};return n?g.wrapperInPortal=b:g.wrapperAsChildren=b,r.a.createElement("span",null,r.a.createElement(W,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r.a.createElement(q,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:v}),g.wrapperInPortal),g.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&L()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return p()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,o=n.status,r=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=p()(function(e){var t=p()(V,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);r&&(e=-1===[R.IDLE].indexOf(o)||-1===[R.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=k({},s.wrapper,{},e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=k({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||($.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=k({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!M)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(r.a.Component);O(Y,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:l()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:l()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),O(Y,"defaultProps",{autoOpen:!1,callback:B,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=Y}).call(this,n(13))},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";var o=n(3);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o="bottom-left",r="bottom-right",i="bottom-center",a="top-left",s="top-right",l="top-center",c="center",u="success",p="danger",f="info",d="default",h="warning",m="timeout",y=function(e){return null==e};function v(e){return e===o||e===r||e===i}function b(e){return e===a||e===s||e===l}function g(e){var t=e.type,n=e.content,o=e.userDefinedTypes,r=["notification-item"];if(n)return r;if(y(o))return function(e){switch(e){case d:return["notification-item","notification-default"];case u:return["notification-item","notification-success"];case p:return["notification-item","notification-danger"];case h:return["notification-item","notification-warning"];case f:return["notification-item","notification-info"];default:return["notification-item"]}}(t);var i=o.find((function(e){return e.name===t}));return r.concat(i.htmlClasses)}function w(e,t){var n=e.duration,o=e.timingFunction,r=e.delay;return"".concat(n,"ms ").concat(t," ").concat(o," ").concat(r,"ms")}function E(e,t){var n=t.duration,o=t.timingFunction,r=t.delay,i=e||{};return y(i.duration)&&(i.duration=n),y(i.timingFunction)&&(i.timingFunction=o),y(i.delay)&&(i.delay=r),i}var O=n(0),S=n.n(O),k=new function(){var e=this;return this.types=null,this.counter=0,this.add=function(){},this.addNotification=function(t){var n=e.types;return e.counter+=1,e.add(function(e,t){var n=e,o=n.id,r=n.type,i=n.insert,a=n.content,s=n.container,l=n.animationIn,c=n.animationOut,m=n.slidingEnter,v=n.slidingExit,b=n.touchRevert,g=n.touchSlidingExit,w=n.dismiss,O=n.width,S=n.onRemoval;n.id=o||k.counter,n.type=a?null:r.toLowerCase(),t&&!a&&(n.userDefinedTypes=function(e,t){var n=e.content,o=e.type;if(!n&&o!==u&&o!==p&&o!==f&&o!==d&&o!==h&&t)return t}(n,t)),y(O)||(n.width=O),n.container=s.toLowerCase(),n.insert=(i||"top").toLowerCase(),n.dismiss=function(e){var t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((function(e){y(t[e])&&(t[e]=n[e])})),t):n}(w),n.animationIn=l||[],n.animationOut=c||[],n.onRemoval=S||function(){};var x=function(e,t,n){return{duration:e,timingFunction:t,delay:n}};n.slidingEnter=E(m,x(600,"linear",0)),n.slidingExit=E(v,x(600,"linear",0)),n.touchRevert=E(b,x(600,"linear",0));var P=g||{},C=P.swipe,N=P.fade;return n.touchSlidingExit=P,n.touchSlidingExit.swipe=E(C||{},x(600,"linear",0)),n.touchSlidingExit.fade=E(N||{},x(300,"linear",0)),n}(t,n))},this.removeNotification=function(){},this.register=function(t){var n=t.addNotification,o=t.removeNotification,r=t.types;e.add=n,e.removeNotification=o,e.types=r},this},x=n(1),P=n.n(x),C=function(e,t){var n,o,r=t;this.pause=function(){clearTimeout(n),r-=Date.now()-o},this.resume=function(){o=Date.now(),clearTimeout(n),n=setTimeout(e,r)},this.clear=function(){clearTimeout(n)},this.resume()};function N(e){return(N="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)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _(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)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=L(t).call(this,e))||"object"!==N(o)&&"function"!=typeof o?A(this):o).rootElementRef=S.a.createRef(),n.onClick=n.onClick.bind(A(n)),n.onTouchStart=n.onTouchStart.bind(A(n)),n.onTouchMove=n.onTouchMove.bind(A(n)),n.onTouchEnd=n.onTouchEnd.bind(A(n)),n.onMouseEnter=n.onMouseEnter.bind(A(n)),n.onMouseLeave=n.onMouseLeave.bind(A(n));var r=e.notification.width;return n.state={parentStyle:{height:0,overflow:"hidden",width:r?"".concat(r,"px"):"100%"},htmlClassList:g(e.notification),animationPlayState:"running",touchEnabled:!0},n}var n,o;return 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}}),t&&D(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.timer&&this.timer.clear()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.notification,o=t.count,r=n.dismiss,i=r.duration,a=r.onScreen,s=this.rootElementRef.current.scrollHeight,l=function(e,t){return!(t<=1)&&t>1&&("top"===e.insert&&b(e.container)||"bottom"===e.insert&&v(e.container)||e.container===c)}(n,o),u=function(){i&&!a&&(e.timer=new C((function(){return e.removeNotification(m)}),i))};this.setState((function(e){return{parentStyle:{width:e.parentStyle.width,height:"".concat(s,"px"),transition:l?w(n.slidingEnter,"height"):"10ms height"},onTransitionEnd:u}}),(function(){requestAnimationFrame((function(){e.setState((function(e){return{htmlClassList:[].concat(M(n.animationIn),M(e.htmlClassList))}}))}))}))}},{key:"componentDidUpdate",value:function(e){var t=e.removed;this.props.removed&&!t&&this.removeNotification("manual")}},{key:"removeNotification",value:function(e){var t=this,n=this.props,o=n.notification,r=n.toggleRemoval,i=o.id,a=o.onRemoval,s=o.dismiss.waitForAnimation,l=[].concat(M(o.animationOut),M(g(o))),c=function(){return r(i,(function(){return a(i,e)}))},u={height:0,transition:w(o.slidingExit,"height")};return s?this.setState((function(e){var n=e.parentStyle.width;return{htmlClassList:l,onAnimationEnd:function(){t.setState({parentStyle:I({width:n},u),onTransitionEnd:c})}}})):this.setState((function(e){return{parentStyle:I({width:e.parentStyle.width},u),onTransitionEnd:c,htmlClassList:l}}))}},{key:"onClick",value:function(){var e=this.props.notification.dismiss;(e.click||e.showIcon)&&this.removeNotification("click")}},{key:"onTouchStart",value:function(e){var t=T(e.touches,1)[0].pageX;this.setState((function(e){var n=e.parentStyle;return{startX:t,currentX:t,parentStyle:I({},n,{position:"relative"})}}))}},{key:"onTouchMove",value:function(e){var t=this,n=e.touches,o=this.state.startX,r=this.props,i=r.toggleRemoval,a=r.notification,s=a.id,l=a.onRemoval,c=a.slidingExit,u=a.touchSlidingExit,p=u.swipe,f=u.fade,d=T(n,1)[0].pageX,h=d-o,m=this.rootElementRef.current.offsetWidth,y=window.innerWidth+m,v="".concat(d-o>=0?y:-y,"px");if(function(e,t){return Math.abs(e)>=.4*t}(h,m)){var b=w(p,"left"),g=w(f,"opacity"),E=function(){i(s,(function(){return l(s,"touch")}))};return this.setState((function(e){return{touchEnabled:!1,parentStyle:I({},e.parentStyle,{left:v,opacity:0,transition:"".concat(b,", ").concat(g)}),onTransitionEnd:function(){t.setState((function(e){return{parentStyle:I({},e.parentStyle,{height:0,transition:w(c,"height")}),onTransitionEnd:E}}))}}}))}return this.setState((function(e){var t=e.parentStyle;return{currentX:d,parentStyle:I({},t,{left:"".concat(0+h,"px")})}}))}},{key:"onTouchEnd",value:function(){var e=this.props.notification.touchRevert;this.setState((function(t){return{parentStyle:I({},t.parentStyle,{left:0,transition:w(e,"left")})}}))}},{key:"onMouseEnter",value:function(){this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})}},{key:"onMouseLeave",value:function(){this.timer?this.timer.resume():this.setState({animationPlayState:"running"})}},{key:"renderTimer",value:function(){var e=this,t=this.props.notification.dismiss,n=t.duration,o=t.onScreen,r=this.state.animationPlayState;if(n&&o){var i={animationName:"timer",animationDuration:"".concat(n,"ms"),animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:0,animationPlayState:r};return S.a.createElement("div",{className:"timer"},S.a.createElement("div",{className:"timer-filler",onAnimationEnd:function(){return e.removeNotification(m)},style:i}))}}},{key:"renderCustomContent",value:function(){var e=this.state.htmlClassList,t=this.props.notification,n=t.id,o=t.content,r=t.dismiss,i=r.duration,a=r.pauseOnHover,s=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(e),["n-child"]).join(" ")),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},S.a.isValidElement(o)?o:S.a.createElement(o,{id:n}))}},{key:"renderNotification",value:function(){var e=this.props.notification,t=e.title,n=e.message,o=e.dismiss,r=o.showIcon,i=o.duration,a=o.pauseOnHover,s=this.state.htmlClassList,l=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(M(s),["n-child"]).join(" ")),onMouseEnter:l?this.onMouseEnter:null,onMouseLeave:l?this.onMouseLeave:null},S.a.createElement("div",{className:"notification-content"},r&&S.a.createElement("div",{className:"notification-close",onClick:this.onClick}),t&&S.a.createElement("div",{className:"notification-title"},t),S.a.createElement("div",{className:"notification-message"},n),this.renderTimer()))}},{key:"render",value:function(){var e=this.props.notification,t=e.content,n=e.dismiss.click,o=this.state,r=o.parentStyle,i=o.onAnimationEnd,a=o.onTransitionEnd,s=o.touchEnabled;return S.a.createElement("div",{ref:this.rootElementRef,onClick:n?this.onClick:null,className:"notification-parent",style:r,onAnimationEnd:i,onTransitionEnd:a,onTouchStart:s?this.onTouchStart:null,onTouchMove:s?this.onTouchMove:null,onTouchEnd:s?this.onTouchEnd:null},t?this.renderCustomContent():this.renderNotification())}}])&&_(n.prototype,o),t}(S.a.Component);F.propTypes={toggleRemoval:P.a.func.isRequired,count:P.a.number.isRequired,removed:P.a.bool};var B=F;function W(e){return(W="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)}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function H(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)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(4);var V=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=U(t).call(this,e))||"object"!==W(o)&&"function"!=typeof o?q(this):o).state={isMobile:e.isMobile,breakpoint:e.breakpoint,notifications:[]},n.add=n.add.bind(q(n)),n.remove=n.remove.bind(q(n)),n.toggleRemoval=n.toggleRemoval.bind(q(n)),n.handleResize=n.handleResize.bind(q(n)),n}var n,u;return 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}}),t&&G(e,t)}(t,e),n=t,(u=[{key:"componentDidMount",value:function(){var e=this.props.types;k.register({addNotification:this.add,removeNotification:this.remove,types:e}),this.setState({width:window.innerWidth}),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){this.setState({width:window.innerWidth})}},{key:"add",value:function(e){return this.setState((function(t){var n=t.notifications;return{notifications:"top"===e.insert?[e].concat(z(n)):[].concat(z(n),[e])}})),e.id}},{key:"remove",value:function(e){this.setState((function(t){return{notifications:t.notifications.map((function(t){return t.id===e&&(t.removed=!0),t}))}}))}},{key:"toggleRemoval",value:function(e,t){this.setState((function(t){return{notifications:t.notifications.filter((function(t){return t.id!==e}))}}),t)}},{key:"renderNotifications",value:function(e){var t=this;return e.map((function(n){return S.a.createElement(B,{id:n.id,key:n.id,notification:n,toggleRemoval:t.toggleRemoval,count:e.length,removed:n.removed})}))}},{key:"renderMobileNotifications",value:function(e){var t=e.className,n=e.id,o=function(e){var t=[],n=[];return e.forEach((function(e){var o=e.container;b(o)||"center"===o?t.push(e):v(o)&&n.push(e)})),{top:t,bottom:n}}(this.state.notifications),r=this.renderNotifications(o.top),i=this.renderNotifications(o.bottom);return S.a.createElement("div",{id:n,key:"mobile",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-mobile-top"},r),S.a.createElement("div",{className:"notification-container-mobile-bottom"},i))}},{key:"renderScreenNotifications",value:function(e){var t=e.className,n=e.id,u=function(e){var t=[],n=[],u=[],p=[],f=[],d=[],h=[];return e.forEach((function(e){var m=e.container;m===a?t.push(e):m===s?n.push(e):m===l?u.push(e):m===o?p.push(e):m===r?f.push(e):m===i?d.push(e):m===c&&h.push(e)})),{topLeft:t,topRight:n,topCenter:u,bottomLeft:p,bottomRight:f,bottomCenter:d,center:h}}(this.state.notifications),p=this.renderNotifications(u.topLeft),f=this.renderNotifications(u.topRight),d=this.renderNotifications(u.topCenter),h=this.renderNotifications(u.bottomLeft),m=this.renderNotifications(u.bottomRight),y=this.renderNotifications(u.bottomCenter),v=this.renderNotifications(u.center);return S.a.createElement("div",{id:n,key:"screen",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-top-left"},p),S.a.createElement("div",{className:"notification-container-top-right"},f),S.a.createElement("div",{className:"notification-container-bottom-left"},h),S.a.createElement("div",{className:"notification-container-bottom-right"},m),S.a.createElement("div",{className:"notification-container-top-center"},d),S.a.createElement("div",{className:"notification-container-center"},S.a.createElement("div",{className:"center-inner"},v)),S.a.createElement("div",{className:"notification-container-bottom-center"},y))}},{key:"render",value:function(){var e=this.props.isMobile,t=this.state,n=t.width,o=t.breakpoint;return e&&n<=o?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}])&&H(n.prototype,u),t}(S.a.Component);V.propTypes={isMobile:P.a.bool,breakpoint:P.a.number,types:P.a.array},V.defaultProps={isMobile:!0,breakpoint:768};var $=V;n.d(t,"store",(function(){return k})),t.default=$}])},function(e,t,n){},function(e,t,n){"use strict";var o=n(19);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var o,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var o=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function c(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function p(e){var t=0,n=c(e);if("array"===n)return e.forEach((function(e){t+=p(e)})),t+u("[type: array, hash: "+t+"]");if("object"===n){for(var o in e)if(e.hasOwnProperty(o)){var r="[ type: object, key: "+o+", value hash: "+p(e[o])+"]";t+=u(r)}return t}return t+u("[ type: "+n+" ; value: "+e+"]")}function f(e,t,n,o,l,u,d,h){n=n||[],d=d||[];var m=(l=l||[]).slice(0);if(null!=u){if(o){if("function"==typeof o&&o(m,u))return;if("object"==typeof o){if(o.prefilter&&o.prefilter(m,u))return;if(o.normalize){var y=o.normalize(m,u,e,t);y&&(e=y[0],t=y[1])}}}m.push(u)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var v,b,g,w,E=typeof e,O=typeof t,S="undefined"!==E||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&S)n.push(new a(m,e));else if(c(e)!==c(t))n.push(new r(m,e,t));else if("date"===c(e)&&e-t!=0)n.push(new r(m,e,t));else if("object"===E&&null!==e&&null!==t){for(v=d.length-1;v>-1;--v)if(d[v].lhs===e){w=!0;break}if(w)e!==t&&n.push(new r(m,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(h&&(e.sort((function(e,t){return p(e)-p(t)})),t.sort((function(e,t){return p(e)-p(t)}))),v=t.length-1,b=e.length-1;v>b;)n.push(new s(m,v,new i(void 0,t[v--])));for(;b>v;)n.push(new s(m,b,new a(void 0,e[b--])));for(;v>=0;--v)f(e[v],t[v],n,o,m,v,d,h)}else{var x=Object.keys(e),P=Object.keys(t);for(v=0;v<x.length;++v)g=x[v],(w=P.indexOf(g))>=0?(f(e[g],t[g],n,o,m,g,d,h),P[w]=null):f(e[g],void 0,n,o,m,g,d,h);for(v=0;v<P.length;++v)(g=P[v])&&f(void 0,t[g],n,o,m,g,d,h)}d.length=d.length-1}}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||n.push(new r(m,e,t)))}function d(e,t,n,o,r){var i=[];if(f(e,t,i,o,null,null,null,r),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function h(e,t,n,o){var r=d(e,t,o?function(e){e&&o.push(e)}:void 0,n);return o||(r.length?r:void 0)}function m(e,n,o){if(void 0===o&&n&&~t.indexOf(n.kind)&&(o=n),e&&o&&o.kind){for(var r=e,i=-1,a=o.path?o.path.length-1:0;++i<a;)void 0===r[o.path[i]]&&(r[o.path[i]]=void 0!==o.path[i+1]&&"number"==typeof o.path[i+1]?[]:{}),r=r[o.path[i]];switch(o.kind){case"A":o.path&&void 0===r[o.path[i]]&&(r[o.path[i]]=[]),function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":delete i[o.path[r]];break;case"E":case"N":i[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":t=l(t,n);break;case"E":case"N":t[n]=o.rhs}return t}(o.path?r[o.path[i]]:r,o.index,o.item);break;case"D":delete r[o.path[i]];break;case"E":case"N":r[o.path[i]]=o.rhs}}}return n(r,o),n(i,o),n(a,o),n(s,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,o){var r=o?function(e){e&&o.push(e)}:void 0,i=d(e,t,r,n,!0);return o||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,o,r,i,a){return f(e,t,n,o,r,i,a,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&d(e,t,(function(o){n&&!n(e,t,o)||m(e,t,o)}))},enumerable:!0},applyChange:{value:m,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var o,r,i=e;for(r=n.path.length-1,o=0;o<r;o++)void 0===i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":!function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":case"E":i[o.path[r]]=o.lhs;break;case"N":delete i[o.path[r]]}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":case"E":t[n]=o.lhs;break;case"N":t=l(t,n)}return t}(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)},function(e,t,n){"use strict";
37
  /**
38
  * @license nested-property https://github.com/cosmosio/nested-property
39
  *
@@ -48,4 +48,4 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
48
  *
49
  * This source code is licensed under the MIT license found in the
50
  * LICENSE file in the root directory of this source tree.
51
- */Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=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}).apply(this,arguments)}function N(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(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}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function X(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function J(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(_(n=L(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(_(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(_(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(_(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(_(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=M(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=M(e,["styles"]),o=t.color,r=t.height,i=t.width,s=M(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),L(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(_(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(_(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(_(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(_(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=J(i.locale.back),s=J(i.locale.close),l=J(i.locale.last),c=J(i.locale.next),u=J(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=M(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=L(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(_(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(_(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(_(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(_(n),"setTooltipRef",(function(e){n.tooltip=e})),P(_(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(_(n=L(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(_(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(_(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(_(n),"syncState",(function(e){n.setState(e)})),P(_(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(_(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(X(t)!==X(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=X(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var M=v<h?A.NEXT:A.PREV;o===A.STOP&&(M=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:M,index:h,lifecycle:G.INIT})}var _=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var L=we(m[t.index],this.props);this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:L,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},_,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},_,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},_,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},_,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Me=Re;function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(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 Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=_e(Ge(!0),2),t=e[0],n=e[1],o=_e(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isSecondary:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(Me,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Xe=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Je=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Je,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(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 tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){_.current=new wp.api.models.Settings,!1===t&&_.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_menu_icons)),E(Boolean(e.themeisle_blocks_settings_default_block)),k(e.themeisle_google_map_block_api_key),C(e.otter_blocks_logger_flag),n(!0)}))})),Boolean(otterObj.stylesExist)||M(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!1),2),v=y[0],b=y[1],g=et(bt(!0),2),w=g[0],E=g[1],O=et(bt(""),2),S=O[0],k=O[1],x=et(bt("no"),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=et(bt(!1),2),R=I[0],M=I[1],_=vt(null),L=(vt(null),function(e,t,n){a(!0),F(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(A(t,n[e]),setTimeout((function(){F(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){F(nt("An unknown error occurred."),"danger"),a(!1)}),800),_.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){F(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),A=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"menuIcons":b(t);break;case"isDefaultSection":E(t);break;case"googleMapsAPI":k(t);break;case"isLoggingData":C(t)}},D=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,F(t.data.message,t.success?"success":"danger"),M(!0),a(!1),j(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),F=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return L("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return L("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})),Boolean(otterObj.navExists)&&wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Menu Icons Module"),help:"Menu Icons module allows to add icons to navigation menu items in Block Editor.",checked:v,onChange:function(){return L("themeisle_blocks_settings_menu_icons","menuIcons",!v)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:w,onChange:function(){return L("themeisle_blocks_settings_default_block","isDefaultSection",!w)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:S,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return k(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return L("themeisle_google_map_block_api_key","googleMapsAPI",S)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===P,onChange:function(){return L("otter_blocks_logger_flag","isLoggingData","yes"===P?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:R,action:function(){return j(!0)}})),wp.element.createElement(ut,null,wp.element.createElement("div",null,[nt("Let us know how we can improve. Vote on existing ideas or suggest new ones.")," ",wp.element.createElement(st,{href:"https://otter.nolt.io/"},nt("Give feedback!"))])))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),T&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return j(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return j(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:D},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Xe,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
  * SOFTWARE.
35
  */
36
+ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?p:u||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||o.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function g(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,o=f(10)&&getComputedStyle(n);return{height:g("Height",t,n,o),width:g("Width",t,n,o)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},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}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=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 x(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var p=a(e);c-=b(p,"x"),u-=b(p,"y"),r.width-=c,r.height-=u}return x(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(10),r="HTML"===t.nodeName,i=P(e),s=P(t),c=l(e),u=a(t),p=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=x({top:i.top-s.top-p,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop),y=parseFloat(u.marginLeft);h.top-=p-m,h.bottom-=p-m,h.left-=d-y,h.right-=d-y,h.marginTop=m,h.marginLeft=y}return(o&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=v(h,t)),h}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=C(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),l={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i};return x(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function j(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?j(e):m(e,c(t));if("viewport"===o)i=N(a,r);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===o?e.ownerDocument.documentElement:o;var p=C(u,a,r);if("HTML"!==u.nodeName||T(a))i=p;else{var f=w(e.ownerDocument),d=f.height,h=f.width;i.top+=p.top-p.marginTop,i.bottom=d+p.top,i.left+=p.left-p.marginLeft,i.right=h+p.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function R(e){return e.width*e.height}function _(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function M(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?j(t):m(t,c(n));return C(n,r,o)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var o=L(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[c]:t[A(s)],r}function F(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=F(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function W(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=_(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function U(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,o){n.updateBound=o,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function $(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Y(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var J=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var o=F(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=Z.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),o=Q.slice(n+1).concat(Q.slice(0,n));return t?o.reverse():o}var te="flip",ne="clockwise",oe="counterclockwise";function re(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(F(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return x(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){Y(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:S({},l,i[l]),end:S({},l,i[l]+i[c]-a[c])};e.offsets.popper=k({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var o=H("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),S({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[c]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=L(o)[u];l[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-m)),l[f]+m>s[h]&&(e.offsets.popper[f]+=l[f]+m-s[h]),e.offsets.popper=x(e.offsets.popper);var y=l[f]+l[u]/2-m/2,v=a(e.instance.popper),b=parseFloat(v["margin"+p]),g=parseFloat(v["border"+p+"Width"]),w=y-e.offsets.popper[f]-b-g;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(S(n={},f,Math.round(w)),S(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=A(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[o,r];break;case ne:a=ee(o);break;case oe:a=ee(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=A(o);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),y=p(c.bottom)>p(n.bottom),v="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&y,b=-1!==["top","bottom"].indexOf(o),g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&y||!b&&"end"===i&&m),E=g||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(o=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=F(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=F(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=d(e.instance.popper),l=P(s),c={position:r.position},u=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),c=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?u||p||l%2==c%2?i:a:s,d=t?i:s;return{left:f(l%2==1&&c%2==1&&!p&&t?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:f(o.right)}}(e,window.devicePixelRatio<2||!J),p="bottom"===n?"top":"bottom",f="right"===o?"left":"right",h=H("transform"),m=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+m+"px, "+y+"px, 0)",c[p]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===p?-1:1,b="right"===f?-1:1;c[p]=y*v,c[f]=m*b,c.willChange=p+", "+f}var g={"x-placement":e.placement};return e.attributes=k({},g,e.attributes),e.styles=k({},c,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=M(r,t,e,n.positionFixed),a=_(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=k({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return W.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=ie,t.a=ae}).call(this,n(13))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=new Error("Element already at target scroll position"),o=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function a(e){return function(t,a,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=l);var p=i(),f=t[e],d=c.ease||s,h=isNaN(c.duration)?350:+c.duration,m=!1;return f===a?u(n,t[e]):requestAnimationFrame((function n(s){if(m)return u(o,t[e]);var l=i(),c=r(1,(l-p)/h),y=d(c);t[e]=y*(a-f)+f,c<1?requestAnimationFrame(n):requestAnimationFrame((function(){u(null,t[e])}))})),function(){m=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function l(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";(function(e){var o=n(1),r=n.n(o),i=n(0),a=n.n(i),s=n(11),l=n.n(s),c=n(12),u=n(3),p=n.n(u),f=n(2),d=n.n(f),h=n(5),m=n.n(h),y=n(4),v=n.n(y),b=n(8);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(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}}),t&&C(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?T(e):t}var I={flip:{padding:20},preventOverflow:{padding:10}},R={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},_=n.n(b).a.canUseDOM,M=void 0!==v.a.createPortal;function L(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function A(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){d.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function D(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,o)}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,o)}function B(){}var W=function(e){function t(e){var n;return g(this,t),n=j(this,P(t).call(this,e)),_?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),e.zIndex&&(n.node.style.zIndex=e.zIndex),document.body.appendChild(n.node),n):j(n)}return x(t,e),E(t,[{key:"componentDidMount",value:function(){_&&(M||this.renderPortal())}},{key:"componentDidUpdate",value:function(){_&&(M||this.renderPortal())}},{key:"componentWillUnmount",value:function(){_&&this.node&&(M||v.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderPortal",value:function(){if(!_)return null;var e=this.props,t=e.children,n=e.setRef;return M?v.a.createPortal(t,this.node):(n(v.a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.a.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,o=e.target;return t||o||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return M?this.renderReact16():null}}]),t}(r.a.Component);O(W,"propTypes",{children:a.a.oneOfType([a.a.element,a.a.array]),hasChildren:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),placement:a.a.string,setRef:a.a.func.isRequired,target:a.a.oneOfType([a.a.object,a.a.string]),zIndex:a.a.number});var z=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:s,position:u},d=p,h=l;return n.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):n.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):n.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):n.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),r.a.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.a.createElement("span",{ref:o,style:f},r.a.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("polygon",{points:e,fill:a}))))}},{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,o={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(o.bottom=0,o.left=0,o.right=0,o.height=n):t.startsWith("bottom")?(o.left=0,o.right=0,o.top=0,o.height=n):t.startsWith("left")?(o.right=0,o.top=0,o.bottom=0):t.startsWith("right")&&(o.left=0,o.top=0),o}}]),t}(r.a.Component);O(z,"propTypes",{placement:a.a.string.isRequired,setArrowRef:a.a.func.isRequired,styles:a.a.object.isRequired});var H=function(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=N(n,["color","height","width"]);return r.a.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.a.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.a.createElement("g",null,r.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};H.propTypes={handleClick:a.a.func.isRequired,styles:a.a.object.isRequired};var U=function(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.a.isValidElement(t)?t:r.a.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.a.isValidElement(l)?l:r.a.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.a.isValidElement(n)?n:r.a.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||d.a.boolean(i)||(u.close=r.a.createElement(H,{styles:c.close,handleClick:o})),r.a.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)};U.propTypes={content:a.a.node.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,open:a.a.bool,positionWrapper:a.a.bool.isRequired,showCloseButton:a.a.bool.isRequired,styles:a.a.object.isRequired,title:a.a.node};var q=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return t?r.a.isValidElement(t)?s.content=r.a.cloneElement(t,{closeFn:n}):s.content=t({closeFn:n}):s.content=r.a.createElement(U,this.props),a===R.OPEN&&l.push("__floater__open"),o||(s.arrow=r.a.createElement(z,this.props)),r.a.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.a.createElement("div",{className:"__floater__body"},s.content,s.arrow))}},{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,o=e.placement,r=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,p=a.floaterOpening,f=a.floaterWithAnimation,d=a.floaterWithComponent,h={};return r||(o.startsWith("top")?h.padding="0 0 ".concat(s,"px"):o.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):o.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):o.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[R.OPENING,R.OPEN].indexOf(i)&&(h=k({},h,{},p)),i===R.CLOSING&&(h=k({},h,{},u)),i!==R.OPEN||t||(h=k({},h,{},f)),"center"===o&&(h=k({},h,{},c)),n&&(h=k({},h,{},d)),k({},l,{},h)}}]),t}(r.a.Component);O(q,"propTypes",{component:a.a.oneOfType([a.a.func,a.a.element]),content:a.a.node,disableAnimation:a.a.bool.isRequired,footer:a.a.node,handleClick:a.a.func.isRequired,hideArrow:a.a.bool.isRequired,open:a.a.bool,placement:a.a.string.isRequired,positionWrapper:a.a.bool.isRequired,setArrowRef:a.a.func.isRequired,setFloaterRef:a.a.func.isRequired,showCloseButton:a.a.bool,status:a.a.string.isRequired,styles:a.a.object.isRequired,title:a.a.node});var G=function(e){function t(){return g(this,t),j(this,P(t).apply(this,arguments))}return x(t,e),E(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.a.Children.count(n))if(r.a.isValidElement(n)){var p=d.a.function(n.type)?"innerRef":"ref";e=r.a.cloneElement(r.a.Children.only(n),O({},p,s))}else e=r.a.createElement("span",null,n);else e=n;return e?r.a.createElement("span",{ref:l,style:k({},u,{},c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),t}(r.a.Component);O(G,"propTypes",{children:a.a.node,handleClick:a.a.func.isRequired,handleMouseEnter:a.a.func.isRequired,handleMouseLeave:a.a.func.isRequired,setChildRef:a.a.func.isRequired,setWrapperRef:a.a.func.isRequired,style:a.a.object,styles:a.a.object.isRequired});var V={zIndex:100};var $=["position","top","right","bottom","left"],Y=function(t){function n(e){var t;return g(this,n),O(T(t=j(this,P(n).call(this,e))),"setArrowRef",(function(e){t.arrowRef=e})),O(T(t),"setChildRef",(function(e){t.childRef=e})),O(T(t),"setFloaterRef",(function(e){t.floaterRef||(t.floaterRef=e)})),O(T(t),"setWrapperRef",(function(e){t.wrapperRef=e})),O(T(t),"handleTransitionEnd",(function(){var e=t.state.status,n=t.props.callback;t.wrapperPopper&&t.wrapperPopper.instance.update(),t.setState({status:e===R.OPENING?R.OPEN:R.IDLE},(function(){var e=t.state.status;n(e===R.OPEN?"open":"close",t.props)}))})),O(T(t),"handleClick",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)){var r=t.state,i=r.positionWrapper,a=r.status;("click"===t.event||"hover"===t.event&&i)&&(A({title:"click",data:[{event:n,status:a===R.OPEN?"closing":"opening"}],debug:t.debug}),t.toggle())}})),O(T(t),"handleMouseEnter",(function(){var e=t.props,n=e.event,o=e.open;if(!d.a.boolean(o)&&!L()){var r=t.state.status;"hover"===t.event&&r===R.IDLE&&(A({title:"mouseEnter",data:[{key:"originalEvent",value:n}],debug:t.debug}),clearTimeout(t.eventDelayTimeout),t.toggle())}})),O(T(t),"handleMouseLeave",(function(){var e=t.props,n=e.event,o=e.eventDelay,r=e.open;if(!d.a.boolean(r)&&!L()){var i=t.state,a=i.status,s=i.positionWrapper;"hover"===t.event&&(A({title:"mouseLeave",data:[{key:"originalEvent",value:n}],debug:t.debug}),o?-1===[R.OPENING,R.OPEN].indexOf(a)||s||t.eventDelayTimeout||(t.eventDelayTimeout=setTimeout((function(){delete t.eventDelayTimeout,t.toggle()}),1e3*o)):t.toggle(R.IDLE))}})),t.state={currentPlacement:e.placement,positionWrapper:e.wrapperOptions.position&&!!e.target,status:R.INIT,statusWrapper:R.INIT},t._isMounted=!1,_&&window.addEventListener("load",(function(){t.popper&&t.popper.instance.update(),t.wrapperPopper&&t.wrapperPopper.instance.update()})),t}return x(n,t),E(n,[{key:"componentDidMount",value:function(){if(_){var e=this.state.positionWrapper,t=this.props,n=t.children,o=t.open,r=t.target;this._isMounted=!0,A({title:"init",data:{hasChildren:!!n,hasTarget:!!r,isControlled:d.a.boolean(o),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.initPopper(),!n&&r&&d.a.boolean(o)}}},{key:"componentDidUpdate",value:function(e,t){if(_){var n,o=this.props,r=o.autoOpen,i=o.open,a=o.target,s=o.wrapperOptions,l=m()(t,this.state),c=l.changedFrom,u=l.changedTo;if(e.open!==i)d.a.boolean(i)&&(n=i?R.OPENING:R.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",R.IDLE)&&i||c("status",R.INIT,R.IDLE)&&r)&&this.toggle(R.OPEN),this.popper&&u("status",R.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",R.OPENING)||u("status",R.CLOSING))&&function(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];D(e,t,o=function(r){n(r),F(e,t,o)},r)}(this.floaterRef,"transitionend",this.handleTransitionEnd)}}},{key:"componentWillUnmount",value:function(){_&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,o=this.props,r=o.disableFlip,i=o.getPopper,a=o.hideArrow,s=o.offset,l=o.placement,u=o.wrapperOptions,p="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:R.IDLE});else if(t&&this.floaterRef){var f=this.options,h=f.arrow,m=f.flip,y=f.offset,v=N(f,["arrow","flip","offset"]);new c.a(t,this.floaterRef,{placement:l,modifiers:k({arrow:k({enabled:!a,element:this.arrowRef},h),flip:k({enabled:!r,behavior:p},m),offset:k({offset:"0, ".concat(s,"px")},y)},v),onCreate:function(t){e.popper=t,i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:R.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var b=d.a.undefined(u.offset)?0:u.offset;new c.a(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(b,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:R.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===R.OPEN?R.CLOSING:R.OPENING;d.a.undefined(e)||(t=e),this.setState({status:t})}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,m=i.style,y=i.target,v=i.title,b=r.a.createElement(G,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),g={};return n?g.wrapperInPortal=b:g.wrapperAsChildren=b,r.a.createElement("span",null,r.a.createElement(W,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:y,zIndex:this.styles.options.zIndex},r.a.createElement(q,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:v}),g.wrapperInPortal),g.wrapperAsChildren)}},{key:"debug",get:function(){return this.props.debug||!!e.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&L()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return p()(I,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,o=n.status,r=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=p()(function(e){var t=p()(V,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);r&&(e=-1===[R.IDLE].indexOf(o)||-1===[R.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=k({},s.wrapper,{},e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=k({},s.wrapper,{},this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},r||($.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=k({},s.wrapper,{},this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!_)return null;var e=this.props.target;return e?d.a.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}}]),n}(r.a.Component);O(Y,"propTypes",{autoOpen:a.a.bool,callback:a.a.func,children:a.a.node,component:l()(a.a.oneOfType([a.a.func,a.a.element]),(function(e){return!e.content})),content:l()(a.a.node,(function(e){return!e.component})),debug:a.a.bool,disableAnimation:a.a.bool,disableFlip:a.a.bool,disableHoverToClick:a.a.bool,event:a.a.oneOf(["hover","click"]),eventDelay:a.a.number,footer:a.a.node,getPopper:a.a.func,hideArrow:a.a.bool,id:a.a.oneOfType([a.a.string,a.a.number]),offset:a.a.number,open:a.a.bool,options:a.a.object,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:a.a.bool,style:a.a.object,styles:a.a.object,target:a.a.oneOfType([a.a.object,a.a.string]),title:a.a.node,wrapperOptions:a.a.shape({offset:a.a.number,placement:a.a.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:a.a.bool})}),O(Y,"defaultProps",{autoOpen:!1,callback:B,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}}),t.a=Y}).call(this,n(13))},function(e,t,n){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=n(1)},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";var o=n(3);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o="bottom-left",r="bottom-right",i="bottom-center",a="top-left",s="top-right",l="top-center",c="center",u="success",p="danger",f="info",d="default",h="warning",m="timeout",y=function(e){return null==e};function v(e){return e===o||e===r||e===i}function b(e){return e===a||e===s||e===l}function g(e){var t=e.type,n=e.content,o=e.userDefinedTypes,r=["notification-item"];if(n)return r;if(y(o))return function(e){switch(e){case d:return["notification-item","notification-default"];case u:return["notification-item","notification-success"];case p:return["notification-item","notification-danger"];case h:return["notification-item","notification-warning"];case f:return["notification-item","notification-info"];default:return["notification-item"]}}(t);var i=o.find((function(e){return e.name===t}));return r.concat(i.htmlClasses)}function w(e,t){var n=e.duration,o=e.timingFunction,r=e.delay;return"".concat(n,"ms ").concat(t," ").concat(o," ").concat(r,"ms")}function E(e,t){var n=t.duration,o=t.timingFunction,r=t.delay,i=e||{};return y(i.duration)&&(i.duration=n),y(i.timingFunction)&&(i.timingFunction=o),y(i.delay)&&(i.delay=r),i}var O=n(0),S=n.n(O),k=new function(){var e=this;return this.types=null,this.counter=0,this.add=function(){},this.addNotification=function(t){var n=e.types;return e.counter+=1,e.add(function(e,t){var n=e,o=n.id,r=n.type,i=n.insert,a=n.content,s=n.container,l=n.animationIn,c=n.animationOut,m=n.slidingEnter,v=n.slidingExit,b=n.touchRevert,g=n.touchSlidingExit,w=n.dismiss,O=n.width,S=n.onRemoval;n.id=o||k.counter,n.type=a?null:r.toLowerCase(),t&&!a&&(n.userDefinedTypes=function(e,t){var n=e.content,o=e.type;if(!n&&o!==u&&o!==p&&o!==f&&o!==d&&o!==h&&t)return t}(n,t)),y(O)||(n.width=O),n.container=s.toLowerCase(),n.insert=(i||"top").toLowerCase(),n.dismiss=function(e){var t=e,n={duration:0,click:!0,touch:!0,onScreen:!1,waitForAnimation:!1,showIcon:!1};return t?(Object.keys(n).forEach((function(e){y(t[e])&&(t[e]=n[e])})),t):n}(w),n.animationIn=l||[],n.animationOut=c||[],n.onRemoval=S||function(){};var x=function(e,t,n){return{duration:e,timingFunction:t,delay:n}};n.slidingEnter=E(m,x(600,"linear",0)),n.slidingExit=E(v,x(600,"linear",0)),n.touchRevert=E(b,x(600,"linear",0));var P=g||{},C=P.swipe,N=P.fade;return n.touchSlidingExit=P,n.touchSlidingExit.swipe=E(C||{},x(600,"linear",0)),n.touchSlidingExit.fade=E(N||{},x(300,"linear",0)),n}(t,n))},this.removeNotification=function(){},this.register=function(t){var n=t.addNotification,o=t.removeNotification,r=t.types;e.add=n,e.removeNotification=o,e.types=r},this},x=n(1),P=n.n(x),C=function(e,t){var n,o,r=t;this.pause=function(){clearTimeout(n),r-=Date.now()-o},this.resume=function(){o=Date.now(),clearTimeout(n),n=setTimeout(e,r)},this.clear=function(){clearTimeout(n)},this.resume()};function N(e){return(N="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)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function j(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function M(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)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=!(o=L(t).call(this,e))||"object"!==N(o)&&"function"!=typeof o?A(this):o).rootElementRef=S.a.createRef(),n.onClick=n.onClick.bind(A(n)),n.onTouchStart=n.onTouchStart.bind(A(n)),n.onTouchMove=n.onTouchMove.bind(A(n)),n.onTouchEnd=n.onTouchEnd.bind(A(n)),n.onMouseEnter=n.onMouseEnter.bind(A(n)),n.onMouseLeave=n.onMouseLeave.bind(A(n));var r=e.notification.width;return n.state={parentStyle:{height:0,overflow:"hidden",width:r?"".concat(r,"px"):"100%"},htmlClassList:g(e.notification),animationPlayState:"running",touchEnabled:!0},n}var n,o;return 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}}),t&&D(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.timer&&this.timer.clear()}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.notification,o=t.count,r=n.dismiss,i=r.duration,a=r.onScreen,s=this.rootElementRef.current.scrollHeight,l=function(e,t){return!(t<=1)&&t>1&&("top"===e.insert&&b(e.container)||"bottom"===e.insert&&v(e.container)||e.container===c)}(n,o),u=function(){i&&!a&&(e.timer=new C((function(){return e.removeNotification(m)}),i))};this.setState((function(e){return{parentStyle:{width:e.parentStyle.width,height:"".concat(s,"px"),transition:l?w(n.slidingEnter,"height"):"10ms height"},onTransitionEnd:u}}),(function(){requestAnimationFrame((function(){e.setState((function(e){return{htmlClassList:[].concat(_(n.animationIn),_(e.htmlClassList))}}))}))}))}},{key:"componentDidUpdate",value:function(e){var t=e.removed;this.props.removed&&!t&&this.removeNotification("manual")}},{key:"removeNotification",value:function(e){var t=this,n=this.props,o=n.notification,r=n.toggleRemoval,i=o.id,a=o.onRemoval,s=o.dismiss.waitForAnimation,l=[].concat(_(o.animationOut),_(g(o))),c=function(){return r(i,(function(){return a(i,e)}))},u={height:0,transition:w(o.slidingExit,"height")};return s?this.setState((function(e){var n=e.parentStyle.width;return{htmlClassList:l,onAnimationEnd:function(){t.setState({parentStyle:I({width:n},u),onTransitionEnd:c})}}})):this.setState((function(e){return{parentStyle:I({width:e.parentStyle.width},u),onTransitionEnd:c,htmlClassList:l}}))}},{key:"onClick",value:function(){var e=this.props.notification.dismiss;(e.click||e.showIcon)&&this.removeNotification("click")}},{key:"onTouchStart",value:function(e){var t=T(e.touches,1)[0].pageX;this.setState((function(e){var n=e.parentStyle;return{startX:t,currentX:t,parentStyle:I({},n,{position:"relative"})}}))}},{key:"onTouchMove",value:function(e){var t=this,n=e.touches,o=this.state.startX,r=this.props,i=r.toggleRemoval,a=r.notification,s=a.id,l=a.onRemoval,c=a.slidingExit,u=a.touchSlidingExit,p=u.swipe,f=u.fade,d=T(n,1)[0].pageX,h=d-o,m=this.rootElementRef.current.offsetWidth,y=window.innerWidth+m,v="".concat(d-o>=0?y:-y,"px");if(function(e,t){return Math.abs(e)>=.4*t}(h,m)){var b=w(p,"left"),g=w(f,"opacity"),E=function(){i(s,(function(){return l(s,"touch")}))};return this.setState((function(e){return{touchEnabled:!1,parentStyle:I({},e.parentStyle,{left:v,opacity:0,transition:"".concat(b,", ").concat(g)}),onTransitionEnd:function(){t.setState((function(e){return{parentStyle:I({},e.parentStyle,{height:0,transition:w(c,"height")}),onTransitionEnd:E}}))}}}))}return this.setState((function(e){var t=e.parentStyle;return{currentX:d,parentStyle:I({},t,{left:"".concat(0+h,"px")})}}))}},{key:"onTouchEnd",value:function(){var e=this.props.notification.touchRevert;this.setState((function(t){return{parentStyle:I({},t.parentStyle,{left:0,transition:w(e,"left")})}}))}},{key:"onMouseEnter",value:function(){this.timer?this.timer.pause():this.setState({animationPlayState:"paused"})}},{key:"onMouseLeave",value:function(){this.timer?this.timer.resume():this.setState({animationPlayState:"running"})}},{key:"renderTimer",value:function(){var e=this,t=this.props.notification.dismiss,n=t.duration,o=t.onScreen,r=this.state.animationPlayState;if(n&&o){var i={animationName:"timer",animationDuration:"".concat(n,"ms"),animationTimingFunction:"linear",animationFillMode:"forwards",animationDelay:0,animationPlayState:r};return S.a.createElement("div",{className:"timer"},S.a.createElement("div",{className:"timer-filler",onAnimationEnd:function(){return e.removeNotification(m)},style:i}))}}},{key:"renderCustomContent",value:function(){var e=this.state.htmlClassList,t=this.props.notification,n=t.id,o=t.content,r=t.dismiss,i=r.duration,a=r.pauseOnHover,s=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(_(e),["n-child"]).join(" ")),onMouseEnter:s?this.onMouseEnter:null,onMouseLeave:s?this.onMouseLeave:null},S.a.isValidElement(o)?o:S.a.createElement(o,{id:n}))}},{key:"renderNotification",value:function(){var e=this.props.notification,t=e.title,n=e.message,o=e.dismiss,r=o.showIcon,i=o.duration,a=o.pauseOnHover,s=this.state.htmlClassList,l=i>0&&a;return S.a.createElement("div",{className:"".concat([].concat(_(s),["n-child"]).join(" ")),onMouseEnter:l?this.onMouseEnter:null,onMouseLeave:l?this.onMouseLeave:null},S.a.createElement("div",{className:"notification-content"},r&&S.a.createElement("div",{className:"notification-close",onClick:this.onClick}),t&&S.a.createElement("div",{className:"notification-title"},t),S.a.createElement("div",{className:"notification-message"},n),this.renderTimer()))}},{key:"render",value:function(){var e=this.props.notification,t=e.content,n=e.dismiss.click,o=this.state,r=o.parentStyle,i=o.onAnimationEnd,a=o.onTransitionEnd,s=o.touchEnabled;return S.a.createElement("div",{ref:this.rootElementRef,onClick:n?this.onClick:null,className:"notification-parent",style:r,onAnimationEnd:i,onTransitionEnd:a,onTouchStart:s?this.onTouchStart:null,onTouchMove:s?this.onTouchMove:null,onTouchEnd:s?this.onTouchEnd:null},t?this.renderCustomContent():this.renderNotification())}}])&&M(n.prototype,o),t}(S.a.Component);F.propTypes={toggleRemoval:P.a.func.isRequired,count:P.a.number.isRequired,removed:P.a.bool};var B=F;function W(e){return(W="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)}function z(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function H(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)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n(4);var V=function(e){function t(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,(n=!(o=U(t).call(this,e))||"object"!==W(o)&&"function"!=typeof o?q(this):o).state={isMobile:e.isMobile,breakpoint:e.breakpoint,notifications:[]},n.add=n.add.bind(q(n)),n.remove=n.remove.bind(q(n)),n.toggleRemoval=n.toggleRemoval.bind(q(n)),n.handleResize=n.handleResize.bind(q(n)),n}var n,u;return 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}}),t&&G(e,t)}(t,e),n=t,(u=[{key:"componentDidMount",value:function(){var e=this.props.types;k.register({addNotification:this.add,removeNotification:this.remove,types:e}),this.setState({width:window.innerWidth}),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){this.setState({width:window.innerWidth})}},{key:"add",value:function(e){return this.setState((function(t){var n=t.notifications;return{notifications:"top"===e.insert?[e].concat(z(n)):[].concat(z(n),[e])}})),e.id}},{key:"remove",value:function(e){this.setState((function(t){return{notifications:t.notifications.map((function(t){return t.id===e&&(t.removed=!0),t}))}}))}},{key:"toggleRemoval",value:function(e,t){this.setState((function(t){return{notifications:t.notifications.filter((function(t){return t.id!==e}))}}),t)}},{key:"renderNotifications",value:function(e){var t=this;return e.map((function(n){return S.a.createElement(B,{id:n.id,key:n.id,notification:n,toggleRemoval:t.toggleRemoval,count:e.length,removed:n.removed})}))}},{key:"renderMobileNotifications",value:function(e){var t=e.className,n=e.id,o=function(e){var t=[],n=[];return e.forEach((function(e){var o=e.container;b(o)||"center"===o?t.push(e):v(o)&&n.push(e)})),{top:t,bottom:n}}(this.state.notifications),r=this.renderNotifications(o.top),i=this.renderNotifications(o.bottom);return S.a.createElement("div",{id:n,key:"mobile",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-mobile-top"},r),S.a.createElement("div",{className:"notification-container-mobile-bottom"},i))}},{key:"renderScreenNotifications",value:function(e){var t=e.className,n=e.id,u=function(e){var t=[],n=[],u=[],p=[],f=[],d=[],h=[];return e.forEach((function(e){var m=e.container;m===a?t.push(e):m===s?n.push(e):m===l?u.push(e):m===o?p.push(e):m===r?f.push(e):m===i?d.push(e):m===c&&h.push(e)})),{topLeft:t,topRight:n,topCenter:u,bottomLeft:p,bottomRight:f,bottomCenter:d,center:h}}(this.state.notifications),p=this.renderNotifications(u.topLeft),f=this.renderNotifications(u.topRight),d=this.renderNotifications(u.topCenter),h=this.renderNotifications(u.bottomLeft),m=this.renderNotifications(u.bottomRight),y=this.renderNotifications(u.bottomCenter),v=this.renderNotifications(u.center);return S.a.createElement("div",{id:n,key:"screen",className:"react-notification-root ".concat(t||"")},S.a.createElement("div",{className:"notification-container-top-left"},p),S.a.createElement("div",{className:"notification-container-top-right"},f),S.a.createElement("div",{className:"notification-container-bottom-left"},h),S.a.createElement("div",{className:"notification-container-bottom-right"},m),S.a.createElement("div",{className:"notification-container-top-center"},d),S.a.createElement("div",{className:"notification-container-center"},S.a.createElement("div",{className:"center-inner"},v)),S.a.createElement("div",{className:"notification-container-bottom-center"},y))}},{key:"render",value:function(){var e=this.props.isMobile,t=this.state,n=t.width,o=t.breakpoint;return e&&n<=o?this.renderMobileNotifications(this.props):this.renderScreenNotifications(this.props)}}])&&H(n.prototype,u),t}(S.a.Component);V.propTypes={isMobile:P.a.bool,breakpoint:P.a.number,types:P.a.array},V.defaultProps={isMobile:!0,breakpoint:768};var $=V;n.d(t,"store",(function(){return k})),t.default=$}])},function(e,t,n){},function(e,t,n){"use strict";var o=n(19);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var o,r;r=function(e){var t=["N","E","A","D"];function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function s(e,t,n){s.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function l(e,t,n){var o=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function c(e){var t=typeof e;return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function p(e){var t=0,n=c(e);if("array"===n)return e.forEach((function(e){t+=p(e)})),t+u("[type: array, hash: "+t+"]");if("object"===n){for(var o in e)if(e.hasOwnProperty(o)){var r="[ type: object, key: "+o+", value hash: "+p(e[o])+"]";t+=u(r)}return t}return t+u("[ type: "+n+" ; value: "+e+"]")}function f(e,t,n,o,l,u,d,h){n=n||[],d=d||[];var m=(l=l||[]).slice(0);if(null!=u){if(o){if("function"==typeof o&&o(m,u))return;if("object"==typeof o){if(o.prefilter&&o.prefilter(m,u))return;if(o.normalize){var y=o.normalize(m,u,e,t);y&&(e=y[0],t=y[1])}}}m.push(u)}"regexp"===c(e)&&"regexp"===c(t)&&(e=e.toString(),t=t.toString());var v,b,g,w,E=typeof e,O=typeof t,S="undefined"!==E||d&&d.length>0&&d[d.length-1].lhs&&Object.getOwnPropertyDescriptor(d[d.length-1].lhs,u),k="undefined"!==O||d&&d.length>0&&d[d.length-1].rhs&&Object.getOwnPropertyDescriptor(d[d.length-1].rhs,u);if(!S&&k)n.push(new i(m,t));else if(!k&&S)n.push(new a(m,e));else if(c(e)!==c(t))n.push(new r(m,e,t));else if("date"===c(e)&&e-t!=0)n.push(new r(m,e,t));else if("object"===E&&null!==e&&null!==t){for(v=d.length-1;v>-1;--v)if(d[v].lhs===e){w=!0;break}if(w)e!==t&&n.push(new r(m,e,t));else{if(d.push({lhs:e,rhs:t}),Array.isArray(e)){for(h&&(e.sort((function(e,t){return p(e)-p(t)})),t.sort((function(e,t){return p(e)-p(t)}))),v=t.length-1,b=e.length-1;v>b;)n.push(new s(m,v,new i(void 0,t[v--])));for(;b>v;)n.push(new s(m,b,new a(void 0,e[b--])));for(;v>=0;--v)f(e[v],t[v],n,o,m,v,d,h)}else{var x=Object.keys(e),P=Object.keys(t);for(v=0;v<x.length;++v)g=x[v],(w=P.indexOf(g))>=0?(f(e[g],t[g],n,o,m,g,d,h),P[w]=null):f(e[g],void 0,n,o,m,g,d,h);for(v=0;v<P.length;++v)(g=P[v])&&f(void 0,t[g],n,o,m,g,d,h)}d.length=d.length-1}}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||n.push(new r(m,e,t)))}function d(e,t,n,o,r){var i=[];if(f(e,t,i,o,null,null,null,r),n)for(var a=0;a<i.length;++a)n(i[a]);return i}function h(e,t,n,o){var r=d(e,t,o?function(e){e&&o.push(e)}:void 0,n);return o||(r.length?r:void 0)}function m(e,n,o){if(void 0===o&&n&&~t.indexOf(n.kind)&&(o=n),e&&o&&o.kind){for(var r=e,i=-1,a=o.path?o.path.length-1:0;++i<a;)void 0===r[o.path[i]]&&(r[o.path[i]]=void 0!==o.path[i+1]&&"number"==typeof o.path[i+1]?[]:{}),r=r[o.path[i]];switch(o.kind){case"A":o.path&&void 0===r[o.path[i]]&&(r[o.path[i]]=[]),function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":delete i[o.path[r]];break;case"E":case"N":i[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":t=l(t,n);break;case"E":case"N":t[n]=o.rhs}return t}(o.path?r[o.path[i]]:r,o.index,o.item);break;case"D":delete r[o.path[i]];break;case"E":case"N":r[o.path[i]]=o.rhs}}}return n(r,o),n(i,o),n(a,o),n(s,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,t,n,o){var r=o?function(e){e&&o.push(e)}:void 0,i=d(e,t,r,n,!0);return o||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:d,enumerable:!0},orderIndependentObservableDiff:{value:function(e,t,n,o,r,i,a){return f(e,t,n,o,r,i,a,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&d(e,t,(function(o){n&&!n(e,t,o)||m(e,t,o)}))},enumerable:!0},applyChange:{value:m,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var o,r,i=e;for(r=n.path.length-1,o=0;o<r;o++)void 0===i[n.path[o]]&&(i[n.path[o]]={}),i=i[n.path[o]];switch(n.kind){case"A":!function e(t,n,o){if(o.path&&o.path.length){var r,i=t[n],a=o.path.length-1;for(r=0;r<a;r++)i=i[o.path[r]];switch(o.kind){case"A":e(i[o.path[r]],o.index,o.item);break;case"D":case"E":i[o.path[r]]=o.lhs;break;case"N":delete i[o.path[r]]}}else switch(o.kind){case"A":e(t[n],o.index,o.item);break;case"D":case"E":t[n]=o.lhs;break;case"N":t=l(t,n)}return t}(i[n.path[o]],n.index,n.item);break;case"D":case"E":i[n.path[o]]=n.lhs;break;case"N":delete i[n.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)},function(e,t,n){"use strict";
37
  /**
38
  * @license nested-property https://github.com/cosmosio/nested-property
39
  *
48
  *
49
  * This source code is licensed under the MIT license found in the
50
  * LICENSE file in the root directory of this source tree.
51
+ */Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,f=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.fundamental"):60117,g=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case y:case c:return e;default:return t}}case i:return t}}}function O(e){return E(e)===f}t.typeOf=E,t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===w)},t.isAsyncMode=function(e){return O(e)||E(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var o=n(6),r=n.n(o),i=(n(17),n(1)),a=n.n(i),s=(n(0),n(5)),l=n.n(s),c=n(2),u=n.n(c),p=n(4),f=n.n(p),d=n(8),h=n.n(d),m=n(14),y=n.n(m),v=n(10),b=n.n(v),g=n(7),w=n(3),E=n.n(w),O=n(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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)}}function x(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){return(C=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}).apply(this,arguments)}function N(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(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}}),t&&R(e,t)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?M(e):t}var A={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},D="tour:start",F="step:before",B="beacon",W="tooltip",z="step:after",H="tour:end",U="tour:status",q="error:target_not_found",G={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},V={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},$=h.a.canUseDOM,Y=void 0!==p.createPortal;function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function J(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function X(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach((function(t){return e(t)}));else if(n&&n.props){var o=n.props.children;Array.isArray(o)?o.forEach((function(t){return e(t)})):e(o)}}(e),t.join(" ").trim()}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t){return!(!u.a.plainObject(e)||!u.a.array(t))&&Object.keys(e).every((function(e){return-1!==t.indexOf(e)}))}function ee(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function te(e){return e.disableBeacon||"center"===e.placement}function ne(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(K()))}function oe(e){var t=e.title,n=e.data,o=e.warn,r=void 0!==o&&o,i=e.debug,a=void 0!==i&&i,s=r?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){u.a.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var re={action:"",controlled:!1,index:0,lifecycle:G.INIT,size:0,status:V.IDLE},ie=["action","index","lifecycle","status"];function ae(e){var t=new Map,n=new Map;return new(function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.continuous,i=void 0!==r&&r,a=o.stepIndex,s=o.steps,l=void 0===s?[]:s;S(this,e),P(this,"listener",void 0),P(this,"setSteps",(function(e){var o=t.getState(),r=o.size,i=o.status,a={size:e.length,status:i};n.set("steps",e),i===V.WAITING&&!r&&e.length&&(a.status=V.RUNNING),t.setState(a)})),P(this,"addListener",(function(e){t.listener=e})),P(this,"update",(function(e){if(!Q(e,ie))throw new Error("State is not valid. Valid keys: ".concat(ie.join(", ")));t.setState(T({},t.getNextState(T({},t.getState(),{},e,{action:e.action||A.UPDATE}),!0)))})),P(this,"start",(function(e){var n=t.getState(),o=n.index,r=n.size;t.setState(T({},t.getNextState({action:A.START,index:u.a.number(e)?e:o},!0),{status:r?V.RUNNING:V.WAITING}))})),P(this,"stop",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.index,r=n.status;-1===[V.FINISHED,V.SKIPPED].indexOf(r)&&t.setState(T({},t.getNextState({action:A.STOP,index:o+(e?1:0)}),{status:V.PAUSED}))})),P(this,"close",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.CLOSE,index:n+1})))})),P(this,"go",(function(e){var n=t.getState(),o=n.controlled,r=n.status;if(!o&&r===V.RUNNING){var i=t.getSteps()[e];t.setState(T({},t.getNextState({action:A.GO,index:e}),{status:i?r:V.FINISHED}))}})),P(this,"info",(function(){return t.getState()})),P(this,"next",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(t.getNextState({action:A.NEXT,index:n+1}))})),P(this,"open",(function(){t.getState().status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.UPDATE,lifecycle:G.TOOLTIP})))})),P(this,"prev",(function(){var e=t.getState(),n=e.index;e.status===V.RUNNING&&t.setState(T({},t.getNextState({action:A.PREV,index:n-1})))})),P(this,"reset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),o=n.controlled;o||t.setState(T({},t.getNextState({action:A.RESET,index:0}),{status:e?V.RUNNING:V.READY}))})),P(this,"skip",(function(){t.getState().status===V.RUNNING&&t.setState({action:A.SKIP,lifecycle:G.INIT,status:V.SKIPPED})})),this.setState({action:A.INIT,controlled:u.a.number(a),continuous:i,index:u.a.number(a)?a:0,lifecycle:G.INIT,status:l.length?V.READY:V.IDLE},!0),this.setSteps(l)}return x(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getState(),r=T({},o,{},e),i=r.action,a=r.index,s=r.lifecycle,l=r.size,c=r.status;t.set("action",i),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(o)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:T({},re)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),o=n.action,r=n.controlled,i=n.index,a=n.size,s=n.status,l=u.a.number(e.index)?e.index:i,c=r&&!t?i:Math.min(Math.max(l,0),a);return{action:e.action||o,controlled:r,index:c,lifecycle:e.lifecycle||G.INIT,size:e.size||a,status:c===a?V.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}())(e)}function se(){return document.scrollingElement||document.createElement("body")}function le(e){return e?e.getBoundingClientRect():{}}function ce(e){return"string"==typeof e?document.querySelector(e):e}function ue(e){return e&&1===e.nodeType?getComputedStyle(e):{}}function pe(e,t,n){var o=b()(e);return o.isSameNode(se())?n?document:se():o.scrollHeight>o.offsetHeight||t?o:(o.style.overflow="initial",se())}function fe(e,t){return!!e&&!pe(e,t).isSameNode(se())}function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(ue(e).position===t||de(e.parentNode,t))}function he(e,t,n){if(!e)return 0;var o=b()(e),r=e.offsetTop;return fe(e,n)&&!function(e){return e.offsetParent!==document.body}(e)&&(r-=o.offsetTop),Math.floor(r-t)}!function(e){function t(t,n,o,r,i,a){var s=r||"<<anonymous>>",l=a||o;if(null==n[o])return t?new Error("Required ".concat(i," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),p=6;p<c;p++)u[p-6]=arguments[p];return e.apply(void 0,[n,o,s,i,l].concat(u))}var n=t.bind(null,!1);n.isRequired=t.bind(null,!0)}((function(e,t,n,o,r){var i=e[t],s=i;if(!a.a.isValidElement(i)&&Object(g.isValidElementType)(i)){s=a.a.createElement(s,{ref:function(){},step:{}})}if(u.a.string(i)||u.a.number(i)||!Object(g.isValidElementType)(i)||-1===[g.Element,g.ForwardRef].indexOf(Object(g.typeOf)(s)))return new Error("Invalid ".concat(o," `").concat(r,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))}));var me={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},ye={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ve={borderRadius:4,position:"absolute"};var be={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function ge(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter((function(e){return-1!==t.indexOf(e)})).reduce((function(t,n){return t[n]=e[n],t}),{})}function we(e,t){if(!e)return null;var n=E.a.all([ge(t),be.step,e],{isMergeableObject:u.a.plainObject}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=E()(me,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth<t.width?window.innerWidth-30:t.width);var o={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},r={beacon:T({},ye,{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(ee(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:T({},ye,{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:T({},ye,{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:T({},ye,{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:T({},ye,{color:t.textColor,fontSize:14}),overlay:T({},o,{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:T({},o),overlayLegacyCenter:T({},o,{backgroundColor:t.overlayColor}),spotlight:T({},ve,{backgroundColor:"gray"}),spotlightLegacy:T({},ve,{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex}},options:t};return E()(r,e)}(E()(t.styles||{},e.styles||{})),r=fe(ce(e.target),n.disableScrollParentFix),i=E.a.all([t.floaterProps||{},be.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=E()(i.styles||{},o.floaterStyles||{}),delete o.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),r&&(i.options.preventOverflow.boundariesElement="window"),T({},n,{locale:E.a.all([be.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:o})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.plainObject(e)?!!e.target||(oe({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(oe({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.a.array(e)?e.every((function(e){return Ee(e,t)})):(oe({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Se=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),P(this,"element",void 0),P(this,"options",void 0),P(this,"canBeTabbed",(function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e,!0)})),P(this,"canHaveFocus",(function(e,t){var o=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(o)&&!e.getAttribute("disabled")||"a"===o&&e.getAttribute("href")||t)&&n.isVisible(e)})),P(this,"findValidTabElements",(function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)})),P(this,"handleKeyDown",(function(e){var t=n.options.keyCode,o=void 0===t?9:t;e.keyCode===o&&n.interceptTab(e)})),P(this,"interceptTab",(function(e){e.preventDefault();var t=n.findValidTabElements(),o=e.shiftKey;if(t.length){var r=t.indexOf(document.activeElement);-1===r||!o&&r+1===t.length?r=0:o&&0===r?r=t.length-1:r+=o?-1:1,t[r].focus()}})),P(this,"isHidden",(function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),P(this,"isVisible",(function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0})),P(this,"removeScope",(function(){window.removeEventListener("keydown",n.handleKeyDown)})),P(this,"checkFocus",(function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((function(){return n.checkFocus(e)})))})),P(this,"setFocus",(function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame((function(){return n.checkFocus(t)}))}})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=o,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()},ke=function(e){function t(e){var n;if(S(this,t),P(M(n=L(this,I(t).call(this,e))),"setBeaconRef",(function(e){n.beacon=e})),!e.beaconComponent){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.id="joyride-beacon-animation",r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),o.appendChild(r)}return n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout((function(){u.a.domElement(e.beacon)&&t&&e.beacon.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,o=t.locale,r=t.onClickOrHover,i=t.styles,s={"aria-label":o.open,onClick:r,onMouseEnter:r,ref:this.setBeaconRef,title:o.open};if(n){var l=n;e=a.a.createElement(l,s)}else e=a.a.createElement("button",C({key:"JoyrideBeacon",className:"react-joyride__beacon",style:i.beacon,type:"button"},s),a.a.createElement("span",{style:i.beaconInner}),a.a.createElement("span",{style:i.beaconOuter}));return e}}]),t}(a.a.Component),xe=function(e){var t=e.styles;return a.a.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})},Pe=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(M(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"_isMounted",!1),P(M(n),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),P(M(n),"handleMouseMove",(function(e){var t=n.state.mouseOverSpotlight,o=n.spotlightStyles,r=o.height,i=o.left,a=o.position,s=o.top,l=o.width,c="fixed"===a?e.clientY:e.pageY,u="fixed"===a?e.clientX:e.pageX,p=u>=i&&u<=i+l&&(c>=s&&c<=s+r);p!==t&&n.updateState({mouseOverSpotlight:p})})),P(M(n),"handleScroll",(function(){var e=ce(n.props.target);n.scrollParent!==document?(n.state.isScrolling||n.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(n.scrollTimeout),n.scrollTimeout=setTimeout((function(){n.updateState({isScrolling:!1,showSpotlight:!0})}),50)):de(e,"sticky")&&n.updateState({})})),P(M(n),"handleResize",(function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout((function(){n._isMounted&&n.forceUpdate()}),100)})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.debug,e.disableScrolling,e.disableScrollParentFix),n=ce(e.target);this.scrollParent=pe(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,o=n.lifecycle,r=n.spotlightClicks,i=l()(e,this.props),a=i.changed;(0,i.changedTo)("lifecycle",G.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((function(){t.state.isScrolling||t.updateState({showSpotlight:!0})}),100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(r&&o===G.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==G.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,o=this.props,r=o.disableOverlay,i=o.lifecycle,s=o.onClickOverlay,l=o.placement,c=o.styles;if(r||i!==G.TOOLTIP)return null;var u=c.overlay;ne()&&(u="center"===l?c.overlayLegacyCenter:c.overlayLegacy);var p,f,d,h=T({cursor:"pointer",height:(p=document,f=p.body,d=p.documentElement,f&&d?Math.max(f.scrollHeight,f.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight):0),pointerEvents:t?"none":"auto"},u),m="center"!==l&&n&&a.a.createElement(xe,{styles:this.spotlightStyles});if("safari"===K()){h.mixBlendMode,h.zIndex;var y=_(h,["mixBlendMode","zIndex"]);m=a.a.createElement("div",{style:T({},y)},m),delete h.backgroundColor}return a.a.createElement("div",{className:"react-joyride__overlay",style:h,onClick:s},m)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,o=t.spotlightClicks,r=t.spotlightPadding,i=t.styles,a=ce(t.target),s=le(a),l=de(a),c=function(e,t,n){var o=le(e),r=pe(e,n),i=fe(e,n),a=0;r instanceof HTMLElement&&(a=r.scrollTop);var s=o.top+(i||de(e)?0:a);return Math.floor(s-t)}(a,r,n);return T({},ne()?i.spotlightLegacy:i.spotlight,{height:Math.round(s.height+2*r),left:Math.round(s.left-r),opacity:e?1:0,pointerEvents:o?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*r)})}}]),t}(a.a.Component),Ce=function(e){var t=e.styles,n=_(e,["styles"]),o=t.color,r=t.height,i=t.width,s=_(t,["color","height","width"]);return a.a.createElement("button",C({style:s,type:"button"},n),a.a.createElement("svg",{width:"number"==typeof i?"".concat(i,"px"):i,height:"number"==typeof r?"".concat(r,"px"):r,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},a.a.createElement("g",null,a.a.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))},Ne=function(e){function t(){return S(this,t),L(this,I(t).apply(this,arguments))}return j(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,o=e.continuous,r=e.index,i=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,p=e.tooltipProps,f=u.content,d=u.hideBackButton,h=u.hideCloseButton,m=u.hideFooter,y=u.showProgress,v=u.showSkipButton,b=u.title,g=u.styles,w=u.locale,E=w.back,O=w.close,S=w.last,k=w.next,x=w.skip,P={primary:O};return o&&(P.primary=i?S:k,y&&(P.primary=a.a.createElement("span",null,P.primary," (",r+1,"/",l,")"))),v&&!i&&(P.skip=a.a.createElement("button",C({style:g.buttonSkip,type:"button","aria-live":"off"},c),x)),!d&&r>0&&(P.back=a.a.createElement("button",C({style:g.buttonBack,type:"button"},t),E)),P.close=!h&&a.a.createElement(Ce,C({styles:g.buttonClose},n)),a.a.createElement("div",C({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:g.tooltip},p),a.a.createElement("div",{style:g.tooltipContainer},b&&a.a.createElement("h4",{style:g.tooltipTitle,"aria-label":b},b),a.a.createElement("div",{style:g.tooltipContent},f)),!m&&a.a.createElement("div",{style:g.tooltipFooter},a.a.createElement("div",{style:g.tooltipFooterSpacer},P.skip),P.back,a.a.createElement("button",C({style:g.buttonNext,type:"button"},s),P.primary)),P.close)}}]),t}(a.a.Component),Te=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(M(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"handleClickBack",(function(e){e.preventDefault(),n.props.helpers.prev()})),P(M(n),"handleClickClose",(function(e){e.preventDefault(),n.props.helpers.close()})),P(M(n),"handleClickPrimary",(function(e){e.preventDefault();var t=n.props,o=t.continuous,r=t.helpers;o?r.next():r.close()})),P(M(n),"handleClickSkip",(function(e){e.preventDefault(),n.props.helpers.skip()})),P(M(n),"getElementsProps",(function(){var e=n.props,t=e.continuous,o=e.isLastStep,r=e.setTooltipRef,i=e.step,a=X(i.locale.back),s=X(i.locale.close),l=X(i.locale.last),c=X(i.locale.next),u=X(i.locale.skip),p=t?c:s;return o&&(p=l),{backProps:{"aria-label":a,"data-action":"back",onClick:n.handleClickBack,role:"button",title:a},closeProps:{"aria-label":s,"data-action":"close",onClick:n.handleClickClose,role:"button",title:s},primaryProps:{"aria-label":p,"data-action":"primary",onClick:n.handleClickPrimary,role:"button",title:p},skipProps:{"aria-label":u,"data-action":"skip",onClick:n.handleClickSkip,role:"button",title:u},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})),n}return j(t,e),x(t,[{key:"render",value:function(){var e,t=this.props,n=t.continuous,o=t.index,r=t.isLastStep,i=t.size,s=t.step,l=(s.beaconComponent,s.tooltipComponent),c=_(s,["beaconComponent","tooltipComponent"]);if(l){var u=T({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:c}),p=l;e=a.a.createElement(p,u)}else e=a.a.createElement(Ne,C({},this.getElementsProps(),{continuous:n,index:o,isLastStep:r,size:i,step:s}));return e}}]),t}(a.a.Component),je=function(e){function t(e){var n;return S(this,t),n=L(this,I(t).call(this,e)),$?(n.node=document.createElement("div"),e.id&&(n.node.id=e.id),document.body.appendChild(n.node),n):L(n)}return j(t,e),x(t,[{key:"componentDidMount",value:function(){$&&(Y||this.renderReact15())}},{key:"componentDidUpdate",value:function(){$&&(Y||this.renderReact15())}},{key:"componentWillUnmount",value:function(){$&&this.node&&(Y||f.a.unmountComponentAtNode(this.node),document.body.removeChild(this.node))}},{key:"renderReact15",value:function(){if(!$)return null;var e=this.props.children;return f.a.unstable_renderSubtreeIntoContainer(this,e,this.node),null}},{key:"renderReact16",value:function(){if(!$||!Y)return null;var e=this.props.children;return f.a.createPortal(e,this.node)}},{key:"render",value:function(){return Y?this.renderReact16():null}}]),t}(a.a.Component),Ie=function(e){function t(){var e,n;S(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(M(n=L(this,(e=I(t)).call.apply(e,[this].concat(r)))),"scope",{removeScope:function(){}}),P(M(n),"handleClickHoverBeacon",(function(e){var t=n.props,o=t.step,r=t.update;"mouseenter"===e.type&&"hover"!==o.event||r({lifecycle:G.TOOLTIP})})),P(M(n),"handleClickOverlay",(function(){var e=n.props,t=e.helpers;e.step.disableOverlayClose||t.close()})),P(M(n),"setTooltipRef",(function(e){n.tooltip=e})),P(M(n),"setPopper",(function(e,t){var o=n.props,r=o.action,i=o.setPopper,a=o.update;"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e,i(e,t),n.beaconPopper&&n.tooltipPopper&&a({action:r===A.CLOSE?A.CLOSE:r,lifecycle:G.READY})})),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.debug,n=e.index;oe({title:"step:".concat(n),data:[{key:"props",value:this.props}],debug:t})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.action,o=t.callback,r=t.continuous,i=t.controlled,a=t.debug,s=t.index,c=t.lifecycle,u=t.size,p=t.status,f=t.step,d=t.update,h=l()(e,this.props),m=h.changed,y=h.changedTo,v=h.changedFrom,b={action:n,controlled:i,index:s,lifecycle:c,size:u,status:p},g=r&&n!==A.CLOSE&&(s>0||n===A.PREV),w=m("action")||m("index")||m("lifecycle")||m("status"),E=v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT);if(y("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&(E||i)&&o(T({},b,{index:e.index,lifecycle:G.COMPLETE,step:e.step,type:z})),w&&f){var O=ce(f.target),S=!!O;S&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),o=n.display,r=n.visibility;if("none"===o||"hidden"===r)return!1}t=t.parentNode}return!0}(O)?(v("status",V.READY,V.RUNNING)||v("lifecycle",G.INIT,G.READY))&&o(T({},b,{step:f,type:F})):(console.warn(S?"Target not visible":"Target not mounted",f),o(T({},b,{type:q,step:f})),i||d({index:s+(-1!==[A.PREV].indexOf(n)?-1:1)}))}v("lifecycle",G.INIT,G.READY)&&d({lifecycle:te(f)||g?G.TOOLTIP:G.BEACON}),m("index")&&oe({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",G.BEACON)&&o(T({},b,{step:f,type:B})),y("lifecycle",G.TOOLTIP)&&(o(T({},b,{step:f,type:W})),this.scope=new Se(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),v("lifecycle",[G.TOOLTIP,G.INIT],G.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,o=e.helpers,r=e.index,i=e.lifecycle,s=e.shouldScroll,l=e.size,c=e.step,p=ce(c.target);return Ee(c)&&u.a.domElement(p)?a.a.createElement("div",{key:"JoyrideStep-".concat(r),className:"react-joyride__step"},a.a.createElement(je,{id:"react-joyride-portal"},a.a.createElement(Pe,C({},c,{debug:n,lifecycle:i,onClickOverlay:this.handleClickOverlay}))),a.a.createElement(O.a,C({component:a.a.createElement(Te,{continuous:t,helpers:o,index:r,isLastStep:r+1===l,setTooltipRef:this.setTooltipRef,size:l,step:c}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(r),isPositioned:c.isFixed||de(p),open:this.open,placement:c.placement,target:c.target},c.floaterProps),a.a.createElement(ke,{beaconComponent:c.beaconComponent,locale:c.locale,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:s,styles:c.styles}))):null}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!te(t)&&n!==G.TOOLTIP)}}]),t}(a.a.Component),Re=function(e){function t(e){var n;return S(this,t),P(M(n=L(this,I(t).call(this,e))),"initStore",(function(){var e=n.props,t=e.debug,o=e.getHelpers,r=e.run,i=e.stepIndex;n.store=new ae(T({},n.props,{controlled:r&&u.a.number(i)})),n.helpers=n.store.getHelpers();var a=n.store.addListener;return oe({title:"init",data:[{key:"props",value:n.props},{key:"state",value:n.state}],debug:t}),a(n.syncState),o(n.helpers),n.store.getState()})),P(M(n),"callback",(function(e){var t=n.props.callback;u.a.function(t)&&t(e)})),P(M(n),"handleKeyboard",(function(e){var t=n.state,o=t.index,r=t.lifecycle,i=n.props.steps[o],a=window.Event?e.which:e.keyCode;r===G.TOOLTIP&&27===a&&i&&!i.disableCloseOnEsc&&n.store.close()})),P(M(n),"syncState",(function(e){n.setState(e)})),P(M(n),"setPopper",(function(e,t){"wrapper"===t?n.beaconPopper=e:n.tooltipPopper=e})),P(M(n),"shouldScroll",(function(e,t,n,o,r,i,a){return!e&&(0!==t||n||o===G.TOOLTIP)&&"center"!==r.placement&&(!r.isFixed||!de(i))&&a.lifecycle!==o&&-1!==[G.BEACON,G.TOOLTIP].indexOf(o)})),n.state=n.initStore(),n}return j(t,e),x(t,[{key:"componentDidMount",value:function(){if($){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,o=e.run,r=e.steps,i=this.store.start;Oe(r,n)&&o&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if($){var n=this.state,o=n.action,r=n.controlled,a=n.index,s=n.lifecycle,c=n.status,p=this.props,f=p.debug,d=p.run,h=p.stepIndex,m=p.steps,y=e.steps,v=e.stepIndex,b=this.store,g=b.setSteps,w=b.reset,E=b.start,O=b.stop,S=b.update,k=l()(e,this.props).changed,x=l()(t,this.state),P=x.changed,C=x.changedFrom,N=x.changedTo,j=we(m[a],this.props),I=!function e(t,n){var o,r=Object(i.isValidElement)(t)||Object(i.isValidElement)(n),a=u.a.undefined(t)||u.a.undefined(n);if(J(t)!==J(n)||r||a)return!1;if(u.a.domElement(t))return t.isSameNode(n);if(u.a.number(t))return t===n;if(u.a.function(t))return t.toString()===n.toString();for(var s in t)if(Z(t,s)){if(void 0===t[s]||void 0===n[s])return!1;if(o=J(t[s]),-1!==["object","array"].indexOf(o)&&e(t[s],n[s]))continue;if("function"===o&&e(t[s],n[s]))continue;if(t[s]!==n[s])return!1}for(var l in n)if(Z(n,l)&&void 0===t[l])return!1;return!0}(y,m),R=u.a.number(h)&&k("stepIndex");if(I&&(Oe(m,f)?g(m):console.warn("Steps are not valid",m)),k("run")&&(d?E(h):O()),R){var _=v<h?A.NEXT:A.PREV;o===A.STOP&&(_=A.START),-1===[V.FINISHED,V.SKIPPED].indexOf(c)&&S({action:o===A.CLOSE?A.CLOSE:_,index:h,lifecycle:G.INIT})}var M=T({},this.state,{index:a,step:j});if(N("action",[A.NEXT,A.PREV,A.SKIP,A.CLOSE])&&N("status",V.PAUSED)){var L=we(m[t.index],this.props);this.callback(T({},M,{index:t.index,lifecycle:G.COMPLETE,step:L,type:z}))}if(N("status",[V.FINISHED,V.SKIPPED])){var F=we(m[t.index],this.props);r||this.callback(T({},M,{index:t.index,lifecycle:G.COMPLETE,step:F,type:z})),this.callback(T({},M,{type:H,step:F,index:t.index})),w()}else C("status",[V.IDLE,V.READY],V.RUNNING)?this.callback(T({},M,{type:D})):(P("status")||N("action",A.RESET))&&this.callback(T({},M,{type:U}));j&&(this.scrollToStep(t),"center"===j.placement&&c===V.RUNNING&&s===G.INIT&&this.store.update({lifecycle:G.READY}))}}},{key:"componentWillUnmount",value:function(){this.props.disableCloseOnEsc||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(e){var t=this.state,n=t.index,o=t.lifecycle,r=t.status,i=this.props,a=i.debug,s=i.disableScrolling,l=i.disableScrollParentFix,c=i.scrollToFirstStep,u=i.scrollOffset,p=i.scrollDuration,f=we(i.steps[n],this.props);if(f){var d=ce(f.target),h=this.shouldScroll(s,n,c,o,f,d,e);if(r===V.RUNNING&&h){var m=fe(d,l),v=pe(d,l),b=Math.floor(he(d,u,l))||0;if(oe({title:"scrollToStep",data:[{key:"index",value:n},{key:"lifecycle",value:o},{key:"status",value:r}],debug:a}),o===G.BEACON&&this.beaconPopper){var g=this.beaconPopper,w=g.placement,E=g.popper;-1!==["bottom"].indexOf(w)||m||(b=Math.floor(E.top-u))}else if(o===G.TOOLTIP&&this.tooltipPopper){var O=this.tooltipPopper,S=O.flipped,k=O.placement,x=O.popper;-1===["top","right","left"].indexOf(k)||S||m?b-=f.spotlightPadding:b=Math.floor(x.top-u)}b=b>=0?b:0,r===V.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se(),n=arguments.length>2?arguments[2]:void 0;new Promise((function(o,r){var i=t.scrollTop,a=e>i?e-i:i-e;y.a.top(t,e,{duration:a<100?50:n},(function(e){return e&&"Element already at target scroll position"!==e.message?r(e):o()}))}))}(b,v,p)}}}},{key:"render",value:function(){if(!$)return null;var e,t=this.state,n=t.index,o=t.status,r=this.props,i=r.continuous,s=r.debug,l=r.disableScrolling,c=r.scrollToFirstStep,u=we(r.steps[n],this.props);return o===V.RUNNING&&u&&(e=a.a.createElement(Ie,C({},this.state,{callback:this.callback,continuous:i,debug:s,setPopper:this.setPopper,helpers:this.helpers,shouldScroll:!l&&(0!==n||c),step:u,update:this.store.update}))),a.a.createElement("div",{className:"react-joyride"},e)}}]),t}(a.a.Component);P(Re,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var _e=Re;function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(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 Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ae=lodash.debounce,De=wp.i18n.__,Fe=wp.components,Be=Fe.Button,We=Fe.Modal,ze=wp.element,He=ze.Fragment,Ue=ze.useEffect,qe=ze.useRef,Ge=ze.useState,Ve=function(){var e=Me(Ge(!0),2),t=e[0],n=e[1],o=Me(Ge(!1),2),r=o[0],i=o[1],a=qe(null);Ue((function(){wp.api.loadPromise.then((function(){a.current=new wp.api.models.Settings}))}),[]);var s=[{target:".otter-step-one",content:De("Howdy, I'm Ollie The Otter! I will help you configure your Otter experience. So let's start the magic!"),disableBeacon:!0},{target:".otter-step-two",content:De("Jazz up your blocks with some sparkly custom CSS or Blocks Animation right inside the block. Here you can enable modules to enhance your experience with Block Editor.")},{target:".otter-step-three",content:De("Section Block is the signature feature of Otter. It allows you to build beautiful layouts right inside the Block Editor. You can set Section Block as the default block for your new Pages.")},{target:".otter-step-four",content:De("We love maps! Here you can set your Google Maps API key for Otter's Map Block.")},{target:".otter-step-five",content:De("If you don't have an API key, you can register one by clicking here.")},{target:".otter-step-six",content:De("Help us in making our plugin better with anonymous data tracking.")},{target:".otter-step-seven",content:De("If you ever need any help, we are a team of real Otter-lovers who would love to help you out.")},{target:".otter-step-eight",content:De("And if you love what we do, please leave us a review at WordPress.org. Your review keeps us motivated to make awesome things.")},{target:".otter-step-one",content:De("That's it for now! Hope you enjoy Otter and love it as much as we do.")}],l=Ae((function(e){if(t&&n(!1),"ready"===e||"finished"===e||"skipped"===e){var o=new wp.api.models.Settings({themeisle_blocks_settings_tour:!1}).save();o.success((function(e,t){a.current.fetch()})),o.error((function(e,t){console.warning(e.responseJSON.message)}))}}),1e3);return wp.element.createElement(He,null,t&&wp.element.createElement(We,{title:De("Welcome to Otter!"),isDismissible:!1,className:"otter-onboarding-modal"},wp.element.createElement("div",{className:"otter-onboarding-modal-content"},De("Would you like to start the onboarding wizard which will help you personalize the plugin for yourself?")),wp.element.createElement("div",{className:"otter-onboarding-modal-action"},wp.element.createElement(Be,{isPrimary:!0,isLarge:!0,onClick:function(){n(!1),i(!0)}},De("Start")),wp.element.createElement(Be,{isSecondary:!0,isLarge:!0,onClick:function(){return l("skipped")}},De("Skip")))),wp.element.createElement(_e,{continuous:!0,run:r,steps:s,scrollToFirstStep:!0,showSkipButton:!0,locale:{back:De("Back"),close:De("Close"),last:De("Finish"),next:De("Next"),skip:De("Skip")},callback:function(e){return l(e.status)}}))},$e=n(9),Ye=n.n($e),Ke=wp.i18n.__,Je=function(){return wp.element.createElement("header",{className:"otter-header"},wp.element.createElement("div",{className:Ye()("otter-container","otter-step-one")},wp.element.createElement("div",{className:"otter-logo"},wp.element.createElement("img",{src:otterObj.assetsPath+"images/logo.png",title:Ke("Gutenberg Blocks and Template Library by Otter")}),wp.element.createElement("abbr",{title:"Version: ".concat(otterObj.version),className:"version"},otterObj.version))))},Xe=(n(23),wp.i18n.__,wp.components.Button),Ze=function(e){var t=e.label,n=e.help,o=e.buttonLabel,r=e.disabled,i=e.action,a=e.className;return wp.element.createElement("div",{className:Ye()("components-base-control","otter-button-control",a)},wp.element.createElement("div",{className:"components-base-control_labels"},wp.element.createElement("span",{className:"components-base-control__label"},t),wp.element.createElement("p",{className:"components-base-control__help"},n)),wp.element.createElement("div",{className:"otter-button-control-group"},wp.element.createElement(Xe,{isPrimary:!0,isLarge:!0,disabled:r,onClick:i},o)))};function Qe(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(e,t)}(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 tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nt=wp.i18n.__,ot=wp.apiFetch,rt=wp.components,it=rt.BaseControl,at=rt.Button,st=rt.ExternalLink,lt=rt.Modal,ct=rt.PanelBody,ut=rt.PanelRow,pt=rt.Placeholder,ft=rt.Spinner,dt=rt.ToggleControl,ht=wp.element,mt=ht.Fragment,yt=ht.useEffect,vt=ht.useRef,bt=ht.useState,gt=function(){yt((function(){wp.api.loadPromise.then((function(){D.current=new wp.api.models.Settings,!1===t&&D.current.fetch().then((function(e){f(Boolean(e.themeisle_blocks_settings_css_module)),m(Boolean(e.themeisle_blocks_settings_blocks_animation)),b(Boolean(e.themeisle_blocks_settings_menu_icons)),E(Boolean(e.themeisle_blocks_settings_default_block)),k(e.themeisle_google_map_block_api_key),C(e.otter_blocks_logger_flag),j(Boolean(e.themeisle_allow_json_upload)),n(!0)}))})),Boolean(otterObj.stylesExist)||A(!0)}),[]);var e=et(bt(!1),2),t=e[0],n=e[1],r=et(bt(!1),2),i=r[0],a=r[1],s=et(bt(null),2),l=s[0],c=s[1],u=et(bt(!1),2),p=u[0],f=u[1],d=et(bt(!1),2),h=d[0],m=d[1],y=et(bt(!1),2),v=y[0],b=y[1],g=et(bt(!0),2),w=g[0],E=g[1],O=et(bt(""),2),S=O[0],k=O[1],x=et(bt("no"),2),P=x[0],C=x[1],N=et(bt(!1),2),T=N[0],j=N[1],I=et(bt(!1),2),R=I[0],_=I[1],M=et(bt(!1),2),L=M[0],A=M[1],D=vt(null),F=(vt(null),function(e,t,n){a(!0),z(nt("Updating settings…"),"info");var r=new wp.api.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n)).save();r.success((function(n,r){o.store.removeNotification(l),"success"===r&&(B(t,n[e]),setTimeout((function(){z(nt("Settings saved."),"success"),a(!1)}),800)),"error"===r&&setTimeout((function(){z(nt("An unknown error occurred."),"danger"),a(!1)}),800),D.current.fetch()})),r.error((function(e,t){o.store.removeNotification(l),setTimeout((function(){z(e.responseJSON.message?e.responseJSON.message:nt("An unknown error occurred."),"danger"),a(!1)}),800)}))}),B=function(e,t){switch(e){case"cssModule":f(t);break;case"blocksAnimation":m(t);break;case"menuIcons":b(t);break;case"isDefaultSection":E(t);break;case"googleMapsAPI":k(t);break;case"isLoggingData":C(t);break;case"allowJSONUploads":j(t)}},W=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.next=3,ot({path:"themeisle-gutenberg-blocks/v1/regenerate_styles",method:"DELETE"});case 3:t=e.sent,z(t.data.message,t.success?"success":"danger"),A(!0),a(!1),_(!1);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Qe(i,o,r,a,s,"next",e)}function s(e){Qe(i,o,r,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),z=function(e,t){var n=o.store.addNotification({message:e,type:t,insert:"top",container:"bottom-left",isMobile:!0,dismiss:{duration:2e3,showIcon:!0},dismissable:{click:!0,touch:!0}});c(n)};return t?wp.element.createElement(mt,null,wp.element.createElement("div",{className:"otter-main"},wp.element.createElement("div",{className:"otter-step-two"},wp.element.createElement(ct,{title:nt("Modules")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Custom CSS Module"),help:"Custom CSS module allows to add custom CSS to each block in Block Editor.",checked:p,onChange:function(){return F("themeisle_blocks_settings_css_module","cssModule",!p)}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Blocks Animation Module"),help:"Blocks Animation module allows to add CSS animations to each block in Block Editor.",checked:h,onChange:function(){return F("themeisle_blocks_settings_blocks_animation","blocksAnimation",!h)}})),Boolean(otterObj.navExists)&&wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Enable Menu Icons Module"),help:"Menu Icons module allows to add icons to navigation menu items in Block Editor.",checked:v,onChange:function(){return F("themeisle_blocks_settings_menu_icons","menuIcons",!v)}})))),wp.element.createElement("div",{className:"otter-step-three"},wp.element.createElement(ct,{title:nt("Section")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Make Section your default block for Pages"),help:"Everytime you create a new page, Section block will be appended there by default.",checked:w,onChange:function(){return F("themeisle_blocks_settings_default_block","isDefaultSection",!w)}})))),wp.element.createElement("div",{className:"otter-step-four"},wp.element.createElement(ct,{title:nt("Maps")},wp.element.createElement(ut,null,wp.element.createElement(it,{label:nt("Google Maps API"),help:"In order to use Google Maps block, you need to use Google Maps and Places API.",id:"otter-options-google-map-api",className:"otter-button-field"},wp.element.createElement("input",{type:"text",id:"otter-options-google-map-api",value:S,placeholder:nt("Google Maps API Key"),disabled:i,onChange:function(e){return k(e.target.value)}}),wp.element.createElement("div",{className:"otter-button-group"},wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,onClick:function(){return F("themeisle_google_map_block_api_key","googleMapsAPI",S)}},nt("Save")),wp.element.createElement(st,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key",className:"otter-step-five"},nt("Get API Key"))))))),wp.element.createElement("div",{className:"otter-step-six"},wp.element.createElement(ct,{title:nt("Other")},wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Anonymous Data Tracking."),help:"Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.",checked:"yes"===P,onChange:function(){return F("otter_blocks_logger_flag","isLoggingData","yes"===P?"no":"yes")}})),wp.element.createElement(ut,null,wp.element.createElement(dt,{label:nt("Allow JSON Uploads."),help:"This option allows JSON files to be uploaded to the media library to use in Lottie Block. Only enable this option if you want to use custom JSON uploads in Lottie Block.",checked:T,onChange:function(){return F("themeisle_allow_json_upload","allowJSONUploads",!T)}})),wp.element.createElement(ut,null,wp.element.createElement(Ze,{label:nt("Regenerate Styles"),help:"Clicking on this will delete all the Otter generated CSS files.",buttonLabel:nt("Regenerate"),disabled:L,action:function(){return _(!0)}})),wp.element.createElement(ut,null,wp.element.createElement("div",null,[nt("Let us know how we can improve. Vote on existing ideas or suggest new ones.")," ",wp.element.createElement(st,{href:"https://otter.nolt.io/"},nt("Give feedback!"))])))),wp.element.createElement(ct,null,wp.element.createElement("div",{className:"otter-info"},wp.element.createElement("h2",null,nt("Got a question for us?")),wp.element.createElement("p",null,nt("We would love to help you out if you need any help with Otter.")),wp.element.createElement("div",{className:"otter-info-button-group"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks",className:"otter-step-seven"},nt("Ask a question")),wp.element.createElement(at,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://wordpress.org/support/plugin/otter-blocks/reviews/#new-post",className:"otter-step-eight"},nt("Leave a review")))))),R&&wp.element.createElement(lt,{title:nt("Are you sure?"),onRequestClose:function(){return _(!1)}},wp.element.createElement("p",null,nt("Are you sure you want to delete all Otter generated CSS files?")),wp.element.createElement("p",null,nt("Note: Styles will be regenerated as users start visiting your pages.")),wp.element.createElement("div",{className:"otter-modal-actions"},wp.element.createElement(at,{isSecondary:!0,isLarge:!0,onClick:function(){return _(!1)}},nt("Cancel")),wp.element.createElement(at,{isPrimary:!0,isLarge:!0,disabled:i,isBusy:i,onClick:W},nt("Confirm"))))):wp.element.createElement(pt,null,wp.element.createElement(ft,null))},wt=wp.i18n.__,Et=function(){return wp.element.createElement("footer",{className:"otter-footer"},wp.element.createElement("div",{className:"otter-container"},wt("No otters were harmed during the making of this plugin.")))},Ot=wp.element,St=Ot.render,kt=Ot.Fragment;St(wp.element.createElement((function(){return wp.element.createElement(kt,null,Boolean(otterObj.showTour)&&wp.element.createElement(Ve,null),wp.element.createElement(r.a,null),wp.element.createElement(Je,null),wp.element.createElement(gt,null),wp.element.createElement(Et,null))}),null),document.getElementById("otter"))}]);
class-otter-blocks.php CHANGED
@@ -192,6 +192,54 @@ class Otter_Blocks {
192
  'show_in_rest' => true,
193
  )
194
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  }
196
 
197
  /**
192
  'show_in_rest' => true,
193
  )
194
  );
195
+
196
+ register_setting(
197
+ 'themeisle_blocks_settings',
198
+ 'otter_blocks_logger_data',
199
+ array(
200
+ 'type' => 'object',
201
+ 'description' => __( 'Anonymous data tracking object.', 'otter-blocks' ),
202
+ 'show_in_rest' => array(
203
+ 'schema' => array(
204
+ 'type' => 'object',
205
+ 'properties' => array(
206
+ 'blocks' => array(
207
+ 'type' => 'array',
208
+ 'items' => array(
209
+ 'type' => 'object',
210
+ 'properties' => array(
211
+ 'name' => array(
212
+ 'type' => 'string',
213
+ ),
214
+ 'instances' => array(
215
+ 'type' => 'number',
216
+ ),
217
+ ),
218
+ ),
219
+ ),
220
+ 'templates' => array(
221
+ 'type' => 'array',
222
+ 'items' => array(
223
+ 'type' => 'object',
224
+ 'properties' => array(
225
+ 'url' => array(
226
+ 'type' => 'string',
227
+ ),
228
+ 'instances' => array(
229
+ 'type' => 'number',
230
+ ),
231
+ ),
232
+ ),
233
+ ),
234
+ ),
235
+ ),
236
+ ),
237
+ 'default' => array(
238
+ 'blocks' => array(),
239
+ 'templates' => array(),
240
+ ),
241
+ )
242
+ );
243
  }
244
 
245
  /**
otter-blocks.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Gutenberg Blocks and Template Library by Otter
8
  * Plugin URI: https://themeisle.com/plugins/otter-blocks
9
  * Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
10
- * Version: 1.5.7
11
  * Author: ThemeIsle
12
  * Author URI: https://themeisle.com
13
  * License: GPL-2.0+
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
  define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
27
  define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
28
  define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
29
- define( 'OTTER_BLOCKS_VERSION', '1.5.7' );
30
  define( 'OTTER_BLOCKS_DEV', false );
31
 
32
  $vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
7
  * Plugin Name: Gutenberg Blocks and Template Library by Otter
8
  * Plugin URI: https://themeisle.com/plugins/otter-blocks
9
  * Description: Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter. Otter comes with dozens of Gutenberg blocks that are all you need to build beautiful pages.
10
+ * Version: 1.5.8
11
  * Author: ThemeIsle
12
  * Author URI: https://themeisle.com
13
  * License: GPL-2.0+
26
  define( 'OTTER_BLOCKS_BASEFILE', __FILE__ );
27
  define( 'OTTER_BLOCKS_URL', plugins_url( '/', __FILE__ ) );
28
  define( 'OTTER_BLOCKS_PATH', dirname( __FILE__ ) );
29
+ define( 'OTTER_BLOCKS_VERSION', '1.5.8' );
30
  define( 'OTTER_BLOCKS_DEV', false );
31
 
32
  $vendor_file = OTTER_BLOCKS_PATH . '/vendor/autoload.php';
readme.md CHANGED
@@ -1,6 +1,6 @@
1
  # Gutenberg Blocks and Template Library by Otter #
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [soarerobertdaniel7](https://profiles.wordpress.org/soarerobertdaniel7), [mariamunteanu1](https://profiles.wordpress.org/mariamunteanu1)
3
- **Tags:** gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
4
  **Requires at least:** 5.4
5
  **Tested up to:** 5.5
6
  **Requires PHP:** 5.4
@@ -33,6 +33,8 @@ It has:
33
  - Testimonial Block
34
  - About Author Block
35
  - Font Awesome Block
 
 
36
  - Sharing Icons Block
37
  - Plugin Card Block
38
 
@@ -86,6 +88,17 @@ Help your site shine with design options built to enhance your brand. Every bloc
86
 
87
  ## Changelog ##
88
 
 
 
 
 
 
 
 
 
 
 
 
89
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
90
 
91
  - Fix Button Group Block borders
1
  # Gutenberg Blocks and Template Library by Otter #
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle), [hardeepasrani](https://profiles.wordpress.org/hardeepasrani), [soarerobertdaniel7](https://profiles.wordpress.org/soarerobertdaniel7), [mariamunteanu1](https://profiles.wordpress.org/mariamunteanu1)
3
+ **Tags:** gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates, lottie, progress bar
4
  **Requires at least:** 5.4
5
  **Tested up to:** 5.5
6
  **Requires PHP:** 5.4
33
  - Testimonial Block
34
  - About Author Block
35
  - Font Awesome Block
36
+ - Lottie Animation Block
37
+ - Progress Bar Block
38
  - Sharing Icons Block
39
  - Plugin Card Block
40
 
88
 
89
  ## Changelog ##
90
 
91
+ ##### [Version 1.5.8](https://github.com/Codeinwp/otter-blocks/compare/v1.5.7...v1.5.8) (2020-09-14)
92
+
93
+ - Add Lottie Animations Block.
94
+ - Add Progress Bar Block.
95
+ - Prevent old custom CSS from being cached.
96
+ - Fix Slider in Section's Vertical Alignment on AMP.
97
+ - Consensual Tracking Data.
98
+
99
+
100
+
101
+
102
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
103
 
104
  - Fix Button Group Block borders
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Gutenberg Blocks and Template Library by Otter ===
2
  Contributors: themeisle, hardeepasrani, soarerobertdaniel7, mariamunteanu1
3
- Tags: gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates
4
  Requires at least: 5.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
@@ -33,6 +33,8 @@ It has:
33
  - Testimonial Block
34
  - About Author Block
35
  - Font Awesome Block
 
 
36
  - Sharing Icons Block
37
  - Plugin Card Block
38
 
@@ -86,6 +88,17 @@ Help your site shine with design options built to enhance your brand. Every bloc
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
 
 
 
 
89
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
90
 
91
  - Fix Button Group Block borders
1
  === Gutenberg Blocks and Template Library by Otter ===
2
  Contributors: themeisle, hardeepasrani, soarerobertdaniel7, mariamunteanu1
3
+ Tags: gutenberg blocks, gutenberg, block,post grid block, google map block, columns block, advanced columns, section, row, layout, templates, lottie, progress bar
4
  Requires at least: 5.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
33
  - Testimonial Block
34
  - About Author Block
35
  - Font Awesome Block
36
+ - Lottie Animation Block
37
+ - Progress Bar Block
38
  - Sharing Icons Block
39
  - Plugin Card Block
40
 
88
 
89
  == Changelog ==
90
 
91
+ ##### [Version 1.5.8](https://github.com/Codeinwp/otter-blocks/compare/v1.5.7...v1.5.8) (2020-09-14)
92
+
93
+ - Add Lottie Animations Block.
94
+ - Add Progress Bar Block.
95
+ - Prevent old custom CSS from being cached.
96
+ - Fix Slider in Section's Vertical Alignment on AMP.
97
+ - Consensual Tracking Data.
98
+
99
+
100
+
101
+
102
  ##### [Version 1.5.7](https://github.com/Codeinwp/otter-blocks/compare/v1.5.6...v1.5.7) (2020-08-12)
103
 
104
  - Fix Button Group Block borders
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit8b23c383183caf2262d4dbcf6f241460::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit1ef930e5bc6c7605b679d92b260c7922::getLoader();
vendor/codeinwp/gutenberg-blocks/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  ##### [Version 1.5.6](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.5...v1.5.6) (2020-08-12)
2
 
3
  - Fix Button Group Block borders
1
+ ##### [Version 1.5.7](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.6...v1.5.7) (2020-09-14)
2
+
3
+ - Add Lottie Animations Block.
4
+ - Add Progress Bar Block.
5
+ - Prevent old custom CSS from being cached.
6
+ - Fix Slider in Section's Vertical Alignment on AMP.
7
+ - Consensual Tracking Data.
8
+
9
  ##### [Version 1.5.6](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.5...v1.5.6) (2020-08-12)
10
 
11
  - Fix Button Group Block borders
vendor/codeinwp/gutenberg-blocks/assets/lottie/lottie-interactivity.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).LottieInteractivity={})}(this,(function(e){"use strict";function t(e){return(t="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)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){var n=t.get(e);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(e):n.value}var a={player:"lottie-player"},s=function(){function e(){var i=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,u=s.actions,f=s.container,m=s.mode,d=s.player,v=o(s,["actions","container","mode","player"]);if(n(this,e),l.set(this,{writable:!0,value:function(e){r(i,p).call(i,e.clientX,e.clientY)}}),y.set(this,{writable:!0,value:function(){r(i,p).call(i,-1,-1)}}),p.set(this,{writable:!0,value:function(e,t){if(-1!==e&&-1!==t){var n=i.getContainerCursorPosition(e,t);e=n.x,t=n.y}var o=i.actions.find((function(n){var i=n.position;return Array.isArray(i.x)&&Array.isArray(i.y)?e>=i.x[0]&&e<=i.x[1]&&t>=i.y[0]&&t<=i.y[1]:!Number.isNaN(i.x)&&!Number.isNaN(i.y)&&(e===i.x&&t===i.y)}));if(o)if("seek"===o.type){var r=(e-o.position.x[0])/(o.position.x[1]-o.position.x[0]),a=(t-o.position.y[0])/(o.position.y[1]-o.position.y[0]);i.player.playSegments(o.frames,!0),i.player.goToAndStop(Math.ceil((r+a)/2*i.player.totalFrames),!0)}else"loop"===o.type?i.player.playSegments(o.frames,!0):"play"===o.type?(!0===i.player.isPaused&&i.player.resetSegments(),i.player.playSegments(o.frames)):"stop"===o.type&&i.player.goToAndStop(o.frames[0],!0)}}),c.set(this,{writable:!0,value:function(){var e=i.getContainerVisibility(),t=i.actions.find((function(t){var n=t.visibility;return e>=n[0]&&e<=n[1]}));t&&("seek"===t.type?(i.player.playSegments(t.frames,!0),i.player.goToAndStop(Math.ceil((e-t.visibility[0])/(t.visibility[1]-t.visibility[0])*i.player.totalFrames),!0)):"loop"===t.type?i.player.playSegments(t.frames,!0):"play"===t.type?!0===i.player.isPaused&&(i.player.resetSegments(),i.player.play()):"stop"===t.type&&i.player.goToAndStop(t.frames[0],!0))}}),"object"!==t(d)||"AnimationItem"!==d.constructor.name){if("string"==typeof d){var h=document.querySelector(d);h&&"LOTTIE-PLAYER"===h.nodeName&&(d=h.getLottie())}else d instanceof HTMLElement&&"LOTTIE-PLAYER"===d.nodeName&&(d=d.getLottie());if(!d)throw new Error("".concat("[lottieInteractivity]:"," Specified player is invalid."),d)}"string"==typeof f&&(f=document.querySelector(f)),f||(f=d.wrapper),this.player=d,this.container=f,this.mode=m,this.actions=u,this.options=v}var s,u,f;return s=e,(u=[{key:"getContainerVisibility",value:function(){var e=this.container.getBoundingClientRect(),t=e.top,n=e.height;return(window.innerHeight-t)/(window.innerHeight+n)}},{key:"getContainerCursorPosition",value:function(e,t){var n=this.container.getBoundingClientRect(),i=n.top;return{x:(e-n.left)/n.width,y:(t-i)/n.height}}},{key:"start",value:function(){this.player.loop=!0,this.player.stop(),"scroll"===this.mode&&window.addEventListener("scroll",r(this,c)),"cursor"===this.mode&&(this.container.addEventListener("mousemove",r(this,l)),this.container.addEventListener("mouseout",r(this,y)))}},{key:"stop",value:function(){"scroll"===this.mode&&window.removeEventListener("scroll",r(this,c)),"cursor"===this.mode&&(this.container.addEventListener("mousemove",r(this,l)),this.container.addEventListener("mouseout",r(this,y)))}}])&&i(s.prototype,u),f&&i(s,f),e}(),l=new WeakMap,y=new WeakMap,p=new WeakMap,c=new WeakMap,u=function(e){var t=new s(e);return t.start(),t};e.LottieInteractivity=s,e.create=u,e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
vendor/codeinwp/gutenberg-blocks/assets/lottie/lottie-player.min.js ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"ytxR":[function(require,module,exports) {
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeNodes=exports.reparentNodes=exports.isCEPolyfill=void 0;const e="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback;exports.isCEPolyfill=e;const o=(e,o,l=null,s=null)=>{for(;o!==l;){const l=o.nextSibling;e.insertBefore(o,s),o=l}};exports.reparentNodes=o;const l=(e,o,l=null)=>{for(;o!==l;){const l=o.nextSibling;e.removeChild(o),o=l}};exports.removeNodes=l;
3
+ },{}],"Av0K":[function(require,module,exports) {
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.lastAttributeNameRegex=exports.createMarker=exports.isTemplatePartActive=exports.Template=exports.boundAttributeSuffix=exports.markerRegex=exports.nodeMarker=exports.marker=void 0;const e=`{{lit-${String(Math.random()).slice(2)}}}`;exports.marker=e;const t=`\x3c!--${e}--\x3e`;exports.nodeMarker=t;const r=new RegExp(`${e}|${t}`);exports.markerRegex=r;const s="$lit$";exports.boundAttributeSuffix=s;class o{constructor(t,o){this.parts=[],this.element=o;const i=[],l=[],p=document.createTreeWalker(o.content,133,null,!1);let c=0,d=-1,u=0;const{strings:f,values:{length:h}}=t;for(;u<h;){const t=p.nextNode();if(null!==t){if(d++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:o}=e;let i=0;for(let t=0;t<o;t++)n(e[t].name,s)&&i++;for(;i-- >0;){const e=f[u],o=x.exec(e)[2],n=o.toLowerCase()+s,i=t.getAttribute(n);t.removeAttribute(n);const a=i.split(r);this.parts.push({type:"attribute",index:d,name:o,strings:a}),u+=a.length-1}}"TEMPLATE"===t.tagName&&(l.push(t),p.currentNode=t.content)}else if(3===t.nodeType){const o=t.data;if(o.indexOf(e)>=0){const e=t.parentNode,l=o.split(r),p=l.length-1;for(let r=0;r<p;r++){let o,i=l[r];if(""===i)o=a();else{const e=x.exec(i);null!==e&&n(e[2],s)&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-s.length)+e[3]),o=document.createTextNode(i)}e.insertBefore(o,t),this.parts.push({type:"node",index:++d})}""===l[p]?(e.insertBefore(a(),t),i.push(t)):t.data=l[p],u+=p}}else if(8===t.nodeType)if(t.data===e){const e=t.parentNode;null!==t.previousSibling&&d!==c||(d++,e.insertBefore(a(),t)),c=d,this.parts.push({type:"node",index:d}),null===t.nextSibling?t.data="":(i.push(t),d--),u++}else{let r=-1;for(;-1!==(r=t.data.indexOf(e,r+1));)this.parts.push({type:"node",index:-1}),u++}}else p.currentNode=l.pop()}for(const e of i)e.parentNode.removeChild(e)}}exports.Template=o;const n=(e,t)=>{const r=e.length-t.length;return r>=0&&e.slice(r)===t},i=e=>-1!==e.index;exports.isTemplatePartActive=i;const a=()=>document.createComment("");exports.createMarker=a;const x=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;exports.lastAttributeNameRegex=x;
5
+ },{}],"NXoq":[function(require,module,exports) {
6
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.removeNodesFromTemplate=n,exports.insertNodeIntoTemplate=l;var e=require("./template.js");const t=133;function n(e,n){const{element:{content:r},parts:l}=e,u=document.createTreeWalker(r,t,null,!1);let c=o(l),d=l[c],s=-1,i=0;const a=[];let p=null;for(;u.nextNode();){s++;const e=u.currentNode;for(e.previousSibling===p&&(p=null),n.has(e)&&(a.push(e),null===p&&(p=e)),null!==p&&i++;void 0!==d&&d.index===s;)d.index=null!==p?-1:d.index-i,d=l[c=o(l,c)]}a.forEach(e=>e.parentNode.removeChild(e))}const r=e=>{let n=11===e.nodeType?0:1;const r=document.createTreeWalker(e,t,null,!1);for(;r.nextNode();)n++;return n},o=(t,n=-1)=>{for(let r=n+1;r<t.length;r++){const n=t[r];if((0,e.isTemplatePartActive)(n))return r}return-1};function l(e,n,l=null){const{element:{content:u},parts:c}=e;if(null==l)return void u.appendChild(n);const d=document.createTreeWalker(u,t,null,!1);let s=o(c),i=0,a=-1;for(;d.nextNode();){for(a++,d.currentNode===l&&(i=r(n),l.parentNode.insertBefore(n,l));-1!==s&&c[s].index===a;){if(i>0){for(;-1!==s;)c[s].index+=i,s=o(c,s);return}s=o(c,s)}}}
7
+ },{"./template.js":"Av0K"}],"uWh2":[function(require,module,exports) {
8
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isDirective=exports.directive=void 0;const e=new WeakMap,t=t=>(...s)=>{const i=t(...s);return e.set(i,!0),i};exports.directive=t;const s=t=>"function"==typeof t&&e.has(t);exports.isDirective=s;
9
+ },{}],"pnLb":[function(require,module,exports) {
10
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.nothing=exports.noChange=void 0;const e={};exports.noChange=e;const o={};exports.nothing=o;
11
+ },{}],"bn5t":[function(require,module,exports) {
12
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateInstance=void 0;var e=require("./dom.js"),t=require("./template.js");class s{constructor(e,t,s){this.__parts=[],this.template=e,this.processor=t,this.options=s}update(e){let t=0;for(const s of this.__parts)void 0!==s&&s.setValue(e[t]),t++;for(const s of this.__parts)void 0!==s&&s.commit()}_clone(){const s=e.isCEPolyfill?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),o=[],r=this.template.parts,n=document.createTreeWalker(s,133,null,!1);let i,p=0,l=0,a=n.nextNode();for(;p<r.length;)if(i=r[p],(0,t.isTemplatePartActive)(i)){for(;l<i.index;)l++,"TEMPLATE"===a.nodeName&&(o.push(a),n.currentNode=a.content),null===(a=n.nextNode())&&(n.currentNode=o.pop(),a=n.nextNode());if("node"===i.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(a.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,i.name,i.strings,this.options));p++}else this.__parts.push(void 0),p++;return e.isCEPolyfill&&(document.adoptNode(s),customElements.upgrade(s)),s}}exports.TemplateInstance=s;
13
+ },{"./dom.js":"ytxR","./template.js":"Av0K"}],"cVNN":[function(require,module,exports) {
14
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SVGTemplateResult=exports.TemplateResult=void 0;var e=require("./dom.js"),t=require("./template.js");const s=` ${t.marker} `;class r{constructor(e,t,s,r){this.strings=e,this.values=t,this.type=s,this.processor=r}getHTML(){const e=this.strings.length-1;let r="",n=!1;for(let l=0;l<e;l++){const e=this.strings[l],i=e.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===e.indexOf("--\x3e",i+1);const o=t.lastAttributeNameRegex.exec(e);r+=null===o?e+(n?s:t.nodeMarker):e.substr(0,o.index)+o[1]+o[2]+t.boundAttributeSuffix+o[3]+t.marker}return r+=this.strings[e]}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}exports.TemplateResult=r;class n extends r{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),s=t.content,r=s.firstChild;return s.removeChild(r),(0,e.reparentNodes)(s,r.firstChild),t}}exports.SVGTemplateResult=n;
15
+ },{"./dom.js":"ytxR","./template.js":"Av0K"}],"atl2":[function(require,module,exports) {
16
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EventPart=exports.PropertyPart=exports.PropertyCommitter=exports.BooleanAttributePart=exports.NodePart=exports.AttributePart=exports.AttributeCommitter=exports.isIterable=exports.isPrimitive=void 0;var t=require("./directive.js"),e=require("./dom.js"),i=require("./part.js"),s=require("./template-instance.js"),n=require("./template-result.js"),r=require("./template.js");const o=t=>null===t||!("object"==typeof t||"function"==typeof t);exports.isPrimitive=o;const a=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);exports.isIterable=a;class h{constructor(t,e,i){this.dirty=!0,this.element=t,this.name=e,this.strings=i,this.parts=[];for(let s=0;s<i.length-1;s++)this.parts[s]=this._createPart()}_createPart(){return new l(this)}_getValue(){const t=this.strings,e=t.length-1;let i="";for(let s=0;s<e;s++){i+=t[s];const e=this.parts[s];if(void 0!==e){const t=e.value;if(o(t)||!a(t))i+="string"==typeof t?t:String(t);else for(const e of t)i+="string"==typeof e?e:String(e)}}return i+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}exports.AttributeCommitter=h;class l{constructor(t){this.value=void 0,this.committer=t}setValue(e){e===i.noChange||o(e)&&e===this.value||(this.value=e,(0,t.isDirective)(e)||(this.committer.dirty=!0))}commit(){for(;(0,t.isDirective)(this.value);){const t=this.value;this.value=i.noChange,t(this)}this.value!==i.noChange&&this.committer.commit()}}exports.AttributePart=l;class u{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild((0,r.createMarker)()),this.endNode=t.appendChild((0,r.createMarker)())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=(0,r.createMarker)()),t.__insert(this.endNode=(0,r.createMarker)())}insertAfterPart(t){t.__insert(this.startNode=(0,r.createMarker)()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(null===this.startNode.parentNode)return;for(;(0,t.isDirective)(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i.noChange,t(this)}const e=this.__pendingValue;e!==i.noChange&&(o(e)?e!==this.value&&this.__commitText(e):e instanceof n.TemplateResult?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):a(e)?this.__commitIterable(e):e===i.nothing?(this.value=i.nothing,this.clear()):this.__commitText(e))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,i="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=i:this.__commitNode(document.createTextNode(i)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof s.TemplateInstance&&this.value.template===e)this.value.update(t.values);else{const i=new s.TemplateInstance(e,t.processor,this.options),n=i._clone();i.update(t.values),this.__commitNode(n),this.value=i}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let i,s=0;for(const n of t)void 0===(i=e[s])&&(i=new u(this.options),e.push(i),0===s?i.appendIntoPart(this):i.insertAfterPart(e[s-1])),i.setValue(n),i.commit(),s++;s<e.length&&(e.length=s,this.clear(i&&i.endNode))}clear(t=this.startNode){(0,e.removeNodes)(this.startNode.parentNode,t.nextSibling,this.endNode)}}exports.NodePart=u;class d{constructor(t,e,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=i}setValue(t){this.__pendingValue=t}commit(){for(;(0,t.isDirective)(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i.noChange,t(this)}if(this.__pendingValue===i.noChange)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=i.noChange}}exports.BooleanAttributePart=d;class c extends h{constructor(t,e,i){super(t,e,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new p(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}exports.PropertyCommitter=c;class p extends l{}exports.PropertyPart=p;let _=!1;(()=>{try{const e={get capture(){return _=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(t){}})();class m{constructor(t,e,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=i,this.__boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;(0,t.isDirective)(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=i.noChange,t(this)}if(this.__pendingValue===i.noChange)return;const e=this.__pendingValue,s=this.value,n=null==e||null!=s&&(e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive),r=null!=e&&(null==s||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=v(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=i.noChange}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}exports.EventPart=m;const v=t=>t&&(_?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
17
+ },{"./directive.js":"uWh2","./dom.js":"ytxR","./part.js":"pnLb","./template-instance.js":"bn5t","./template-result.js":"cVNN","./template.js":"Av0K"}],"gbKZ":[function(require,module,exports) {
18
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.templateFactory=t,exports.templateCaches=void 0;var e=require("./template.js");function t(t){let s=r.get(t.type);void 0===s&&(s={stringsArray:new WeakMap,keyString:new Map},r.set(t.type,s));let n=s.stringsArray.get(t.strings);if(void 0!==n)return n;const a=t.strings.join(e.marker);return void 0===(n=s.keyString.get(a))&&(n=new e.Template(t,t.getTemplateElement()),s.keyString.set(a,n)),s.stringsArray.set(t.strings,n),n}const r=new Map;exports.templateCaches=r;
19
+ },{"./template.js":"Av0K"}],"Fhpq":[function(require,module,exports) {
20
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.render=exports.parts=void 0;var e=require("./dom.js"),t=require("./parts.js"),r=require("./template-factory.js");const s=new WeakMap;exports.parts=s;const o=(o,a,p)=>{let d=s.get(a);void 0===d&&((0,e.removeNodes)(a,a.firstChild),s.set(a,d=new t.NodePart(Object.assign({templateFactory:r.templateFactory},p))),d.appendInto(a)),d.setValue(o),d.commit()};exports.render=o;
21
+ },{"./dom.js":"ytxR","./parts.js":"atl2","./template-factory.js":"gbKZ"}],"LBiL":[function(require,module,exports) {
22
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultTemplateProcessor=exports.DefaultTemplateProcessor=void 0;var e=require("./parts.js");class t{handleAttributeExpressions(t,r,s,o){const a=r[0];if("."===a){return new e.PropertyCommitter(t,r.slice(1),s).parts}return"@"===a?[new e.EventPart(t,r.slice(1),o.eventContext)]:"?"===a?[new e.BooleanAttributePart(t,r.slice(1),s)]:new e.AttributeCommitter(t,r,s).parts}handleTextExpression(t){return new e.NodePart(t)}}exports.DefaultTemplateProcessor=t;const r=new t;exports.defaultTemplateProcessor=r;
23
+ },{"./parts.js":"atl2"}],"SPDu":[function(require,module,exports) {
24
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DefaultTemplateProcessor",{enumerable:!0,get:function(){return e.DefaultTemplateProcessor}}),Object.defineProperty(exports,"defaultTemplateProcessor",{enumerable:!0,get:function(){return e.defaultTemplateProcessor}}),Object.defineProperty(exports,"SVGTemplateResult",{enumerable:!0,get:function(){return t.SVGTemplateResult}}),Object.defineProperty(exports,"TemplateResult",{enumerable:!0,get:function(){return t.TemplateResult}}),Object.defineProperty(exports,"directive",{enumerable:!0,get:function(){return r.directive}}),Object.defineProperty(exports,"isDirective",{enumerable:!0,get:function(){return r.isDirective}}),Object.defineProperty(exports,"removeNodes",{enumerable:!0,get:function(){return n.removeNodes}}),Object.defineProperty(exports,"reparentNodes",{enumerable:!0,get:function(){return n.reparentNodes}}),Object.defineProperty(exports,"noChange",{enumerable:!0,get:function(){return o.noChange}}),Object.defineProperty(exports,"nothing",{enumerable:!0,get:function(){return o.nothing}}),Object.defineProperty(exports,"AttributeCommitter",{enumerable:!0,get:function(){return i.AttributeCommitter}}),Object.defineProperty(exports,"AttributePart",{enumerable:!0,get:function(){return i.AttributePart}}),Object.defineProperty(exports,"BooleanAttributePart",{enumerable:!0,get:function(){return i.BooleanAttributePart}}),Object.defineProperty(exports,"EventPart",{enumerable:!0,get:function(){return i.EventPart}}),Object.defineProperty(exports,"isIterable",{enumerable:!0,get:function(){return i.isIterable}}),Object.defineProperty(exports,"isPrimitive",{enumerable:!0,get:function(){return i.isPrimitive}}),Object.defineProperty(exports,"NodePart",{enumerable:!0,get:function(){return i.NodePart}}),Object.defineProperty(exports,"PropertyCommitter",{enumerable:!0,get:function(){return i.PropertyCommitter}}),Object.defineProperty(exports,"PropertyPart",{enumerable:!0,get:function(){return i.PropertyPart}}),Object.defineProperty(exports,"parts",{enumerable:!0,get:function(){return u.parts}}),Object.defineProperty(exports,"render",{enumerable:!0,get:function(){return u.render}}),Object.defineProperty(exports,"templateCaches",{enumerable:!0,get:function(){return p.templateCaches}}),Object.defineProperty(exports,"templateFactory",{enumerable:!0,get:function(){return p.templateFactory}}),Object.defineProperty(exports,"TemplateInstance",{enumerable:!0,get:function(){return a.TemplateInstance}}),Object.defineProperty(exports,"createMarker",{enumerable:!0,get:function(){return s.createMarker}}),Object.defineProperty(exports,"isTemplatePartActive",{enumerable:!0,get:function(){return s.isTemplatePartActive}}),Object.defineProperty(exports,"Template",{enumerable:!0,get:function(){return s.Template}}),exports.svg=exports.html=void 0;var e=require("./lib/default-template-processor.js"),t=require("./lib/template-result.js"),r=require("./lib/directive.js"),n=require("./lib/dom.js"),o=require("./lib/part.js"),i=require("./lib/parts.js"),u=require("./lib/render.js"),p=require("./lib/template-factory.js"),a=require("./lib/template-instance.js"),s=require("./lib/template.js");"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const l=(r,...n)=>new t.TemplateResult(r,n,"html",e.defaultTemplateProcessor);exports.html=l;const c=(r,...n)=>new t.SVGTemplateResult(r,n,"svg",e.defaultTemplateProcessor);exports.svg=c;
25
+ },{"./lib/default-template-processor.js":"LBiL","./lib/template-result.js":"cVNN","./lib/directive.js":"uWh2","./lib/dom.js":"ytxR","./lib/part.js":"pnLb","./lib/parts.js":"atl2","./lib/render.js":"Fhpq","./lib/template-factory.js":"gbKZ","./lib/template-instance.js":"bn5t","./lib/template.js":"Av0K"}],"eBH8":[function(require,module,exports) {
26
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"html",{enumerable:!0,get:function(){return a.html}}),Object.defineProperty(exports,"svg",{enumerable:!0,get:function(){return a.svg}}),Object.defineProperty(exports,"TemplateResult",{enumerable:!0,get:function(){return a.TemplateResult}}),exports.render=void 0;var e=require("./dom.js"),t=require("./modify-template.js"),r=require("./render.js"),n=require("./template-factory.js"),o=require("./template-instance.js"),s=require("./template.js"),a=require("../lit-html.js");const l=(e,t)=>`${e}--${t}`;let i=!0;void 0===window.ShadyCSS?i=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),i=!1);const d=e=>t=>{const r=l(t.type,e);let o=n.templateCaches.get(r);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},n.templateCaches.set(r,o));let a=o.stringsArray.get(t.strings);if(void 0!==a)return a;const d=t.strings.join(s.marker);if(void 0===(a=o.keyString.get(d))){const r=t.getTemplateElement();i&&window.ShadyCSS.prepareTemplateDom(r,e),a=new s.Template(t,r),o.keyString.set(d,a)}return o.stringsArray.set(t.strings,a),a},p=["html","svg"],c=e=>{p.forEach(r=>{const o=n.templateCaches.get(l(r,e));void 0!==o&&o.keyString.forEach(e=>{const{element:{content:r}}=e,n=new Set;Array.from(r.querySelectorAll("style")).forEach(e=>{n.add(e)}),(0,t.removeNodesFromTemplate)(e,n)})})},m=new Set,y=(e,r,n)=>{m.add(e);const o=n?n.element:document.createElement("template"),s=r.querySelectorAll("style"),{length:a}=s;if(0===a)return void window.ShadyCSS.prepareTemplateStyles(o,e);const l=document.createElement("style");for(let t=0;t<a;t++){const e=s[t];e.parentNode.removeChild(e),l.textContent+=e.textContent}c(e);const i=o.content;n?(0,t.insertNodeIntoTemplate)(n,l,i.firstChild):i.insertBefore(l,i.firstChild),window.ShadyCSS.prepareTemplateStyles(o,e);const d=i.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==d)r.insertBefore(d.cloneNode(!0),r.firstChild);else if(n){i.insertBefore(l,i.firstChild);const e=new Set;e.add(l),(0,t.removeNodesFromTemplate)(n,e)}},S=(t,n,s)=>{if(!s||"object"!=typeof s||!s.scopeName)throw new Error("The `scopeName` option is required.");const a=s.scopeName,l=r.parts.has(n),p=i&&11===n.nodeType&&!!n.host,c=p&&!m.has(a),S=c?document.createDocumentFragment():n;if((0,r.render)(t,S,Object.assign({templateFactory:d(a)},s)),c){const t=r.parts.get(S);r.parts.delete(S);const s=t.value instanceof o.TemplateInstance?t.value.template:void 0;y(a,S,s),(0,e.removeNodes)(n,n.firstChild),n.appendChild(S),r.parts.set(n,t)}!l&&p&&window.ShadyCSS.styleElement(n.host)};exports.render=S;
27
+ },{"./dom.js":"ytxR","./modify-template.js":"NXoq","./render.js":"Fhpq","./template-factory.js":"gbKZ","./template-instance.js":"bn5t","./template.js":"Av0K","../lit-html.js":"SPDu"}],"fKvB":[function(require,module,exports) {
28
+ "use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.UpdatingElement=exports.notEqual=exports.defaultConverter=void 0,window.JSCompiler_renameProperty=((t,e)=>t);const e={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}};exports.defaultConverter=e;const r=(t,e)=>e!==t&&(e==e||t==t);exports.notEqual=r;const s={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:r},i=1,a=4,o=8,p=16,n="finalized";class h extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,r)=>{const s=this._attributeNameForProperty(r,e);void 0!==s&&(this._attributeToPropertyMap.set(s,r),t.push(s))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=s){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const r="symbol"==typeof t?Symbol():`__${t}`,i=this.getPropertyDescriptor(t,r,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(r){const s=this[t];this[e]=r,this._requestUpdate(t,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||s}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(n)||t.finalize(),this[n]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const r of e)this.createProperty(r,t[r])}}static _attributeNameForProperty(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,s=r){return s(t,e)}static _propertyValueFromAttribute(t,r){const s=r.type,i=r.converter||e,a="function"==typeof i?i:i.fromAttribute;return a?a(t,s):t}static _propertyValueToAttribute(t,r){if(void 0===r.reflect)return;const s=r.type,i=r.converter;return(i&&i.toAttribute||e.toAttribute)(t,s)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,r){e!==r&&this._attributeToProperty(t,r)}_propertyToAttribute(t,e,r=s){const i=this.constructor,a=i._attributeNameForProperty(t,r);if(void 0!==a){const t=i._propertyValueToAttribute(e,r);if(void 0===t)return;this._updateState=this._updateState|o,null==t?this.removeAttribute(a):this.setAttribute(a,t),this._updateState=this._updateState&~o}}_attributeToProperty(t,e){if(this._updateState&o)return;const r=this.constructor,s=r._attributeToPropertyMap.get(t);if(void 0!==s){const t=r.getPropertyOptions(s);this._updateState=this._updateState|p,this[s]=r._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~p}}_requestUpdate(t,e){let r=!0;if(void 0!==t){const s=this.constructor,i=s.getPropertyOptions(t);s._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==i.reflect||this._updateState&p||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=this._updateState|a;try{await this._updatePromise}catch(e){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return this._updateState&a}get hasUpdated(){return this._updateState&i}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(r){throw t=!1,this._markUpdated(),r}t&&(this._updateState&i||(this._updateState=this._updateState|i,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~a}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}exports.UpdatingElement=h,h[t=n]=!0;
29
+ },{}],"FzpZ":[function(require,module,exports) {
30
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.property=i,exports.internalProperty=s,exports.query=c,exports.queryAsync=u,exports.queryAll=l,exports.eventOptions=f,exports.queryAssignedNodes=m,exports.customElement=void 0;const e=(e,t)=>(window.customElements.define(e,t),t),t=(e,t)=>{const{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){window.customElements.define(e,t)}}},r=r=>n=>"function"==typeof n?e(r,n):t(r,n);exports.customElement=r;const n=(e,t)=>"method"!==t.kind||!t.descriptor||"value"in t.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}:Object.assign(Object.assign({},t),{finisher(r){r.createProperty(t.key,e)}}),o=(e,t,r)=>{t.constructor.createProperty(r,e)};function i(e){return(t,r)=>void 0!==r?o(e,t,r):n(e,t)}function s(e){return i({attribute:!1,hasChanged:null==e?void 0:e.hasChanged})}function c(e){return(t,r)=>{const n={get(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};return void 0!==r?a(n,t,r):d(n,t)}}function u(e){return(t,r)=>{const n={async get(){return await this.updateComplete,this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};return void 0!==r?a(n,t,r):d(n,t)}}function l(e){return(t,r)=>{const n={get(){return this.renderRoot.querySelectorAll(e)},enumerable:!0,configurable:!0};return void 0!==r?a(n,t,r):d(n,t)}}const a=(e,t,r)=>{Object.defineProperty(t,r,e)},d=(e,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:e}),p=(e,t)=>Object.assign(Object.assign({},t),{finisher(r){Object.assign(r.prototype[t.key],e)}}),y=(e,t,r)=>{Object.assign(t[r],e)};function f(e){return(t,r)=>void 0!==r?y(e,t,r):p(e,t)}function m(e="",t=!1){return(r,n)=>{const o={get(){const r=`slot${e?`[name=${e}]`:""}`,n=this.renderRoot.querySelector(r);return n&&n.assignedNodes({flatten:t})},enumerable:!0,configurable:!0};return void 0!==n?a(o,r,n):d(o,r)}}
31
+ },{}],"ZFCR":[function(require,module,exports) {
32
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.css=exports.unsafeCSS=exports.CSSResult=exports.supportsAdoptingStyleSheets=void 0;const e="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;exports.supportsAdoptingStyleSheets=e;const t=Symbol();class s{constructor(e,s){if(s!==t)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(e?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}exports.CSSResult=s;const r=e=>new s(String(e),t);exports.unsafeCSS=r;const o=e=>{if(e instanceof s)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)},n=(e,...r)=>{const n=r.reduce((t,s,r)=>t+o(s)+e[r+1],e[0]);return new s(n,t)};exports.css=n;
33
+ },{}],"bhxD":[function(require,module,exports) {
34
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={LitElement:!0,html:!0,svg:!0,TemplateResult:!0,SVGTemplateResult:!0};Object.defineProperty(exports,"html",{enumerable:!0,get:function(){return n.html}}),Object.defineProperty(exports,"svg",{enumerable:!0,get:function(){return n.svg}}),Object.defineProperty(exports,"TemplateResult",{enumerable:!0,get:function(){return n.TemplateResult}}),Object.defineProperty(exports,"SVGTemplateResult",{enumerable:!0,get:function(){return n.SVGTemplateResult}}),exports.LitElement=void 0;var t=require("lit-html/lib/shady-render.js"),r=require("./lib/updating-element.js");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var s=require("./lib/decorators.js");Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return s[t]}}))});var n=require("lit-html/lit-html.js"),o=require("./lib/css-tag.js");Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return o[t]}}))}),(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const i={};class l extends r.UpdatingElement{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(void 0===e)this._styles=[];else if(Array.isArray(e)){const t=(e,r)=>e.reduceRight((e,r)=>Array.isArray(r)?t(r,e):(e.add(r),e),r),r=t(e,new Set),s=[];r.forEach(e=>s.unshift(e)),this._styles=s}else this._styles=[e]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?o.supportsAdoptingStyleSheets?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==i&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return i}}exports.LitElement=l,l.finalized=!0,l.render=t.render;
35
+ },{"lit-html/lib/shady-render.js":"eBH8","./lib/updating-element.js":"fKvB","./lib/decorators.js":"FzpZ","lit-html/lit-html.js":"SPDu","./lib/css-tag.js":"ZFCR"}],"xaRr":[function(require,module,exports) {
36
+ var define;
37
+ var global = arguments[3];
38
+ var define,global=arguments[3];"undefined"!=typeof navigator&&function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)}(window||{},function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===typeof t&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e,this.currentTime=currentTime}roundValues(!1);var createElementID=(_count=0,function(){return"__lottie_element_"+ ++_count}),_count;function HSVtoRGB(t,e,r){var i,s,a,n,o,h,l,p;switch(h=r*(1-e),l=r*(1-(o=6*t-(n=Math.floor(6*t)))*e),p=r*(1-(1-o)*e),n%6){case 0:i=r,s=p,a=h;break;case 1:i=l,s=r,a=h;break;case 2:i=h,s=r,a=p;break;case 3:i=h,s=l,a=r;break;case 4:i=p,s=h,a=r;break;case 5:i=r,s=h,a=l}return[i,s,a]}function RGBtoHSV(t,e,r){var i,s=Math.max(t,e,r),a=Math.min(t,e,r),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:i=0;break;case t:i=e-r+n*(e<r?6:0),i/=6*n;break;case e:i=r-t+2*n,i/=6*n;break;case r:i=t-e+4*n,i/=6*n}return[i,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t].length,i=0;i<r;i++)this._cbs[t][i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray=function(){return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var r,i=0,s=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)s.push(r);return s}}();function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums,Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function n(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(1,0,0,0,0,i,-s,0,0,s,i,0,0,0,0,1)}function o(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,0,s,0,0,1,0,0,-s,0,i,0,0,0,0,1)}function h(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(r(t),r(e))}function f(i,s){var a=t(s),n=e(s);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function m(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function c(t,e,r,i,s,a,n,o,h,l,p,f,m,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=m,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function u(t,e,r,i,s,a,n,o,h,l,p,f,m,c,d,u){var y=this.props;if(1===t&&0===e&&0===r&&0===i&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===f)return y[12]=y[12]*t+y[15]*m,y[13]=y[13]*a+y[15]*c,y[14]=y[14]*p+y[15]*d,y[15]=y[15]*u,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],E=y[3],x=y[4],S=y[5],P=y[6],_=y[7],C=y[8],A=y[9],T=y[10],k=y[11],M=y[12],D=y[13],w=y[14],F=y[15];return y[0]=g*t+v*s+b*h+E*m,y[1]=g*e+v*a+b*l+E*c,y[2]=g*r+v*n+b*p+E*d,y[3]=g*i+v*o+b*f+E*u,y[4]=x*t+S*s+P*h+_*m,y[5]=x*e+S*a+P*l+_*c,y[6]=x*r+S*n+P*p+_*d,y[7]=x*i+S*o+P*f+_*u,y[8]=C*t+A*s+T*h+k*m,y[9]=C*e+A*a+T*l+k*c,y[10]=C*r+A*n+T*p+k*d,y[11]=C*i+A*o+T*f+k*u,y[12]=M*t+D*s+w*h+F*m,y[13]=M*e+D*a+w*l+F*c,y[14]=M*r+D*n+w*p+F*d,y[15]=M*i+D*o+w*f+F*u,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function E(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function x(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function S(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function P(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=r,o.props[4]=i,o.props[5]=s,o.props[12]=a,o.props[13]=n,o}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=C(t[e]);return i}function T(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var s=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i[0]=t[0]*s+t[1]*n+h,i[1]=t[0]*a+t[1]*o+l,i[2]=e[0]*s+e[1]*n+h,i[3]=e[0]*a+e[1]*o+l,i[4]=r[0]*s+r[1]*n+h,i[5]=r[0]*a+r[1]*o+l}return i}function k(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function D(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=i(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function w(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function F(){var t=this.props;return"matrix("+w(t[0])+","+w(t[1])+","+w(t[4])+","+w(t[5])+","+w(t[12])+","+w(t[13])+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=m,this.setTransform=c,this.translate=d,this.transform=u,this.applyToPoint=E,this.applyToX=x,this.applyToY=S,this.applyToZ=P,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=M,this.toCSS=D,this.to2dCSS=F,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,e){var r,i=this,s=256,a=6,n="random",o=e.pow(s,a),h=e.pow(2,52),l=2*h,p=s-1;function f(t){var e,r=t.length,i=this,a=0,n=i.i=i.j=0,o=i.S=[];for(r||(t=[r++]);a<s;)o[a]=a++;for(a=0;a<s;a++)o[a]=o[n=p&n+t[a%r]+(e=o[a])],o[n]=e;i.g=function(t){for(var e,r=0,a=i.i,n=i.j,o=i.S;t--;)e=o[a=p&a+1],r=r*s+o[p&(o[a]=o[n=p&n+e])+(o[n]=e)];return i.i=a,i.j=n,r}}function m(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){for(var r,i=t+"",s=0;s<i.length;)e[p&s]=p&(r^=19*e[p&s])+i.charCodeAt(s++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(p,u,y){var g=[],v=c(function t(e,r){var i,s=[],a=typeof e;if(r&&"object"==a)for(i in e)try{s.push(t(e[i],r-1))}catch(n){}return s.length?s:"string"==a?e:e+"\0"}((u=!0===u?{entropy:!0}:u||{}).entropy?[p,d(t)]:null===p?function(){try{if(r)return d(r.randomBytes(s));var e=new Uint8Array(s);return(i.crypto||i.msCrypto).getRandomValues(e),d(e)}catch(o){var a=i.navigator,n=a&&a.plugins;return[+new Date,i,n,i.screen,d(t)]}}():p,3),g),b=new f(g),E=function(){for(var t=b.g(a),e=o,r=0;t<h;)t=(t+r)*s,e*=s,r=b.g(1);for(;t>=l;)t/=2,e/=2,r>>>=1;return(t+r)/e};return E.int32=function(){return 0|b.g(4)},E.quick=function(){return b.g(4)/4294967296},E.double=E,c(d(b.S),t),(u.pass||y||function(t,r,i,s){return s&&(s.S&&m(s,b),t.state=function(){return m(b,{})}),i?(e[n]=t,r):t})(E,v,"global"in u?u.global:this==e,u.state)},c(e.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,r,i,s,a){var n=a||("bez_"+t+"_"+r+"_"+i+"_"+s).replace(/\./g,"p");if(e[n])return e[n];var o=new c([t,r,i,s]);return e[n]=o,o}},e={};var r=4,i=1e-7,s=10,a=11,n=1/(a-1),o="function"==typeof Float32Array;function h(t,e){return 1-3*e+3*t}function l(t,e){return 3*e-6*t}function p(t){return 3*t}function f(t,e,r){return((h(e,r)*t+l(e,r))*t+p(e))*t}function m(t,e,r){return 3*h(e,r)*t*t+2*l(e,r)*t+p(e)}function c(t){this._p=t,this._mSampleValues=o?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===r&&i===s?t:0===t?0:1===t?1:f(this._getTForX(t),r,s)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<a;++r)this._mSampleValues[r]=f(r*n,t,e)},_getTForX:function(t){for(var e=this._p[0],o=this._p[2],h=this._mSampleValues,l=0,p=1,c=a-1;p!==c&&h[p]<=t;++p)l+=n;var d=l+(t-h[--p])/(h[p+1]-h[p])*n,u=m(d,e,o);return u>=.001?function(t,e,i,s){for(var a=0;a<r;++a){var n=m(e,i,s);if(0===n)return e;e-=(f(e,i,s)-t)/n}return e}(t,d,e,o):0===u?d:function(t,e,r,a,n){var o,h,l=0;do{(o=f(h=e+(r-e)/2,a,n)-t)>0?r=h:e=h}while(Math.abs(o)>i&&++l<s);return h}(t,l,l+n,e,o)}},t}();function extendPrototype(t,e){var r,i,s=t.length;for(r=0;r<s;r+=1)for(var a in i=t[r].prototype)i.hasOwnProperty(a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){Math;function t(t,e,r,i,s,a){var n=t*i+e*s+r*a-s*i-a*t-r*e;return n>-.001&&n<.001}var e=function(t,e,r,i){var s,a,n,o,h,l,p=defaultCurveSegments,f=0,m=[],c=[],d=bezier_length_pool.newElement();for(n=r.length,s=0;s<p;s+=1){for(h=s/(p-1),l=0,a=0;a<n;a+=1)o=bm_pow(1-h,3)*t[a]+3*bm_pow(1-h,2)*h*r[a]+3*(1-h)*bm_pow(h,2)*i[a]+bm_pow(h,3)*e[a],m[a]=o,null!==c[a]&&(l+=bm_pow(m[a]-c[a],2)),c[a]=m[a];l&&(f+=l=bm_sqrt(l)),d.percents[s]=h,d.lengths[s]=f}return d.addedLength=f,d};function r(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(e,a,n,o){var h=(e[0]+"_"+e[1]+"_"+a[0]+"_"+a[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[h]){var l,p,f,m,c,d,u,y=defaultCurveSegments,g=0,v=null;2===e.length&&(e[0]!=a[0]||e[1]!=a[1])&&t(e[0],e[1],a[0],a[1],e[0]+n[0],e[1]+n[1])&&t(e[0],e[1],a[0],a[1],a[0]+o[0],a[1]+o[1])&&(y=2);var b=new r(y);for(f=n.length,l=0;l<y;l+=1){for(u=createSizedArray(f),c=l/(y-1),d=0,p=0;p<f;p+=1)m=bm_pow(1-c,3)*e[p]+3*bm_pow(1-c,2)*c*(e[p]+n[p])+3*(1-c)*bm_pow(c,2)*(a[p]+o[p])+bm_pow(c,3)*a[p],u[p]=m,null!==v&&(d+=bm_pow(u[p]-v[p],2));g+=d=bm_sqrt(d),b.points[l]=new i(d,u),v=u}b.segmentLength=g,s[h]=b}return s[h]});function n(t,e){var r=e.percents,i=e.lengths,s=r.length,a=bm_floor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===i[a])return r[a];for(var h=i[a]>n?-1:1,l=!0;l;)if(i[a]<=n&&i[a+1]>n?(o=(n-i[a])/(i[a+1]-i[a]),l=!1):a+=h,a<0||a>=s-1){if(a===s-1)return r[a];l=!1}return r[a]+(r[a+1]-r[a])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(t){var r,i=segments_length_pool.newElement(),s=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(r=0;r<h-1;r+=1)l[r]=e(a[r],a[r+1],n[r],o[r+1]),p+=l[r].addedLength;return s&&h&&(l[r]=e(a[r],a[0],n[r],o[0]),p+=l[r].addedLength),i.totalLength=p,i},getNewSegment:function(t,e,r,i,s,a,h){var l,p=n(s=s<0?0:s>1?1:s,h),f=n(a=a>1?1:a,h),m=t.length,c=1-p,d=1-f,u=c*c*c,y=p*c*c*3,g=p*p*c*3,v=p*p*p,b=c*c*d,E=p*c*d+c*p*d+c*c*f,x=p*p*d+c*p*f+p*c*f,S=p*p*f,P=c*d*d,_=p*d*d+c*f*d+c*d*f,C=p*f*d+c*f*f+p*d*f,A=p*f*f,T=d*d*d,k=f*d*d+d*f*d+d*d*f,M=f*f*d+d*f*f+f*d*f,D=f*f*f;for(l=0;l<m;l+=1)o[4*l]=Math.round(1e3*(u*t[l]+y*r[l]+g*i[l]+v*e[l]))/1e3,o[4*l+1]=Math.round(1e3*(b*t[l]+E*r[l]+x*i[l]+S*e[l]))/1e3,o[4*l+2]=Math.round(1e3*(P*t[l]+_*r[l]+C*i[l]+A*e[l]))/1e3,o[4*l+3]=Math.round(1e3*(T*t[l]+k*r[l]+M*i[l]+D*e[l]))/1e3;return o},getPointInSegment:function(t,e,r,i,s,a){var o=n(s,a),h=1-o;return[Math.round(1e3*(h*h*h*t[0]+(o*h*h+h*o*h+h*h*o)*r[0]+(o*o*h+h*o*o+o*h*o)*i[0]+o*o*o*e[0]))/1e3,Math.round(1e3*(h*h*h*t[1]+(o*h*h+h*o*h+h*h*o)*r[1]+(o*o*h+h*o*o+o*h*o)*i[1]+o*o*o*e[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(e,r,i,s,a,n,o,h,l){if(0===i&&0===n&&0===l)return t(e,r,s,a,o,h);var p,f=Math.sqrt(Math.pow(s-e,2)+Math.pow(a-r,2)+Math.pow(n-i,2)),m=Math.sqrt(Math.pow(o-e,2)+Math.pow(h-r,2)+Math.pow(l-i,2)),c=Math.sqrt(Math.pow(o-s,2)+Math.pow(h-a,2)+Math.pow(l-n,2));return(p=f>m?f>c?f-m-c:c-m-f:c>m?c-m-f:m-f-c)>-1e-4&&p<1e-4}}}!function(){for(var t=0,e=["ms","moz","webkit","o"],r=0;r<e.length&&!window.requestAnimationFrame;++r)window.requestAnimationFrame=window[e[r]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[r]+"CancelAnimationFrame"]||window[e[r]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,r){var i=(new Date).getTime(),s=Math.max(0,16-(i-t)),a=setTimeout(function(){e(i+s)},s);return t=i+s,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function t(s,a,n){var o,h,l,f,m,c,d=s.length;for(h=0;h<d;h+=1)if("ks"in(o=s[h])&&!o.completed){if(o.completed=!0,o.tt&&(s[h-1].td=o.tt),[],-1,o.hasMask){var u=o.masksProperties;for(f=u.length,l=0;l<f;l+=1)if(u[l].pt.k.i)i(u[l].pt.k);else for(c=u[l].pt.k.length,m=0;m<c;m+=1)u[l].pt.k[m].s&&i(u[l].pt.k[m].s[0]),u[l].pt.k[m].e&&i(u[l].pt.k[m].e[0])}0===o.ty?(o.layers=e(o.refId,a),t(o.layers,a,n)):4===o.ty?r(o.shapes):5==o.ty&&p(o,n)}}function e(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r].layers.__used?JSON.parse(JSON.stringify(e[r].layers)):(e[r].layers.__used=!0,e[r].layers);r+=1}}function r(t){var e,s,a;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)i(t[e].ks.k);else for(a=t[e].ks.k.length,s=0;s<a;s+=1)t[e].ks.k[s].s&&i(t[e].ks.k[s].s[0]),t[e].ks.k[s].e&&i(t[e].ks.k[s].e[0]);!0}else"gr"==t[e].ty&&r(t[e].it)}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}var a,n=function(){var t=[4,4,14];function e(t){var e,r,i,s=t.length;for(e=0;e<s;e+=1)5===t[e].ty&&(r=t[e],i=void 0,i=r.t.d,r.t.d={k:[{s:i,t:0}]})}return function(r){if(s(t,r.v)&&(e(r.layers),r.assets)){var i,a=r.assets.length;for(i=0;i<a;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),o=(a=[4,7,99],function(t){if(t.chars&&!s(a,t.v)){var e,r,n,o,h,l=t.chars.length;for(e=0;e<l;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(n=(h=t.chars[e].data.shapes[0].it).length,r=0;r<n;r+=1)(o=h[r].ks.k).__converted||(i(h[r].ks.k),o.__converted=!0)}}),h=function(){var t=[4,1,9];function e(t){var r,i,s,a=t.length;for(r=0;r<a;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(s=t[r].c.k.length,i=0;i<s;i+=1)t[r].c.k[i].s&&(t[r].c.k[i].s[0]/=255,t[r].c.k[i].s[1]/=255,t[r].c.k[i].s[2]/=255,t[r].c.k[i].s[3]/=255),t[r].c.k[i].e&&(t[r].c.k[i].e[0]/=255,t[r].c.k[i].e[1]/=255,t[r].c.k[i].e[2]/=255,t[r].c.k[i].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),l=function(){var t=[4,4,18];function e(t){var r,i,s;for(r=t.length-1;r>=0;r-=1)if("sh"==t[r].ty){if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(s=t[r].ks.k.length,i=0;i<s;i+=1)t[r].ks.k[i].s&&(t[r].ks.k[i].s[0].c=t[r].closed),t[r].ks.k[i].e&&(t[r].ks.k[i].e[0].c=t[r].closed);!0}else"gr"==t[r].ty&&e(t[r].it)}function r(t){var r,i,s,a,n,o,h=t.length;for(i=0;i<h;i+=1){if((r=t[i]).hasMask){var l=r.masksProperties;for(a=l.length,s=0;s<a;s+=1)if(l[s].pt.k.i)l[s].pt.k.c=l[s].cl;else for(o=l[s].pt.k.length,n=0;n<o;n+=1)l[s].pt.k[n].s&&(l[s].pt.k[n].s[0].c=l[s].cl),l[s].pt.k[n].e&&(l[s].pt.k[n].e[0].c=l[s].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function p(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var f={completeData:function(e,r){e.__complete||(h(e),n(e),o(e),l(e),t(e.layers,e.assets,r),e.__complete=!0)}};return f.checkColors=h,f.checkChars=o,f.checkShapes=l,f.completeLayers=t,f}var dataManager=dataFunctionManager(),FontManager=function(){var t=5e3,e={w:0,size:0,shapes:[]},r=[];function i(t,e){var r=createTag("span");r.style.fontFamily=e;var i=createTag("span");i.innerHTML="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var s=i.offsetWidth;return i.style.fontFamily=t+", "+e,{node:i,w:s,parent:r}}function s(t,e){var r=createNS("text");return r.style.fontSize="100px",r.setAttribute("font-family",e.fFamily),r.setAttribute("font-style",e.fStyle),r.setAttribute("font-weight",e.fWeight),r.textContent="1",e.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",e.fClass)):r.style.fontFamily=e.fFamily,t.appendChild(r),createTag("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,r}r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var a=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now()};return a.getCombinedCharacterCodes=function(){return r},a.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);var e,r,i,s=t.length,a=this.chars.length;for(e=0;e<s;e+=1){for(r=0,i=!1;r<a;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),a+=1)}}},a.prototype.addFonts=function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var r,a=t.list,n=a.length,o=n;for(r=0;r<n;r+=1){var h,l,p=!0;if(a[r].loaded=!1,a[r].monoCase=i(a[r].fFamily,"monospace"),a[r].sansCase=i(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(p=!1),p){var f=createTag("style");f.setAttribute("f-forigin",a[r].fOrigin),f.setAttribute("f-origin",a[r].origin),f.setAttribute("f-family",a[r].fFamily),f.type="text/css",f.innerHTML="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",e.appendChild(f)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<h.length;l++)-1!==h[l].href.indexOf(a[r].fPath)&&(p=!1);if(p){var m=createTag("link");m.setAttribute("f-forigin",a[r].fOrigin),m.setAttribute("f-origin",a[r].origin),m.type="text/css",m.rel="stylesheet",m.href=a[r].fPath,document.body.appendChild(m)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<h.length;l++)a[r].fPath===h[l].src&&(p=!1);if(p){var c=createTag("link");c.setAttribute("f-forigin",a[r].fOrigin),c.setAttribute("f-origin",a[r].origin),c.setAttribute("rel","stylesheet"),c.setAttribute("href",a[r].fPath),e.appendChild(c)}}}else a[r].loaded=!0,o-=1;a[r].helper=s(e,a[r]),a[r].cache={},this.fonts.push(a[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},a.prototype.getCharData=function(t,r,i){for(var s=0,a=this.chars.length;s<a;){if(this.chars[s].ch===t&&this.chars[s].style===r&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",t,r,i),e},a.prototype.getFontByName=function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},a.prototype.measureText=function(t,e,r){var i=this.getFontByName(e),s=t.charCodeAt(0);if(!i.cache[s+1]){var a=i.helper;if(" "===t){a.textContent="|"+t+"|";var n=a.getComputedTextLength();a.textContent="||";var o=a.getComputedTextLength();i.cache[s+1]=(n-o)/100}else a.textContent=t,i.cache[s+1]=a.getComputedTextLength()/100}return i.cache[s+1]*r},a.prototype.checkLoadedFonts=function(){var e,r,i,s=this.fonts.length,a=s;for(e=0;e<s;e+=1)this.fonts[e].loaded?a-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(r=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,r.offsetWidth!==i?(a-=1,this.fonts[e].loaded=!0):(r=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,r.offsetWidth!==i&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFonts.bind(this),20):setTimeout(function(){this.isLoaded=!0}.bind(this),0)},a.prototype.loaded=function(){return this.isLoaded},a}(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,s=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var a,n,o,h,l,p,f,m,c=e.lastIndex,d=c,u=this.keyframes.length-1,y=!0;y;){if(a=this.keyframes[d],n=this.keyframes[d+1],d===u-1&&t>=n.t-s){a.h&&(a=n),c=0;break}if(n.t-s>t){c=d;break}d<u-1?d+=1:(c=0,y=!1)}var g,v,b,E,x,S,P,_,C,A,T=n.t-s,k=a.t-s;if(a.to){a.bezierData||(a.bezierData=bez.buildBezierData(a.s,n.s||a.e,a.to,a.ti));var M=a.bezierData;if(t>=T||t<k){var D=t>=T?M.points.length-1:0;for(h=M.points[D].point.length,o=0;o<h;o+=1)r[o]=M.points[D].point[o]}else{a.__fnct?m=a.__fnct:(m=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,a.__fnct=m),l=m((t-k)/(T-k));var w,F=M.segmentLength*l,I=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(f=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,y=!0,p=M.points.length;y;){if(I+=M.points[f].partialLength,0===F||0===l||f===M.points.length-1){for(h=M.points[f].point.length,o=0;o<h;o+=1)r[o]=M.points[f].point[o];break}if(F>=I&&F<I+M.points[f+1].partialLength){for(w=(F-I)/M.points[f+1].partialLength,h=M.points[f].point.length,o=0;o<h;o+=1)r[o]=M.points[f].point[o]+(M.points[f+1].point[o]-M.points[f].point[o])*w;break}f<p-1?f+=1:y=!1}e._lastPoint=f,e._lastAddedLength=I-M.points[f].partialLength,e._lastKeyframeIndex=d}}else{var V,R,B,L,G;if(u=a.s.length,g=n.s||a.e,this.sh&&1!==a.h)if(t>=T)r[0]=g[0],r[1]=g[1],r[2]=g[2];else if(t<=k)r[0]=a.s[0],r[1]=a.s[1],r[2]=a.s[2];else{var z=i(a.s),N=i(g);v=r,b=function(t,e,r){var i,s,a,n,o,h=[],l=t[0],p=t[1],f=t[2],m=t[3],c=e[0],d=e[1],u=e[2],y=e[3];(s=l*c+p*d+f*u+m*y)<0&&(s=-s,c=-c,d=-d,u=-u,y=-y);1-s>1e-6?(i=Math.acos(s),a=Math.sin(i),n=Math.sin((1-r)*i)/a,o=Math.sin(r*i)/a):(n=1-r,o=r);return h[0]=n*l+o*c,h[1]=n*p+o*d,h[2]=n*f+o*u,h[3]=n*m+o*y,h}(z,N,(t-k)/(T-k)),E=b[0],x=b[1],S=b[2],P=b[3],_=Math.atan2(2*x*P-2*E*S,1-2*x*x-2*S*S),C=Math.asin(2*E*x+2*S*P),A=Math.atan2(2*E*P-2*x*S,1-2*E*E-2*S*S),v[0]=_/degToRads,v[1]=C/degToRads,v[2]=A/degToRads}else for(d=0;d<u;d+=1)1!==a.h&&(t>=T?l=1:t<k?l=0:(a.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[d]?m=a.__fnct[d]:(V=void 0===a.o.x[d]?a.o.x[0]:a.o.x[d],R=void 0===a.o.y[d]?a.o.y[0]:a.o.y[d],B=void 0===a.i.x[d]?a.i.x[0]:a.i.x[d],L=void 0===a.i.y[d]?a.i.y[0]:a.i.y[d],m=BezierFactory.getBezierEasing(V,R,B,L).get,a.__fnct[d]=m)):a.__fnct?m=a.__fnct:(V=a.o.x,R=a.o.y,B=a.i.x,L=a.i.y,m=BezierFactory.getBezierEasing(V,R,B,L).get,a.__fnct=m),l=m((t-k)/(T-k)))),g=n.s||a.e,G=1===a.h?a.s[d]:a.s[d]+(g[d]-a.s[d])*l,"multidimensional"===this.propType?r[d]=G:r=G}return e.lastIndex=c,r}function i(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(r/2),n=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(r/2),l=Math.sin(i/2);return[o*h*n+s*a*l,o*a*n+s*h*l,s*h*n-o*a*l,s*a*n-o*h*l]}function s(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function a(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)r=t[i]*this.mult,e(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function n(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.addEffect=o}function l(t,e,r,i){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,h=e.k.length;this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h);createTypedArray("float32",h);for(this.vel=createTypedArray("float32",h),s=0;s<h;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=n,this.setVValue=a,this.addEffect=o}function p(e,i,h,l){this.propType="unidimensional",this.keyframes=i.k,this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.interpolateValue=r,this.effectsSequence=[s.bind(this)],this.addEffect=o}function f(e,i,h,l){this.propType="multidimensional";var p,f,m,c,d,u=i.k.length;for(p=0;p<u-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(f=i.k[p].s,m=i.k[p+1].s,c=i.k[p].to,d=i.k[p].ti,(2===f.length&&(f[0]!==m[0]||f[1]!==m[1])&&bez.pointOnLine2D(f[0],f[1],m[0],m[1],f[0]+c[0],f[1]+c[1])&&bez.pointOnLine2D(f[0],f[1],m[0],m[1],m[0]+d[0],m[1]+d[1])||3===f.length&&(f[0]!==m[0]||f[1]!==m[1]||f[2]!==m[2])&&bez.pointOnLine3D(f[0],f[1],f[2],m[0],m[1],m[2],f[0]+c[0],f[1]+c[1],f[2]+c[2])&&bez.pointOnLine3D(f[0],f[1],f[2],m[0],m[1],m[2],m[0]+d[0],m[1]+d[1],m[2]+d[2]))&&(i.k[p].to=null,i.k[p].ti=null),f[0]===m[0]&&f[1]===m[1]&&0===c[0]&&0===c[1]&&0===d[0]&&0===d[1]&&(2===f.length||f[2]===m[2]&&0===c[2]&&0===d[2])&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[s.bind(this)],this.keyframes=i.k,this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=n,this.setVValue=a,this.interpolateValue=r,this.frameId=-1;var y=i.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,e,r,i,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new l(t,e,i,s);else switch(r){case 0:a=new p(t,e,i,s);break;case 1:a=new f(t,e,i,s)}else a=new h(t,e,i,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}(),TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,s=e.or.k.length;for(i=0;i<s;i+=1)e.or.k[i].to=e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i,s=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/s,0),r[1]=n.getValueAtTime((n.keyframes[0].t+.01)/s,0),i[0]=a.getValueAtTime(a.keyframes[0].t/s,0),i[1]=n.getValueAtTime(n.keyframes[0].t/s,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/s,0),r[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/s,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/s,0),i[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/s,0)):(r=[a.pv,n.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/s,a.offsetTime),i[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/s,n.offsetTime))}else r=i=t;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=point_pool.newElement(),this.o[r]=point_pool.newElement(),this.i[r]=point_pool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}(!a[i]||a[i]&&!s)&&(a[i]=point_pool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a,n=this._length-1,o=this._length;for(a=s;a<o;a+=1)t.setTripleAt(e[n][0],e[n][1],i[n][0],i[n][1],r[n][0],r[n][1],a,!1),n-=1;return t};var ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i,s,a,n,o,h,l,p,f,m=r.lastIndex,c=this.keyframes;if(t<c[0].t-this.offsetTime)i=c[0].s[0],a=!0,m=0;else if(t>=c[c.length-1].t-this.offsetTime)i=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0],a=!0;else{for(var d,u,y=m,g=c.length-1,v=!0;v&&(d=c[y],!((u=c[y+1]).t-this.offsetTime>t));)y<g-1?y+=1:v=!1;if(m=y,!(a=1===d.h)){if(t>=u.t-this.offsetTime)p=1;else if(t<d.t-this.offsetTime)p=0;else{var b;d.__fnct?b=d.__fnct:(b=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=b),p=b((t-(d.t-this.offsetTime))/(u.t-this.offsetTime-(d.t-this.offsetTime)))}s=u.s?u.s[0]:d.e[0]}i=d.s[0]}for(h=e._length,l=i.i[0].length,r.lastIndex=m,n=0;n<h;n+=1)for(o=0;o<l;o+=1)f=a?i.i[n][o]:i.i[n][o]+(s.i[n][o]-i.i[n][o])*p,e.i[n][o]=f,f=a?i.o[n][o]:i.o[n][o]+(s.o[n][o]-i.o[n][o])*p,e.o[n][o]=f,f=a?i.v[n][o]:i.v[n][o]+(s.v[n][o]-i.v[n][o])*p,e.v[n][o]=f}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return s!==t&&(s<r&&e<r||s>i&&e>i)||(this._caching.lastIndex=s<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function s(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var t,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function n(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var s=3===r?e.pt.k:e.ks.k;this.v=shape_pool.clone(s),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(e,s,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?s.pt.k:s.ks.k,this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}n.prototype.interpolateShape=e,n.prototype.getValue=a,n.prototype.setVValue=s,n.prototype.addEffect=o,h.prototype.getValue=a,h.prototype.interpolateShape=e,h.prototype.setVValue=s,h.prototype.addEffect=o;var l=function(){var t=roundCorner;function e(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,a=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=r-s,n.v[1][0]=a?e+i:e-i,n.v[1][1]=r,n.v[2][0]=e,n.v[2][1]=r+s,n.v[3][0]=a?e-i:e+i,n.v[3][1]=r,n.i[0][0]=a?e-i*t:e+i*t,n.i[0][1]=r-s,n.i[1][0]=a?e+i:e-i,n.i[1][1]=r-s*t,n.i[2][0]=a?e+i*t:e-i*t,n.i[2][1]=r+s,n.i[3][0]=a?e-i:e+i,n.i[3][1]=r+s*t,n.o[0][0]=a?e+i*t:e-i*t,n.o[0][1]=r-s,n.o[1][0]=a?e+i:e-i,n.o[1][1]=r+s*t,n.o[2][0]=a?e-i*t:e+i*t,n.o[2][1]=r+s,n.o[3][0]=a?e-i:e+i,n.o[3][1]=r-s*t}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,s=2*Math.floor(this.pt.v),a=2*Math.PI/s,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,f=2*Math.PI*o/(2*s),m=2*Math.PI*h/(2*s),c=-Math.PI/2;c+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<s;t+=1){r=n?l:p,i=n?f:m;var u=(e=n?o:h)*Math.cos(c),y=e*Math.sin(c),g=0===u&&0===y?0:y/Math.sqrt(u*u+y*y),v=0===u&&0===y?0:-u/Math.sqrt(u*u+y*y);u+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(u,y,u-g*i*r*d,y-v*i*r*d,u+g*i*r*d,y+v*i*r*d,t,!0),n=!n,c+=a*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,s=this.os.v,a=2*Math.PI*i/(4*e),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=i*Math.cos(n),l=i*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),f=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-f*a*s*o,h+p*a*s*o,l+f*a*s*o,t,!0),n+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),f=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=bm_min(r,i,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+s,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-a,t+r,e+i-s,1,!0),0!==s?(this.v.setTripleAt(t+r-s,e+i,t+r-s,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+s,e+i,t-r+a,e+i,t-r+s,e+i,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-s,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+a,t-r,e-i+s,5,!0),this.v.setTripleAt(t-r+s,e-i,t-r+s,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-s,e-i,t+r-a,e-i,t+r-s,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+a,t+r,e-i+s,0,!0),0!==s?(this.v.setTripleAt(t+r-s,e-i,t+r-s,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+s,e-i,t-r+a,e-i,t-r+s,e-i,2,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+s,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-a,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r+s,e+i,t-r+s,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-s,e+i,t+r-a,e+i,t+r-s,e+i,6,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-s,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],t),t}();var m={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new h(t,e,r):new n(t,e,r):5===r?i=new f(t,e):6===r?i=new l(t,e):7===r&&(i=new p(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return n},getKeyframedConstructorFunction:function(){return h}};return m}(),ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,i){return new e[t](r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,r,i){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a,n=e.length||0;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(t,e[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:e[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,s){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n,o,h=[],l=a.length;for(n=0;n<l;n+=1){var p,f;if((o=a[n]).e*s<i||o.s*s>i+r);else p=o.s*s<=i?0:(o.s*s-i)/r,f=o.e*s>=i+r?1:(o.e*s-i)/r,h.push([p,f])}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segments_length_pool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+s)>(r=(this.e.v>1?1:this.e.v<0?0:this.e.v)+s)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var n,o,h,l,p,f,m=this.shapes.length,c=0;if(r===e)for(n=0;n<m;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection;else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(n=0;n<m;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var d,u,y=[];for(n=0;n<m;n+=1)if((d=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(i=d.shape.paths)._length,f=0,!d.shape._mdf&&d.pathsData.length)f=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)p=bez.getSegmentsLength(i.shapes[o]),l.push(p),f+=p.totalLength;d.totalShapeLength=f,d.pathsData=l}c+=f,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=e,b=r,E=0;for(n=m-1;n>=0;n-=1)if((d=this.shapes[n]).shape._mdf){for((u=d.localShapeCollection).releaseShapes(),2===this.m&&m>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,E,c),E+=d.totalShapeLength):g=[[v,b]],h=g.length,o=0;o<h;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var x=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,u),x=this.addShapes(d,y[1],S)}else this.addPaths(x,u),x=this.addShapes(d,y[1]);this.addPaths(x,u)}}d.shape.paths=u}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,s,a,n,o,h,l,p,f=t.pathsData,m=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0;for(r?(o=r._length,p=r._length):(r=shape_pool.newElement(),o=0,p=0),u.push(r),i=0;i<c;i+=1){for(h=f[i].lengths,r.c=m[i].c,a=m[i].c?h.length:h.length+1,s=1;s<a;s+=1)if(d+(n=h[s-1]).addedLength<e.s)d+=n.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(m[i].v[s-1],m[i].o[s-1],m[i].i[s],m[i].v[s],r,o,y),y=!1):(l=bez.getNewSegment(m[i].v[s-1],m[i].v[s],m[i].o[s-1],m[i].i[s],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=n.addedLength,o+=1}if(m[i].c&&h.length){if(n=h[s-1],d<=e.e){var g=h[s-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(m[i].v[s-1],m[i].o[s-1],m[i].i[0],m[i].v[0],r,o,y),y=!1):(l=bez.getNewSegment(m[i].v[s-1],m[i].v[0],m[i].o[s-1],m[i].i[0],(e.s-d)/g,(e.e-d)/g,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=n.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i<c-1&&(r=shape_pool.newElement(),y=!0,u.push(r),o=0)}return u},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r=shape_pool.newElement();r.c=t.c;var i,s,a,n,o,h,l,p,f,m,c,d,u,y=t._length,g=0;for(i=0;i<y;i+=1)s=t.v[i],n=t.o[i],a=t.i[i],s[0]===n[0]&&s[1]===n[1]&&s[0]===a[0]&&s[1]===a[1]?0!==i&&i!==y-1||t.c?(o=0===i?t.v[y-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=d=s[0]+(o[0]-s[0])*l,f=u=s[1]-(s[1]-o[1])*l,m=p-(p-s[0])*roundCorner,c=f-(f-s[1])*roundCorner,r.setTripleAt(p,f,m,c,d,u,g),g+=1,o=i===y-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=m=s[0]+(o[0]-s[0])*l,f=c=s[1]+(o[1]-s[1])*l,d=p-(p-s[0])*roundCorner,u=f-(f-s[1])*roundCorner,r.setTripleAt(p,f,m,c,d,u,g),g+=1):(r.setTripleAt(s[0],s[1],n[0],n[1],a[0],a[1],g),g+=1):(r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,s,a,n,o=this.shapes.length,h=this.rd.v;if(0!==h)for(r=0;r<o;r+=1){if((a=this.shapes[r]).shape.paths,n=a.localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)n.addShape(this.processPath(e[i],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,s,a){var n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-s),h=i.s.v[1]+(1-i.s.v[1])*(1-s);t.translate(i.p.v[0]*n*s,i.p.v[1]*n*s,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*s),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(a?1/o:o,a?1/h:h),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);for(;r>0;)r-=1,this._elements.unshift(e[r]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){t.length;var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,s,a;if(this._mdf||t){var n,o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes()}for(a=0,i=0;i<=this._groups.length-1;i+=1)n=a<o,this._groups[i]._render=n,this.changeGroupRender(this._groups[i].it,n),a+=1;this._currentCopies=o;var l=this.o.v,p=l%1,f=l>0?Math.floor(l):Math.ceil(l),m=(this.tr.v.props,this.pMatrix.props),c=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u,y,g=0;if(l>0){for(;g<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),g+=p)}else if(l<0){for(;g>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),g-=p)}for(i=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(y=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==g){for((0!==i&&1===s||i!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),u=0;u<y;u+=1)r[u]=this.matrix.props[u];this.matrix.reset()}else for(this.matrix.reset(),u=0;u<y;u+=1)r[u]=this.matrix.props[u];g+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,i+=s},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,s=4*this.data.p;for(e=0;e<s;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,e=4*this.data.p;e<s;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,r,i){if(0===e)return"";var s,a=t.o,n=t.i,o=t.v,h=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(s=1;s<e;s+=1)h+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(n[s][0],n[s][1])+" "+i.applyToPointStringified(o[s][0],o[s][1]);return r&&e&&(h+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(n[0][0],n[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e){var r=function(t,e,r){var i="";if(t.e)i=t.p;else if(e){var s=t.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),i=e+s}else i=r,i+=t.u?t.u:"",i+=t.p;return i}(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded.bind(this),!1),i.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),i.src=r;var s={img:i,assetData:e};return s}function i(t,e){this.imagesLoadedCb=e;var r,i=t.length;for(r=0;r<i;r+=1)t[r].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[r])))}function s(t){this.path=t||""}function a(t){this.assetsPath=t||""}function n(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}}function o(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}return function(){this.loadAssets=i,this.setAssetsPath=a,this.setPath=s,this.loaded=h,this.destroy=o,this.getImage=n,this._createImageData=r,this._imageLoaded=e,this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory=function(){var t={};return t.createFilter=function(t){var e=createNS("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),assetLoader=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}return{load:function(e,r,i){var s,a=new XMLHttpRequest;a.open("GET",e,!0);try{a.responseType="json"}catch(n){}a.send(),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status)s=t(a),r(s);else try{s=t(a),r(s)}catch(n){i&&i(n)}}}}}();function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function LetterProps(t,e,r,i,s,a){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,s,a,n,o,h,l,p,f,m,c,d,u,y,g,v,b,E,x=this._moreOptions.alignment.v,S=this._animatorsData,P=this._textData,_=this.mHelper,C=this._renderType,A=this.renderedLetters.length,T=(this.data,t.l);if(this._hasMaskedPath){if(E=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,M=E.v;for(this._pathData.r&&(M=M.reverse()),n={tLength:0,segments:[]},a=M._length-1,g=0,s=0;s<a;s+=1)k=bez.buildBezierData(M.v[s],M.v[s+1],[M.o[s][0]-M.v[s][0],M.o[s][1]-M.v[s][1]],[M.i[s+1][0]-M.v[s+1][0],M.i[s+1][1]-M.v[s+1][1]]),n.tLength+=k.segmentLength,n.segments.push(k),g+=k.segmentLength;s=a,E.v.c&&(k=bez.buildBezierData(M.v[s],M.v[0],[M.o[s][0]-M.v[s][0],M.o[s][1]-M.v[s][1]],[M.i[0][0]-M.v[0][0],M.i[0][1]-M.v[0][1]]),n.tLength+=k.segmentLength,n.segments.push(k),g+=k.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,o=this._pathData.f.v,m=0,f=1,l=0,p=!0,u=n.segments,o<0&&E.v.c)for(n.tLength<Math.abs(o)&&(o=-Math.abs(o)%n.tLength),f=(d=u[m=u.length-1].points).length-1;o<0;)o+=d[f].partialLength,(f-=1)<0&&(f=(d=u[m-=1].points).length-1);c=(d=u[m].points)[f-1],y=(h=d[f]).partialLength}a=T.length,r=0,i=0;var D,w,F,I,V=1.2*t.finalSize*.714,R=!0;F=S.length;var B,L,G,z,N,O,H,j,q,W,Y,X,$,K=-1,J=o,Z=m,U=f,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,st=2===t.j?-.5:-1,at=0,nt=!0;for(s=0;s<a;s+=1)if(T[s].n){for(rt&&(rt+=it);at<s;)T[at].animatorJustifyOffset=rt,at+=1;rt=0,nt=!0}else{for(w=0;w<F;w+=1)(D=S[w].a).t.propType&&(nt&&2===t.j&&(it+=D.t.v*st),(B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars)).length?rt+=D.t.v*B[0]*st:rt+=D.t.v*B*st);nt=!1}for(rt&&(rt+=it);at<s;)T[at].animatorJustifyOffset=rt,at+=1}for(s=0;s<a;s+=1){if(_.reset(),N=1,T[s].n)r=0,i+=t.yOffset,i+=R?1:0,o=J,R=!1,0,this._hasMaskedPath&&(f=U,c=(d=u[m=Z].points)[f-1],y=(h=d[f]).partialLength,l=0),$=W=X=tt="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[s].line){switch(t.j){case 1:o+=g-t.lineWidths[T[s].line];break;case 2:o+=(g-t.lineWidths[T[s].line])/2}Q=T[s].line}K!==T[s].ind&&(T[K]&&(o+=T[K].extra),o+=T[s].an/2,K=T[s].ind),o+=x[0]*T[s].an/200;var ot=0;for(w=0;w<F;w+=1)(D=S[w].a).p.propType&&((B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars)).length?ot+=D.p.v[0]*B[0]:ot+=D.p.v[0]*B),D.a.propType&&((B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars)).length?ot+=D.a.v[0]*B[0]:ot+=D.a.v[0]*B);for(p=!0;p;)l+y>=o+ot||!d?(v=(o+ot-l)/h.partialLength,G=c.point[0]+(h.point[0]-c.point[0])*v,z=c.point[1]+(h.point[1]-c.point[1])*v,_.translate(-x[0]*T[s].an/200,-x[1]*V/100),p=!1):d&&(l+=h.partialLength,(f+=1)>=d.length&&(f=0,u[m+=1]?d=u[m].points:E.v.c?(f=0,d=u[m=0].points):(l-=h.partialLength,d=null)),d&&(c=h,y=(h=d[f]).partialLength));L=T[s].an/2-T[s].add,_.translate(-L,0,0)}else L=T[s].an/2-T[s].add,_.translate(-L,0,0),_.translate(-x[0]*T[s].an/200,-x[1]*V/100,0);for(T[s].l/2,w=0;w<F;w+=1)(D=S[w].a).t.propType&&(B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?B.length?o+=D.t.v*B[0]:o+=D.t.v*B:B.length?r+=D.t.v*B[0]:r+=D.t.v*B));for(T[s].l/2,t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&(O=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(j=[t.fc[0],t.fc[1],t.fc[2]]),w=0;w<F;w+=1)(D=S[w].a).a.propType&&((B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars)).length?_.translate(-D.a.v[0]*B[0],-D.a.v[1]*B[1],D.a.v[2]*B[2]):_.translate(-D.a.v[0]*B,-D.a.v[1]*B,D.a.v[2]*B));for(w=0;w<F;w+=1)(D=S[w].a).s.propType&&((B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars)).length?_.scale(1+(D.s.v[0]-1)*B[0],1+(D.s.v[1]-1)*B[1],1):_.scale(1+(D.s.v[0]-1)*B,1+(D.s.v[1]-1)*B,1));for(w=0;w<F;w+=1){if(D=S[w].a,B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars),D.sk.propType&&(B.length?_.skewFromAxis(-D.sk.v*B[0],D.sa.v*B[1]):_.skewFromAxis(-D.sk.v*B,D.sa.v*B)),D.r.propType&&(B.length?_.rotateZ(-D.r.v*B[2]):_.rotateZ(-D.r.v*B)),D.ry.propType&&(B.length?_.rotateY(D.ry.v*B[1]):_.rotateY(D.ry.v*B)),D.rx.propType&&(B.length?_.rotateX(D.rx.v*B[0]):_.rotateX(D.rx.v*B)),D.o.propType&&(B.length?N+=(D.o.v*B[0]-N)*B[0]:N+=(D.o.v*B-N)*B),t.strokeWidthAnim&&D.sw.propType&&(B.length?H+=D.sw.v*B[0]:H+=D.sw.v*B),t.strokeColorAnim&&D.sc.propType)for(q=0;q<3;q+=1)B.length?O[q]=O[q]+(D.sc.v[q]-O[q])*B[0]:O[q]=O[q]+(D.sc.v[q]-O[q])*B;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(q=0;q<3;q+=1)B.length?j[q]=j[q]+(D.fc.v[q]-j[q])*B[0]:j[q]=j[q]+(D.fc.v[q]-j[q])*B;D.fh.propType&&(j=B.length?addHueToRGB(j,D.fh.v*B[0]):addHueToRGB(j,D.fh.v*B)),D.fs.propType&&(j=B.length?addSaturationToRGB(j,D.fs.v*B[0]):addSaturationToRGB(j,D.fs.v*B)),D.fb.propType&&(j=B.length?addBrightnessToRGB(j,D.fb.v*B[0]):addBrightnessToRGB(j,D.fb.v*B))}}for(w=0;w<F;w+=1)(D=S[w].a).p.propType&&(B=S[w].s.getMult(T[s].anIndexes[w],P.a[w].s.totalChars),this._hasMaskedPath?B.length?_.translate(0,D.p.v[1]*B[0],-D.p.v[2]*B[1]):_.translate(0,D.p.v[1]*B,-D.p.v[2]*B):B.length?_.translate(D.p.v[0]*B[0],D.p.v[1]*B[1],-D.p.v[2]*B[2]):_.translate(D.p.v[0]*B,D.p.v[1]*B,-D.p.v[2]*B));if(t.strokeWidthAnim&&(W=H<0?0:H),t.strokeColorAnim&&(Y="rgb("+Math.round(255*O[0])+","+Math.round(255*O[1])+","+Math.round(255*O[2])+")"),t.fillColorAnim&&t.fc&&(X="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),this._hasMaskedPath){if(_.translate(0,-t.ls),_.translate(0,x[1]*V/100+i,0),P.p.p){b=(h.point[1]-c.point[1])/(h.point[0]-c.point[0]);var ht=180*Math.atan(b)/Math.PI;h.point[0]<c.point[0]&&(ht+=180),_.rotate(-ht*Math.PI/180)}_.translate(G,z,0),o-=x[0]*T[s].an/200,T[s+1]&&K!==T[s+1].ind&&(o+=T[s].an/2,o+=t.tr/1e3*t.finalSize)}else{switch(_.translate(r,i,0),t.ps&&_.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:_.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line]),0,0);break;case 2:_.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line])/2,0,0)}_.translate(0,-t.ls),_.translate(L,0,0),_.translate(x[0]*T[s].an/200,x[1]*V/100,0),r+=T[s].l+t.tr/1e3*t.finalSize}"html"===C?tt=_.toCSS():"svg"===C?tt=_.to2dCSS():et=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],$=N}A<=s?(I=new LetterProps($,W,Y,X,tt,et),this.renderedLetters.push(I),A+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[s],this.lettersChangedFlag=I.update($,W,Y,X,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,r,i,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,n=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,n=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)a=r!==this.keysIndex?this.effectsSequence[i](a,a.t):this.effectsSequence[i](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&(t[r].s,!(r===i-1||t[r+1].t>e));)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r=FontManager.getCombinedCharacterCodes(),i=[],s=0,a=t.length;s<a;)e=t.charCodeAt(s),-1!==r.indexOf(e)?i[i.length-1]+=t.charAt(s):e>=55296&&e<=56319&&(e=t.charCodeAt(s+1))>=56320&&e<=57343?(i.push(t.substr(s,2)),++s):i.push(t.charAt(s)),s+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,s,a,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],f=0,m=l.m.g,c=0,d=0,u=0,y=[],g=0,v=0,b=h.getFontByName(t.f),E=0,x=b.fStyle?b.fStyle.split(" "):[],S="normal",P="normal";for(r=x.length,e=0;e<r;e+=1)switch(x[e].toLowerCase()){case"italic":P="italic";break;case"bold":S="700";break;case"black":S="900";break;case"medium":S="500";break;case"regular":case"normal":S="400";break;case"light":case"thin":S="200"}t.fWeight=b.fWeight||S,t.fStyle=P,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var _,C=t.tr/1e3*t.finalSize;if(t.sz)for(var A,T,k=!0,M=t.sz[0],D=t.sz[1];k;){A=0,g=0,r=(T=this.buildFinalText(t.t)).length,C=t.tr/1e3*t.finalSize;var w=-1;for(e=0;e<r;e+=1)_=T[e].charCodeAt(0),i=!1," "===T[e]?w=e:13!==_&&3!==_||(g=0,i=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(T[e],b.fStyle,b.fFamily),E=i?0:o.w*t.finalSize/100):E=h.measureText(T[e],t.f,t.finalSize),g+E>M&&" "!==T[e]?(-1===w?r+=1:e=w,A+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,w===e?1:0,"\r"),w=-1,g=0):(g+=E,g+=C);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&D<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=T,r=t.finalText.length,k=!1)}g=-C,E=0;var F,I=0;for(e=0;e<r;e+=1)if(i=!1,_=(F=t.finalText[e]).charCodeAt(0)," "===F?s=" ":13===_||3===_?(I=0,y.push(g),v=g>v?g:v,g=-2*C,s="",i=!0,u+=1):s=t.finalText[e],h.chars?(o=h.getCharData(F,b.fStyle,h.getFontByName(t.f).fFamily),E=i?0:o.w*t.finalSize/100):E=h.measureText(s,t.f,t.finalSize)," "===F?I+=E+C:(g+=E+C+I,I=0),p.push({l:E,an:E,add:c,n:i,anIndexes:[],val:s,line:u,animatorJustifyOffset:0}),2==m){if(c+=E,""===s||" "===s||e===r-1){for(""!==s&&" "!==s||(c-=E);d<=e;)p[d].an=c,p[d].ind=f,p[d].extra=E,d+=1;f+=1,c=0}}else if(3==m){if(c+=E,""===s||e===r-1){for(""===s&&(c-=E);d<=e;)p[d].an=c,p[d].ind=f,p[d].extra=E,d+=1;c=0,f+=1}}else p[f].ind=f,p[f].extra=0,f+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var V,R,B=l.a;n=B.length;var L,G,z=[];for(a=0;a<n;a+=1){for((V=B[a]).a.sc&&(t.strokeColorAnim=!0),V.a.sw&&(t.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(t.fillColorAnim=!0),G=0,L=V.s.b,e=0;e<r;e+=1)(R=p[e]).anIndexes[a]=G,(1==L&&""!==R.val||2==L&&""!==R.val&&" "!==R.val||3==L&&(R.n||" "==R.val||e==r-1)||4==L&&(R.n||e==r-1))&&(1===V.s.rn&&z.push(G),G+=1);l.a[a].s.totalChars=G;var N,O=-1;if(1===V.s.rn)for(e=0;e<r;e+=1)O!=(R=p[e]).anIndexes[a]&&(O=R.anIndexes[a],N=z.splice(Math.floor(Math.random()*z.length),1)[0]),R.anIndexes[a]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,a=0,n=1,o=1;this.ne.v>0?s=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,a,n,o).get,l=0,p=this.finalS,f=this.finalE,m=this.data.sh;if(2===m)l=h(l=f===p?i>=f?1:0:t(0,e(.5/(f-p)+(i-p)/(f-p),1)));else if(3===m)l=h(l=f===p?i>=f?0:1:1-t(0,e(.5/(f-p)+(i-p)/(f-p),1)));else if(4===m)f===p?l=0:(l=t(0,e(.5/(f-p)+(i-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===m){if(f===p)l=0;else{var c=f-p,d=-c/2+(i=e(t(0,i+.5-p),f-p)),u=c/2;l=Math.sqrt(1-d*d/(u*u))}l=h(l)}else 6===m?(f===p?l=0:(i=e(t(0,i+.5-p),f-p),l=(1+Math.cos(Math.PI+2*Math.PI*i/(f-p)))/2),l=h(l)):(i>=r(p)&&(l=t(0,e(i-p<0?e(f,1)-(p-i):f-i,1))),l=h(l));return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,s=this.e.v/e+r;if(i>s){var a=i;i=s,s=a}this.finalS=i,this.finalE=s}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}(),pool_factory=function(t,e,r,i){var s=0,a=t,n=createSizedArray(a);function o(){return s?n[s-=1]:e()}return{newElement:o,release:function(t){s===a&&(n=pooling.double(n),a*=2),r&&r(t),n[s]=t,s+=1}}},pooling=function(){return{double:function(t){return t.concat(createSizedArray(t.length))}}}(),point_pool=function(){return pool_factory(8,function(){return createTypedArray("float32",2)})}(),shape_pool=function(){var t=pool_factory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)point_pool.release(t.v[e]),point_pool.release(t.i[e]),point_pool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1});return t.clone=function(e){var r,i=t.newElement(),s=void 0===e._length?e.v.length:e._length;for(i.setLength(s),i.c=e.c,r=0;r<s;r+=1)i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],r);return i},t}(),shapeCollection_pool=function(){var t={newShapeCollection:function(){var t;t=e?i[e-=1]:new ShapeCollection;return t},release:function(t){var s,a=t._length;for(s=0;s<a;s+=1)shape_pool.release(t.shapes[s]);t._length=0,e===r&&(i=pooling.double(i),r*=2);i[e]=t,e+=1}},e=0,r=4,i=createSizedArray(r);return t}(),segments_length_pool=function(){return pool_factory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezier_length_pool.release(t.lengths[e]);t.lengths.length=0})}(),bezier_length_pool=function(){return pool_factory(8,function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}})}();function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=e.title,this.svgElement.appendChild(i),r+=s}if(e&&e.description){var a=createNS("desc"),n=createElementID();a.setAttribute("id",n),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+n}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!e||!1!==e.hideOnTransparent,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var n,o,h,l,p,f,m,c=this.masksProperties,d=0,u=[],y=createElementID(),g="clipPath",v="clip-path";for(i=0;i<a;i++)if(("a"!==c[i].mode&&"n"!==c[i].mode||c[i].inv||100!==c[i].o.k||c[i].o.x)&&(g="mask",v="mask"),"s"!=c[i].mode&&"i"!=c[i].mode||0!==d?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),u.push(l)),n=createNS("path"),"n"!=c[i].mode){var b;if(d+=1,n.setAttribute("fill","s"===c[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==c[i].x.k?(g="mask",v="mask",m=PropertyFactory.getProp(this.element,c[i].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(f=createNS("feMorphology")).setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),p.appendChild(f),s.appendChild(p),n.setAttribute("stroke","s"===c[i].mode?"#000000":"#ffffff")):(f=null,m=null),this.storedData[i]={elem:n,x:m,expan:f,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"==c[i].mode){h=u.length;var E=createNS("g");for(o=0;o<h;o+=1)E.appendChild(u[o]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+d),x.appendChild(n),s.appendChild(x),E.setAttribute("mask","url("+locationHref+"#"+y+"_"+d+")"),u.length=0,u.push(E)}else u.push(n);c[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),invRect:l},this.viewData[i].prop.k||this.drawPath(c[i],this.viewData[i].prop.v,this.viewData[i])}else this.viewData[i]={op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),elem:n,lastPath:""},s.appendChild(n);for(this.maskElement=createNS(g),a=u.length,i=0;i<a;i+=1)this.maskElement.appendChild(u[i]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+locationHref+"#"+y+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,s=t.length;i<s;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e--)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,r,i=t.length,s=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<s;){if(this.layers[r].id==t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(i[a]&&!0!==i[a]?(r.push(i[a]),i[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+s+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);e[t]=r,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?r.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(r)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRenderer.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRenderer.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r,i=this.contextData.saved[this.contextData.cArrPos];for(r=0;r<16;r+=1)i[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var t,e,r,i;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",n=s[0]||"xMidYMid",o=n.substr(0,4),h=n.substr(4);r=t/e,(i=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===a||i<r&&"slice"===a?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(i<r&&"meet"===a||i>r&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(i<r&&"meet"===a||i>r&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(i>r&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(i>r&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"==this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerHTML=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r++)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var s,a,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n],s=(this.layers[n].ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||s),n+=1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,s):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRenderer.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextElement(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var r=createTag("div");styleDiv(r);var i=createTag("div");styleDiv(i),"3d"===e&&(r.style.width=this.globalData.compSize.w+"px",r.style.height=this.globalData.compSize.h+"px",r.style.transformOrigin=r.style.mozTransformOrigin=r.style.webkitTransformOrigin="50% 50%",i.style.transform=i.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),r.appendChild(i);var s={container:i,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(s),s},HybridRenderer.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var s,a=this.threeDElements[r].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[r].container.insertBefore(t,s):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",this.resizerElem=e,styleDiv(e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),e.style.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var s=createNS("defs");i.appendChild(s),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,r,i,s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,n=s/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(t=s/this.globalData.compSize.w,e=s/this.globalData.compSize.w,r=0,i=(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1)this.threeDElements[t].perspectiveElem.style.perspective=this.threeDElements[t].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px"}},HybridRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var s=this.createComp(t[e],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e++)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,s,a=" M"+e.v[0][0]+","+e.v[0][1];for(s=e._length,i=1;i<s;i+=1)a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&s>1&&(a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",n)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var s,a,n=e.length;for(s=0;s<n;s+=1)a=e[s].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s,a,n,o=[];for(n=4*e.g.p,a=0;a<n;a+=4)s=createNS("stop"),i.appendChild(s),o.push(s);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+r+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,a=createNS("mask"),n=createNS("path");a.appendChild(n);var o=createElementID(),h=createElementID();a.setAttribute("id",h);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),s=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(i=4*t.g.p;i<s;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),p.push(r);n.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+o+")"),this.of=l,this.ms=a,this.ost=p,this.maskId=h,e.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(r,i,s){var a,n,o,h,l,p,f,m,c,d,u,y=i.styles.length,g=i.lvl;for(p=0;p<y;p+=1){if(h=i.sh._mdf||s,i.styles[p].lvl<g){for(m=e.reset(),d=g-i.styles[p].lvl,u=i.transformers.length-1;!h&&d>0;)h=i.transformers[u].mProps._mdf||h,d--,u--;if(h)for(d=g-i.styles[p].lvl,u=i.transformers.length-1;d>0;)c=i.transformers[u].mProps.v.props,m.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),d--,u--}else m=t;if(n=(f=i.sh.paths)._length,h){for(o="",a=0;a<n;a+=1)(l=f.shapes[a])&&l._length&&(o+=buildShapeString(l,l._length,l.c,m));i.caches[p]=o}else o=i.caches[p];i.styles[p].d+=!0===r.hd?"":o,i.styles[p]._mdf=h||i.styles[p]._mdf}}function s(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,r){n(t,e,r),o(t,e,r)}function n(t,e,r){var i,s,a,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,f=e.e.v;if(e.o._mdf||r){var m="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(m,e.o.v)}if(e.s._mdf||r){var c=1===t.t?"x1":"cx",d="x1"===c?"y1":"cy";h.setAttribute(c,p[0]),h.setAttribute(d,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(c,p[0]),e.of.setAttribute(d,p[1]))}if(e.g._cmdf||r){i=e.cst;var u=e.g.c;for(a=i.length,s=0;s<a;s+=1)(n=i[s]).setAttribute("offset",u[4*s]+"%"),n.setAttribute("stop-color","rgb("+u[4*s+1]+","+u[4*s+2]+","+u[4*s+3]+")")}if(l&&(e.g._omdf||r)){var y=e.g.o;for(a=(i=e.g._collapsable?e.cst:e.ost).length,s=0;s<a;s+=1)n=i[s],e.g._collapsable||n.setAttribute("offset",y[2*s]+"%"),n.setAttribute("stop-opacity",y[2*s+1])}if(1===t.t)(e.e._mdf||r)&&(h.setAttribute("x2",f[0]),h.setAttribute("y2",f[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",f[0]),e.of.setAttribute("y2",f[1])));else if((e.s._mdf||e.e._mdf||r)&&(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||r){o||(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)));var g=Math.atan2(f[1]-p[1],f[0]-p[0]),v=o*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),b=Math.cos(g+e.a.v)*v+p[0],E=Math.sin(g+e.a.v)*v+p[1];h.setAttribute("fx",b),h.setAttribute("fy",E),l&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",E))}}function o(t,e,r){var i=e.style,s=e.d;s&&(s._mdf||r)&&s.dashStr&&(i.pElem.setAttribute("stroke-dasharray",s.dashStr),i.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){t.ty;switch(t.ty){case"fl":return s;case"gf":return n;case"gs":return a;case"st":return o;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r}}}}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;"rc"==e.ty?s=5:"el"==e.ty?s=6:"sr"==e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n,o=r.length;for(a=0;a<o;a+=1)r[a].closed||(n={transforms:i.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(n),r[a].elements.push(n))}function BaseElement(){}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,r){this.initElement(t,e,r)}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");if(r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r),(r=createNS("feColorMatrix")).setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result","f2"),t.appendChild(r),this.matrixFilter=r,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var i,s=createNS("feMerge");t.appendChild(s),(i=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),s.appendChild(i),(i=createNS("feMergeNode")).setAttribute("in","f2"),s.appendChild(i)}}function SVGFillFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(r),this.matrixFilter=r}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");t.appendChild(r),this.feGaussianBlur=r}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.matrixFilter=i;var s=createNS("feFuncR");s.setAttribute("type","table"),i.appendChild(s),this.feFuncR=s;var a=createNS("feFuncG");a.setAttribute("type","table"),i.appendChild(a),this.feFuncG=a;var n=createNS("feFuncB");n.setAttribute("type","table"),i.appendChild(n),this.feFuncB=n}function SVGProLevelsFilter(t,e){this.filterManager=e;var r=this.filterManager.effectElements,i=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){var r=e.container.globalData.renderConfig.filterSize;t.setAttribute("x",r.x),t.setAttribute("y",r.y),t.setAttribute("width",r.width),t.setAttribute("height",r.height),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("in","SourceAlpha"),i.setAttribute("result","drop_shadow_1"),i.setAttribute("stdDeviation","0"),this.feGaussianBlur=i,t.appendChild(i);var s=createNS("feOffset");s.setAttribute("dx","25"),s.setAttribute("dy","0"),s.setAttribute("in","drop_shadow_1"),s.setAttribute("result","drop_shadow_2"),this.feOffset=s,t.appendChild(s);var a=createNS("feFlood");a.setAttribute("flood-color","#00ff00"),a.setAttribute("flood-opacity","1"),a.setAttribute("result","drop_shadow_3"),this.feFlood=a,t.appendChild(a);var n=createNS("feComposite");n.setAttribute("in","drop_shadow_3"),n.setAttribute("in2","drop_shadow_2"),n.setAttribute("operator","in"),n.setAttribute("result","drop_shadow_4"),t.appendChild(n);var o,h=createNS("feMerge");t.appendChild(h),o=createNS("feMergeNode"),h.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=h,this.originalNodeAdded=!1,h.appendChild(o)}ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var r,i=0,s=t.transforms.length,a=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=a},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return"_"+this.transform_key_count++}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,r,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var s=createNS("mask");s.setAttribute("id",this.layerId),s.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),s.appendChild(this.layerElement),i=s,this.globalData.defs.appendChild(s),featureSupport.maskType||1!=this.data.td||(s.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),i=r,s.appendChild(r),r.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var n=createNS("g");a.appendChild(n),t=createElementID(),e=filtersFactory.createFilter(t);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),e.appendChild(o);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),o.appendChild(h),this.globalData.defs.appendChild(e);var l=createNS("rect");l.setAttribute("width",this.comp.data.w),l.setAttribute("height",this.comp.data.h),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),n.setAttribute("filter","url("+locationHref+"#"+t+")"),n.appendChild(l),n.appendChild(this.layerElement),i=n,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),n.appendChild(l),r.appendChild(this.layerElement),i=r,n.appendChild(r)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var p=createNS("clipPath"),f=createNS("path");f.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var m=createElementID();if(p.setAttribute("id",m),p.appendChild(f),this.globalData.defs.appendChild(p),this.checkMasks()){var c=createNS("g");c.setAttribute("clip-path","url("+locationHref+"#"+m+")"),c.appendChild(this.layerElement),this.transformedElement=c,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+m+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,s=e.length,a="";for(r=0;r<s;r+=1)i=e[r].ks.k,a+=buildShapeString(i,i.i.length,!0,t);return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],s="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(s),s=""):s+=t[e],e+=1;return i.push(s),i},SVGTextElement.prototype.buildNewText=function(){var t,e,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var n,o=r.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l,p=this.mHelper,f="",m=this.data.singleShape,c=0,d=0,u=!0,y=r.tr/1e3*r.finalSize;if(!m||h||r.sz){var g,v,b=this.textSpans.length;for(t=0;t<e;t+=1)h&&m&&0!==t||(n=b>t?this.textSpans[t]:createNS(h?"path":"text"),b<=t&&(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=n,this.layerElement.appendChild(n)),n.style.display="inherit"),p.reset(),p.scale(r.finalSize/100,r.finalSize/100),m&&(o[t].n&&(c=-y,d+=r.yOffset,d+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,p,o[t].line,c,d),c+=o[t].l||0,c+=y),h?(l=(g=(v=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily))&&v.data||{}).shapes?g.shapes[0].it:[],m?f+=this.createPathShape(p,l):n.setAttribute("d",this.createPathShape(p,l))):(m&&n.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),n.textContent=o[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));m&&n&&n.setAttribute("d",f)}else{var E=this.textContainer,x="start";switch(r.j){case 1:x="end";break;case 2:x="middle"}E.setAttribute("text-anchor",x),E.setAttribute("letter-spacing",y);var S=this.buildTextContents(r.finalText);for(e=S.length,d=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(n=this.textSpans[t]||createNS("tspan")).textContent=S[t],n.setAttribute("x",0),n.setAttribute("y",d),n.style.display="inherit",E.appendChild(n),this.textSpans[t]=n,d+=r.finalLineHeight;this.layerElement.appendChild(E)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextElement.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=s[t],i=this.textSpans[t],r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,i,s=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(r=0;r<a;r+=1){for(i=this.stylesList[r],o=!1,n.length=0,t=0;t<s;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),s=i.pElem;if("st"===t.ty)r=new SVGStrokeStyleData(this,t,i);else if("fl"===t.ty)r=new SVGFillStyleData(this,t,i);else if("gf"===t.ty||"gs"===t.ty){r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+locationHref+"#"+r.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(s.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),s.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),s.setAttribute("fill-opacity","0"),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var s=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,s,a,n){var o,h,l,p,f,m,c=[].concat(a),d=t.length-1,u=[],y=[];for(o=d;o>=0;o-=1){if((m=this.searchProcessedElement(t[o]))?e[o]=r[m-1]:t[o]._render=n,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)m?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&i.appendChild(e[o].style.pElem),u.push(e[o].style);else if("gr"==t[o].ty){if(m)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,s+1,c,n),t[o]._render&&i.appendChild(e[o].gr)}else"tr"==t[o].ty?(m||(e[o]=this.createTransformElement(t[o],i)),p=e[o].transform,c.push(p)):"sh"==t[o].ty||"rc"==t[o].ty||"el"==t[o].ty||"sr"==t[o].ty?(m||(e[o]=this.createShapeElement(t[o],c,s)),this.setElementStyles(e[o])):"tm"==t[o].ty||"rd"==t[o].ty||"ms"==t[o].ty?(m?(f=e[o]).closed=!1:((f=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=f,this.shapeModifiers.push(f)),y.push(f)):"rp"==t[o].ty&&(m?(f=e[o]).closed=!0:(f=ShapeModifiers.getModifier(t[o].ty),e[o]=f,f.init(this,t,o,e),this.shapeModifiers.push(f),n=!1),y.push(f));this.addProcessedElement(t[o],o+1)}for(d=u.length,o=0;o<d;o+=1)u[o].closed=!0;for(d=y.length,o=0;o<d;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:e,s=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+s);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID();a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+locationHref+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,r,i,s=this.paths.length;for(e=0;e<s;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,h=i.getTotalLength();a="0 0 0 "+h*n+" ";var l,p=h*(o-n),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,m=Math.floor(p/f);for(l=0;l<m;l+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";a+="0 "+10*h+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;i.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*c[0])+","+bm_floor(255*c[1])+","+bm_floor(255*c[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+e[0],a=i[1]+" "+r[1]+" "+e[1],n=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,s){for(var a,n,o=0,h=Math.min(t,e),l=Math.max(t,e),p=Array.call(null,{length:256}),f=0,m=s-i,c=e-t;o<=256;)n=(a=o/256)<=h?c<0?s:i:a>=l?c<0?i:s:i+m*Math.pow((a-t)/c,1/r),p[f++]=n,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGEffects(t){var e,r,i=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s),n=0;for(this.filters=[],e=0;e<i;e+=1)r=null,20===t.data.ef[e].ty?(n+=1,r=new SVGTintFilter(a,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(n+=1,r=new SVGFillFilter(a,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?r=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(n+=1,r=new SVGTritoneFilter(a,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(n+=1,r=new SVGProLevelsFilter(a,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(n+=1,r=new SVGDropShadowEffect(a,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?r=new SVGMatte3Effect(a,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(n+=1,r=new SVGGaussianBlurEffect(a,t.effectsManager.effectElements[e])),r&&this.filters.push(r);n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+locationHref+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getImage(this.assetData),this.initElement(t,e,r)}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r++)"n"!==this.masksProperties[r].mode&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVEffects(){}function HBaseElement(t,e,r){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var s,a=t.ks.or.k.length;for(s=0;s<a;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,s=r.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(i=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var s=t.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),s.appendChild(a);var n=createNS("use");n.setAttribute("href","#"+r),i.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),s=this.img.width,a=this.img.height,n=s/a,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===h||n<o&&"xMidYMid slice"!==h?e=(r=a)*o:r=(e=s)/o,i.drawImage(this.img,(s-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(t){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),i=this.viewData[t].v,e=s.applyToPointArray(i.v[0][0],i.v[0][1],0),a.moveTo(e[0],e[1]);var o,h=i._length;for(o=1;o<h;o++)r=s.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=s.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"==t.ty||"st"==t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bm_floor(i.c.v[0])+","+bm_floor(i.c.v[1])+","+bm_floor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(r.lc=this.lcEnum[t.lc]||"round",r.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var s=new DashProperty(this,t.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(t){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,s){var a,n,o,h,l,p,f=t.length-1,m=[],c=[],d=[].concat(s);for(a=f;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=r[h-1]:t[a]._shouldRender=i,"fl"==t[a].ty||"st"==t[a].ty||"gf"==t[a].ty||"gs"==t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],d),m.push(e[a].style);else if("gr"==t[a].ty){if(h)for(o=e[a].it.length,n=0;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,i,d)}else"tr"==t[a].ty?(h||(p=this.createTransformElement(t[a]),e[a]=p),d.push(e[a]),this.addTransformToStyleList(e[a])):"sh"==t[a].ty||"rc"==t[a].ty||"el"==t[a].ty||"sr"==t[a].ty?h||(e[a]=this.createShapeElement(t[a])):"tm"==t[a].ty||"rd"==t[a].ty?(h?(l=e[a]).closed=!1:((l=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=l,this.shapeModifiers.push(l)),c.push(l)):"rp"==t[a].ty&&(h?(l=e[a]).closed=!0:(l=ShapeModifiers.getModifier(t[a].ty),e[a]=l,l.init(this,t,a,e),this.shapeModifiers.push(l),i=!1),c.push(l));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(m),f=c.length,a=0;a<f;a+=1)c[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,s,a,n,o,h,l=this.stylesList.length,p=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(o=(h=this.stylesList[t]).type)&&"gs"!==o||0!==h.wi)&&h.data._shouldRender&&0!==h.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),a=h.elements,"st"===o||"gs"===o?(f.strokeStyle="st"===o?h.co:h.grd,f.lineWidth=h.wi,f.lineCap=h.lc,f.lineJoin=h.lj,f.miterLimit=h.ml||0):f.fillStyle="fl"===o?h.co:h.grd,p.ctxOpacity(h.coOp),"st"!==o&&"gs"!==o&&f.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),r=a.length,e=0;e<r;e+=1){for("st"!==o&&"gs"!==o||(f.beginPath(),h.da&&(f.setLineDash(h.da),f.lineDashOffset=h.do)),s=(n=a[e].trNodes).length,i=0;i<s;i+=1)"m"==n[i].t?f.moveTo(n[i].p[0],n[i].p[1]):"c"==n[i].t?f.bezierCurveTo(n[i].pts[0],n[i].pts[1],n[i].pts[2],n[i].pts[3],n[i].pts[4],n[i].pts[5]):f.closePath();"st"!==o&&"gs"!==o||(f.stroke(),h.da&&f.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&f.fill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var s,a;for(a=t,s=e.length-1;s>=0;s-=1)"tr"==e[s].ty?(a=r[s].transform,this.renderShapeTransform(t,a)):"sh"==e[s].ty||"el"==e[s].ty||"rc"==e[s].ty||"sr"==e[s].ty?this.renderPath(e[s],r[s]):"fl"==e[s].ty?this.renderFill(e[s],r[s],a):"st"==e[s].ty?this.renderStroke(e[s],r[s],a):"gf"==e[s].ty||"gs"==e[s].ty?this.renderGradientFill(e[s],r[s],a):"gr"==e[s].ty?this.renderShape(a,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,s,a=t.trNodes,n=e.paths,o=n._length;a.length=0;var h=t.transforms.finalTransform;for(s=0;s<o;s+=1){var l=n.shapes[s];if(l&&l.v){for(i=l._length,r=1;r<i;r+=1)1===r&&a.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),a.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===i&&a.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&i&&(a.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s=this.globalData.canvasContext,a=e.s.v,n=e.e.v;if(1===t.t)m=s.createLinearGradient(a[0],a[1],n[0],n[1]);else var o=Math.sqrt(Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)),h=Math.atan2(n[1]-a[1],n[0]-a[0]),l=o*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),p=Math.cos(h+e.a.v)*l+a[0],f=Math.sin(h+e.a.v)*l+a[1],m=s.createRadialGradient(p,f,0,a[0],a[1],o);var c,d=t.g.p,u=e.g.c,y=1;for(c=0;c<d;c+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*c+1]),m.addColorStop(u[4*c]/100,"rgba("+u[4*c+1]+","+u[4*c+2]+","+u[4*c+3]+","+y+")");i.grd=m}i.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,s,a=this.globalData.fontManager.getFontByName(t.f),n=t.l,o=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var h,l,p,f,m,c,d,u,y,g,v=this.data.singleShape,b=t.tr/1e3*t.finalSize,E=0,x=0,S=!0,P=0;for(i=0;i<s;i+=1){for(l=(h=this.globalData.fontManager.getCharData(t.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&h.data||{},o.reset(),v&&n[i].n&&(E=-b,x+=t.yOffset,x+=S?1:0,S=!1),d=(m=l.shapes?l.shapes[0].it:[]).length,o.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,o,n[i].line,E,x),y=createSizedArray(d),c=0;c<d;c+=1){for(f=m[c].ks.k.i.length,u=m[c].ks.k,g=[],p=1;p<f;p+=1)1==p&&g.push(o.applyToX(u.v[0][0],u.v[0][1],0),o.applyToY(u.v[0][0],u.v[0][1],0)),g.push(o.applyToX(u.o[p-1][0],u.o[p-1][1],0),o.applyToY(u.o[p-1][0],u.o[p-1][1],0),o.applyToX(u.i[p][0],u.i[p][1],0),o.applyToY(u.i[p][0],u.i[p][1],0),o.applyToX(u.v[p][0],u.v[p][1],0),o.applyToY(u.v[p][0],u.v[p][1],0));g.push(o.applyToX(u.o[p-1][0],u.o[p-1][1],0),o.applyToY(u.o[p-1][0],u.o[p-1][1],0),o.applyToX(u.i[0][0],u.i[0][1],0),o.applyToY(u.i[0][0],u.i[0][1],0),o.applyToX(u.v[0][0],u.v[0][1],0),o.applyToY(u.v[0][0],u.v[0][1],0)),y[c]=g}v&&(E+=n[i].l,E+=b),this.textSpans[P]?this.textSpans[P].elem=y:this.textSpans[P]={elem:y},P+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,s,a,n=this.canvasContext;this.finalTransform.mat.props;n.font=this.values.fValue,n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var p,f,m=null,c=null,d=null;for(t=0;t<e;t+=1)if(!l[t].n){if((o=h[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?m!==o.fc&&(m=o.fc,n.fillStyle=o.fc):m!==this.values.fill&&(m=this.values.fill,n.fillStyle=this.values.fill),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(f=p[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(f[s],f[s+1],f[s+2],f[s+3],f[s+4],f[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,n.lineWidth=o.sw):d!==this.values.sWidth&&(d=this.values.sWidth,n.lineWidth=this.values.sWidth),o&&o.sc?c!==o.sc&&(c=o.sc,n.strokeStyle=o.sc):c!==this.values.stroke&&(c=this.values.stroke,n.strokeStyle=this.values.stroke),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(f=p[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(f[s],f[s+1],f[s+2],f[s+3],f[s+4],f[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&(this.transformedElement.style.transform=this.transformedElement.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform._opMdf&&(this.transformedElement.style.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)i=this.getTransformedPoint(h,o.v[r]),s=this.getTransformedPoint(h,o.o[r]),a=this.getTransformedPoint(h,o.i[r+1]),n=this.getTransformedPoint(h,o.v[r+1]),this.checkBounds(i,s,a,n,e);o.c&&(i=this.getTransformedPoint(h,o.v[r]),s=this.getTransformedPoint(h,o.o[r]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(i,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,s){this.getBoundsOfCurve(t,e,r,i);var a=this.shapeBoundingBox;s.x=bm_min(a.left,s.x),s.xMax=bm_max(a.right,s.xMax),s.y=bm_min(a.top,s.y),s.yMax=bm_max(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){for(var s,a,n,o,h,l,p,f=[[t[0],i[0]],[t[1],i[1]]],m=0;m<2;++m)if(a=6*t[m]-12*e[m]+6*r[m],s=-3*t[m]+9*e[m]-9*r[m]+3*i[m],n=3*e[m]-3*t[m],a|=0,n|=0,0!==(s|=0))(h=a*a-4*n*s)<0||(0<(l=(-a+bm_sqrt(h))/(2*s))&&l<1&&f[m].push(this.calculateF(l,t,e,r,i,m)),0<(p=(-a-bm_sqrt(h))/(2*s))&&p<1&&f[m].push(this.calculateF(p,t,e,r,i,m)));else{if(0===a)continue;0<(o=-n/a)&&o<1&&f[m].push(this.calculateF(o,t,e,r,i,m))}this.shapeBoundingBox.left=bm_min.apply(null,f[0]),this.shapeBoundingBox.top=bm_min.apply(null,f[1]),this.shapeBoundingBox.right=bm_max.apply(null,f[0]),this.shapeBoundingBox.bottom=bm_max.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bm_pow(1-t,3)*e[a]+3*bm_pow(1-t,2)*t*r[a]+3*(1-t)*bm_pow(t,2)*i[a]+bm_pow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it&&this.calculateBoundingBox(t[r].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),(r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y)&&(this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style;e.color=e.fill=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)",t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,i,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,n=t.fStyle;e.fontStyle=n,e.fontWeight=a}var o,h,l,p=t.l;i=p.length;var f,m=this.mHelper,c="",d=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[d]?o=this.textPaths[d]:((o=createNS("path")).setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?l=(h=this.textSpans[d]).children[0]:((h=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(o),styleDiv(h)))):this.isMasked?o=this.textPaths[d]?this.textPaths[d]:createNS("text"):this.textSpans[d]?(h=this.textSpans[d],o=this.textPaths[d]):(styleDiv(h=createTag("span")),styleDiv(o=createTag("span")),h.appendChild(o)),this.globalData.fontManager.chars){var u,y=this.globalData.fontManager.getCharData(t.finalText[r],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(u=y?y.data:null,m.reset(),u&&u.shapes&&(f=u.shapes[0].it,m.scale(t.finalSize/100,t.finalSize/100),c=this.createPathShape(m,f),o.setAttribute("d",c)),this.isMasked)this.innerElem.appendChild(o);else{if(this.innerElem.appendChild(h),u&&u.shapes){document.body.appendChild(l);var g=l.getBBox();l.setAttribute("width",g.width+2),l.setAttribute("height",g.height+2),l.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2)),l.style.transform=l.style.webkitTransform="translate("+(g.x-1)+"px,"+(g.y-1)+"px)",p[r].yOffset=g.y-1}else l.setAttribute("width",1),l.setAttribute("height",1);h.appendChild(l)}}else o.textContent=p[r].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(o):(this.innerElem.appendChild(h),o.style.transform=o.style.webkitTransform="translate3d(0,"+-t.finalSize/1.2+"px,0)");this.isMasked?this.textSpans[d]=o:this.textSpans[d]=h,this.textSpans[d].style.display="block",this.textPaths[d]=o,d+=1}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var t,e,r,i,s,a=0,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n?a+=1:(i=this.textSpans[t],s=this.textPaths[t],r=n[a],a+=1,r._mdf.m&&(this.isMasked?i.setAttribute("transform",r.m):i.style.transform=i.style.webkitTransform=r.m),i.style.opacity=r.o,r.sw&&r._mdf.sw&&s.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&s.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(s.setAttribute("fill",r.fc),s.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));this.currentBBox.w===h.width+2&&this.currentBBox.h===h.height+2&&this.currentBBox.x===h.x-1&&this.currentBBox.y===h.y-1||(this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)"3d"===(e=this.comp.threeDElements[t]).type&&(e.perspectiveElem.style.perspective=e.perspectiveElem.style.webkitPerspective=this.pe.v+"px",e.container.style.transformOrigin=e.container.style.mozTransformOrigin=e.container.style.webkitTransformOrigin="0px 0px 0px",e.perspectiveElem.style.transform=e.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)")},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;s=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),h=Math.atan2(n[1],o),l=Math.atan2(n[0],-n[2]);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)"3d"===(f=this.comp.threeDElements[t]).type&&(p&&(f.container.style.transform=f.container.style.webkitTransform=this.mat.toCSS()),this.pe._mdf&&(f.perspectiveElem.style.perspective=f.perspectiveElem.style.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){var t={},e=[],r=0,i=0,s=0,a=!0,n=!1;function o(t){for(var r=0,s=t.target;r<i;)e[r].animation===s&&(e.splice(r,1),r-=1,i-=1,s.isPaused||p()),r+=1}function h(t,r){if(!t)return null;for(var s=0;s<i;){if(e[s].elem==t&&null!==e[s].elem)return e[s].animation;s+=1}var a=new AnimationItem;return f(a,t),a.setData(t,r),a}function l(){s+=1,d()}function p(){s-=1}function f(t,r){t.addEventListener("destroy",o),t.addEventListener("_active",l),t.addEventListener("_idle",p),e.push({elem:r,animation:t}),i+=1}function m(t){var o,h=t-r;for(o=0;o<i;o+=1)e[o].animation.advanceTime(h);r=t,s&&!n?window.requestAnimationFrame(m):a=!0}function c(t){r=t,window.requestAnimationFrame(m)}function d(){!n&&s&&a&&(window.requestAnimationFrame(c),a=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var s;for(s=0;s<i;s+=1)e[s].animation.setSpeed(t,r)},t.setDirection=function(t,r){var s;for(s=0;s<i;s+=1)e[s].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length;for(i=0;i<a;i+=1)r&&s[i].setAttribute("data-bm-type",r),h(s[i],t);if(e&&0===a){r||(r="svg");var n=document.getElementsByTagName("body")[0];n.innerHTML="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),n.appendChild(o),h(o,t)}},t.resize=function(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,s){var a;for(a=0;a<i;a+=1)e[a].animation.goToAndStop(t,r,s)},t.destroy=function(t){var r;for(r=i-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,d()},t.getRegisteredAnimations=function(){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i.push(e[t].animation);return i},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,t.animationData?this.configAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this))),this.initialSegment=t.initialSegment},AnimationItem.prototype.setData=function(t,e){var r={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";""===s||(r.loop="false"!==s&&("true"===s||parseInt(s)));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,s=i.length,a=t.layers,n=a.length;for(r=0;r<n;r+=1)for(e=0;e<s;){if(i[e].id==a[r].id){i[e]=a[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.loaded()?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.loaded()||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.subframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var Expressions=function(){var t={};return t.initExpressions=function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}();expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,s=[];for(r=0;r<i;r+=1)s[r]=-t[r];return s}return t.propType?t.v:void 0}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=typeof t,i=typeof e;if("string"===r||"string"===i)return t+e;if(isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]=t[0]+e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var r=typeof t,i=typeof e;if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t)),"string"===i&&(e=parseInt(e)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]=t[0]-e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var r,i,s,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,s,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t)),"string"==typeof e&&(e=parseInt(e)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(e[r]-t[r],2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],s=t[1],a=t[2],n=Math.max(i,s,a),o=Math.min(i,s,a),h=(n+o)/2;if(n==o)e=r=0;else{var l=n-o;switch(r=h>.5?l/(2-n-o):l/(n+o),n){case i:e=(s-a)/l+(s<a?6:0);break;case s:e=(a-i)/l+2;break;case a:e=(i-s)/l+4}e/=6}return[e,r,h,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,s=t[0],a=t[1],n=t[2];if(0===a)e=r=i=n;else{var o=n<.5?n*(1+a):n+a-n*a,h=2*n-o;e=hue2rgb(h,o,s+1/3),r=hue2rgb(h,o,s),i=hue2rgb(h,o,s-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,s){if(void 0!==i&&void 0!==s||(i=e,s=r,e=0,r=1),r<e){var a=r;r=e,e=a}if(t<=e)return i;if(t>=r)return s;var n=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*n;var o,h=i.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=i[o]+(s[o]-i[o])*n;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)s[r]=t[r]+a*(e[r]-t[r]);return s}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var s,a=t.length,n=shape_pool.newElement();n.setPathData(!!i,a);var o,h,l=[0,0];for(s=0;s<a;s+=1)o=e&&e[s]?e[s]:l,h=r&&r[s]?r[s]:l,n.setTripleAt(t[s][0],t[s][1],h[0]+t[s][0],h[1]+t[s][1],o[0]+t[s][0],o[1]+t[s][1],s,!0);return n}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,__expression_functions=[],scoped_bm_rt;if(data.xf){var i,len=data.xf.length;for(i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())")}var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,i,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s);var n=Math.floor(5*time);for(r=0,i=0;r<n;){for(i=0;i<s;i+=1)a[i]+=-e+2*e*BMMath.random();r+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",s);if(s>1){for(i=0;i<s;i+=1)l[i]=this.pv[i]+a[i]+(-e+2*e*BMMath.random())*h;return l}return this.pv+a[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,s){return applyEase(easeOutBez,t,e,r,i,s)}function easeIn(t,e,r,i,s){return applyEase(easeInBez,t,e,r,i,s)}function ease(t,e,r,i,s){return applyEase(easeInOutBez,t,e,r,i,s)}function applyEase(t,e,r,i,s,a){void 0===s?(s=r,a=i):e=(e-r)/(i-r);var n=t(e=e>1?1:e<0?0:e);if($bm_isInstanceOfArray(s)){var o,h=s.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=(a[o]-s[o])*n+s[o];return l}return(a-s)*n+s}function nearestKey(t){var e,r,i,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;r<i;r+=1)e[r]=s[r],e.value[r]=s[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}(),expressionHelpers=function(){return{searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var s;for(s=0;s<e.length;s+=1)i+=Math.pow(r[s]-e[s],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=this.getValueAtTime(t),s=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(s[r]-i[r])/-.001;else e=(s-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}}}();!function(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(r?s=p-(i=e?Math.abs(p-elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),i=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/i)%2!=0)return this.getValueAtTime((i-(h-s)%i+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/i);if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;a<n;a+=1)o[a]=(m[a]-f[a])*d+c[a];return o}return(m-f)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(r?s=p+(i=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>l.length-1)&&(e=l.length-1),i=(s=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/i)%2==0)return this.getValueAtTime(((p-h)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/i)+1;if(this.pv.length){for(n=(o=new Array(f.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(m[a]-f[a])*d;return o}return c-(m-f)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,s=this.comp.renderedFrame/this.comp.globalData.frameRate,a=s-t,n=e>1?(s+t-a)/(e-1):1,o=0,h=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(i=this.getValueAtTime(a+o*n),this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]+=i[h];else r+=i;o+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]/=e;else r/=e;return r}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var s=i(t,e,r);return s.dynamicProperties.length?s.getValueAtTime=function(t){console.warn("Transform at time not supported")}.bind(s):s.getValueAtTime=function(t){}.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(i,a,n,o,h){var l=s(i,a,n,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===a.a?a.k.length:0,l.propertyIndex=a.ix;var p=0;return 0!==n&&(p=createTypedArray("float32",1===a.a?a.k[0].s.length:a.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(i,a,l),l.k&&h.addDynamicProperty(l),l};var a=ShapePropertyFactory.getConstructorFunction(),n=ShapePropertyFactory.getKeyframedConstructorFunction();function o(){}o.prototype={vertices:function(t,e){this.k&&this.getValue();var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var i,s=r._length,a=r[t],n=r.v,o=createSizedArray(s);for(i=0;i<s;i+=1)o[i]="i"===t||"o"===t?[a[i][0]-n[i][0],a[i][1]-n[i][1]]:[a[i][0],a[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,s=this._segmentsLength,a=s.lengths,n=s.totalLength*t,o=0,h=a.length,l=0;o<h;){if(l+a[o].addedLength>n){var p=o,f=r.c&&o===h-1?0:o+1,m=(n-l)/a[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[f],r.o[p],r.i[f],m,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var i=this.pointOnPath(t,e),s=this.pointOnPath(t+.001,e),a=s[0]-i[0],n=s[1]-i[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:"tangent"===r?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([o],a),extendPrototype([o],n),n.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},n.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,s){var a=h(t,e,r,i,s);return a.propertyIndex=e.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,a):4===r&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}(),function(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}}();var ShapeExpressionInterface=function(){function t(t,f,m){var c,d=[],u=t?t.length:0;for(c=0;c<u;c+=1)"gr"==t[c].ty?d.push(e(t[c],f[c],m)):"fl"==t[c].ty?d.push(r(t[c],f[c],m)):"st"==t[c].ty?d.push(i(t[c],f[c],m)):"tm"==t[c].ty?d.push(s(t[c],f[c],m)):"tr"==t[c].ty||("el"==t[c].ty?d.push(a(t[c],f[c],m)):"sr"==t[c].ty?d.push(n(t[c],f[c],m)):"sh"==t[c].ty?d.push(p(t[c],f[c],m)):"rc"==t[c].ty?d.push(o(t[c],f[c],m)):"rd"==t[c].ty?d.push(h(t[c],f[c],m)):"rp"==t[c].ty&&d.push(l(t[c],f[c],m)));return d}function e(e,r,i){var s=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}};s.propertyGroup=function(t){return 1===t?s:i(t-1)};var a=function(e,r,i){var s,a=function(t){for(var e=0,r=s.length;e<r;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}if("number"==typeof t)return s[t-1]};return a.propertyGroup=function(t){return 1===t?a:i(t-1)},s=t(e.it,r.it,a.propertyGroup),a.numProperties=s.length,a.propertyIndex=e.cix,a._name=e.nm,a}(e,r,s.propertyGroup),n=function(t,e,r){function i(t){return 1==t?s:r(--t)}e.transform.mProps.o.setGroupProperty(i),e.transform.mProps.p.setGroupProperty(i),e.transform.mProps.a.setGroupProperty(i),e.transform.mProps.s.setGroupProperty(i),e.transform.mProps.r.setGroupProperty(i),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(i),e.transform.mProps.sa.setGroupProperty(i));function s(e){return t.a.ix===e||"Anchor Point"===e?s.anchorPoint:t.o.ix===e||"Opacity"===e?s.opacity:t.p.ix===e||"Position"===e?s.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?s.rotation:t.s.ix===e||"Scale"===e?s.scale:t.sk&&t.sk.ix===e||"Skew"===e?s.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?s.skewAxis:void 0}return e.transform.op.setGroupProperty(i),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),s.ty="tr",s.mn=t.mn,s.propertyGroup=r,s}(e.it[e.it.length-1],r.it[r.it.length-1],s.propertyGroup);return s.content=a,s.transform=n,Object.defineProperty(s,"_name",{get:function(){return e.nm}}),s.numProperties=e.np,s.propertyIndex=e.ix,s.nm=e.nm,s.mn=e.mn,s}function r(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:void 0}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(r),e.o.setGroupProperty(r),i}function i(t,e,r){function i(t){return 1===t?ob:r(t-1)}function s(t){return 1===t?h:i(t-1)}function a(r){Object.defineProperty(h,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var n,o=t.d?t.d.length:0,h={};for(n=0;n<o;n+=1)a(n),e.d.dataProps[n].p.setGroupProperty(s);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:void 0}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(i),e.o.setGroupProperty(i),e.w.setGroupProperty(i),l}function s(t,e,r){function i(t){return 1==t?s:r(--t)}function s(e){return e===t.e.ix||"End"===e||"end"===e?s.end:e===t.s.ix?s.start:e===t.o.ix?s.offset:void 0}return s.propertyIndex=t.ix,e.s.setGroupProperty(i),e.e.setGroupProperty(i),e.o.setGroupProperty(i),s.propertyIndex=t.ix,s.propertyGroup=r,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function a(t,e,r){function i(t){return 1==t?a:r(--t)}a.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;function a(e){return t.p.ix===e?a.position:t.s.ix===e?a.size:void 0}return s.s.setGroupProperty(i),s.p.setGroupProperty(i),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),a.mn=t.mn,a}function n(t,e,r){function i(t){return 1==t?a:r(--t)}var s="tm"===e.sh.ty?e.sh.prop:e.sh;function a(e){return t.p.ix===e?a.position:t.r.ix===e?a.rotation:t.pt.ix===e?a.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?a.outerRadius:t.os.ix===e?a.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?a.innerRoundness:void 0:a.innerRadius}return a.propertyIndex=t.ix,s.or.setGroupProperty(i),s.os.setGroupProperty(i),s.pt.setGroupProperty(i),s.p.setGroupProperty(i),s.r.setGroupProperty(i),t.ir&&(s.ir.setGroupProperty(i),s.is.setGroupProperty(i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),a.mn=t.mn,a}function o(t,e,r){function i(t){return 1==t?a:r(--t)}var s="tm"===e.sh.ty?e.sh.prop:e.sh;function a(e){return t.p.ix===e?a.position:t.r.ix===e?a.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?a.size:void 0}return a.propertyIndex=t.ix,s.p.setGroupProperty(i),s.s.setGroupProperty(i),s.r.setGroupProperty(i),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),a.mn=t.mn,a}function h(t,e,r){var i=e;function s(e){if(t.r.ix===e||"Round Corners 1"===e)return s.radius}return s.propertyIndex=t.ix,i.rd.setGroupProperty(function(t){return 1==t?s:r(--t)}),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function l(t,e,r){function i(t){return 1==t?a:r(--t)}var s=e;function a(e){return t.c.ix===e||"Copies"===e?a.copies:t.o.ix===e||"Offset"===e?a.offset:void 0}return a.propertyIndex=t.ix,s.c.setGroupProperty(i),s.o.setGroupProperty(i),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),a.mn=t.mn,a}function p(t,e,r){var i=e.sh;function s(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return s.path}return i.setGroupProperty(function(t){return 1==t?s:r(--t)}),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn}}),s}return function(e,r,i){var s;function a(t){if("number"==typeof t)return s[t-1];for(var e=0,r=s.length;e<r;){if(s[e]._name===t)return s[e];e+=1}}return a.propertyGroup=i,s=t(e,r,a),a.numProperties=s.length,a}}(),TextExpressionInterface=function(t){var e;function r(){}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return void 0!==r&&(t.textProperty.currentData.t=void 0,(e=new String(r)).value=r||new String(r)),e}}),r},LayerExpressionInterface=function(){function t(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(r);return r.applyToPointArray(t[0],t[1],t[2]||0)}return r.applyToPointArray(t[0],t[1],t[2]||0)}function e(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(r);return r.inversePoint(t)}return r.inversePoint(t)}function r(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function i(){return[1,1,1,1]}return function(s){var a;function n(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return n.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return a;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return n.effect}}n.toWorld=t,n.fromWorld=e,n.toComp=t,n.fromComp=r,n.sampleImage=i,n.sourceRectAtTime=s.sourceRectAtTime.bind(s),n._elem=s;var o=getDescriptor(a=TransformExpressionInterface(s.finalTransform.mProp),"anchorPoint");return Object.defineProperties(n,{hasParent:{get:function(){return s.hierarchy.length}},parent:{get:function(){return s.hierarchy[0].layerInterface}},rotation:getDescriptor(a,"rotation"),scale:getDescriptor(a,"scale"),position:getDescriptor(a,"position"),opacity:getDescriptor(a,"opacity"),anchorPoint:o,anchor_point:o,transform:{get:function(){return a}},active:{get:function(){return s.isInRange}}}),n.startTime=s.data.st,n.index=s.data.ind,n.source=s.data.refId,n.height=0===s.data.ty?s.data.h:100,n.width=0===s.data.ty?s.data.w:100,n.inPoint=s.data.ip/s.comp.globalData.frameRate,n.outPoint=s.data.op/s.comp.globalData.frameRate,n._name=s.data.nm,n.registerMaskInterface=function(t){n.mask=new MaskManagerInterface(t,s)},n.registerEffectsInterface=function(t){n.effect=t},n}}(),CompExpressionInterface=function(t){function e(e){for(var r=0,i=t.layers.length;r<i;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}if(Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p)var r=ExpressionPropertyInterface(t.p);return Object.defineProperty(e,"position",{get:function(){return t.p?r():[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),EffectsExpressionInterface=function(){function t(r,i,s,a){var n,o=[],h=r.ef.length;for(n=0;n<h;n+=1)5===r.ef[n].ty?o.push(t(r.ef[n],i.effectElements[n],i.effectElements[n].propertyGroup,a)):o.push(e(i.effectElements[n],r.ef[n].ty,a,l));function l(t){return 1===t?p:s(t-1)}var p=function(t){for(var e=r.ef,i=0,s=e.length;i<s;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?o[i]:o[i]();i+=1}return o[0]()};return p.propertyGroup=l,"ADBE Color Control"===r.mn&&Object.defineProperty(p,"color",{get:function(){return o[0]()}}),Object.defineProperty(p,"numProperties",{get:function(){return r.np}}),p.active=p.enabled=0!==r.en,p}function e(t,e,r,i){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(i),function(){return 10===e?r.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,s=[],a=e.data.ef,n=e.effectsManager.effectElements.length;for(i=0;i<n;i+=1)s.push(t(a[i],e.effectsManager.effectElements[i],r,e));return function(t){for(var r=e.data.ef||[],i=0,a=r.length;i<a;){if(t===r[i].nm||t===r[i].mn||t===r[i].ix)return s[i];i+=1}}}}}}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e,r){var i,s=createSizedArray(e.viewData.length),a=e.viewData.length;for(i=0;i<a;i+=1)s[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<a;){if(e.masksProperties[i].nm===t)return s[i];i+=1}}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(t.numKeys){var s="";s="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var a="unidimensional"===r?new Number(s):Object.assign({},s);return a.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,a}return 0},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function i(){return t}return function(s){return s?"unidimensional"===s.propType?function(e){e&&"pv"in e||(e=t);var i=1/e.mult,s=e.pv*i,a=new Number(s);return a.value=s,r(a,e,"unidimensional"),function(){return e.k&&e.getValue(),s=e.v*i,a.value!==s&&((a=new Number(s)).value=s,r(a,e,"unidimensional")),a}}(s):function(t){t&&"pv"in t||(t=e);var i=1/t.mult,s=t.pv.length,a=createTypedArray("float32",s),n=createTypedArray("float32",s);return a.value=n,r(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<s;e+=1)a[e]=n[e]=t.v[e]*i;return a}}(s):i}}(),TextExpressionSelectorProp,propertyGetTextProp;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var i,s,a=r.length;for(i=0;i<a;i++)s=new GroupEffect(r[i],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}TextExpressionSelectorProp=function(){function t(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}return function(e,r){this.pv=1,this.comp=e.comp,this.elem=e,this.mult=.01,this.propType="textSelector",this.textTotal=r.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(e,r,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp,TextSelectorProp.getTextSelectorProp=function(t,e,r){return 1===e.t?new TextExpressionSelectorProp(t,e,r):propertyGetTextProp(t,e,r)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i,s=this.data.ef.length,a=this.data.ef;for(r=0;r<s;r+=1){switch(i=null,a[r].ty){case 0:i=new SliderEffect(a[r],e,this);break;case 1:i=new AngleEffect(a[r],e,this);break;case 2:i=new ColorEffect(a[r],e,this);break;case 3:i=new PointEffect(a[r],e,this);break;case 4:case 7:i=new CheckboxEffect(a[r],e,this);break;case 10:i=new LayerIndexEffect(a[r],e,this);break;case 11:i=new MaskIndexEffect(a[r],e,this);break;case 5:i=new EffectsManager(a[r],e,this);break;default:i=new NoValueEffect(a[r],e,this)}i&&this.effectElements.push(i)}};var lottie={},_isFrozen=!1;function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r++){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.__getFactory=getFactory,lottie.version="5.6.6";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottie});
39
+ },{}],"C4qV":[function(require,module,exports) {
40
+ var global = arguments[3];
41
+ var t=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},o=2;function s(t,e){var n=!1,r=!1,s=0;function c(){n&&(n=!1,t()),r&&h()}function a(){i(c)}function h(){var t=Date.now();if(n){if(t-s<o)return;r=!0}else n=!0,r=!1,setTimeout(a,e);s=t}return h}var c=20,a=["top","right","bottom","left","width","height","size","weight"],h="undefined"!=typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},p=E(0,0,0,0);function v(t){return parseFloat(t)||0}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+v(t["border-"+n+"-width"])},0)}function l(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=v(o)}return e}function b(t){var e=t.getBBox();return E(0,0,e.width,e.height)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=d(t).getComputedStyle(t),i=l(r),o=i.left+i.right,s=i.top+i.bottom,c=v(r.width),a=v(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==e&&(c-=_(r,"left","right")+o),Math.round(a+s)!==n&&(a-=_(r,"top","bottom")+s)),!w(t)){var h=Math.round(c+o)-e,u=Math.round(a+s)-n;1!==Math.abs(h)&&(c-=h),1!==Math.abs(u)&&(a-=u)}return E(i.left,i.top,c,a)}var y="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"==typeof t.getBBox};function w(t){return t===d(t).document.documentElement}function g(t){return n?y(t)?b(t):m(t):p}function O(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);return f(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var M=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),A=function(){return function(t,e){var n=O(e);f(this,{target:t,contentRect:n})}}(),x=function(){function t(t,n,r){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new M(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new A(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),T="undefined"!=typeof WeakMap?new WeakMap:new e,R=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(e,n,this);T.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){R.prototype[t]=function(){var e;return(e=T.get(this))[t].apply(e,arguments)}});var D=void 0!==r.ResizeObserver?r.ResizeObserver:R,j=D;exports.default=j;
42
+ },{}],"jFKs":[function(require,module,exports) {
43
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=require("lit-element");function e(){const n=r(["\n* {\n box-sizing: border-box;\n}\n\n:host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #CCC;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.main {\n box-sizing: border-box;\n display: inline-grid;\n grid-auto-columns: auto;\n grid-template-rows: auto;\n position: relative;\n height: inherit;\n width: inherit;\n}\n\n.main.controls {\n grid-template-rows: 1fr var(--lottie-player-toolbar-height);\n}\n\n.animation {\n overflow: hidden;\n height: calc(1fr - var(--lottie-player-toolbar-height));\n}\n\n.toolbar {\n display: grid;\n grid-template-columns: 32px 32px 1fr 32px 32px;\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n}\n\n.toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n}\n\n.toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n}\n\n.toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n}\n\n.toolbar button svg {\n}\n\n.toolbar button.disabled svg {\n display: none;\n}\n\n.toolbar a {\n filter: grayscale(100%);\n display: flex;\n transition: filter .5s, opacity 0.5s;\n opacity: 0.4;\n height: 100%;\n align-items: center;\n}\n\n.toolbar a:hover {\n filter: none;\n display: flex;\n opacity: 1;\n}\n\n.toolbar a svg {\n}\n\n.seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n}\n\n.seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n}\n.seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n}\n.seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n}\n.seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n}\n.seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n}\n.seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n}\n.seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n}\n.seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n}\n.seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n}\n.seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n}\n.seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n}\n\n.error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n}\n"]);return e=function(){return n},n}function r(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var o=(0,n.css)(e());exports.default=o;
44
+ },{"lit-element":"bhxD"}],"M8c7":[function(require,module,exports) {
45
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseSrc=f,exports.LottiePlayer=exports.PlayerEvents=exports.PlayMode=exports.PlayerState=void 0;var t=require("lit-element"),e=s(require("lottie-web/build/player/lottie")),i=r(require("resize-observer-polyfill")),o=r(require("./lottie-player.styles"));function r(t){return t&&t.__esModule?t:{default:t}}function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}function s(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=o?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=t[r]}return i.default=t,e&&e.set(t,i),i}function a(){const t=d(['<div class="error">⚠️</div>']);return a=function(){return t},t}function h(){const t=d(["\n <div class=",'>\n <div class="animation" style=',">\n ","\n </div>\n ","\n </div>"]);return h=function(){return t},t}function l(){const t=d(['<svg width="24" height="24"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg>']);return l=function(){return t},t}function p(){const t=d(['<svg width="24" height="24"><path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"/></svg>']);return p=function(){return t},t}function c(){const t=d(['\n <div class="toolbar">\n <button @click='," class=",">\n ","\n </button>\n <button @click="," class=",'>\n <svg width="24" height="24"><path d="M6 6h12v12H6V6z" /></svg>\n </button>\n <input class="seeker" type="range" min="0" step="1" max="100" .value=',"\n @input=","\n @mousedown=","\n @mouseup=","\n />\n <button @click="," class=",'>\n <svg width="24" height="24">\n <path d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"/>\n </svg>\n </button>\n <a href="https://www.lottiefiles.com/" target="_blank">\n <svg width="24" height="24" viewBox="0 0 320 320" fill-rule="nonzero"><rect fill="#adadad" x=".5" y=".5" width="100%" height="100%" rx="26.73"/><path d="M251.304 65.44a16.55 16.55 0 0 1 13.927 18.789c-1.333 9.04-9.73 15.292-18.762 13.954-15.992-2.37-39.95 22.534-66.77 73.74-34.24 65.37-66.113 96.517-99.667 94.032-9.102-.674-15.93-8.612-15.258-17.723s8.592-15.96 17.695-15.286c16.57 1.227 40.908-24.737 67.97-76.4 34.46-65.79 66.764-96.157 100.866-91.105z" fill="#fff"/></svg>\n </a>\n </div>\n ']);return c=function(){return t},t}function d(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var u,v,y,g=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};function f(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}exports.PlayerState=u,function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"}(u||(exports.PlayerState=u={})),exports.PlayMode=v,function(t){t.Normal="normal",t.Bounce="bounce"}(v||(exports.PlayMode=v={})),exports.PlayerEvents=y,function(t){t.Load="load",t.Error="error",t.Ready="ready",t.Play="play",t.Pause="pause",t.Stop="stop",t.Freeze="freeze",t.Loop="loop",t.Complete="complete",t.Frame="frame"}(y||(exports.PlayerEvents=y={}));let m=class extends t.LitElement{constructor(){super(...arguments),this.mode=v.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.loop=!1,this.renderer="svg",this.speed=1,this.currentState=u.Loading,this.intermission=1,this._io=void 0,this._ro=void 0,this._counter=0}_onVisibilityChange(){!0===document.hidden&&this.currentState===u.Playing?this.freeze():this.currentState===u.Frozen&&this.play()}_handleSeekChange(t){if(!this._lottie||isNaN(t.target.value))return;const e=t.target.value/100*this._lottie.totalFrames;this.seek(e)}load(t){if(!this.shadowRoot)return;const i={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:{scaleMode:"noScale",preserveAspectRatio:"xMinYMin meet",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{const r=f(t),n="string"==typeof r?"path":"animationData";this._lottie&&this._lottie.destroy(),this._lottie=e.loadAnimation(Object.assign(Object.assign({},i),{[n]:r}))}catch(o){return this.currentState=u.Error,void this.dispatchEvent(new CustomEvent(y.Error))}this._lottie&&(this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(y.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{this.currentState===u.Playing?!this.loop||this.count&&this._counter>=this.count?this.dispatchEvent(new CustomEvent(y.Complete)):this.mode===v.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(y.Loop)),this.currentState===u.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(y.Loop)),this.currentState===u.Playing&&(this._lottie.stop(),this._lottie.play())},this.intermission)):this.dispatchEvent(new CustomEvent(y.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(y.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(y.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=u.Error,this.dispatchEvent(new CustomEvent(y.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==u.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===u.Playing&&this.stop()}),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play())}getLottie(){return this._lottie}play(){this._lottie&&(this._lottie.play(),this.currentState=u.Playing,this.dispatchEvent(new CustomEvent(y.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=u.Paused,this.dispatchEvent(new CustomEvent(y.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.currentState=u.Stopped,this.dispatchEvent(new CustomEvent(y.Stop)))}seek(t){if(!this._lottie)return;const e=t.toString().match(/^([0-9]+)(%?)$/);if(!e)return;const i="%"===e[2]?this._lottie.totalFrames*Number(e[1])/100:Number(e[1]);this.seeker=i,this.currentState===u.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}snapshot(t=!0){if(!this.shadowRoot)return;const e=this.shadowRoot.querySelector(".animation svg"),i=(new XMLSerializer).serializeToString(e);if(t){const t=document.createElement("a");t.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),t.download="download_"+this.seeker+".svg",document.body.appendChild(t),t.click(),document.body.removeChild(t)}return i}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=u.Frozen,this.dispatchEvent(new CustomEvent(y.Freeze)))}setSpeed(t=1){this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}togglePlay(){return this.currentState===u.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return o.default}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(t=>{t[0].isIntersecting?this.currentState===u.Frozen&&this.play():this.currentState===u.Playing&&this.freeze()}),this._io.observe(this.container)),"ResizeObserver"in window&&(this._ro=new i.default(()=>{this.resize()}),this._ro.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&this.load(this.src)}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._ro&&(this._ro.disconnect(),this._ro=void 0),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){const e=this.currentState===u.Playing,i=this.currentState===u.Paused,o=this.currentState===u.Stopped;return(0,t.html)(c(),this.togglePlay,e||i?"active":"",e?(0,t.html)(p()):(0,t.html)(l()),this.stop,o?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===u.Playing&&this.play()},this.toggleLooping,this.loop?"active":"")}render(){const e=this.controls?"main controls":"main";return(0,t.html)(h(),e,"background:"+this.background,this.currentState===u.Error?(0,t.html)(a()):void 0,this.controls?this.renderControls():void 0)}};exports.LottiePlayer=m,g([(0,t.query)(".animation")],m.prototype,"container",void 0),g([(0,t.property)()],m.prototype,"mode",void 0),g([(0,t.property)({type:Boolean})],m.prototype,"autoplay",void 0),g([(0,t.property)({type:String,reflect:!0})],m.prototype,"background",void 0),g([(0,t.property)({type:Boolean})],m.prototype,"controls",void 0),g([(0,t.property)({type:Number})],m.prototype,"count",void 0),g([(0,t.property)({type:Number})],m.prototype,"direction",void 0),g([(0,t.property)({type:Boolean})],m.prototype,"hover",void 0),g([(0,t.property)({type:Boolean,reflect:!0})],m.prototype,"loop",void 0),g([(0,t.property)({type:String})],m.prototype,"renderer",void 0),g([(0,t.property)({type:Number})],m.prototype,"speed",void 0),g([(0,t.property)({type:String})],m.prototype,"src",void 0),g([(0,t.property)({type:String})],m.prototype,"currentState",void 0),g([(0,t.property)()],m.prototype,"seeker",void 0),g([(0,t.property)()],m.prototype,"intermission",void 0),exports.LottiePlayer=m=g([(0,t.customElement)("lottie-player")],m);
46
+ },{"lit-element":"bhxD","lottie-web/build/player/lottie":"xaRr","resize-observer-polyfill":"C4qV","./lottie-player.styles":"jFKs"}]},{},["M8c7"], null)
vendor/codeinwp/gutenberg-blocks/build/blocks.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,r,i=t[0],c=t[1],p=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(d&&d(t);s.length;)s.shift()();return o.push.apply(o,p||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(p);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var p=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var p=0;p<i.length;p++)t(i[p]);var d=c;o.push([44,0]),n()}([,,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return y})),n.d(t,"p",(function(){return h})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));n(1);var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t){e.exports=React},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(49),n(1),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,a=e.className,r=e.children;return wp.element.createElement("div",{className:l()("components-base-control","wp-block-themeisle-blocks-color-base-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(o,{colorValue:n})),r))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(51),n(3)),r=(n(1),wp.i18n.__),i=wp.components,c=i.Button,p=i.Dropdown,d=i.Icon,m=wp.compose,s=m.useInstanceId,u=m.useViewportMatch,b=wp.data,g=b.useSelect,f=b.useDispatch;t.a=function e(t){var n=t.label,a=t.className,i=t.children,m=s(e),b=u("large",">="),y=u("large","<="),h=u("small",">="),w=u("small","<="),v=!(b||y||h||w),k=g((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n&&!v?n():t()})),T=f("themeisle-gutenberg/data").updateView,E=f("core/edit-post").__experimentalSetPreviewDeviceType,x=E&&!v?E:T,C="inspector-responsive-control-".concat(m);return wp.element.createElement("div",{id:C,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(p,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(c,{icon:"Mobile"===k?"smartphone":k.toLowerCase(),label:r("Responsiveness Settings"),showTooltip:!0,className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===k}),onClick:function(){return x("Desktop")}},"Desktop"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===k}),onClick:function(){return x("Tablet")}},"Tablet"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===k}),onClick:function(){return x("Mobile")}},"Mobile"===k&&wp.element.createElement(d,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(52),n(1),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,p=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:p,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},p=wp.i18n.__,d=wp.components.Button,m=wp.compose.useInstanceId;t.a=function e(t){var n=t.label,a=t.type,o=t.min,r=t.max,i=t.changeType,s=t.options,u=t.onChange,b=m(e),g="inspector-sizing-control-".concat(b);return s&&1>s.length?p("Please specify more options."):wp.element.createElement("div",{id:g,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:g},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},s.map((function(e,t){return wp.element.createElement(c,{id:b,index:e,option:t,min:o,max:r,onChange:u})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(d,{icon:"linked"===a?"admin-links":"editor-unlink",label:p("linked"===a?"Unlink Values":"Link Values"),showTooltip:!0,className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none"},"themeisle-blocks/button":{},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1,columnsHTMLTag:"div"},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,,function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(114),r=n(111);n(62),n(1);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var m=wp.i18n.__,s=wp.components,u=s.Button,b=s.Dropdown,g=wp.compose.useInstanceId,f=wp.element,y=f.Fragment,h=f.useEffect,w=f.useState;t.a=function e(t){var n=t.label,a=t.attributes,d=t.setAttributes,s=t.resetValues,f=t.onClick,v=t.children;h((function(){for(var e in s){if(s[e]!==a[e])return x(!0);x(!1)}}),[a]);var k=g(e),T=p(w(!1),2),E=T[0],x=T[1],C="inspector-control-panel-control-".concat(k);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:C},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(b,{position:"top left",headerTitle:n,expandOnMobile:!0,renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return wp.element.createElement(y,null,E&&wp.element.createElement(u,{icon:wp.element.createElement(o.a,{icon:r.a}),label:m("Reset to default"),shotTooltip:!0,isTertiary:!0,onClick:function(){return d(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s))}}),wp.element.createElement(u,{id:C,icon:"admin-settings",label:n,shotTooltip:!0,onClick:function(){a(),f&&f()},"aria-expanded":t,className:l()({"is-active":E})}))},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},v)}})))))}},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(50),n(1);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(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 i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=lodash,d=p.startCase,m=p.toLower,s=wp.i18n.__,u=wp.compose.useInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,y=b.Dropdown,h=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=function e(t){var n=t.label,a=t.value,i=t.valueVariant,c=t.valueStyle,p=t.valueTransform,b=t.isSelect,T=void 0!==b&&b,C=t.onChangeFontFamily,S=t.onChangeFontVariant,M=t.onChangeFontStyle,B=t.onChangeTextTransform,O=u(e);E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){L(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}}));return _(t)}}))}))}),[]);var R=r(x(null),2),A=R[0],L=R[1],P=r(x(null),2),N=P[0],_=P[1],I=r(x(""),2),j=I[0],z=I[1],H="inspector-google-fonts-control-".concat(O);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==A?T?wp.element.createElement(v,{value:a||"",id:H,options:[{label:s("Default"),value:""}].concat(o(A.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:s("Regular"),value:"regular"},{label:s("Italic"),value:"italic"}],C(void 0),void _(t);C(e),t=A.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}})),_(t)}}):wp.element.createElement(y,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},a||s("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(h,{label:s("Google Fonts")},wp.element.createElement(k,{value:j,onChange:function(e){return z(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),C(void 0),_([]),z("")}},s("Default")),A.map((function(e){if(!j||e.family.toLowerCase().includes(j.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),C(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:d(m(e)),value:e}}));_(n),z("")}},e.family)}))))}}):s("Loading…")),N&&wp.element.createElement(v,{label:s("Font Width"),value:i||"regular",options:N,onChange:S}),wp.element.createElement(v,{label:s("Font Style"),value:c,options:[{label:s("Regular"),value:"normal"},{label:s("Italic"),value:"italic"}],onChange:M}),wp.element.createElement(v,{label:s("Font Transform"),value:p,options:[{label:s("Default"),value:"none"},{label:s("Uppercase"),value:"uppercase"},{label:s("Lowercase"),value:"lowercase"},{label:s("Capitalize"),value:"capitalize"}],onChange:B}))}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return b}));var a=n(0),l=n.n(a),o=(n(72),n(1),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,p=o.Toolbar,d=wp.compose.useInstanceId,m=wp.blockEditor.BlockControls,s=wp.element.Fragment,u=function e(t){var n=t.label,a=t.value,o=t.options,c=t.onChange,p=d(e),m="inspector-style-switcher-control-".concat(p);return wp.element.createElement(r,{id:m,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))},b=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(m,null,wp.element.createElement(p,null,wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(i,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(s,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a);n(80),n(81),n(1);t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,r=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===r&&wp.element.createElement("svg",{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement("svg",{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===r&&wp.element.createElement("svg",{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement("svg",{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},,function(e,t,n){"use strict";n.r(t);n(77);var a=n(3),l=(n(1),wp.i18n.__),o=wp.components,r=o.Button,i=o.ButtonGroup,c=o.Icon,p=wp.compose.useInstanceId;t.default=function e(t){var n=t.label,o=t.backgroundType,d=t.changeBackgroundType,m=p(e),s="inspector-background-control-".concat(m);return wp.element.createElement("div",{id:s,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement(i,{className:"linking-controls"},wp.element.createElement(r,{icon:"admin-customizer",label:l("Color"),showTootlip:!0,isPrimary:"color"===o,onClick:function(){return d("color")}}),wp.element.createElement(r,{icon:"format-image",label:l("Image"),showTootlip:!0,isPrimary:"image"===o,onClick:function(){return d("image")}}),wp.element.createElement(r,{icon:function(){return wp.element.createElement(c,{icon:a.b})},label:l("Gradient"),showTootlip:!0,isPrimary:"gradient"===o,onClick:function(){return d("gradient")}})))))}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(78);var a=n(5),l=n(0),o=n.n(l),r=(n(1),wp.components),i=r.Dashicon,c=r.Tooltip,p=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,l=e.isSelected,r=e.onChange,p=wp.element.createElement("button",{type:"button","aria-pressed":l,className:o()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":l}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return r(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},p):p,l&&wp.element.createElement(i,{icon:"saved"}))},d=wp.i18n.__,m=[{title:d("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:d("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:d("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:d("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:d("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:d("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:d("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:d("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:d("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:d("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:d("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:d("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],s=wp.i18n.__,u=wp.components,b=u.Button,g=u.ColorIndicator,f=u.Dropdown,y=u.RangeControl,h=u.SelectControl,w=wp.compose.useInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=function e(t){var n,l=t.label,o=t.value,r=t.customGradient,i=void 0===r||r,c=t.onChange,d=t.onChangeValue,u=w(e),T="inspector-gradient-picker-control-".concat(u);n="linear"===o.type?"".concat(o.angle,"deg"):"at ".concat(o.position);var E="".concat(o.type,"-gradient( ").concat(n,", ").concat(o.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.firstLocation,"%, ").concat(o.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(o.secondLocation,"% )"),x=m.some((function(e){return e.firstColor===o.firstColor&&e.secondColor===o.secondColor}));return wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},l&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},l,!x&&wp.element.createElement(g,{colorValue:E}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},m.map((function(e){return wp.element.createElement(p,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===o.firstColor&&e.secondColor===o.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},s("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(a.a,{label:s("First Color"),colorValue:o.firstColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.firstColor,onChange:function(e){return d({firstColor:e})}})),wp.element.createElement(y,{label:s("Location"),value:o.firstLocation,min:0,max:100,onChange:function(e){return d({firstLocation:e})}}),wp.element.createElement(a.a,{label:s("Second Color"),colorValue:o.secondColor},wp.element.createElement(v,{label:s("Color"),clearable:!1,value:o.secondColor,onChange:function(e){return d({secondColor:e})}})),wp.element.createElement(y,{label:s("Location"),value:o.secondLocation,min:0,max:100,onChange:function(e){return d({secondLocation:e})}}),wp.element.createElement(h,{label:s("Type"),value:o.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return d({type:e})}}),"linear"===o.type?wp.element.createElement(y,{label:s("Angle"),value:o.angle,min:0,max:360,onChange:function(e){return d({angle:e})}}):wp.element.createElement(h,{label:s("Position"),value:o.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return d({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isSecondary:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},s("Clear"))))))}},,,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(63),n(1);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,p=wp.compose.useInstanceId,d=wp.components,m=d.BaseControl,s=d.Button,u=d.Notice,b=wp.element,g=b.useEffect,f=b.useState;t.a=function e(t){var n=t.value,a=t.onChange,r=p(e);g((function(){return v(n)}),[n]);var d=o(f(!1),2),b=d[0],y=d[1],h=o(f(null),2),w=h[0],v=h[1],k=void 0!==window.themeisleGutenberg.blockIDs&&n!==w&&window.themeisleGutenberg.blockIDs.includes(w);return wp.element.createElement(c,null,wp.element.createElement(m,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(r)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!b&&"readonly",value:b?w:n,onChange:function(e){return v(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(s,{icon:b?"yes":"edit",label:i(b?"Save":"Edit"),showTooltip:!0,disabled:!!k,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!b}),onClick:function(){if(b&&n!==w){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=w,a(w)}y(!b)}}))),k&&wp.element.createElement(u,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}},function(e,t,n){"use strict";var a=n(112),l=n(113);n(64),n(1);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,p=wp.blockEditor.__experimentalLinkControl,d=wp.components,m=d.KeyboardShortcuts,s=d.Popover,u=d.ToolbarButton,b=d.ToolbarGroup,g=wp.element,f=g.Fragment,y=g.useState,h=wp.keycodes,w=h.displayShortcut,v=h.rawShortcut;t.a=function(e){var t,n=e.isSelected,i=e.url,d=e.setAttributes,g=e.opensInNewTab,h=r(y(!1),2),k=h[0],T=h[1],E=!!i,x=E&&n,C=function(){return T(!0),!1},S=function(){d({link:void 0,newTab:void 0}),T(!1)},M=k&&wp.element.createElement(s,{position:"bottom right",onClose:function(){return T(!1)}},wp.element.createElement(p,{className:"wp-block-navigation-link__inline-link-input",value:{url:i,opensInNewTab:g},onChange:function(e){var t=e.url,n=void 0===t?"":t,a=e.opensInNewTab;d({link:n}),g!==a&&d({newTab:a})}}));return wp.element.createElement(f,null,wp.element.createElement(b,null,!E&&wp.element.createElement(u,{name:"link",icon:a.a,title:c("Link"),shortcut:w.primary("k"),onClick:C,className:"wp-block-themeisle-toolbar-icon"}),x&&wp.element.createElement(u,{name:"link",icon:l.a,title:c("Unlink"),shortcut:w.primaryShift("k"),onClick:S,isActive:!0,className:"wp-block-themeisle-toolbar-icon"})),n&&wp.element.createElement(m,{bindGlobal:!0,shortcuts:(t={},o(t,v.primary("k"),C),o(t,v.primaryShift("k"),S),t)}),M)}},,function(e,t,n){"use strict";n(55);var a=n(23),l=n.n(a),o=n(0),r=n.n(o),i=n(15),c=n(114),p=n(117),d=(n(1),wp.components.Button),m=Object(i.b)((function(e){var t=e.value,n=e.selected,a=e.dragging,l=e.sorting,o=e.selectedItemsCount,i=e.onClick,c=a&&1<o;return wp.element.createElement(d,{className:r()("wp-block-themeisle-blocks-images-grid-component__image",{"is-selected":n,"is-sorting":n&&l}),onClick:function(){return i(t)},style:{backgroundImage:"url( ' ".concat(t.url," ' )")}},c&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-images-grid-component__image__count"},o))})),s=wp.i18n.__,u=wp.components.Button,b=Object(i.a)((function(e){var t=e.items,n=e.className,a=e.onItemSelect,l=e.selectedItems,o=e.isSorting,r=e.sortingItemKey,i=e.open;return wp.element.createElement("div",{className:n,tabIndex:"0"},t.map((function(e,t){var n=l.includes(e),i=r===e;return wp.element.createElement(m,{key:"image-".concat(e.id),index:t,value:e,selected:n,dragging:i,sorting:o,selectedItemsCount:l.length,onClick:a})})),wp.element.createElement(u,{label:s("Add Images"),icon:wp.element.createElement(c.a,{icon:p.a}),isPrimary:!0,onClick:i}))}));function g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||y(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 y(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.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)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var w=wp.element.useState,v=function(e){var t=e.attributes,n=e.onSelectImages,a=e.open,o=f(w([]),2),i=o[0],c=o[1],p=f(w(!1),2),d=p[0],m=p[1],s=f(w(null),2),u=s[0],y=s[1];return wp.element.createElement(b,{className:r()("wp-block-themeisle-blocks-images-grid-component",{"is-single":1===t.images.length}),open:a,items:t.images,onItemSelect:function(e){var t;t=i.includes(e)?i.filter((function(t){return t!==e})):[].concat(g(i),[e]),c(t)},selectedItems:i,isSorting:d,sortingItemKey:u,shouldCancelStart:function(e){if(!e.target.sortableInfo)return!1;var n=t.images[e.target.sortableInfo.index];return!!i.length&&!i.includes(n)},updateBeforeSortStart:function(e){var n=e.index;return new Promise((function(e){m(!0),y(t.images[n]),e()}))},onSortEnd:function(e){var a=e.oldIndex,o=e.newIndex,r=l()(t.images,a,o);i.length&&(r=[].concat(g(r.slice(0,o).filter((function(e){return!i.includes(e)}))),g(i),g(r.slice(o,r.length).filter((function(e){return!i.includes(e)}))))),m(!1),y(null),c([]),n(r)},distance:3,axis:"xy"})},k=lodash.debounce,T=wp.blockEditor,E=T.MediaUpload,x=T.MediaUploadCheck;t.a=function(e){var t=e.attributes,n=e.onSelectImages,a=k(n,250);return wp.element.createElement(x,null,wp.element.createElement(E,{onSelect:a,allowedTypes:["image"],multiple:!0,addToGallery:!0,gallery:!0,value:t.images.map((function(e){return e.id})),render:function(e){var a=e.open;return wp.element.createElement(v,{attributes:t,open:a,onSelectImages:n})}}))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(79),n(6)),r=(n(1),wp.i18n.__),i=wp.components,c=i.Button,p=i.Path,d=i.Rect,m=i.SVG,s=i.Tooltip,u=wp.data.useSelect,b=wp.element.Fragment;t.default=function(e){var t,n=e.label,a=e.onClick,i=e.layout,g=e.layoutTablet,f=e.layoutMobile,y=e.columns,h=u((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);return"Desktop"===h?t=i:"Tablet"===h?t=g:"Mobile"===h&&(t=f),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===y&&wp.element.createElement(s,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===y&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(b,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(s,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(d,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(d,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(p,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(d,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}},function(e,t,n){"use strict";n.r(t);n(82);var a=n(3),l=n(0),o=n.n(l);n(83),n(1);function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=lodash,p=c.startCase,d=c.toLower,m=wp.i18n.__,s=wp.components,u=s.Button,b=s.Dashicon,g=s.Icon,f=s.TextControl,y=s.Tooltip,h=s.SelectControl,w=function(e){var t,n=e.preview,l=e.tab,i=e.blocksCategories,c=e.templateCategories,s=e.selectedCategory,w=e.selectedTemplate,v=e.search,k=e.setPreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?i:c).map((function(e){return{label:p(d(e)),value:e}})),[{label:m("All Categories"),value:"all"}].concat(r(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(u,{className:"library-modal-header-tabs-button back-to-library","aria-label":m("Back to Library"),onClick:function(){return k(!1)}},wp.element.createElement(b,{icon:"arrow-left-alt"})," ",m("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(g,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(b,{icon:"screenoptions"}),m("Blocks")),wp.element.createElement(u,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(b,{icon:"editor-table"}),m("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(u,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(w.template_url)},tabindex:"0"},wp.element.createElement(b,{icon:"arrow-down-alt",size:16}),m("Insert")),wp.element.createElement(y,{text:m("Close")},wp.element.createElement(u,{className:"library-modal-header-tabs-button","aria-label":m("Close settings"),onClick:E},wp.element.createElement(b,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(h,{className:"library-modal-category-control",value:"all"===s?"all":s,onChange:C,options:M}),wp.element.createElement(f,{type:"text",value:v||"",placeholder:m("Search"),className:"library-modal-search-control",onChange:S})))},v=wp.components.Notice,k=wp.data,T=k.useDispatch,E=k.useSelect,x=function(){var e=E((function(e){return e("core/notices").getNotices("themeisle-blocks/notices/template-library")})),t=T("core/notices").removeNotice;return wp.element.createElement("div",{className:"library-modal-error"},e.map((function(e){return wp.element.createElement(v,{status:e.status,isDismissible:e.isDismissible,onRemove:function(){return t(e.id,"themeisle-blocks/notices/template-library")},actions:e.actions},e.content)})))},C=n(27),S=n.n(C),M=wp.i18n.__,B=wp.components.Button,O=function(e){var t=e.template,n=e.importPreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},wp.element.createElement("h4",{className:"library-modal-content__footer_meta_area"},t.title&&t.title+(t.author&&M(" by ")+t.author),!t.title&&t.author&&M("Author: ")+t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},wp.element.createElement(B,{isSecondary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},R=wp.i18n.__,A=wp.blockEditor.BlockPreview,L=wp.components.Spinner,P=wp.compose.useViewportMatch,N=function(e){var t=e.preview,n=e.isLoading,a=e.data,l=e.tab,o=e.selectedTemplateContent,r=e.selectedCategory,i=e.search,c=e.importPreview,p=e.importTemplate,d=P("large",">="),m=P("large","<="),s=P("small",">="),u=P("small","<="),b=1400;return!d&&!m&&s&&!u?b=960:!(d||m||s||u)&&(b=600),t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement(A,{blocks:o,viewportWidth:b})):n?wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(L,null)):wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,importPreview:c,importTemplate:p})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"})))))};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function j(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function z(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){j(o,a,l,r,i,"next",e)}function i(e){j(o,a,l,r,i,"throw",e)}r(void 0)}))}}var H=wp.i18n.__,D=wp.apiFetch,G=wp.blocks.parse,V=wp.components.Modal,F=wp.data,W=F.useSelect,U=F.useDispatch,q=wp.element,Z=q.useEffect,$=q.useState,Q=function(e){var t=e.clientId,n=e.close,a=W((function(e){return e("core/block-editor").getBlock(t)})),l=U("core/block-editor").replaceBlocks,r=U("core/notices").createNotice;Z((function(){(function(){var e=z(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Boolean(themeisleGutenberg.isCompatible)||r("warning",H("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."),{context:"themeisle-blocks/notices/template-library",id:"compatibility-warning",isDismissible:!1,actions:[{label:H("Update Now"),url:themeisleGutenberg.updatePath}]}),e.prev=1,e.next=4,D({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 4:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),T(n),S(a),O(t),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),r("error",H("There seems to be an error. Please try again."),{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 18:s(!1);case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var i=_($("block"),2),c=i[0],p=i[1],d=_($(!0),2),m=d[0],s=d[1],u=_($("all"),2),b=u[0],g=u[1],f=_($(""),2),y=f[0],h=f[1],v=_($([]),2),k=v[0],T=v[1],E=_($([]),2),C=E[0],S=E[1],M=_($([]),2),B=M[0],O=M[1],R=_($(!1),2),A=R[0],L=R[1],P=_($(null),2),I=P[0],j=P[1],F=_($(null),2),q=F[0],Q=F[1],K=function(){var e=z(regeneratorRuntime.mark((function e(){var t,n,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:null,s(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t.template_url,"&preview=true")});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),j(t),Q(n),L(!0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0});case 15:s(!1);case 16:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=z(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!1),s(!0),e.prev=2,e.next=5,D({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:(n=e.sent).__file&&n.content&&"wp_export"===n.__file&&(n=G(n.content)),o=n,l(a.clientId,o),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.message&&r("error",e.t0.message,{context:"themeisle-blocks/notices/template-library",isDismissible:!0}),s(!1);case 14:case"end":return e.stop()}var o}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(V,{className:o()("wp-block-themeisle-library-modal",{"is-preview":A}),onRequestClose:n,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(w,{preview:A,tab:c,changeTab:function(e){p(e),g("all"),h("")},blocksCategories:k,templateCategories:C,selectedTemplate:I,selectedCategory:b,search:y,setPreview:L,close:n,importTemplate:J,selectCategory:function(e){return g(e)},changeSearch:function(e){return h(e)}}),wp.element.createElement(x,null),wp.element.createElement(N,{preview:A,isLoading:m,data:B,tab:c,selectedTemplateContent:q,selectedCategory:b,search:y,importPreview:K,importTemplate:J}))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(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 J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.Button,te=X.Dashicon,ne=X.Icon,ae=X.Path,le=X.Placeholder,oe=X.Rect,re=X.SVG,ie=X.Tooltip,ce=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=K(ce(!1),2),o=l[0],r=l[1];return wp.element.createElement(le,{label:Y("Select Layout"),instructions:Y("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ne,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("1:1:2")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("2:1:1")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(ie,{text:Y("Equal")},wp.element.createElement(ee,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(re,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(ae,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(oe,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(oe,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(ie,{text:Y("Open Template Library")},wp.element.createElement(ee,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(te,{icon:"category"}),Y("Template Library")),o&&wp.element.createElement(Q,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(ee,{isLink:!0,onClick:function(){return n(1,"equal")}},Y("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=wp.i18n.__,r=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},i=function(e){var t=[o("January"),o("February"),o("March"),o("April"),o("May"),o("June"),o("July"),o("August"),o("September"),o("October"),o("November"),o("December")],n=(e=new Date(e)).getDate(),a=e.getMonth(),l=e.getFullYear();return n+" "+t[a]+", "+l},c=(n(1),wp.components),p=c.Placeholder,d=c.Spinner,m=wp.data.useSelect,s=function(e){var t=e.id,n=e.link,a=e.alt,l=e.size,o=m((function(e){var n=e("core").getMedia(t);return{featuredImage:n?0<Object.keys(n.media_details.sizes).length&&n.media_details.sizes[l]?n.media_details.sizes[l].source_url:n.source_url:null,altText:n&&n.alt_text?n.alt_text:a}}),[l]),r=o.featuredImage,i=o.altText;return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:n},r?wp.element.createElement("img",{src:r,size:l,alt:i,"data-id":t}):wp.element.createElement(p,null,wp.element.createElement(d,null))))},u=wp.i18n,b=u.__,g=u.sprintf,f=function(e){var t=e.className,n=e.attributes,a=e.posts,o=e.categoriesList,c=e.authors,p=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return o&&(t=o.find((function(t){return t.id===e.categories[0]}))),c&&(a=c.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},void 0!==e.featured_media&&0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(s,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&o?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(p,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},r(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&g(b("on %s"),i(e.date)),n.displayAuthor&&void 0!==a&&c&&g(b(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},r(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},y=wp.i18n,h=y.__,w=y.sprintf,v=function(e){var t=e.className,n=e.attributes,a=e.posts,o=e.categoriesList,c=e.authors,p=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return o&&(t=o.find((function(t){return t.id===e.categories[0]}))),c&&(a=c.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(s,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&o?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(p,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},r(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&w(h("on %s"),i(e.date)),n.displayAuthor&&void 0!==a&&c&&w(h(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},r(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(f,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(v,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},o=n(0),r=n.n(o),i=n(9),c=n.n(i);n(1);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=wp.blockEditor.InnerBlocks,u=wp.components,b=u.SVG,g=u.Path,f={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(b,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(b,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(g,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},h=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,i=e.width,c=e.height;return"none"!==a&&wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(b,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(b,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(b,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(b,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"bottom"===t})},wp.element.createElement(g,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(b,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:r()({rotate:"top"===t})},wp.element.createElement(g,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},w=[{attributes:f,supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,i,p=e.attributes,m=e.className,u=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(i="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(i,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(a={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(a={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(l={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(l={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(o={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(c()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var b,g=d(d(d(d(d({},t),a),l),o),{},{justifyContent:p.horizontalAlign});("color"===p.backgroundOverlayType&&(n={background:p.backgroundOverlayColor,opacity:p.backgroundOverlayOpacity/100}),"image"===p.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(p.backgroundOverlayImageURL,"' )"),backgroundAttachment:p.backgroundOverlayAttachment,backgroundPosition:p.backgroundOverlayPosition,backgroundRepeat:p.backgroundOverlayRepeat,backgroundSize:p.backgroundOverlaySize,opacity:p.backgroundOverlayOpacity/100}),"gradient"===p.backgroundOverlayType)&&(b="linear"===p.backgroundOverlayGradientType?"".concat(p.backgroundOverlayGradientAngle,"deg"):"at ".concat(p.backgroundOverlayGradientPosition),n={background:"".concat(p.backgroundOverlayGradientType,"-gradient( ").concat(b,", ").concat(p.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientFirstLocation,"%, ").concat(p.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientSecondLocation,"% )"),opacity:p.backgroundOverlayOpacity/100});var f=d(d({},n),{},{mixBlendMode:p.backgroundOverlayBlend,filter:"blur( ".concat(p.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(p.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(p.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(p.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(p.backgroundOverlayFilterHue,"deg ) saturate( ").concat(p.backgroundOverlayFilterSaturate/10," )")}),h={};p.columnsWidth&&(h={maxWidth:p.columnsWidth+"px"});var w=p.hide?"":"has-desktop-".concat(p.layout,"-layout"),v=p.hideTablet?"":"has-tablet-".concat(p.layoutTablet,"-layout"),k=p.hideMobile?"":"has-mobile-".concat(p.layoutMobile,"-layout"),T=r()(m,"has-".concat(p.columns,"-columns"),w,v,k,{"hide-in-desktop":p.hide},{"hide-in-tablet":p.hideTablet},{"hide-in-mobile":p.hideMobile},"has-".concat(p.lcolumnsGap,"-gap"),"has-vertical-".concat(p.verticalAlign));return wp.element.createElement(u,{className:T,id:p.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:p.dividerTopType,fill:p.dividerTopColor,invert:p.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(s.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:p.dividerBottomType,fill:p.dividerBottomColor,invert:p.dividerBottomInvert}))}},{attributes:f,supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,i,p=e.attributes,m=e.className,u=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(i="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(i,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(a={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(a={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(l={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(l={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(o={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(c()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var b,g=d(d(d(d(d({},t),a),l),o),{},{justifyContent:p.horizontalAlign});("color"===p.backgroundOverlayType&&(n={background:p.backgroundOverlayColor,opacity:p.backgroundOverlayOpacity/100}),"image"===p.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(p.backgroundOverlayImageURL,"' )"),backgroundAttachment:p.backgroundOverlayAttachment,backgroundPosition:p.backgroundOverlayPosition,backgroundRepeat:p.backgroundOverlayRepeat,backgroundSize:p.backgroundOverlaySize,opacity:p.backgroundOverlayOpacity/100}),"gradient"===p.backgroundOverlayType)&&(b="linear"===p.backgroundOverlayGradientType?"".concat(p.backgroundOverlayGradientAngle,"deg"):"at ".concat(p.backgroundOverlayGradientPosition),n={background:"".concat(p.backgroundOverlayGradientType,"-gradient( ").concat(b,", ").concat(p.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientFirstLocation,"%, ").concat(p.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundOverlayGradientSecondLocation,"% )"),opacity:p.backgroundOverlayOpacity/100});var f=d(d({},n),{},{mixBlendMode:p.backgroundOverlayBlend}),h={};p.columnsWidth&&(h={maxWidth:p.columnsWidth+"px"});var w=p.hide?"":"has-desktop-".concat(p.layout,"-layout"),v=p.hideTablet?"":"has-tablet-".concat(p.layoutTablet,"-layout"),k=p.hideMobile?"":"has-mobile-".concat(p.layoutMobile,"-layout"),T=r()(m,"has-".concat(p.columns,"-columns"),w,v,k,{"hide-in-desktop":p.hide},{"hide-in-tablet":p.hideTablet},{"hide-in-mobile":p.hideMobile},"has-".concat(p.columnsGap,"-gap"),"has-vertical-".concat(p.verticalAlign));return wp.element.createElement(u,{className:T,id:p.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:p.dividerTopType,fill:p.dividerTopColor,invert:p.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(s.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:p.dividerBottomType,fill:p.dividerBottomColor,invert:p.dividerBottomInvert}))}},{attributes:d(d({},f),{},{paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},reverseColumnsTablet:{type:"boolean",default:!1},reverseColumnsMobile:{type:"boolean",default:!1}}),supports:{align:["wide","full"],html:!1},save:function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),i=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),c=r()(n,"has-".concat(t.columns,"-columns"),l,o,i,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:c,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(h,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(s.Content,null)),wp.element.createElement(h,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}}],v=n(8),k=n(21),T=wp.blockEditor,E=T.BlockControls,x=T.BlockVerticalAlignmentToolbar,C=function(e){var t=e.attributes,n=e.setAttributes,a=function(){return"flex-start"===t.verticalAlign?"top":"flex-end"===t.verticalAlign?"bottom":t.verticalAlign};return a=a(),wp.element.createElement(E,null,wp.element.createElement(x,{onChange:function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});"top"===e?e="flex-start":"bottom"===e&&(e="flex-end"),n({verticalAlign:e})},value:a}))},S=n(5),M=n(30),B=n(7),O=n(6),R=n(19),A=n(22),L=n(11),P=n(25);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var j=wp.i18n.__,z=wp.blockEditor,H=z.ColorPalette,D=z.InspectorControls,G=z.MediaPlaceholder,V=wp.components,F=V.BaseControl,W=V.Button,U=V.ButtonGroup,q=V.Dashicon,Z=V.PanelBody,$=V.ToggleControl,Q=V.RangeControl,K=V.SelectControl,J=wp.data.useSelect,Y=wp.element,X=Y.Fragment,ee=Y.useState,te=function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,l=e.dividerViewType,o=e.setDividerViewType,i=J((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),c=_(ee("layout"),2),p=c[0],d=c[1],m=function(){var e;return"Desktop"===i&&(e=t.paddingType),"Tablet"===i&&(e=t.paddingTypeTablet),"Mobile"===i&&(e=t.paddingTypeMobile),e};m=m();var s={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},u={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},b={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},g=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},f=function(){var e;return"Desktop"===i&&(e=t.marginType),"Tablet"===i&&(e=t.marginTypeTablet),"Mobile"===i&&(e=t.marginTypeMobile),e};f=f();var y={top:"marginTop",bottom:"marginBottom"},h={top:"marginTopTablet",bottom:"marginBottomTablet"},w={top:"marginTopMobile",bottom:"marginBottomMobile"},v=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},k=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},T=function(){var e;return"Desktop"===i&&(e=t.columnsHeightCustom),"Tablet"===i&&(e=t.columnsHeightCustomTablet),"Mobile"===i&&(e=t.columnsHeightCustomMobile),e};T=T();var E=function(){n({backgroundImageID:"",backgroundImageURL:""})},x=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},C={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},I=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},z={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},V=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},Y=function(){var e;return"top"==l&&(e=t.dividerTopType),"bottom"==l&&(e=t.dividerBottomType),e};Y=Y();var te=function(){var e;return"top"==l&&(e=t.dividerTopColor),"bottom"==l&&(e=t.dividerBottomColor),e};te=te();var ne=function(){var e;return"top"==l&&("Desktop"==i&&(e=t.dividerTopWidth),"Tablet"==i&&(e=t.dividerTopWidthTablet),"Mobile"==i&&(e=t.dividerTopWidthMobile)),"bottom"==l&&("Desktop"==i&&(e=t.dividerBottomWidth),"Tablet"==i&&(e=t.dividerBottomWidthTablet),"Mobile"==i&&(e=t.dividerBottomWidthMobile)),e};ne=ne();var ae=function(){var e;return"top"==l&&("Desktop"==i&&(e=t.dividerTopHeight),"Tablet"==i&&(e=t.dividerTopHeightTablet),"Mobile"==i&&(e=t.dividerTopHeightMobile)),"bottom"==l&&("Desktop"==i&&(e=t.dividerBottomHeight),"Tablet"==i&&(e=t.dividerBottomHeightTablet),"Mobile"==i&&(e=t.dividerBottomHeightMobile)),e};ae=ae();var le=function(){var e;return"top"==l&&(e=t.dividerTopInvert),"bottom"==l&&(e=t.dividerBottomInvert),e};le=le();var oe=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},re=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(X,null,wp.element.createElement(D,null,wp.element.createElement(Z,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return d("layout")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"editor-table"}),j("Layout"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"style"===p}),onClick:function(){return d("style")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-customizer"}),j("Style"))),wp.element.createElement(W,{className:r()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return d("advanced")}},wp.element.createElement("span",null,wp.element.createElement(q,{icon:"admin-generic"}),j("Advanced")))),"layout"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Columns & Layout")},wp.element.createElement(Q,{label:j("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(M.default,{label:j("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===i&&(n({layout:e}),a(t.columns,e)),"Tablet"===i&&n({layoutTablet:e}),"Mobile"===i&&n({layoutMobile:e})}}),wp.element.createElement(K,{label:j("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(Z,{title:j("Spacing"),initialOpen:!1},wp.element.createElement(O.a,{label:"Padding"},wp.element.createElement(B.a,{type:m,min:0,max:500,changeType:function(e){"Desktop"===i&&n({paddingType:e}),"Tablet"===i&&n({paddingTypeTablet:e}),"Mobile"===i&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.paddingType?n({padding:a}):n(N({},s[e],a))),"Tablet"===i&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(N({},u[e],a))),"Mobile"===i&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(N({},b[e],a)))},options:[{label:j("Top"),type:"top",value:g("top")},{label:j("Right"),type:"right",value:g("right")},{label:j("Bottom"),type:"bottom",value:g("bottom")},{label:j("Left"),type:"left",value:g("left")}]})),wp.element.createElement(O.a,{label:"Margin"},wp.element.createElement(B.a,{type:f,min:-500,max:500,changeType:function(e){"Desktop"===i&&n({marginType:e}),"Tablet"===i&&n({marginTypeTablet:e}),"Mobile"===i&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.marginType?n({margin:a}):n(N({},y[e],a))),"Tablet"===i&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(N({},h[e],a))),"Mobile"===i&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(N({},w[e],a)))},options:[{label:j("Top"),type:"top",value:v("top")},{label:j("Right"),disabled:!0},{label:j("Bottom"),type:"bottom",value:v("bottom")},{label:j("Left"),disabled:!0}]}))),wp.element.createElement(Z,{title:j("Section Structure"),initialOpen:!1},wp.element.createElement(Q,{label:j("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(F,{label:"Horizontal Align"},wp.element.createElement(U,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(W,{icon:"editor-alignleft",label:j("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return k("flex-start")}}),wp.element.createElement(W,{icon:"editor-aligncenter",label:j("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===t.horizontalAlign,onClick:function(){return k("center")}}),wp.element.createElement(W,{icon:"editor-alignright",label:j("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return k("flex-end")}}))),wp.element.createElement(K,{label:j("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(O.a,{label:"Custom Height"},wp.element.createElement(Q,{value:T||"",onChange:function(e){"Desktop"===i&&n({columnsHeightCustom:e}),"Tablet"===i&&n({columnsHeightCustomTablet:e}),"Mobile"===i&&n({columnsHeightCustomMobile:e})},min:0,max:1e3}))))||"style"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(R.default,{label:j("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(S.a,{label:j("Background Color"),colorValue:t.backgroundColor},wp.element.createElement(H,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(X,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:E},wp.element.createElement(q,{icon:"trash"}),wp.element.createElement("span",null,j("Remove Image"))))),wp.element.createElement(W,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:E},j("Change or Remove Image")),wp.element.createElement(L.a,{label:"Background Settings"},wp.element.createElement(K,{label:j("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(K,{label:j("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(K,{label:j("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(K,{label:j("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(G,{icon:"format-image",labels:{title:j("Background Image"),name:j("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(N({},t[a],e[a]))}})),wp.element.createElement(Z,{title:j("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(R.default,{label:j("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(Q,{label:j("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:j("Overlay Color"),colorValue:t.backgroundOverlayColor},wp.element.createElement(H,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(X,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:x},wp.element.createElement(q,{icon:"trash"}),wp.element.createElement("span",null,j("Remove Image"))))),wp.element.createElement(W,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:x},j("Change or Remove Image")),wp.element.createElement(L.a,{label:"Background Settings"},wp.element.createElement(K,{label:j("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement(K,{label:j("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement(K,{label:j("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement(K,{label:j("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(G,{icon:"format-image",labels:{title:j("Background Image"),name:j("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(A.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundOverlayGradientFirstColor",firstLocation:"backgroundOverlayGradientFirstLocation",secondColor:"backgroundOverlayGradientSecondColor",secondLocation:"backgroundOverlayGradientSecondLocation",type:"backgroundOverlayGradientType",angle:"backgroundOverlayGradientAngle",position:"backgroundOverlayGradientPosition"};for(var a in e)n(N({},t[a],e[a]))}}),wp.element.createElement(L.a,{label:"CSS Filters"},wp.element.createElement(Q,{label:j("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(Q,{label:j("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement(K,{label:j("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(Z,{title:j("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(B.a,{label:j("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(N({},C[e],a))},options:[{label:j("Top"),type:"top",value:I("top")},{label:j("Right"),type:"right",value:I("right")},{label:j("Bottom"),type:"bottom",value:I("bottom")},{label:j("Left"),type:"left",value:I("left")}]}),wp.element.createElement(S.a,{label:j("Border Color"),colorValue:t.borderColor},wp.element.createElement(H,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(B.a,{label:j("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(N({},z[e],a))},options:[{label:j("Top"),type:"top",value:V("top")},{label:j("Right"),type:"right",value:V("right")},{label:j("Bottom"),type:"bottom",value:V("bottom")},{label:j("Left"),type:"left",value:V("left")}]}),wp.element.createElement($,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(X,null,wp.element.createElement(S.a,{label:j("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(H,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(L.a,{label:"Border Shadow"},wp.element.createElement(Q,{label:j("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(Q,{label:j("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(Q,{label:j("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Q,{label:j("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(Z,{title:j("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(U,null,wp.element.createElement(W,{isSmall:!0,isSecondary:"top"!==l,isPrimary:"top"===l,onClick:function(){return o("top")}},j("Top")),wp.element.createElement(W,{isSmall:!0,isSecondary:"bottom"!==l,isPrimary:"bottom"===l,onClick:function(){return o("bottom")}},j("Bottom"))),wp.element.createElement(K,{label:j("Type"),value:Y,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==l&&n({dividerTopType:e}),"bottom"==l&&n({dividerBottomType:e})}}),"none"!==Y&&wp.element.createElement(X,null,wp.element.createElement(S.a,{label:j("Color"),colorValue:te},wp.element.createElement(H,{label:j("Color"),value:te,onChange:function(e){"top"==l&&n({dividerTopColor:e}),"bottom"==l&&n({dividerBottomColor:e})}})),wp.element.createElement(O.a,{label:"Width"},wp.element.createElement(Q,{value:ne,onChange:function(e){"top"==l&&("Desktop"==i&&n({dividerTopWidth:e}),"Tablet"==i&&n({dividerTopWidthTablet:e}),"Mobile"==i&&n({dividerTopWidthMobile:e})),"bottom"==l&&("Desktop"==i&&n({dividerBottomWidth:e}),"Tablet"==i&&n({dividerBottomWidthTablet:e}),"Mobile"==i&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(O.a,{label:"Height"},wp.element.createElement(Q,{value:ae,onChange:function(e){"top"==l&&("Desktop"==i&&n({dividerTopHeight:e}),"Tablet"==i&&n({dividerTopHeightTablet:e}),"Mobile"==i&&n({dividerTopHeightMobile:e})),"bottom"==l&&("Desktop"==i&&n({dividerBottomHeight:e}),"Tablet"==i&&n({dividerBottomHeightTablet:e}),"Mobile"==i&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==Y&&"cloud"!==Y&&wp.element.createElement($,{label:"Invert Shape Divider",checked:le,onChange:function(){"top"==l&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==l&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===p&&wp.element.createElement(X,null,wp.element.createElement(Z,{title:j("Responsive")},wp.element.createElement($,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return oe(e,"Desktop")}}),wp.element.createElement($,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return oe(e,"Tablet")}}),wp.element.createElement($,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return oe(e,"Mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement($,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return re(e,"Tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement($,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return re(e,"Mobile")}})),wp.element.createElement(Z,{title:j("Section Settings"),initialOpen:!1},wp.element.createElement(K,{label:j("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(P.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ae(e,t)}(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 ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var le=wp.i18n.__,oe=wp.blockEditor,re=oe.__experimentalBlockNavigationList,ie=oe.__experimentalBlockNavigationTree,ce=oe.BlockControls,pe=wp.components,de=pe.Button,me=pe.Modal,se=pe.Toolbar,ue=wp.data,be=ue.useSelect,ge=ue.useDispatch,fe=wp.element,ye=fe.Fragment,he=fe.useState,we=function(e){var t=e.clientId,n=be((function(e){var n=e("core/block-editor"),a=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:a()}}),[]),l=n.block,o=n.selectedBlockClientId,r=ge("core/block-editor").selectBlock,i=ne(he(!1),2),c=i[0],p=i[1],d=re||ie;return wp.element.createElement(ye,null,wp.element.createElement(ce,null,wp.element.createElement(se,null,wp.element.createElement(de,{className:"components-toolbar__control",label:le("Open block navigator"),showTooltip:!0,onClick:function(){return p(!0)},icon:a.l}))),c&&wp.element.createElement(me,{title:le("Block Navigator"),closeLabel:le("Close"),onRequestClose:function(){return p(!1)}},wp.element.createElement(d,{blocks:[l],selectedBlockClientId:o,selectBlock:r,showNestedBlocks:!0})))},ve=n(17),ke=n(31);function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||xe(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 Ee(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n=Object.prototype.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)?Ce(e,t):void 0}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=lodash,Re=Oe.isEqual,Ae=Oe.times,Le=wp.compose.useViewportMatch,Pe=wp.data,Ne=Pe.useDispatch,_e=Pe.useSelect,Ie=wp.blockEditor.InnerBlocks,je=wp.element,ze=je.Fragment,He=je.useEffect,De=je.useState,Ge=[],Ve=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.name,p=Ne("core/block-editor").updateBlockAttributes,d=_e((function(e){var t=e("core/block-editor").getBlock,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:t(o),isViewportAvailable:!!n,isPreviewDesktop:!!n&&"Desktop"===n(),isPreviewTablet:!!n&&"Tablet"===n(),isPreviewMobile:!!n&&"Mobile"===n()}}),[]),m=d.sectionBlock,s=d.isViewportAvailable,u=d.isPreviewDesktop,b=d.isPreviewTablet,g=d.isPreviewMobile,f=Le("large",">="),y=Le("large","<="),h=Le("small",">="),w=Le("small","<=");He((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-columns-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Re(v.a[i],window.themeisleGutenberg.globalDefaults[i])||(a=Me({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Me(Me({},a),{},{id:r})),Ge.push(r),e.push(r)}else if(Ge.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(o.substr(0,8));n({id:c}),Ge.push(c),e.push(c)}else Ge.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Ee(e)},E=Te(De("top"),2),x=E[0],S=E[1],M=f&&!y&&h&&!w,B=!f&&!y&&h&&!w,O=!(f||y||h||w);s&&!O&&(M=u,B=b,O=g);var R,A,L,P,N,_,I,j=t.columnsHTMLTag;(M&&(R={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),B&&(R={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),O&&(R={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(A={background:t.backgroundColor}),"image"===t.backgroundType&&(A={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(A={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(P={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(P={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(N={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(N={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(_={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(c()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var z,H=Me(Me(Me(Me(Me({},R),A),P),N),_);("color"===t.backgroundOverlayType&&(L={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(L={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(z="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),L={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(z,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var D=Me(Me({},L),{},{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),G={};t.columnsWidth&&(G={maxWidth:t.columnsWidth+"px"});var V=r()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),"has-horizontal-".concat(t.horizontalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":M},{"has-viewport-tablet":B},{"has-viewport-mobile":O}),F=function(){var e;return M&&(e=t.dividerTopWidth),B&&(e=t.dividerTopWidthTablet),O&&(e=t.dividerTopWidthMobile),e};F=F();var W=function(){var e;return M&&(e=t.dividerBottomWidth),B&&(e=t.dividerBottomWidthTablet),O&&(e=t.dividerBottomWidthMobile),e};W=W();var U=function(){var e;return M&&(e=t.dividerTopHeight),B&&(e=t.dividerTopHeightTablet),O&&(e=t.dividerTopHeightMobile),e};U=U();var q=function(){var e;return M&&(e=t.dividerBottomHeight),B&&(e=t.dividerBottomHeightTablet),O&&(e=t.dividerBottomHeightMobile),e};q=q();var Z;return t.columns?wp.element.createElement(ze,null,wp.element.createElement(we,{clientId:o}),wp.element.createElement(C,{attributes:t,setAttributes:n}),wp.element.createElement(te,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){m.innerBlocks.map((function(n,a){p(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:x,setDividerViewType:S}),wp.element.createElement(j,{className:V,id:t.id,style:H},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:D}),wp.element.createElement(ve.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:U}),wp.element.createElement("div",{className:"innerblocks-wrap",style:G},wp.element.createElement(Ie,{allowedBlocks:["themeisle-blocks/advanced-column"],template:(Z=t.columns,Ae(Z,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[Z][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(ve.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:W,height:q}))):wp.element.createElement(ke.default,{clientId:o,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})},Fe=wp.blockEditor.InnerBlocks,We=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),i=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),c=r()(n,"has-".concat(t.columns,"-columns"),l,o,i,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:c,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(ve.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(Fe.Content,null)),wp.element.createElement(ve.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ue("Section"),description:Ue("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:a.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:l,supports:{align:["wide","full"],html:!1},deprecated:w,edit:Ve,save:We})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},align:{type:"string"},spacing:{type:"number",default:20},paddingTopBottom:{type:"number"},paddingLeftRight:{type:"number"},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"}},o=n(0),r=n.n(o);n(1);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=lodash,u=s.omit,b=s.pick,g=s.times,f=wp.blocks.createBlock,y=wp.editor.RichText,h=wp.element.Fragment,w={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},v=[{attributes:w,save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},g(t.buttons,(function(e){return function(e){var n=d(d({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(h,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}},{attributes:w,save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},g(t.buttons,(function(e){return function(e){var n=d(d({},l),{},{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(h,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}},{attributes:d(d({},w),{},{fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}}),migrate:function(e,t){var n,a,l;return"flex-start"===e.align&&(n="left"),"center"===e.align&&(n="center"),"flex-end"===e.align&&(n="right"),e.data&&(a=b(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(a).length&&(a=b(a,Object.keys(a).filter((function(e){return""!==a[e]})))),l=e.data.filter((function(t,n){return n<e.buttons})).map((function(e){var t=u(e,["paddingLeftRight","paddingTopBottom"]);return f("themeisle-blocks/button",d({},t))}))),[d(d({},u(e,["buttons","data"])),{},{align:n},a),[].concat(i(l),i(t))]},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},g(t.buttons,(function(e){return function(e){return wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(y.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")}))}(e)})))}}],k=n(24),T=n.n(k),E=wp.i18n.__,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){return n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:E("Align left"),align:"left"},{icon:"editor-aligncenter",title:E("Align center"),align:"center"},{icon:"editor-alignright",title:E("Align right"),align:"right"}]}))},B=n(12),O=n(7),R=wp.i18n.__,A=wp.blockEditor.InspectorControls,L=wp.components,P=L.PanelBody,N=L.RangeControl,_=L.SelectControl,I=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(A,null,wp.element.createElement(P,{title:R("Spacing")},wp.element.createElement(O.a,{label:R("Padding"),min:0,max:100,onChange:function(e,t){"top"!==e&&"bottom"!==e||n({paddingTopBottom:t}),"right"!==e&&"left"!==e||n({paddingLeftRight:t})},options:[{label:R("Top"),type:"top",value:t.paddingTopBottom},{label:R("Right"),type:"right",value:t.paddingLeftRight},{label:R("Bottom"),type:"bottom",value:t.paddingTopBottom},{label:R("Left"),type:"left",value:t.paddingLeftRight}]}),wp.element.createElement(N,{label:R("Spacing"),value:t.spacing,onChange:function(e){return n({spacing:e})},min:0,max:50}),wp.element.createElement(_,{label:R("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return n({collapse:e})}})),wp.element.createElement(P,{title:R("Typography Settings"),initialOpen:!1},wp.element.createElement(N,{label:R("Font Size"),value:t.fontSize,onChange:function(e){return n({fontSize:e})},min:0,max:50}),wp.element.createElement(B.a,{label:R("Font Family"),value:t.fontFamily,onChangeFontFamily:function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:function(e){return n({fontVariant:e})},valueStyle:t.fontStyle,onChangeFontStyle:function(e){return n({fontStyle:e})},valueTransform:t.textTransform,onChangeTextTransform:function(e){return n({textTransform:e})}}),wp.element.createElement(N,{label:R("Line Height"),value:t.lineHeight,onChange:function(e){return n({lineHeight:e})},min:0,max:200})))},j=n(8);function z(e){return function(e){if(Array.isArray(e))return H(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=lodash.isEqual,W=wp.blockEditor.InnerBlocks,U=wp.compose.useViewportMatch,q=wp.data.useSelect,Z=wp.element,$=Z.Fragment,Q=Z.useEffect,K=[],J=function(e){var t,n=e.attributes,a=e.setAttributes,o=e.className,i=e.name,c=e.clientId,p=q((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=p.isViewportAvailable,m=p.isPreviewDesktop,s=p.isPreviewTablet,u=p.isPreviewMobile,b=U("large",">="),g=U("large","<="),f=U("small",">="),y=U("small","<=");Q((function(){h()}),[]);var h=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===n.id){var t,o="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(F(j.a[i],window.themeisleGutenberg.globalDefaults[i])||(t=G({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(t).map((function(e){if(n[e]!==t[e]&&void 0!==l[e].default&&n[e]!==l[e].default)return delete t[e]})))),a(G(G({},t),{},{id:o})),K.push(o),e.push(o)}else if(K.includes(n.id)){var r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));a({id:r}),K.push(r)}else K.push(n.id),e.push(n.id);window.themeisleGutenberg.blockIDs=z(e)},w=b&&!g&&f&&!y,v=!b&&!g&&f&&!y,k=!(b||g||f||y);return d&&!k&&(w=m,v=s,k=u),wp.element.createElement($,null,n.fontFamily&&wp.element.createElement(T.a,{fonts:[{font:n.fontFamily,weights:n.fontVariant&&["".concat(n.fontVariant+("italic"===n.fontStyle?":i":""))]}]}),wp.element.createElement(M,{attributes:n,setAttributes:a}),wp.element.createElement(I,{attributes:n,setAttributes:a}),wp.element.createElement("div",{id:n.id,className:r()(o,"wp-block-buttons",(t={},V(t,"align-".concat(n.align),n.align),V(t,"collapse","collapse-desktop"===n.collapse&&(w||v||k)||"collapse-tablet"===n.collapse&&(v||k)||"collapse-mobile"===n.collapse&&k),t))},wp.element.createElement(W,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:W.DefaultAppender})))};var Y=wp.blockEditor.InnerBlocks,X=function(e){var t,n,a,l=e.attributes,o=e.className,i="collapse-none"!==l.collapse?l.collapse:"";return wp.element.createElement("div",{id:l.id,className:r()(o,i,"wp-block-buttons",(t={},n="align-".concat(l.align),a=l.align,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t))},wp.element.createElement(Y.Content,null))},ee=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:ee("Button Group"),description:ee("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[ee("button"),ee("buttons"),ee("button group")],attributes:l,deprecated:v,edit:J,save:X})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},text:{type:"string",source:"html",selector:"span"},link:{type:"string",source:"attribute",selector:"a",attribute:"href"},newTab:{type:"boolean",default:!1},color:{type:"string"},background:{type:"string"},backgroundGradient:{type:"string"},border:{type:"string"},hoverColor:{type:"string"},hoverBackground:{type:"string"},hoverBackgroundGradient:{type:"string"},hoverBorder:{type:"string"},borderSize:{type:"number"},borderRadius:{type:"number"},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:1},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},hoverBoxShadowColor:{type:"string"},hoverBoxShadowColorOpacity:{type:"number",default:50},hoverBoxShadowBlur:{type:"number",default:5},hoverBoxShadowSpread:{type:"number",default:1},hoverBoxShadowHorizontal:{type:"number",default:0},hoverBoxShadowVertical:{type:"number",default:0},iconType:{type:"string",default:"none"},prefix:{type:"string"},icon:{type:"string"}},o=n(1),r=n(0),i=n.n(r),c=n(9),p=n.n(c),d=n(26),m=wp.blockEditor.BlockControls,s=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected;return wp.element.createElement(m,null,wp.element.createElement(d.a,{isSelected:a,setAttributes:n,url:t.link,opensInNewTab:t.newTab}))},u=n(11);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var f=wp.i18n.__,y=wp.blockEditor,h=y.__experimentalColorGradientControl,w=y.InspectorControls,v=wp.components,k=v.Button,T=v.ButtonGroup,E=v.PanelBody,x=v.RangeControl,C=v.Placeholder,S=v.SelectControl,M=v.Spinner,B=wp.element,O=B.Fragment,R=B.lazy,A=B.Suspense,L=B.useState,P=R((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,123))})),N=function(e){var t=e.attributes,n=e.setAttributes,a=b(L(!1),2),l=a[0],o=a[1],r=function(){return wp.element.createElement(T,null,wp.element.createElement(k,{isSmall:!0,isSecondary:l,isPrimary:!l,onClick:function(){return o(!1)}},f("Normal")),wp.element.createElement(k,{isSmall:!0,isSecondary:!l,isPrimary:l,onClick:function(){return o(!0)}},f("Hover")))};return wp.element.createElement(w,null,wp.element.createElement(E,{title:f("Color")},wp.element.createElement(r,null),l?wp.element.createElement(O,{key:"with-hover"},wp.element.createElement(h,{label:"Hover Color",colorValue:t.hoverColor,onColorChange:function(e){return n({hoverColor:e})}}),wp.element.createElement(h,{label:"Hover Background",colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:function(e){return n({hoverBackground:e})},onGradientChange:function(e){return n({hoverBackgroundGradient:e})}})):wp.element.createElement(O,{key:"without-hover"},wp.element.createElement(h,{label:"Color",colorValue:t.color,onColorChange:function(e){return n({color:e})}}),wp.element.createElement(h,{label:"Background",colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:function(e){return n({background:e})},onGradientChange:function(e){return n({backgroundGradient:e})}}))),wp.element.createElement(E,{title:f("Border & Box Shadow"),initialOpen:!1},wp.element.createElement(r,null),l?wp.element.createElement(h,{label:"Hover Border",colorValue:t.hoverBorder,onColorChange:function(e){return n({hoverBorder:e})}}):wp.element.createElement(h,{label:"Border",colorValue:t.border,onColorChange:function(e){return n({border:e})}}),wp.element.createElement(x,{label:f("Border Width"),value:t.borderSize,onChange:function(e){return n({borderSize:e})},min:0,max:10}),wp.element.createElement(x,{label:f("Border Radius"),value:t.borderRadius,onChange:function(e){return n({borderRadius:e})},min:0,max:100}),wp.element.createElement(u.a,{label:"Box Shadow",attributes:t,setAttributes:n,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:function(){return n({boxShadow:!0})}},wp.element.createElement(r,null),l?wp.element.createElement(O,{key:"with-hover"},wp.element.createElement(h,{label:"Shadow Color on Hover",colorValue:t.hoverBoxShadowColor,onColorChange:function(e){return n({hoverBoxShadowColor:e})}}),wp.element.createElement(x,{label:f("Opacity"),value:t.hoverBoxShadowColorOpacity,onChange:function(e){return n({hoverBoxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Blur"),value:t.hoverBoxShadowBlur,onChange:function(e){return n({hoverBoxShadowBlur:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Spread"),value:t.hoverBoxShadowSpread,onChange:function(e){return n({hoverBoxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Horizontal"),value:t.hoverBoxShadowHorizontal,onChange:function(e){return n({hoverBoxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Vertical"),value:t.hoverBoxShadowVertical,onChange:function(e){return n({hoverBoxShadowVertical:e})},min:-100,max:100})):wp.element.createElement(O,{key:"without-hover"},wp.element.createElement(h,{label:"Shadow Color",colorValue:t.boxShadowColor,onColorChange:function(e){return n({boxShadowColor:e})}}),wp.element.createElement(x,{label:f("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){return n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Blur"),value:t.boxShadowBlur,onChange:function(e){return n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(x,{label:f("Spread"),value:t.boxShadowSpread,onChange:function(e){return n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){return n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(x,{label:f("Vertical"),value:t.boxShadowVertical,onChange:function(e){return n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(E,{title:f("Icon Settings"),initialOpen:!1},wp.element.createElement(S,{label:f("Icon Position"),value:t.iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return n({iconType:e})}}),"none"!==t.iconType&&wp.element.createElement(A,{fallback:wp.element.createElement(C,null,wp.element.createElement(M,null))},wp.element.createElement(P,{label:f("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){n({icon:e.name,prefix:e.prefix})}}))))},_=n(8);function I(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=wp.i18n.__,V=lodash.isEqual,F=wp.blockEditor.RichText,W=wp.data.useSelect,U=wp.element,q=U.Fragment,Z=U.useEffect,$=[],Q=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,r=e.isSelected,c=e.name,d=e.clientId,m=W((function(e){var t=e("core/block-editor"),n=(0,t.getBlock)((0,t.getBlockRootClientId)(d));return{hasParent:!!n,parentAttributes:n?n.attributes:{},isLastChild:!n||d===n.innerBlocks[n.innerBlocks.length-1].clientId}}),[]),u=m.hasParent,b=m.parentAttributes,g=m.isLastChild;Z((function(){f()}),[]);var f=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-button-".concat(d.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(V(_.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=H({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(H(H({},a),{},{id:o})),$.push(o),e.push(o)}else if($.includes(t.id)){var r="wp-block-themeisle-blocks-button-".concat(d.substr(0,8));n({id:r}),$.push(r)}else $.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=I(e)},y={},h={},w={};t.boxShadow&&(y={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))}),u&&(w={marginRight:!g&&"".concat(b.spacing,"px")},h={paddingTop:"".concat(b.paddingTopBottom,"px"),paddingBottom:"".concat(b.paddingTopBottom,"px"),paddingLeft:"".concat(b.paddingLeftRight,"px"),paddingRight:"".concat(b.paddingLeftRight,"px"),fontSize:b.fontSize&&"".concat(b.fontSize,"px"),fontFamily:b.fontFamily,fontWeight:b.fontVariant,fontStyle:b.fontStyle,textTransform:b.textTransform,lineHeight:b.lineHeight&&"".concat(b.lineHeight,"px")});var v=H(H({color:t.color,background:t.background||t.backgroundGradient,border:"".concat(t.borderSize,"px solid ").concat(t.border),borderRadius:t.borderRadius},y),h),k=Object(o.a)("&:hover{color:",t.hoverColor," !important;background:",t.hoverBackground||t.hoverBackgroundGradient," !important;border-color:",t.hoverBorder," !important;",t.boxShadow&&"box-shadow: ".concat(t.hoverBoxShadowHorizontal,"px ").concat(t.hoverBoxShadowVertical,"px ").concat(t.hoverBoxShadowBlur,"px ").concat(t.hoverBoxShadowSpread,"px ").concat(p()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)," !important;"),"}");return Object(o.b)(q,null,Object(o.b)(s,{attributes:t,setAttributes:n,isSelected:r}),Object(o.b)(N,{attributes:t,setAttributes:n}),Object(o.b)("div",{id:t.id,className:i()(a,"wp-block-button"),style:w},"none"!==t.iconType?Object(o.b)("div",{className:"wp-block-button__link",style:v,css:k},("left"===t.iconType||"only"===t.iconType)&&Object(o.b)("i",{className:i()(t.prefix,"fa-fw","fa-".concat(t.icon),{"margin-right":"left"===t.iconType})}),"only"!==t.iconType&&Object(o.b)(F,{placeholder:G("Add text…"),value:t.text,onChange:function(e){return n({text:e})},tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&Object(o.b)("i",{className:"".concat(t.prefix," fa-fw fa-").concat(t.icon," margin-left")})):Object(o.b)(F,{placeholder:G("Add text…"),value:t.text,onChange:function(e){return n({text:e})},tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:v,css:k})))},K=wp.blockEditor.RichText,J=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:i()(n,"wp-block-button")},wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&wp.element.createElement("i",{className:i()(t.prefix,"fa-fw","fa-".concat(t.icon),{"margin-right":"left"===t.iconType})}),"only"!==t.iconType&&wp.element.createElement(K.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&wp.element.createElement("i",{className:"".concat(t.prefix," fa-fw fa-").concat(t.icon," margin-left")})))},Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button",{title:Y("Button"),description:Y("Prompt visitors to take action with a button group."),parent:["themeisle-blocks/button-group"],icon:a.d,category:"themeisle-blocks",keywords:[Y("button"),Y("buttons"),Y("button group")],attributes:l,supports:{reusable:!1},styles:[{name:"fill",label:Y("Fill"),isDefault:!0},{name:"outline",label:Y("Outline")}],edit:Q,save:J})},function(e,t,n){"use strict";n.r(t);var a=n(3),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(9),r=n.n(o);n(1);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=wp.blockEditor.InnerBlocks,m=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,i=e.attributes,p=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(o="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(o,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(n={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(n={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(a={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(a={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(l={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(r()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var s=c(c(c(c({},t),n),a),l);return wp.element.createElement(m,{className:p,id:i.id,style:s},wp.element.createElement(d.Content,null))}}],s=n(8),u=n(21),b=n(0),g=n.n(b),f=n(5),y=n(7),h=n(6),w=n(19),v=n(22),k=n(11);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(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 x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var C=wp.i18n.__,S=wp.blockEditor,M=S.ColorPalette,B=S.InspectorControls,O=S.MediaPlaceholder,R=wp.components,A=R.Button,L=R.Dashicon,P=R.PanelBody,N=R.ToggleControl,_=R.RangeControl,I=R.SelectControl,j=wp.data.useSelect,z=wp.element,H=z.Fragment,D=z.useEffect,G=z.useRef,V=z.useState,F=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,p=j((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]);D((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];b.current=t.clientId,x.current=t.attributes.columnWidth}}),[]),D((function(){if(1<r.innerBlocks.length)if(c)x.current=o.attributes.columnWidth,b.current=c,u.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];x.current=n.attributes.columnWidth,b.current=n.clientId,u.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var d=E(V("layout"),2),m=d[0],s=d[1],u=G(t.columnWidth),b=G(c&&c),x=G(o&&o.attributes.columnWidth),S=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};S=S();var R={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},z={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},F={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},W=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},U=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};U=U();var q={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},Z={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},$={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},Q=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},K=function(){n({backgroundImageID:"",backgroundImageURL:""})},J={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},Y=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},X={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ee=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(B,null,wp.element.createElement(P,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"layout"===m}),onClick:function(){return s("layout")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"editor-table"}),C("Layout"))),wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-customizer"}),C("Style"))),wp.element.createElement(A,{className:g()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(L,{icon:"admin-generic"}),C("Advanced")))),"layout"===m&&wp.element.createElement(H,null,wp.element.createElement(P,{title:C("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(_,{label:C("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(u.current)-t+Number(x.current);u.current=t,x.current=a,n({columnWidth:t.toFixed(2)}),i(b.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(x.current)-10}),wp.element.createElement(h.a,{label:"Padding"},wp.element.createElement(y.a,{type:S,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(T({},R[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(T({},z[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(T({},F[e],a)))},options:[{label:C("Top"),type:"top",value:W("top")},{label:C("Right"),type:"right",value:W("right")},{label:C("Bottom"),type:"bottom",value:W("bottom")},{label:C("Left"),type:"left",value:W("left")}]})),wp.element.createElement(h.a,{label:"Margin"},wp.element.createElement(y.a,{type:U,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(T({},q[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(T({},Z[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(T({},$[e],a)))},options:[{label:C("Top"),type:"top",value:Q("top")},{label:C("Right"),type:"right",value:Q("right")},{label:C("Bottom"),type:"bottom",value:Q("bottom")},{label:C("Left"),type:"left",value:Q("left")}]}))))||"style"===m&&wp.element.createElement(H,null,wp.element.createElement(P,{title:C("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(w.default,{label:C("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(f.a,{label:C("Background Color"),colorValue:t.headingColor},wp.element.createElement(M,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(H,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:K},wp.element.createElement(L,{icon:"trash"}),wp.element.createElement("span",null,C("Remove Image"))))),wp.element.createElement(A,{isSecondary:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:K},C("Change or Remove Image")),wp.element.createElement(k.a,{label:"Background Settings"},wp.element.createElement(I,{label:C("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(I,{label:C("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(I,{label:C("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(I,{label:C("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(O,{icon:"format-image",labels:{title:C("Background Image"),name:C("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(v.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})},onChangeValue:function(e){var t={firstColor:"backgroundGradientFirstColor",firstLocation:"backgroundGradientFirstLocation",secondColor:"backgroundGradientSecondColor",secondLocation:"backgroundGradientSecondLocation",type:"backgroundGradientType",angle:"backgroundGradientAngle",position:"backgroundGradientPosition"};for(var a in e)n(T({},t[a],e[a]))}})),wp.element.createElement(P,{title:C("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(y.a,{label:C("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(T({},J[e],a))},options:[{label:C("Top"),type:"top",value:Y("top")},{label:C("Right"),type:"right",value:Y("right")},{label:C("Bottom"),type:"bottom",value:Y("bottom")},{label:C("Left"),type:"left",value:Y("left")}]}),wp.element.createElement(f.a,{label:C("Border Color"),colorValue:t.borderColor},wp.element.createElement(M,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(y.a,{label:C("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(T({},X[e],a))},options:[{label:C("Top"),type:"top",value:ee("top")},{label:C("Right"),type:"right",value:ee("right")},{label:C("Bottom"),type:"bottom",value:ee("bottom")},{label:C("Left"),type:"left",value:ee("left")}]}),wp.element.createElement(N,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(H,null,wp.element.createElement(f.a,{label:C("Shadow Color"),colorValue:t.boxShadowColor},wp.element.createElement(M,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(k.a,{label:"Shadow Properties"},wp.element.createElement(_,{label:C("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(_,{label:C("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(_,{label:C("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(_,{label:C("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(_,{label:C("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(P,{title:C("Section Settings")},wp.element.createElement(I,{label:C("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))};function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||q(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 U(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.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)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=lodash.isEqual,Y=wp.components.ResizableBox,X=wp.compose.useViewportMatch,ee=wp.data,te=ee.useDispatch,ne=ee.useSelect,ae=wp.blockEditor.InnerBlocks,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useState,ce=[],pe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,p=e.toggleSelection,d=te("core/block-editor").updateBlockAttributes,m=ne((function(e){var t=e("core/block-editor"),n=t.getAdjacentBlockClientId,a=t.getBlock,l=t.getBlockRootClientId,o=e("core/edit-post").__experimentalGetPreviewDeviceType,r=a(i),c=n(i),p=a(c),d=l(i);return{adjacentBlockClientId:c,adjacentBlock:p,parentClientId:d,parentBlock:a(d),hasInnerBlocks:!(!r||!r.innerBlocks.length),isViewportAvailable:!!o,isPreviewDesktop:!!o&&"Desktop"===o(),isPreviewTablet:!!o&&"Tablet"===o(),isPreviewMobile:!!o&&"Mobile"===o()}}),[]),b=m.adjacentBlockClientId,g=m.adjacentBlock,f=m.parentClientId,y=m.parentBlock,h=m.hasInnerBlocks,w=m.isViewportAvailable,v=m.isPreviewDesktop,k=m.isPreviewTablet,T=m.isPreviewMobile,E=X("large",">="),x=X("large","<="),C=X("small",">="),S=X("small","<=");re((function(){M()}),[]);var M=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(J(s.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=Q({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(Q(Q({},a),{},{id:o})),ce.push(o),e.push(o)}else if(ce.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ce.push(r)}else ce.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=U(e)},B=W(ie(0),2),O=B[0],R=B[1],A=W(ie(0),2),L=A[0],P=A[1],N=E&&!x&&C&&!S,_=!E&&!x&&C&&!S,I=!(E||x||C||S);w&&!I&&(N=v,_=k,I=T),void 0===t.columnWidth&&y.innerBlocks.map((function(e,t){if(i===e.clientId){var n=y.attributes.columns,a=y.attributes.layout;d(i,{columnWidth:u.a[n][a][t]})}}));var j=document.getElementById("block-".concat(i));null!==j&&(j.style.flexBasis=N?"".concat(t.columnWidth,"%"):"");var z,H,D,G,V,q,Z=t.columnsHTMLTag;(N&&(z={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),_&&(z={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),I&&(z={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(H={background:t.backgroundColor}),"image"===t.backgroundType&&(H={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(q="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(H={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(q,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(D={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(D={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(G={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(G={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(V={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var $=Q(Q(Q(Q(Q({},z),H),D),G),V);return wp.element.createElement(oe,null,wp.element.createElement(F,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:g,parentBlock:y,updateBlockAttributes:d,adjacentBlockClientId:b}),wp.element.createElement(Y,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!b},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(g.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),R(t.columnWidth),P(g.attributes.columnWidth),p(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(f)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(O)+r,c=L-r,p=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(p.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),d(b,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),p(!0)}},wp.element.createElement(Z,{className:a,id:t.id,style:$},wp.element.createElement(ae,{templateLock:!1,renderAppender:!h&&ae.ButtonBlockAppender}))))},de=wp.blockEditor.InnerBlocks,me=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(de.Content,null))},se=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:se("Section Column"),description:se("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:m,supports:{inserter:!1,reusable:!1,html:!1},edit:pe,save:me})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:d("Pricing"),description:d("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:p})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:d("Service"),description:d("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:p})},function(e,t,n){"use strict";n.r(t);var a=n(3),l=(n(1),wp.i18n.__),o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,p=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},d=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:d("Testimonials"),description:d("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:p})},,,function(e,t,n){n(45),n(101),n(109),n(104),n(37),n(36),n(65),n(105),n(102),n(108),n(32),n(106),n(38),n(35),n(19),n(30),n(31),n(17),n(90),n(107),n(103),n(97),n(39),n(40),e.exports=n(41)},function(e,t,n){"use strict";n.r(t);n(46);n.p=window.themeisleGutenberg.packagePath},,,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,p=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),d={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(d[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!d[e.id]||e.id===d[e.id].id&&!t&&d[e.id].isSaving&&(d[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||p()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,,,,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){"use strict";n.r(t);n(66),n(67),n(36),n(37)},,function(e,t,n){},function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(91),n(92),n(35),n(38)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(39),n(40),n(41)},,,,function(e,t,n){"use strict";n.r(t);n(47);var a=n(3);n(48),n(1);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,p=wp.blocks.getBlockType,d=wp.components,m=d.Button,s=d.Icon,u=d.Modal,b=wp.element,g=b.Fragment,f=b.useState,y=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=p(t),d=r(f(!1),2),b=d[0],y=d[1],h=r(f(!1),2),w=h[0],v=h[1];return i?wp.element.createElement(g,null,wp.element.createElement(m,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return y(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(s,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(u,{title:i.title,onRequestClose:function(){return y(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(m,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(m,{isSecondary:!0,isLarge:!0,onClick:function(){return y(!1)}},c("Close")),wp.element.createElement(m,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},h=n(5),w=n(12),v=n(6),k=n(7);function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.i18n.__,x=wp.blockEditor.ColorPalette,C=wp.components,S=C.PanelBody,M=C.RangeControl,B=C.SelectControl,O=wp.data.useSelect,R=wp.element.Fragment,A=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=O((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},p={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(R,null,wp.element.createElement(S,{title:E("General Settings")},wp.element.createElement(B,{label:E("HTML Tag"),value:n.tag,options:[{label:E("Heading 1"),value:"h1"},{label:E("Heading 2"),value:"h2"},{label:E("Heading 3"),value:"h3"},{label:E("Heading 4"),value:"h4"},{label:E("Heading 5"),value:"h5"},{label:E("Heading 6"),value:"h6"},{label:E("Division"),value:"div"},{label:E("Paragraph"),value:"p"},{label:E("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(h.a,{label:"Heading Color",colorValue:n.headingColor},wp.element.createElement(x,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:E("Typography Settings"),initialOpen:!1},wp.element.createElement(w.a,{label:E("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:E("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:E("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,T({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,T({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,T({},p[e],o)))},options:[{label:E("Top"),type:"top",value:d("top")},{label:E("Right"),type:"right",value:d("right")},{label:E("Bottom"),type:"bottom",value:d("bottom")},{label:E("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,T({},s[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,T({},u[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,T({},b[e],o)))},options:[{label:E("Top"),type:"top",value:g("top")},{label:E("Right"),disabled:!0},{label:E("Bottom"),type:"bottom",value:g("bottom")},{label:E("Left"),disabled:!0}]}))))};var L=wp.i18n.__,P=wp.components,N=P.PanelBody,_=P.RangeControl,I=P.SelectControl,j=wp.element.Fragment,z=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig;return wp.element.createElement(j,null,wp.element.createElement(N,{title:L("Spacing")},wp.element.createElement(k.a,{label:L("Button Padding"),min:0,max:100,onChange:function(e,n){return a(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,n))},options:[{label:L("Top"),type:"paddingTopBottom",value:n.paddingTopBottom},{label:L("Right"),type:"paddingLeftRight",value:n.paddingLeftRight},{label:L("Bottom"),type:"paddingTopBottom",value:n.paddingTopBottom},{label:L("Left"),type:"paddingLeftRight",value:n.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(_,{label:L("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(I,{label:L("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(N,{title:L("Typography Settings"),initialOpen:!1},wp.element.createElement(_,{label:L("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:L("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(_,{label:L("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(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 D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var G=wp.i18n.__,V=wp.blockEditor.__experimentalColorGradientControl,F=wp.components,W=F.Button,U=F.ButtonGroup,q=F.PanelBody,Z=F.RangeControl,$=wp.element,Q=$.Fragment,K=$.useState,J=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=H(K(!1),2),o=l[0],r=l[1],i=function(){return wp.element.createElement(U,null,wp.element.createElement(W,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},G("Normal")),wp.element.createElement(W,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},G("Hover")))};return wp.element.createElement(Q,null,wp.element.createElement(q,{title:G("Color")},wp.element.createElement(i,null),o?wp.element.createElement(Q,{key:"with-hover"},wp.element.createElement(V,{label:"Hover Color",colorValue:n.hoverColor,onColorChange:function(e){return a(t,{hoverColor:e})}}),wp.element.createElement(V,{label:"Hover Background",colorValue:n.hoverBackground,onColorChange:function(e){return a(t,{hoverBackground:e})}})):wp.element.createElement(Q,{key:"without-hover"},wp.element.createElement(V,{label:"Color",colorValue:n.color,onColorChange:function(e){return a(t,{color:e})}}),wp.element.createElement(V,{label:"Background",colorValue:n.background,onColorChange:function(e){return a(t,{background:e})}}))),wp.element.createElement(q,{title:G("Border & Box Shadow"),initialOpen:!1},wp.element.createElement(i,null),o?wp.element.createElement(V,{label:"Hover Border",colorValue:n.hoverBorder,onColorChange:function(e){return a(t,{hoverBorder:e})}}):wp.element.createElement(V,{label:"Border",colorValue:n.border,onColorChange:function(e){return a(t,{border:e})}}),wp.element.createElement(Z,{label:G("Border Width"),value:n.borderSize,onChange:function(e){return a(t,{borderSize:e})},min:0,max:10}),wp.element.createElement(Z,{label:G("Border Radius"),value:n.borderRadius,onChange:function(e){return a(t,{borderRadius:e})},min:0,max:100})))};function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(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 X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ee=wp.i18n.__,te=wp.components,ne=te.Button,ae=te.ButtonGroup,le=te.PanelBody,oe=te.RangeControl,re=wp.blockEditor,ie=re.ColorPalette,ce=re.ContrastChecker,pe=wp.element,de=pe.Fragment,me=pe.useState,se=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Y(me(!1),2),o=l[0],r=l[1];return wp.element.createElement(de,null,wp.element.createElement(le,{title:ee("Sizing")},wp.element.createElement(oe,{label:ee("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140}),wp.element.createElement("hr",null),wp.element.createElement(oe,{label:ee("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100}),wp.element.createElement("hr",null),wp.element.createElement(oe,{label:ee("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100})),wp.element.createElement(le,{title:ee("Color"),initialOpen:!1},wp.element.createElement(ae,null,wp.element.createElement(ne,{isSmall:!0,isSecondary:o,isPrimary:!o,onClick:function(){return r(!1)}},ee("Normal")),wp.element.createElement(ne,{isSmall:!0,isSecondary:!o,isPrimary:o,onClick:function(){return r(!0)}},ee("Hover"))),o?wp.element.createElement(de,null,wp.element.createElement(h.a,{label:"Hover Background",colorValue:n.backgroundColorHover},wp.element.createElement(ie,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(h.a,{label:"Hover Icon",colorValue:n.textColorHover},wp.element.createElement(ie,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(ce,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(de,null,wp.element.createElement(h.a,{label:"Background",colorValue:n.backgroundColor},wp.element.createElement(ie,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(h.a,{label:"Icon",colorValue:n.textColor},wp.element.createElement(ie,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(ce,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=wp.i18n.__,ge=wp.components,fe=ge.BaseControl,ye=ge.Button,he=ge.ButtonGroup,we=ge.Icon,ve=ge.PanelBody,ke=ge.RangeControl,Te=ge.SelectControl,Ee=ge.ToggleControl,xe=wp.data.useSelect,Ce=wp.element.Fragment,Se=function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=xe((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},p={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},y=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};y=y();var h=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(Ce,null,wp.element.createElement(ve,{title:be("Sizing")},wp.element.createElement(Te,{label:be("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,ue({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,ue({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,ue({},p[e],a)))},options:[{label:be("Top"),type:"top",value:d("top")},{label:be("Right"),type:"right",value:d("right")},{label:be("Bottom"),type:"bottom",value:d("bottom")},{label:be("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,ue({},s[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,ue({},u[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,ue({},b[e],a)))},options:[{label:be("Top"),type:"top",value:g("top")},{label:be("Right"),disabled:!0},{label:be("Bottom"),type:"bottom",value:g("bottom")},{label:be("Left"),disabled:!0}]}))),wp.element.createElement(ve,{title:be("Section Structure"),initialOpen:!1},wp.element.createElement(Te,{label:be("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(ke,{label:be("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(Ce,null,wp.element.createElement(fe,{label:"Horizontal Align"},wp.element.createElement(he,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ye,{icon:"editor-alignleft",label:be("Left"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}}),wp.element.createElement(ye,{icon:"editor-aligncenter",label:be("Center"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}}),wp.element.createElement(ye,{icon:"editor-alignright",label:be("Right"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}}))),wp.element.createElement("hr",null)),wp.element.createElement(Te,{label:be("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(Ce,null,wp.element.createElement(v.a,{label:"Custom Height"},wp.element.createElement(ke,{value:y||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(fe,{label:"Vertical Align"},wp.element.createElement(he,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.t,size:20}),label:be("Top"),showTooltip:!0,isLarge:!0,isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return h("flex-start")}}),wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.k,size:20}),label:be("Middle"),showTooltip:!0,isLarge:!0,isPrimary:"center"===n.verticalAlign,onClick:function(){return h("center")}}),wp.element.createElement(ye,{icon:wp.element.createElement(we,{icon:a.c,size:20}),label:be("Bottom"),showTooltip:!0,isLarge:!0,isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return h("flex-end")}})))),wp.element.createElement(ve,{title:be("Responsive"),initialOpen:!1},wp.element.createElement(Ee,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(Ee,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(Ee,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))};function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=wp.i18n.__,Oe=wp.components,Re=Oe.PanelBody,Ae=Oe.SelectControl,Le=wp.data.useSelect,Pe=wp.element.Fragment,Ne=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Le((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},d=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};d=d();var m={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},s={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},u={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(Pe,null,wp.element.createElement(Re,{title:Be("Sizing")},wp.element.createElement(v.a,{label:"Padding"},wp.element.createElement(k.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Me({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Me({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Me({},c[e],o)))},options:[{label:Be("Top"),type:"top",value:p("top")},{label:Be("Right"),type:"right",value:p("right")},{label:Be("Bottom"),type:"bottom",value:p("bottom")},{label:Be("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(v.a,{label:"Margin"},wp.element.createElement(k.a,{type:d,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Me({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Me({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Me({},u[e],o)))},options:[{label:Be("Top"),type:"top",value:b("top")},{label:Be("Right"),type:"right",value:b("right")},{label:Be("Bottom"),type:"bottom",value:b("bottom")},{label:Be("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Re,{title:Be("Section Settings"),initialOpen:!1},wp.element.createElement(Ae,{label:Be("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))},_e=wp.i18n.__,Ie=wp.components,je=Ie.PanelBody,ze=Ie.Placeholder,He=Ie.Spinner,De=function(e){var t=e.isAPILoaded,n=e.blockDefaults,a=e.changeConfig,l=e.resetConfig,o=e.saveConfig,r=[{name:"themeisle-blocks/advanced-heading",control:A},{name:"themeisle-blocks/button-group",control:z},{name:"themeisle-blocks/button",control:J},{name:"themeisle-blocks/font-awesome-icons",control:se},{name:"themeisle-blocks/advanced-columns",control:Se},{name:"themeisle-blocks/advanced-column",control:Ne}];return t?wp.element.createElement(je,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},_e("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},r.map((function(e){var t=e.control;return wp.element.createElement(y,{blockName:e.name,saveConfig:o,resetConfig:l},wp.element.createElement(t,{blockName:e.name,defaults:n[e.name],changeConfig:a}))})))):wp.element.createElement(ze,null,wp.element.createElement(He,null))},Ge=n(8);function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(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 Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function qe(e){return(qe="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)}function Ze(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function $e(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Ze(o,a,l,r,i,"next",e)}function i(e){Ze(o,a,l,r,i,"throw",e)}r(void 0)}))}}var Qe=wp.i18n.__,Ke=lodash,Je=Ke.cloneDeep,Ye=Ke.isEqual,Xe=Ke.merge,et=wp.apiFetch,tt=wp.components,nt=tt.PanelBody,at=tt.Snackbar,lt=tt.ToggleControl,ot=wp.data.useDispatch,rt=wp.element,it=rt.Fragment,ct=rt.useEffect,pt=rt.useRef,dt=rt.useState,mt=wp.editPost,st=mt.PluginSidebar,ut=mt.PluginSidebarMoreMenuItem,bt=function(){var e=ot("core/notices").createNotice;ct($e(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,et({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return a(!0),e.next=7,wp.api.loadPromise.then((function(){u.current=new wp.api.models.Settings}));case 7:!1===o&&u.current.fetch().then((function(e){if(s(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Je(Ge.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(t=Xe(t,window.themeisleGutenberg.themeDefaults)),t=Xe(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=Je(Ge.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(n=Xe(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}r(!0)}));case 8:case"end":return e.stop()}}),e)}))),[]);var t=We(dt(!1),2),n=t[0],a=t[1],l=We(dt(!1),2),o=l[0],r=l[1],i=We(dt({}),2),c=i[0],p=i[1],d=We(dt(!1),2),m=d[0],s=d[1],u=pt(null),b=function(t){at&&e("info",t,{isDismissible:!0,type:"snackbar"})},g=function(){var e=$e(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Je(c),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==Ge.a[e][n]&&t[e][n]===Ge.a[e][n]||"object"===qe(t[e][n])&&Ye(t[e][n],Ge.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,b(Qe("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(it,null,n&&wp.element.createElement(ut,{target:"wp-block-themeisle-blocks-options"},Qe("Otter Options")),wp.element.createElement(st,{title:Qe("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(nt,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(lt,{label:Qe("Make Section block your default block for Pages?"),checked:m,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(m)}).save().then((function(e){s(Boolean(e.themeisle_blocks_settings_default_block)),b(Qe("Option updated."))}))}})),wp.element.createElement(De,{isAPILoaded:o,blockDefaults:c,changeConfig:function(e,t){var n=Je(c);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=Je(c),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ge.a[e]);t[e]=n,p(t)},saveConfig:g})))},gt=(n(53),n(54),n(28)),ft=wp.i18n.__,yt=wp.components.PanelBody,ht=wp.compose.createHigherOrderComponent,wt=wp.blockEditor.InspectorControls,vt=wp.element.Fragment;(0,wp.hooks.addFilter)("editor.BlockEdit","themeisle-gutenberg/gallery-extension",ht((function(e){return function(t){return"core/gallery"===t.name?wp.element.createElement(vt,null,wp.element.createElement(e,t),!!t.attributes.images.length&&wp.element.createElement(wt,null,wp.element.createElement(yt,{title:ft("Images"),initialOpen:!1},wp.element.createElement(gt.a,{attributes:t.attributes,onSelectImages:function(e){t.setAttributes({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))})}})))):wp.element.createElement(e,t)}}),"withGalleryExtension"));var kt=wp.components.Icon;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(kt,{icon:a.m}),render:bt})},function(e,t,n){"use strict";n.r(t);n(70),n(71);var a=n(3),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(121),c=(n(1),wp.i18n.__),p=wp.components,d=p.Button,m=p.ExternalLink,s=p.Placeholder,u=p.Spinner,b=p.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(s,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(d,{isLarge:!0,isSecondary:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(s,null,wp.element.createElement(u,null),c("Loading…"))},f=n(14);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=wp.i18n.__,k=wp.components.BaseControl,T=wp.compose.useInstanceId,E=wp.element,x=E.useEffect,C=E.useRef,S=function e(t){var n=t.value,a=t.onChange,l=T(e);x((function(){wp.oldEditor.initialize(r.current.id,{tinymce:h({},{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"})});var e=window.tinymce.get(r.current.id);return e.on("change",(function(){return a(e.getContent())})),function(){return wp.oldEditor.remove(r.current.id)}}),[]);var o="inspector-textarea-control-".concat(l),r=C(null);return wp.element.createElement(k,{id:o,label:v("Description")},wp.element.createElement("textarea",{id:o,className:"components-textarea-control__input",rows:4,value:n,onChange:function(e){return a(e.target.value)},ref:r}))},M=wp.i18n.__,B=wp.components,O=B.BaseControl,R=B.Button,A=B.ExternalLink,L=B.SelectControl,P=B.TextControl,N=wp.element.useRef,_=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=N(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(R,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||M("Custom Marker")),wp.element.createElement(R,{icon:"no-alt",label:M("Remove Marker"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(O,{label:M("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:M("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,M("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(A,{href:"https://developers.google.com/places/web-service/intro"},M("More info.")))),wp.element.createElement(P,{label:M("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(P,{label:M("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(L,{label:M("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:M("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:M("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:M("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:M("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:M("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(P,{label:M("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(S,{label:M("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(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 j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var z=wp.i18n.__,H=wp.components.Button,D=wp.element,G=D.Fragment,V=D.useEffect,F=D.useState,W=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;V((function(){!1!==t&&p(t)}),[t]);var i=I(F(null),2),c=i[0],p=i[1],d=function(e){c===e&&(e=null),p(e)};return wp.element.createElement(G,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(_,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:d,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(H,{isSecondary:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},z("Add Marker")))},U=wp.i18n.__,q=wp.components,Z=q.BaseControl,$=q.Button,Q=q.ExternalLink,K=q.PanelBody,J=q.RangeControl,Y=q.SelectControl,X=q.TextControl,ee=q.ToggleControl,te=wp.blockEditor.InspectorControls,ne=wp.element.useRef,ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,p=e.changeMarkerProp,d=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=ne(null);return wp.element.createElement(te,null,wp.element.createElement(K,{title:U("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:U("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:U("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:U("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:U("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:U("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:U("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(K,{title:U("Location")},wp.element.createElement(Z,{label:U("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:U("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,U("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(Q,{href:"https://developers.google.com/places/web-service/intro"},U("More info.")))),wp.element.createElement(X,{label:U("Latitude"),type:"text",placeholder:U("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(X,{label:U("Longitude"),type:"text",placeholder:U("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(K,{title:U("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(Y,{label:U("Map Type"),value:t.type,options:[{label:U("Road Map"),value:"roadmap"},{label:U("Satellite View"),value:"satellite"},{label:U("Hybrid"),value:"hybrid"},{label:U("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(J,{label:U("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(J,{label:U("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(K,{title:U("Controls"),initialOpen:!1},wp.element.createElement(Z,null,U("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(ee,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(ee,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(ee,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(ee,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(ee,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(K,{title:U("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(W,{markers:t.markers,removeMarker:c,changeMarkerProp:p,addMarker:d,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(K,{title:U("Global Settings"),initialOpen:!1},wp.element.createElement(X,{label:U("Google Maps API Key"),type:"text",placeholder:U("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:U("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement($,{isLarge:!0,isSecondary:!0,type:"submit",onClick:b,isBusy:s},U("Save API Key"))))};function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var re=wp.i18n.__,ie=wp.components,ce=ie.BaseControl,pe=ie.Button,de=ie.ButtonGroup,me=ie.Modal,se=ie.SelectControl,ue=ie.TextControl,be=wp.element,ge=be.useEffect,fe=be.useRef,ye=be.useState,he=be.Fragment,we=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ge((function(){p(t.id),s(t.location),g(t.title),h(t.icon),k(t.description),x(t.latitude),B(t.longitude)}),[t]);var r=fe(null),i=le(ye(t.id),2),c=i[0],p=i[1],d=le(ye(t.location),2),m=d[0],s=d[1],u=le(ye(t.title),2),b=u[0],g=u[1],f=le(ye(t.icon),2),y=f[0],h=f[1],w=le(ye(t.description),2),v=w[0],k=w[1],T=le(ye(t.latitude),2),E=T[0],x=T[1],C=le(ye(t.longitude),2),M=C[0],B=C[1];return wp.element.createElement(me,{title:re("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(he,null,wp.element.createElement(ce,{label:re("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:re("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),B(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(ue,{label:re("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(ue,{label:re("Longitude"),type:"text",value:M,onChange:B})),wp.element.createElement(ue,{label:re("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(S,{label:re("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(se,{label:re("Map Icon"),value:y||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:re("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:re("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:re("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:re("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:re("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:h}),wp.element.createElement(de,null,wp.element.createElement(pe,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,y,v,E,M)}},re("Add")),wp.element.createElement(pe,{isLarge:!0,isSecondary:!0,onClick:o},re("Cancel"))))},ve=wp.i18n.__,ke=wp.components.Button,Te=wp.element,Ee=Te.Fragment,xe=Te.useEffect,Ce=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return xe((function(){l&&a()}),[l]),wp.element.createElement(Ee,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(ke,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ve("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},Se={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function Me(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Re(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 Oe(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n=Object.prototype.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)?Ae(e,t):void 0}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Le=wp.i18n.__,Pe=wp.components.ResizableBox,Ne=wp.element,_e=Ne.Fragment,Ie=Ne.useEffect,je=Ne.useRef,ze=Ne.useState,He=[],De=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;Ie((function(){X(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Ie((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Ie((function(){b.current=Oe(t.markers)}),[t.markers]);var p=je([]),d=je(null),m=je(null),s=je(null),u=je(null),b=je(Oe(t.markers)),y=Be(ze(""),2),h=y[0],w=y[1],v=Be(ze(!1),2),k=v[0],T=v[1],E=Be(ze(!1),2),x=E[0],C=E[1],S=Be(ze(!1),2),M=S[0],B=S[1],O=Be(ze(!1),2),R=O[0],A=O[1],L=Be(ze(!0),2),P=L[0],N=L[1],_=Be(ze(!1),2),I=_[0],j=_[1],z=Be(ze(!1),2),H=z[0],D=z[1],G=Be(ze(!1),2),V=G[0],F=G[1],W=Be(ze(!1),2),U=W[0],q=W[1],Z=Be(ze(!1),2),$=Z[0],Q=Z[1],K=Be(ze({}),2),J=K[0],Y=K[1],X=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:He.push(a),e.next=15;break;case 7:if(!He.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:He.push(o),e.next=15;break;case 14:He.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){d.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||d.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),ee(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),ee(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Me(o,a,l,r,i,"next",e)}function i(e){Me(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),ee=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",j(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&j(!0)},te=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Le("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){D(t)})),google.maps.event.addListener(r,"closeclick",(function(){D(!1)}))},ne=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),p.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),te(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=Oe(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ne(l),n({markers:l})},oe=function(e){var t=Oe(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),D(!1),0<t.length&&ne(t)},re=function(){for(var e=0;e<p.current.length;e++)p.current[e].setMap(null);p.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(A(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:h}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),A(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,ee(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:Se[e]})};return k&&x?wp.element.createElement(_e,null,wp.element.createElement(f.a,{label:Le("Block Styles"),value:t.style,options:[{label:Le("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Le("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Le("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Le("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Le("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Le("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(ae,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:P,isMarkerOpen:H,setMarkerOpen:D,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=Le("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();q(!0),Q(!0),Y({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:h,isSaving:R,changeAPI:w,saveAPIKey:ie}),U&&wp.element.createElement(we,{marker:J,isAdvanced:$,isPlaceAPIAvailable:P,close:function(){return q(!1)},addMarker:function(e,a,l,o,r,c){var d=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:d,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),p.current.push(b);var g=Oe(t.markers),f={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),te(b,f.id,a,o),q(!1),F(!1)}}),wp.element.createElement(Pe,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(Ce,{attributes:t,className:a,initMap:function(){if(s.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:Se[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){B(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ne(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&N(!1)}))},displayMap:I,isMapLoaded:M,selectMarker:function(){F(!V),V?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=Object(i.a)(),n=Le("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();q(!0),Q(!1),Y({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:V}))):wp.element.createElement(g,{className:a,api:h,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ge=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ge("Google Maps"),description:Ge("Display Google Maps on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:De,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(95),n(96);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=(n(1),wp.components),i=r.Path,c=r.SVG,p=wp.element.Fragment,d=function(e){var t=e.attributes;return wp.element.createElement(p,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))))},m=function(e){var t=e.attributes;return wp.element.createElement(p,null,!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},s=function(e){var t=e.attributes;return wp.element.createElement(p,null,wp.element.createElement(d,{attributes:t}),wp.element.createElement(m,{attributes:t}))};function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=lodash.omit,y=wp.blockEditor.RichText,h={id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},w=[{attributes:b({},f(h,["align"])),supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!y.isEmpty(e.caption)&&wp.element.createElement(y.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(s,{attributes:t})))}},{attributes:b(b({},f(h,["align"])),{},{delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1}}),supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!y.isEmpty(e.caption)&&wp.element.createElement(y.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(s,{attributes:t})))}}],v=lodash,k=v.filter,T=v.every,E=wp.blocks.createBlock,x={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=T(e,["align",t])?t:void 0;var n=k(e,(function(e){return e.url}));return E("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return E("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return E("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):E("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return E("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},C=lodash.debounce,S=wp.blockEditor.MediaPlaceholder,M=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=C(i,250);return wp.element.createElement(S,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},B=n(28),O=wp.i18n.__,R=lodash.max,A=wp.blockEditor.InspectorControls,L=wp.components,P=L.PanelBody,N=L.RangeControl,_=L.ToggleControl,I=wp.element.Fragment,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView,o=e.onSelectImages;return wp.element.createElement(A,null,wp.element.createElement(P,{title:O("Images"),initialOpen:!1},wp.element.createElement(B.a,{attributes:t,onSelectImages:o})),wp.element.createElement(P,{title:O("Settings")},t.images.length&&wp.element.createElement(I,null,wp.element.createElement(N,{label:O("Slides Per Page"),help:O("A number of visible slides."),value:t.perView,onChange:l,min:1,max:R([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(I,null,wp.element.createElement(N,{label:O("Gap"),help:O("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(N,{label:O("Peek"),help:O("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(N,{label:O("Height"),help:O("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(_,{label:O("Autoplay"),help:O("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(N,{label:O("Delay"),help:O("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(_,{label:O("Hide Arrows"),help:O("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(_,{label:O("Hide Bullets"),help:O("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))},z=n(114),H=n(118),D=n(119),G=n(120);function V(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var W=wp.i18n.__,U=lodash.filter,q=wp.blockEditor.RichText,Z=wp.components.Button,$=wp.element.Fragment,Q=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,p=e.setSelectedImage,d=function(e,n){var a=V(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),p(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return p(n.id)},onFocus:function(){return p(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement($,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:H.a}),label:W("Move image backward"),showTooltip:!0,onClick:l?void 0:function(){0!==a&&d(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward","aria-disabled":l,disabled:!i}),wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:D.a}),label:W("Move image forward"),showTooltip:!0,onClick:r?void 0:function(){a!==t.length-1&&d(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward","aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(Z,{icon:wp.element.createElement(z.a,{icon:G.a}),label:W("Remove image"),showTooltip:!0,onClick:function(){var e=U(t,(function(e,t){return a!==t}));p(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete"}))),(i||!q.isEmpty(n.caption))&&wp.element.createElement(q,{tagName:"figcaption",placeholder:i?W("Write caption…"):null,value:n.caption,onChange:function(e){var n=V(t);n[a].caption=e,c({images:n})},multiline:!1})))};function K(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||X(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 X(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.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)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var te=wp.i18n.__,ne=lodash.max,ae=wp.components.ResizableBox,le=wp.element,oe=le.Fragment,re=le.useEffect,ie=le.useRef,ce=le.useState,pe=[],de=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;re((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),re((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),re((function(){t.images.length&&t.perView>t.images.length&&y(ne([Math.round(t.images.length/2),1]))}),[t.images]);var c=ie(null),p=ie(null),d=Y(ce(null),2),m=d[0],u=d[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:pe.push(o),p.current=o,a.push(o),e.next=21;break;case 10:if(!pe.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:pe.push(r),p.current=r,e.next=21;break;case 18:pe.push(t.id),p.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=K(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){J(o,a,l,r,i,"next",e)}function i(e){J(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||p.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},y=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(M,{labels:{title:te("Slider"),instructions:te("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(oe,null,wp.element.createElement(j,{attributes:t,setAttributes:n,slider:c.current,changePerView:y,onSelectImages:f}),wp.element.createElement(ae,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(Q,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===m,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(s,{attributes:t})))),r&&wp.element.createElement(M,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},me=wp.blockEditor.RichText,se=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px"),"data-hide-arrows":t.hideArrows},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!me.isEmpty(e.caption)&&wp.element.createElement(me.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(m,{attributes:t})))},ue=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:ue("Slider"),description:ue("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:w,transforms:x,supports:{align:["wide","full"]},edit:de,save:se})},function(e,t,n){"use strict";n.r(t);n(60),n(61),n(1);var a=wp.i18n.__,l=wp.richText,o=l.registerFormatType,r=l.toggleFormat,i=wp.blockEditor,c=i.RichTextShortcut,p=i.RichTextToolbarButton,d=wp.element.Fragment;o("themeisle-blocks/mark",{name:"themeisle-blocks/mark",title:a("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,n=e.value,l=e.onChange,o=function(){return l(r(n,{type:"themeisle-blocks/mark"}))};return wp.element.createElement(d,null,wp.element.createElement(c,{type:"primary",character:"m",onUse:o}),wp.element.createElement(p,{icon:"admin-customizer",title:a("Highlight"),onClick:o,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}});var m=n(3),s={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},u=n(0),b=n.n(u),g=n(9),f=n.n(g);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=wp.blockEditor.RichText,v=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(f()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(w.Content,{tagName:n.tag,value:n.content,id:n.id,className:b()(n.id,a),style:l})}}],k=wp.blocks.createBlock,T={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return k("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return k("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return k("core/paragraph",{content:t})}}]},E=n(24),x=n.n(E),C=n(8),S=n(12),M=wp.i18n.__,B=wp.components,O=B.Button,R=B.Dropdown,A=B.DropdownMenu,L=B.RangeControl,P=B.SVG,N=B.Toolbar,_=wp.blockEditor.BlockControls,I=wp.element.Fragment,j=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,p=function(e){return"h1"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(P,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},d=function(e){n({tag:e})};return wp.element.createElement(_,null,wp.element.createElement(A,{icon:p(t.tag),label:M("Select tag"),className:"components-toolbar",controls:[{title:M("Heading 1"),icon:p("h1"),onClick:function(){return d("h1")}},{title:M("Heading 2"),icon:p("h2"),onClick:function(){return d("h2")}},{title:M("Heading 3"),icon:p("h3"),onClick:function(){return d("h3")}},{title:M("Heading 4"),icon:p("h4"),onClick:function(){return d("h4")}},{title:M("Heading 5"),icon:p("h5"),onClick:function(){return d("h5")}},{title:M("Heading 6"),icon:p("h6"),onClick:function(){return d("h6")}},{title:M("Division"),icon:p("div"),onClick:function(){return d("div")}},{title:M("Paragraph"),icon:p("p"),onClick:function(){return d("p")}},{title:M("Span Tag"),icon:p("span"),onClick:function(){return d("span")}}]}),wp.element.createElement(N,null,wp.element.createElement(R,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(O,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:M("Typography Settings"),showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(I,null,wp.element.createElement(S.a,{label:M("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(L,{label:M("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(L,{label:M("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},z=n(5),H=n(11),D=n(6),G=n(7),V=n(25);function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(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 U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var q=wp.i18n.__,Z=wp.blockEditor,$=Z.AlignmentToolbar,Q=Z.ColorPalette,K=Z.InspectorControls,J=wp.components,Y=J.Button,X=J.Dashicon,ee=J.PanelBody,te=J.RangeControl,ne=J.ToggleControl,ae=wp.data.useSelect,le=wp.element,oe=le.Fragment,re=le.useState,ie=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,p=ae((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n?n():t()}),[]),d=W(re("style"),2),m=d[0],s=d[1],u=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};u=u();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var y={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},h={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},w={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},v=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},k=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};k=k();var T={top:"marginTop",bottom:"marginBottom"},E={top:"marginTopTablet",bottom:"marginBottomTablet"},x={top:"marginTopMobile",bottom:"marginBottomMobile"},C=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(oe,null,wp.element.createElement(K,null,wp.element.createElement(ee,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(Y,{className:b()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(X,{icon:"admin-customizer"}),q("Style"))),wp.element.createElement(Y,{className:b()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(X,{icon:"admin-generic"}),q("Advanced")))),"style"===m&&wp.element.createElement(oe,null,wp.element.createElement(ee,{title:q("General Settings")},wp.element.createElement(z.a,{label:q("Heading Color"),colorValue:t.headingColor},wp.element.createElement(Q,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(D.a,{label:"Font Size"},wp.element.createElement(te,{value:u||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(D.a,{label:"Alignment"},wp.element.createElement($,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(ee,{title:q("Typography Settings"),initialOpen:!1},wp.element.createElement(S.a,{label:q("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(te,{label:q("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(te,{label:q("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}),wp.element.createElement(ne,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(oe,null,wp.element.createElement(z.a,{label:q("Color"),colorValue:t.textShadowColor},wp.element.createElement(Q,{label:q("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(H.a,{label:"Shadow Properties"},wp.element.createElement(te,{label:q("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(te,{label:q("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(te,{label:q("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(te,{label:q("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(oe,null,wp.element.createElement(ee,{title:q("Highlight Color")},wp.element.createElement(z.a,{label:q("Highlight Color"),colorValue:t.highlightColor},wp.element.createElement(Q,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(z.a,{label:q("Highlight Background"),colorValue:t.highlightBackground},wp.element.createElement(Q,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(ee,{title:q("Spacing"),initialOpen:!1},wp.element.createElement(D.a,{label:"Padding"},wp.element.createElement(G.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(F({},y[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(F({},h[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(F({},w[e],a)))},options:[{label:q("Top"),type:"top",value:v("top")},{label:q("Right"),type:"right",value:v("right")},{label:q("Bottom"),type:"bottom",value:v("bottom")},{label:q("Left"),type:"left",value:v("left")}]})),wp.element.createElement(D.a,{label:"Margin"},wp.element.createElement(G.a,{type:k,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(F({},T[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(F({},E[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(F({},x[e],a)))},options:[{label:q("Top"),type:"top",value:C("top")},{label:q("Right"),disabled:!0},{label:q("Bottom"),type:"bottom",value:C("bottom")},{label:q("Left"),disabled:!0}]}))))),wp.element.createElement(V.a,{value:t.id,onChange:function(e){n({id:e})}}))};function ce(e){return function(e){if(Array.isArray(e))return pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=wp.i18n.__,be=lodash.isEqual,ge=wp.blocks.createBlock,fe=wp.blockEditor.RichText,ye=wp.compose.useViewportMatch,he=wp.data.useSelect,we=wp.element,ve=we.Fragment,ke=we.useEffect,Te=[],Ee=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.mergeBlocks,r=e.name,i=e.insertBlocksAfter,c=e.onReplace,p=he((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=p.isViewportAvailable,m=p.isPreviewDesktop,u=p.isPreviewTablet,g=p.isPreviewMobile,y=ye("large",">="),h=ye("large","<="),w=ye("small",">="),v=ye("small","<=");ke((function(){k()}),[]);var k=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-heading-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(be(C.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=me({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==s[e].default&&t[e]!==s[e].default)return delete a[e]})))),n(me(me({},a),{},{id:o})),Te.push(o),e.push(o)}else if(Te.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(l.substr(0,8));n({id:i}),Te.push(i)}else Te.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ce(e)},T=y&&!h&&w&&!v,E=!y&&!h&&w&&!v,S=!(y||h||w||v);d&&!S&&(T=m,E=u,S=g);var M,B,O,R=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},A=function(e){n({fontVariant:e})},L=function(e){n({fontStyle:e})},P=function(e){n({textTransform:e})},N=function(e){n({lineHeight:e})},_=function(e){n({letterSpacing:e})};T&&(M={fontSize:"".concat(t.fontSize,"px")},B={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),E&&(M={fontSize:"".concat(t.fontSizeTablet,"px")},B={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),S&&(M={fontSize:"".concat(t.fontSizeMobile,"px")},B={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(O={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(f()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var I=me(me(me({color:t.headingColor},M),{},{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},B),O);return wp.element.createElement(ve,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(x.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(j,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:A,changeFontStyle:L,changeTextTransform:P,changeLineHeight:N,changeLetterSpacing:_}),wp.element.createElement(ie,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:A,changeFontStyle:L,changeTextTransform:P,changeLineHeight:N,changeLetterSpacing:_}),wp.element.createElement(fe,{identifier:"content",className:b()(t.id,a),value:t.content,placeholder:ue("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:o,unstableOnSplit:i?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];i([].concat(l,[ge("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return c([])},style:I,onChange:function(e){n({content:e})}}))},xe=wp.blockEditor.RichText,Ce=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(xe.Content,{tagName:t.tag,value:t.content,id:t.id,className:b()(t.id,n)})},Se=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:Se("Advanced Heading"),description:Se("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:m.i,category:"themeisle-blocks",keywords:[Se("heading"),Se("title"),Se("advanced heading")],attributes:s,deprecated:v,transforms:T,edit:Ee,save:Ce})},function(e,t,n){"use strict";n.r(t);n(68),n(69);var a=n(3),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};n(1);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},p=[{attributes:c,supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),r(r({},e),{},{align:t,className:""})},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},l={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement("p",{className:n,style:{textAlign:t.align}},wp.element.createElement("span",{className:"".concat(n,"-container"),style:l},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:a})))}},{attributes:r(r({},c),{},{align:{type:"string"}}),save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},l={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement("p",{className:n,style:{textAlign:t.align}},wp.element.createElement("span",{className:"undefined-container",style:l},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:a})))}},{attributes:r(r({},c),{},{id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}}),save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],d=n(8),m=n(26),s=wp.i18n.__,u=wp.blockEditor,b=u.AlignmentToolbar,g=u.BlockControls,f=function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected;return wp.element.createElement(g,null,wp.element.createElement(b,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:s("Align left"),align:"left"},{icon:"editor-aligncenter",title:s("Align center"),align:"center"},{icon:"editor-alignright",title:s("Align right"),align:"right"}]}),wp.element.createElement(m.a,{isSelected:a,setAttributes:n,url:t.link,opensInNewTab:t.newTab}))},y=n(5);function h(e){return(h="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)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var k=wp.i18n.__,T=wp.components,E=T.Button,x=T.ButtonGroup,C=T.PanelBody,S=T.Placeholder,M=T.RangeControl,B=T.Spinner,O=wp.blockEditor,R=O.ColorPalette,A=O.ContrastChecker,L=O.InspectorControls,P=wp.element,N=P.Fragment,_=P.lazy,I=P.Suspense,j=P.useState,z=_((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,123))})),H=function(e){var t=e.attributes,n=e.setAttributes,a=w(j(!1),2),l=a[0],o=a[1];return wp.element.createElement(L,null,wp.element.createElement(C,{title:k("Icon")},wp.element.createElement(I,{fallback:wp.element.createElement(S,null,wp.element.createElement(B,null))},wp.element.createElement(z,{label:k("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===h(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}}))),wp.element.createElement(C,{title:k("Icon Sizes"),initialOpen:!1},wp.element.createElement(M,{label:k("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140}),wp.element.createElement(M,{label:k("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100}),wp.element.createElement(M,{label:k("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100})),wp.element.createElement(C,{title:k("Color"),initialOpen:!1},wp.element.createElement(x,null,wp.element.createElement(E,{isSmall:!0,isSecondary:l,isPrimary:!l,onClick:function(){return o(!1)}},k("Normal")),wp.element.createElement(E,{isSmall:!0,isSecondary:!l,isPrimary:l,onClick:function(){return o(!0)}},k("Hover"))),l?wp.element.createElement(N,null,wp.element.createElement(y.a,{label:"Hover Background",colorValue:t.backgroundColorHover},wp.element.createElement(R,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(y.a,{label:"Hover Icon",colorValue:t.textColorHover},wp.element.createElement(R,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(y.a,{label:"Hover Border",colorValue:t.borderColorHover},wp.element.createElement(R,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(A,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(N,null,wp.element.createElement(y.a,{label:"Background",colorValue:t.backgroundColor},wp.element.createElement(R,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(y.a,{label:"Icon",colorValue:t.textColor},wp.element.createElement(R,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(y.a,{label:"Border",colorValue:t.borderColor},wp.element.createElement(R,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(A,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(C,{title:k("Border Settings"),initialOpen:!1},wp.element.createElement(M,{label:k("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120}),wp.element.createElement(M,{label:k("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100})))};function D(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=lodash.isEqual,q=wp.element,Z=q.Fragment,$=q.useEffect,Q=[],K=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,r=e.clientId,i=e.name;$((function(){c()}),[]);var c=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-font-awesome-icons-".concat(r.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(U(d.a[i],window.themeisleGutenberg.globalDefaults[i])||(a=F({},window.themeisleGutenberg.globalDefaults[i]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(F(F({},a),{},{id:o})),Q.push(o),e.push(o)}else if(Q.includes(t.id)){var c="wp-block-themeisle-blocks-font-awesome-icons-".concat(r.substr(0,8));n({id:c}),Q.push(c)}else Q.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=D(e)},p={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},m={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(Z,null,wp.element.createElement(f,{attributes:t,setAttributes:n,isSelected:o}),wp.element.createElement(H,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:m},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:p}))))},J=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},Y=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:Y("Font Awesome Icons"),description:Y("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:p,edit:K,save:J})},function(e,t,n){"use strict";n.r(t);n(75),n(76);var a=n(3),l={style:{type:"string",default:"grid"},columns:{type:"number",default:3},template:{type:"array",default:["category","title","meta","description"]},categories:{type:"array",items:{type:"object"}},postsToShow:{type:"number",default:5},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},offset:{type:"number",default:0},imageSize:{type:"string",default:"full"},imageBoxShadow:{type:"boolean",default:!0},displayFeaturedImage:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:"h5"},displayMeta:{type:"boolean",default:!0},displayDescription:{type:"boolean",default:!0},excerptLength:{type:"number",default:100},displayDate:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=[{attributes:r(r({},l),{},{categories:{type:"string"}}),supports:{align:["wide","full"],html:!1},migrate:function(e){return r(r({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],p=n(14),d=n(23),m=n.n(d),s=n(0),u=n.n(s),b=n(15);n(1);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=lodash,h=y.startCase,w=y.toLower,v=wp.i18n.__,k=wp.components,T=k.Button,E=k.TextControl,x=k.SelectControl,C=k.ToggleControl,S=wp.element,M=S.Fragment,B=S.useState,O=Object(b.c)((function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-handle",tabIndex:"0"},wp.element.createElement("span",null))})),R=function(e){var t,n=e.value,a=e.disabled,l=e.getFields,o=e.toggleFields,r=e.imageSize,i=e.titleTag,c=e.excerptLimit,p=g(B(!1),2),d=p[0],m=p[1],s=h(w(n)),b="hidden",f=v("Display ".concat(s));switch(l(n)&&(b="visibility",f=v("Hide ".concat(s))),n){case"image":case"title":case"meta":case"description":t=!0;break;default:t=!1}return wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-item-area","wp-block-themeisle-blocks-posts-grid-builder-item-area-".concat(n))},wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-item",{disabled:a,hidden:!l(n),editable:t})},!a&&wp.element.createElement(O,null),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-builder-label"},s),t&&wp.element.createElement(T,{icon:d?"arrow-up-alt2":"arrow-down-alt2",label:v(d?"Close Settings":"Open Settings"),showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){return m(!d)}}),wp.element.createElement(T,{icon:b,label:f,showTooltip:!0,className:"wp-block-themeisle-blocks-posts-grid-builder-button",onClick:function(){o(n),m(!1)}})),t&&wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder-control-area",{opened:d&&l(n)})},"image"===n&&wp.element.createElement(M,null,wp.element.createElement(x,{label:v("Image Size"),value:r.value,options:[{label:v("Thumbnail"),value:"thumbnail"},{label:v("Medium"),value:"medium"},{label:v("Medium Large"),value:"medium_large"},{label:v("Large"),value:"large"},{label:v("Full"),value:"full"}],onChange:r.onChange}),wp.element.createElement(C,{label:"Display Box Shadow?",checked:l("imageBoxShadow"),onChange:function(){return o("imageBoxShadow")}})),"title"===n&&wp.element.createElement(x,{label:v("Title Tag"),value:i.value||"h5",options:[{label:v("H1"),value:"h1"},{label:v("H2"),value:"h2"},{label:v("H3"),value:"h3"},{label:v("H4"),value:"h4"},{label:v("H5"),value:"h5"},{label:v("H6"),value:"h6"}],onChange:i.onChange}),"description"===n&&wp.element.createElement(E,{label:v("Excerpt Limit"),type:"number",value:c.value,onChange:c.onChange}),"meta"===n&&wp.element.createElement(M,null,wp.element.createElement(C,{label:"Display Date?",checked:l("date"),onChange:function(){return o("date")}}),wp.element.createElement(C,{label:"Display Author?",checked:l("author"),onChange:function(){return o("author")}}))))},A=Object(b.b)((function(e){var t=e.value,n=e.disabled,a=e.getFields,l=e.toggleFields,o=e.titleTag,r=e.excerptLimit;return wp.element.createElement(R,{value:t,disabled:n,getFields:a,toggleFields:l,titleTag:o,excerptLimit:r})})),L=Object(b.a)((function(e){var t=e.template,n=e.getFields,a=e.toggleFields,l=e.titleTag,o=e.excerptLimit;return wp.element.createElement("div",null,t.map((function(e,t){return wp.element.createElement(A,{key:"item-".concat(t),index:t,value:e,getFields:n,toggleFields:a,titleTag:l,excerptLimit:o})})))})),P=wp.i18n.__,N=wp.element.Fragment,_=function(e){var t=e.attributes,n=e.setAttributes,a=e.getFields,l=e.toggleFields,o=e.imageSize,r=e.titleTag,i=e.excerptLimit;return wp.element.createElement(N,null,wp.element.createElement("div",{className:u()("wp-block-themeisle-blocks-posts-grid-builder",t.style)},wp.element.createElement(R,{value:P("image"),disabled:!0,getFields:a,toggleFields:l,imageSize:o}),wp.element.createElement(L,{template:t.template,onSortEnd:function(e){var a=e.oldIndex,l=e.newIndex,o=m()(t.template,a,l);n({template:o})},getFields:a,toggleFields:l,titleTag:r,excerptLimit:i,useDragHandle:!0,axis:"y",lockAxis:"y"})))};function I(e){return(I="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)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=wp.i18n.__,G=wp.components,V=G.PanelBody,F=G.QueryControls,W=G.RangeControl,U=G.TextControl,q=wp.blockEditor.InspectorControls,Z=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeStyle,l=e.categoriesList,o=l.reduce((function(e,t){return z(z({},e),{},H({},t.name,t))}),{}),r=t.categories?t.categories.map((function(e){var t=l.find((function(t){return t.id===Number(e.id)}));return{id:e.id,name:t.name||t.slug}})):[],i="object"===I(t.categories)?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return wp.element.createElement(q,null,wp.element.createElement(V,{title:D("Styles"),initialOpen:!1},wp.element.createElement(p.b,{value:t.style,options:[{label:D("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:D("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),wp.element.createElement(V,{title:D("Settings")},"grid"===t.style&&wp.element.createElement(W,{label:D("Columns"),value:t.columns,onChange:function(e){n({columns:e})},min:1,max:5}),wp.element.createElement(F,{order:t.order,orderBy:t.orderBy,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},numberOfItems:t.postsToShow,onNumberOfItemsChange:function(e){return n({postsToShow:e})},categoriesList:l,categorySuggestions:o,selectedCategoryId:i,selectedCategories:r,onCategoryChange:function(e){var t;"object"===I(e)?0<e.length&&(t=e.map((function(e){if("object"===I(e))return e;var t=l.find((function(t){return t.name===e}));return t?{id:t.id,name:e}:void 0})).filter((function(e){return void 0!==e}))):""!==e&&(t=[{id:e,name:l.find((function(t){return t.id===Number(e)})).name}]),n({categories:t})}}),wp.element.createElement(U,{label:D("Offset"),help:D("Number of post to displace or pass over."),type:"number",value:t.offset,min:0,onChange:function(e){return n({offset:Number(e)})}})),wp.element.createElement(V,{title:D("Design & Layout"),initialOpen:!1},wp.element.createElement(_,{attributes:t,getFields:function(e){return"image"===e?t.displayFeaturedImage:"imageBoxShadow"===e?t.imageBoxShadow:"category"===e?t.displayCategory:"title"===e?t.displayTitle:"meta"===e?t.displayMeta:"description"===e?t.displayDescription:"date"===e?t.displayDate:"author"===e?t.displayAuthor:void 0},toggleFields:function(e){"image"===e&&n({displayFeaturedImage:!t.displayFeaturedImage}),"imageBoxShadow"===e&&n({imageBoxShadow:!t.imageBoxShadow}),"category"===e&&n({displayCategory:!t.displayCategory}),"title"===e&&n({displayTitle:!t.displayTitle}),"meta"===e&&n({displayMeta:!t.displayMeta}),"description"===e&&n({displayDescription:!t.displayDescription}),"date"===e&&n({displayDate:!t.displayDate}),"author"===e&&n({displayAuthor:!t.displayAuthor})},setAttributes:n,imageSize:{value:t.imageSize,onChange:function(e){n({imageSize:e})}},titleTag:{value:t.titleTag,onChange:function(e){n({titleTag:e})}},excerptLimit:{value:t.excerptLength,onChange:function(e){n({excerptLength:e})}}})))},$=n(32),Q=lodash,K=Q.isUndefined,J=Q.pickBy,Y=wp.i18n.__,X=wp.components,ee=X.Disabled,te=X.Placeholder,ne=X.Spinner,ae=wp.data.useSelect,le=wp.element.Fragment,oe=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=ae((function(e){var n=t.categories&&0<t.categories.length?t.categories.map((function(e){return e.id})):[],a=J({categories:n,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(function(e){return!K(e)}));return{posts:e("core").getEntityRecords("postType","post",a),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getAuthors()}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset]),o=l.posts,r=l.categoriesList,i=l.authors,c=function(e){n({style:e})};return o&&r&&i?0===o.length?wp.element.createElement(le,null,wp.element.createElement(te,null,Y("No Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null):wp.element.createElement(le,null,wp.element.createElement(p.a,{label:Y("Block Styles"),value:t.style,options:[{label:Y("Grid"),value:"grid",image:themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:Y("List"),value:"list",image:themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:c}),wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}),wp.element.createElement(ee,null,wp.element.createElement($.default,{className:a,attributes:t,posts:o,categoriesList:r,authors:i}))):wp.element.createElement(le,null,wp.element.createElement(te,null,wp.element.createElement(ne,null),Y("Loading Posts")),r&&t.offset?wp.element.createElement(Z,{attributes:t,setAttributes:n,changeStyle:c,categoriesList:r}):null)},re=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/posts-grid",{title:re("Posts"),description:re("Display a list of your most recent posts in a beautiful layout."),icon:a.o,category:"themeisle-blocks",keywords:["posts","grid","news"],attributes:l,supports:{align:["wide","full"],html:!1},deprecated:c,edit:oe,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(93),n(94);var a=n(3),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},p=(n(1),wp.components),d=p.Path,m=p.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(d,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(d,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(d,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(d,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(d,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"}))};var u=wp.i18n.__,b=wp.blockEditor.BlockControls,g=wp.components,f=g.Toolbar,y=g.Button,h=g.Tooltip,w=function(e){var t=e.attributes,n=e.setAttributes,a=function(e){var a,l,o;n((a={},l=e,o=!t[e],l in a?Object.defineProperty(a,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[l]=o,a))};return wp.element.createElement(b,null,wp.element.createElement(f,null,Object.keys(c).map((function(e){var n=t[e];return wp.element.createElement(h,{text:u("Display ".concat(c[e].label))},wp.element.createElement(y,{className:r()("components-button","wp-block-themeisle-toolbar",{"is-active":n}),onClick:function(){return a(e)}},wp.element.createElement(s,{icon:e})))}))))};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=wp.components.Disabled,x=wp.element.Fragment,C=wp.serverSideRender,S=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(x,null,wp.element.createElement(w,{attributes:t,setAttributes:n}),wp.element.createElement(E,null,wp.element.createElement(C,{block:"themeisle-blocks/sharing-icons",attributes:k({},t)})))},M=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/sharing-icons",{title:M("Sharing Icons"),description:M("Share buttons for your website visitors to share content on any social sharing service."),icon:a.r,category:"themeisle-blocks",keywords:["social media","sharing","icons"],attributes:l,supports:{html:!0,align:["left","center","right"]},styles:[{name:"default",label:M("Regular"),isDefault:!0},{name:"icons",label:M("Icons Only")}],edit:S,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(73),n(74);var a=n(3),l={slug:{type:"string"}},o=n(43);n(1);function r(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=wp.i18n.__,d=wp.apiFetch,m=wp.components,s=m.Placeholder,u=m.Dashicon,b=m.TextControl,g=m.Spinner,f=wp.element,y=f.useEffect,h=f.useRef,w=f.useState,v=wp.keycodes,k=v.DOWN,T=v.ENTER,E=v.TAB,x=v.UP,C=function(e){var t=e.setAttributes,n=e.hasError,a=e.setError,l=e.className,c=h(null),m=!1,f=[],v=i(w(!1),2),C=v[0],S=v[1],M=i(w(""),2),B=M[0],O=M[1],R=i(w({}),2),A=R[0],L=R[1],P=i(w(null),2),N=P[0],I=P[1];y((function(){null===N||m||(m=!0,Object(o.a)(f[N],c.current,{onlyScrollIfNeeded:!0}),f[N].focus(),setTimeout((function(){m=!1}),100))}),[N]);var j=function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({slug:""}),S(!0),a(!1),e.next=5,d({path:"themeisle-gutenberg-blocks/v1/get_plugins?search=".concat(encodeURIComponent(n))});case 5:if(!(l=e.sent).data.errors){e.next=12;break}return a(!0),S(!1),I(null),L({}),e.abrupt("return");case 12:S(!1),I(null),L(l.data.plugins);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function i(e){r(o,a,l,i,c,"next",e)}function c(e){r(o,a,l,i,c,"throw",e)}i(void 0)}))});return function(e){return n.apply(this,arguments)}}(),z=function(e){if(Object.keys(A).length){e.stopPropagation(),e.preventDefault();var t=N?N-1:Object.keys(A).length-1;I(t)}},H=function(e){if(Object.keys(A).length){e.stopPropagation(),e.preventDefault();var t=null===N||N===Object.keys(A).length-1?0:N+1;I(t)}},D=function(e){t({slug:e.slug}),L({})};return wp.element.createElement(s,{icon:"admin-plugins",label:p("Plugin Card"),instructions:p("Search for the plugin you want to display."),className:l},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-search-field"},wp.element.createElement(u,{icon:"search"}),C&&wp.element.createElement(g,null),wp.element.createElement(b,{type:"text",placeholder:p("Search for plugin…"),value:B,onChange:O,onKeyDown:function(e){switch(e.keyCode){case x:z(e);break;case k:H(e);break;case E:Object.keys(A).length&&!e.shiftKey&&I(0);break;case T:j(e.target.value)}},onFocus:function(){return I(null)}}),A&&wp.element.createElement("div",{tabIndex:"-1",className:"wp-block-themeisle-blocks-plugin-cards-search-results",ref:c},Object.keys(A).map((function(e){var t,n,a=A[e];return a.icons.svg&&(t=a.icons.svg),a.icons["2x"]&&(t=a.icons["2x"]),a.icons["1x"]&&(t=a.icons["1x"]),a.icons.default&&(t=a.icons.default),wp.element.createElement("button",{className:"wp-block-themeisle-blocks-plugin-cards-list-item",key:e,ref:(n=e,function(e){f[n]=e}),onClick:function(e){e.preventDefault(),D(a)},onKeyDown:function(e){return function(e,t){switch(e.keyCode){case x:z(e);break;case k:H(e);break;case E:if(e.shiftKey){0!==N&&z(e);break}if(N===Object.keys(A).length-1)break;H(e);break;case T:D(t)}}(e,a)}},wp.element.createElement("img",{src:t}),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:_.unescape(a.name)}}))})))),n&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-plugin-cards-error"},wp.element.createElement("span",null,p("There seems to be an error. Make sure your internet is working properly."))))},S=wp.i18n.__,M=wp.components,B=M.Dashicon,O=M.Button,R=M.Toolbar,A=M.Tooltip,L=wp.blockEditor.BlockControls,P=function(e){var t=e.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(R,null,wp.element.createElement(A,{text:S("Edit")},wp.element.createElement(O,{className:"components-icon-button components-toolbar__control wp-block-themeisle-blocks-plugin-cards-edit-plugin-card",onClick:function(){return t({slug:void 0})}},wp.element.createElement(B,{icon:"edit"})))))};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(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 H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var D=wp.components.Disabled,G=wp.element,V=G.Fragment,F=G.useState,W=wp.serverSideRender,U=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=z(F(!1),2),o=l[0],r=l[1];return t.slug?wp.element.createElement(V,null,wp.element.createElement(P,{setAttributes:n}),wp.element.createElement(D,null,wp.element.createElement(W,{block:"themeisle-blocks/plugin-cards",className:t.className,attributes:I({},t)}))):wp.element.createElement(C,{attributes:t,setAttributes:n,hasError:o,setError:r,className:a})},q=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/plugin-cards",{title:q("Plugin Card"),description:q("Plugin Card block lets you display plugins data in your blog posts."),icon:a.n,category:"themeisle-blocks",keywords:["plugin","card","orbitfox"],attributes:l,supports:{html:!1},edit:U,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(58),n(59);var a=n(3),l=(n(1),wp.components.Disabled),o=wp.serverSideRender,r=function(){return wp.element.createElement(l,null,wp.element.createElement(o,{block:"themeisle-blocks/about-author"}))},i=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/about-author",{title:i("About Author"),description:i("About Author block is the easiest way to add a author bio below your posts."),icon:a.a,category:"themeisle-blocks",keywords:["about","author","profile"],supports:{html:!1},edit:r,save:function(){return null}})}]);
1
+ !function(e){function t(t){for(var o,r,i=t[0],c=t[1],p=t[2],d=0,u=[];d<i.length;d++)r=i[d],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&u.push(a[r][0]),a[r]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(s&&s(t);u.length;)u.shift()();return l.push.apply(l,p||[]),n()}function n(){for(var e,t=0;t<l.length;t++){for(var n=l[t],o=!0,i=1;i<n.length;i++){var c=n[i];0!==a[c]&&(o=!1)}o&&(l.splice(t--,1),e=r(r.s=n[0]))}return e}var o={},a={2:0},l=[];function r(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=a[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,o){n=a[e]=[t,o]}));t.push(n[2]=o);var l,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;l=function(t){i.onerror=i.onload=null,clearTimeout(p);var n=a[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+l+")",c.name="ChunkLoadError",c.type=o,c.request=l,n[1](c)}a[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:i})}),12e4);i.onerror=i.onload=l,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var p=0;p<i.length;p++)t(i[p]);var s=c;l.push([44,0]),n()}([,,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"r",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return h})),n.d(t,"p",(function(){return y})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));n(1);var o=wp.components,a=o.Path,l=o.SVG,r=function(){return wp.element.createElement(l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(a,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(a,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(a,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(a,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(a,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(a,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(a,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(a,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(a,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},p=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},s=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},d=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},u=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},m=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},h=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},y=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(l,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(l,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(l,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(l,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(l,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(a,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(a,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(a,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t){e.exports=React},function(e,t,n){"use strict";var o=n(0),a=n.n(o),l=(n(49),n(1),wp.components.ColorIndicator);t.a=function(e){var t=e.label,n=e.colorValue,o=e.className,r=e.children;return wp.element.createElement("div",{className:a()("components-base-control","wp-block-themeisle-blocks-color-base-control",o)},wp.element.createElement("div",{className:"components-base-control__field"},t&&wp.element.createElement("span",{className:"components-base-control__label"},t,n&&wp.element.createElement(l,{colorValue:n})),r))}},function(e,t,n){"use strict";var o=n(0),a=n.n(o),l=(n(51),n(3)),r=(n(1),wp.i18n.__),i=wp.components,c=i.Button,p=i.Dropdown,s=i.Icon,d=wp.compose,u=d.useInstanceId,m=d.useViewportMatch,b=wp.data,g=b.useSelect,f=b.useDispatch;t.a=function e(t){var n=t.label,o=t.className,i=t.children,d=u(e),b=m("large",">="),h=m("large","<="),y=m("small",">="),w=m("small","<="),v=!(b||h||y||w),k=g((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return n&&!v?n():t()})),T=f("themeisle-gutenberg/data").updateView,E=f("core/edit-post").__experimentalSetPreviewDeviceType,x=E&&!v?E:T,C="inspector-responsive-control-".concat(d);return wp.element.createElement("div",{id:C,className:a()("wp-block-themeisle-blocks-responsive-control",o)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(p,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(c,{icon:"Mobile"===k?"smartphone":k.toLowerCase(),label:r("Responsiveness Settings"),showTooltip:!0,className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:a()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===k}),onClick:function(){return x("Desktop")}},"Desktop"===k&&wp.element.createElement(s,{icon:l.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:a()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===k}),onClick:function(){return x("Tablet")}},"Tablet"===k&&wp.element.createElement(s,{icon:l.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:a()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===k}),onClick:function(){return x("Mobile")}},"Mobile"===k&&wp.element.createElement(s,{icon:l.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}},function(e,t,n){"use strict";var o=n(0),a=n.n(o),l=(n(52),n(1),wp.element),r=l.Fragment,i=l.useRef,c=function(e){var t=e.id,n=e.index,o=e.option,a=e.min,l=e.max,c=e.onChange,p=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(o)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(o,"-").concat(t),value:void 0!==n.value?n.value:"",min:a,max:l,ref:p,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(o,"-").concat(t)},n.label))},p=wp.i18n.__,s=wp.components.Button,d=wp.compose.useInstanceId;t.a=function e(t){var n=t.label,o=t.type,l=t.min,r=t.max,i=t.changeType,u=t.options,m=t.onChange,b=d(e),g="inspector-sizing-control-".concat(b);return u&&1>u.length?p("Please specify more options."):wp.element.createElement("div",{id:g,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:g},n),wp.element.createElement("div",{className:a()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:o})},u.map((function(e,t){return wp.element.createElement(c,{id:b,index:e,option:t,min:l,max:r,onChange:m})})),o&&wp.element.createElement("div",{className:a()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===o})},wp.element.createElement(s,{icon:"linked"===o?"admin-links":"editor-unlink",label:p("linked"===o?"Unlink Values":"Link Values"),showTooltip:!0,className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===o?"unlinked":"linked")}})))))}},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none"},"themeisle-blocks/button":{},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1,columnsHTMLTag:"div"},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,,function(e,t,n){"use strict";var o=n(0),a=n.n(o),l=n(124),r=n(121);n(63),n(1);function i(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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var d=wp.i18n.__,u=wp.components,m=u.Button,b=u.Dropdown,g=wp.compose.useInstanceId,f=wp.element,h=f.Fragment,y=f.useEffect,w=f.useState;t.a=function e(t){var n=t.label,o=t.attributes,s=t.setAttributes,u=t.resetValues,f=t.onClick,v=t.children;y((function(){for(var e in u){if(u[e]!==o[e])return x(!0);x(!1)}}),[o]);var k=g(e),T=p(w(!1),2),E=T[0],x=T[1],C="inspector-control-panel-control-".concat(k);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:C},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(b,{position:"top left",headerTitle:n,expandOnMobile:!0,renderToggle:function(e){var t=e.isOpen,o=e.onToggle;return wp.element.createElement(h,null,E&&wp.element.createElement(m,{icon:wp.element.createElement(l.a,{icon:r.a}),label:d("Reset to default"),shotTooltip:!0,isTertiary:!0,onClick:function(){return s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u))}}),wp.element.createElement(m,{id:C,icon:"admin-settings",label:n,shotTooltip:!0,onClick:function(){o(),f&&f()},"aria-expanded":t,className:a()({"is-active":E})}))},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},v)}})))))}},,function(e,t,n){"use strict";var o=n(0),a=n.n(o);n(50),n(1);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||i(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 i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var p=lodash,s=p.startCase,d=p.toLower,u=wp.i18n.__,m=wp.compose.useInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,h=b.Dropdown,y=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=function e(t){var n=t.label,o=t.value,i=t.valueVariant,c=t.valueStyle,p=t.valueTransform,b=t.isSelect,T=void 0!==b&&b,C=t.onChangeFontFamily,S=t.onChangeFontVariant,M=t.onChangeFontStyle,O=t.onChangeTextTransform,B=m(e);E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){A(e.items),o&&e.items.find((function(e){if(o===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:s(d(e)),value:e}}));return L(t)}}))}))}),[]);var P=r(x(null),2),R=P[0],A=P[1],_=r(x(null),2),N=_[0],L=_[1],j=r(x(""),2),I=j[0],z=j[1],H="inspector-google-fonts-control-".concat(B);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==R?T?wp.element.createElement(v,{value:o||"",id:H,options:[{label:u("Default"),value:""}].concat(l(R.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:u("Regular"),value:"regular"},{label:u("Italic"),value:"italic"}],C(void 0),void L(t);C(e),t=R.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:s(d(e)),value:e}})),L(t)}}):wp.element.createElement(h,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},o||u("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(y,{label:u("Google Fonts")},wp.element.createElement(k,{value:I,onChange:function(e){return z(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),C(void 0),L([]),z("")}},u("Default")),R.map((function(e){if(!I||e.family.toLowerCase().includes(I.toLowerCase()))return wp.element.createElement(w,{className:a()({"is-selected":e.family===o}),onClick:function(){t(),C(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:s(d(e)),value:e}}));L(n),z("")}},e.family)}))))}}):u("Loading…")),N&&wp.element.createElement(v,{label:u("Font Width"),value:i||"regular",options:N,onChange:S}),wp.element.createElement(v,{label:u("Font Style"),value:c,options:[{label:u("Regular"),value:"normal"},{label:u("Italic"),value:"italic"}],onChange:M}),wp.element.createElement(v,{label:u("Font Transform"),value:p,options:[{label:u("Default"),value:"none"},{label:u("Uppercase"),value:"uppercase"},{label:u("Lowercase"),value:"lowercase"},{label:u("Capitalize"),value:"capitalize"}],onChange:O}))}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var o=n(0),a=n.n(o),l=(n(73),n(1),wp.components),r=l.BaseControl,i=l.Button,c=l.Dropdown,p=l.Toolbar,s=wp.compose.useInstanceId,d=wp.blockEditor.BlockControls,u=wp.element.Fragment,m=function e(t){var n=t.label,o=t.value,l=t.options,c=t.onChange,p=s(e),d="inspector-style-switcher-control-".concat(p);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},l.map((function(e){return wp.element.createElement(i,{className:a()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===o}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))},b=function(e){var t=e.label,n=e.value,o=e.options,l=e.onChange;return wp.element.createElement(d,null,wp.element.createElement(p,null,wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,o=e.onToggle;return wp.element.createElement(i,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:o,"aria-haspopup":"true","aria-expanded":n,label:t,showTooltip:!0},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:a()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return l(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,,function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o);n(84),n(85),n(1);t.default=function(e){var t=e.type,n=e.front,o=e.style,l=e.fill,r=e.invert,i=e.width,c=e.height;return"none"!==o&&wp.element.createElement("div",{className:a()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&i?{transform:"".concat(i?"scaleX( ".concat(i/100," )"):"")}:{}},"bigTriangle"===o&&!1===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===o&&!0===r&&wp.element.createElement("svg",{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"top"===t})},wp.element.createElement("path",{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===o&&!1===r&&wp.element.createElement("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===o&&!0===r&&wp.element.createElement("svg",{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===o&&wp.element.createElement("svg",{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"top"===t})},wp.element.createElement("path",{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===o&&!1===r&&wp.element.createElement("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L100 100 L100 0 Z"})),"slant"===o&&!0===r&&wp.element.createElement("svg",{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"bottom"===t})},wp.element.createElement("path",{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===o&&wp.element.createElement("svg",{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:c?"".concat(c,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:a()({rotate:"top"===t})},wp.element.createElement("path",{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},,function(e,t,n){"use strict";n.r(t);n(81);var o=n(3),a=(n(1),wp.i18n.__),l=wp.components,r=l.Button,i=l.ButtonGroup,c=l.Icon,p=wp.compose.useInstanceId;t.default=function e(t){var n=t.label,l=t.backgroundType,s=t.changeBackgroundType,d=p(e),u="inspector-background-control-".concat(d);return wp.element.createElement("div",{id:u,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement(i,{className:"linking-controls"},wp.element.createElement(r,{icon:"admin-customizer",label:a("Color"),showTootlip:!0,isPrimary:"color"===l,onClick:function(){return s("color")}}),wp.element.createElement(r,{icon:"format-image",label:a("Image"),showTootlip:!0,isPrimary:"image"===l,onClick:function(){return s("image")}}),wp.element.createElement(r,{icon:function(){return wp.element.createElement(c,{icon:o.b})},label:a("Gradient"),showTootlip:!0,isPrimary:"gradient"===l,onClick:function(){return s("gradient")}})))))}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(82);var o=n(5),a=n(0),l=n.n(a),r=(n(1),wp.components),i=r.Dashicon,c=r.Tooltip,p=function(e){var t=e.title,n=e.firstColor,o=e.secondColor,a=e.isSelected,r=e.onChange,p=wp.element.createElement("button",{type:"button","aria-pressed":a,className:l()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":a}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(o," 100%)")},onClick:function(){return r(n,0,o,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(c,{text:t},p):p,a&&wp.element.createElement(i,{icon:"saved"}))},s=wp.i18n.__,d=[{title:s("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:s("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:s("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:s("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:s("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:s("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:s("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:s("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:s("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:s("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:s("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:s("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],u=wp.i18n.__,m=wp.components,b=m.Button,g=m.ColorIndicator,f=m.Dropdown,h=m.RangeControl,y=m.SelectControl,w=wp.compose.useInstanceId,v=wp.blockEditor.ColorPalette,k=wp.element.Fragment;t.a=function e(t){var n,a=t.label,l=t.value,r=t.customGradient,i=void 0===r||r,c=t.onChange,s=t.onChangeValue,m=w(e),T="inspector-gradient-picker-control-".concat(m);n="linear"===l.type?"".concat(l.angle,"deg"):"at ".concat(l.position);var E="".concat(l.type,"-gradient( ").concat(n,", ").concat(l.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.firstLocation,"%, ").concat(l.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.secondLocation,"% )"),x=d.some((function(e){return e.firstColor===l.firstColor&&e.secondColor===l.secondColor}));return wp.element.createElement("div",{id:T,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},a&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},a,!x&&wp.element.createElement(g,{colorValue:E}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},d.map((function(e){return wp.element.createElement(p,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===l.firstColor&&e.secondColor===l.secondColor,onChange:c})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},i&&wp.element.createElement(f,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(b,{"aria-expanded":t,onClick:n,isLink:!0},u("Custom Gradient"))},renderContent:function(){return wp.element.createElement(k,null,wp.element.createElement(o.a,{label:u("First Color"),colorValue:l.firstColor},wp.element.createElement(v,{label:u("Color"),clearable:!1,value:l.firstColor,onChange:function(e){return s({firstColor:e})}})),wp.element.createElement(h,{label:u("Location"),value:l.firstLocation,min:0,max:100,onChange:function(e){return s({firstLocation:e})}}),wp.element.createElement(o.a,{label:u("Second Color"),colorValue:l.secondColor},wp.element.createElement(v,{label:u("Color"),clearable:!1,value:l.secondColor,onChange:function(e){return s({secondColor:e})}})),wp.element.createElement(h,{label:u("Location"),value:l.secondLocation,min:0,max:100,onChange:function(e){return s({secondLocation:e})}}),wp.element.createElement(y,{label:u("Type"),value:l.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return s({type:e})}}),"linear"===l.type?wp.element.createElement(h,{label:u("Angle"),value:l.angle,min:0,max:360,onChange:function(e){return s({angle:e})}}):wp.element.createElement(y,{label:u("Position"),value:l.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return s({position:e})}}))}}),wp.element.createElement(b,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isSecondary:!0,onClick:function(){return c("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},u("Clear"))))))}},,,function(e,t,n){"use strict";var o=n(0),a=n.n(o);n(64),n(1);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,p=wp.compose.useInstanceId,s=wp.components,d=s.BaseControl,u=s.Button,m=s.Notice,b=wp.element,g=b.useEffect,f=b.useState;t.a=function e(t){var n=t.value,o=t.onChange,r=p(e);g((function(){return v(n)}),[n]);var s=l(f(!1),2),b=s[0],h=s[1],y=l(f(null),2),w=y[0],v=y[1],k=void 0!==window.themeisleGutenberg.blockIDs&&n!==w&&window.themeisleGutenberg.blockIDs.includes(w);return wp.element.createElement(c,null,wp.element.createElement(d,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(r)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!b&&"readonly",value:b?w:n,onChange:function(e){return v(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(u,{icon:b?"yes":"edit",label:i(b?"Save":"Edit"),showTooltip:!0,disabled:!!k,className:a()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!b}),onClick:function(){if(b&&n!==w){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=w,o(w)}h(!b)}}))),k&&wp.element.createElement(m,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}},function(e,t,n){"use strict";var o=n(122),a=n(123);n(65),n(1);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var c=wp.i18n.__,p=wp.blockEditor.__experimentalLinkControl,s=wp.components,d=s.KeyboardShortcuts,u=s.Popover,m=s.ToolbarButton,b=s.ToolbarGroup,g=wp.element,f=g.Fragment,h=g.useState,y=wp.keycodes,w=y.displayShortcut,v=y.rawShortcut;t.a=function(e){var t,n=e.isSelected,i=e.url,s=e.setAttributes,g=e.opensInNewTab,y=r(h(!1),2),k=y[0],T=y[1],E=!!i,x=E&&n,C=function(){return T(!0),!1},S=function(){s({link:void 0,newTab:void 0}),T(!1)},M=k&&wp.element.createElement(u,{position:"bottom right",onClose:function(){return T(!1)}},wp.element.createElement(p,{className:"wp-block-navigation-link__inline-link-input",value:{url:i,opensInNewTab:g},onChange:function(e){var t=e.url,n=void 0===t?"":t,o=e.opensInNewTab;s({link:n}),g!==o&&s({newTab:o})}}));return wp.element.createElement(f,null,wp.element.createElement(b,null,!E&&wp.element.createElement(m,{name:"link",icon:o.a,title:c("Link"),shortcut:w.primary("k"),onClick:C,className:"wp-block-themeisle-toolbar-icon"}),x&&wp.element.createElement(m,{name:"link",icon:a.a,title:c("Unlink"),shortcut:w.primaryShift("k"),onClick:S,isActive:!0,className:"wp-block-themeisle-toolbar-icon"})),n&&wp.element.createElement(d,{bindGlobal:!0,shortcuts:(t={},l(t,v.primary("k"),C),l(t,v.primaryShift("k"),S),t)}),M)}},,function(e,t,n){"use strict";n(56);var o=n(24),a=n.n(o),l=n(0),r=n.n(l),i=n(16),c=n(124),p=n(127),s=(n(1),wp.components.Button),d=Object(i.b)((function(e){var t=e.value,n=e.selected,o=e.dragging,a=e.sorting,l=e.selectedItemsCount,i=e.onClick,c=o&&1<l;return wp.element.createElement(s,{className:r()("wp-block-themeisle-blocks-images-grid-component__image",{"is-selected":n,"is-sorting":n&&a}),onClick:function(){return i(t)},style:{backgroundImage:"url( ' ".concat(t.url," ' )")}},c&&wp.element.createElement("div",{className:"wp-block-themeisle-blocks-images-grid-component__image__count"},l))})),u=wp.i18n.__,m=wp.components.Button,b=Object(i.a)((function(e){var t=e.items,n=e.className,o=e.onItemSelect,a=e.selectedItems,l=e.isSorting,r=e.sortingItemKey,i=e.open;return wp.element.createElement("div",{className:n,tabIndex:"0"},t.map((function(e,t){var n=a.includes(e),i=r===e;return wp.element.createElement(d,{key:"image-".concat(e.id),index:t,value:e,selected:n,dragging:i,sorting:l,selectedItemsCount:a.length,onClick:o})})),wp.element.createElement(m,{label:u("Add Images"),icon:wp.element.createElement(c.a,{icon:p.a}),isPrimary:!0,onClick:i}))}));function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw l}}return n}(e,t)||h(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 h(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.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)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var w=wp.element.useState,v=function(e){var t=e.attributes,n=e.onSelectImages,o=e.open,l=f(w([]),2),i=l[0],c=l[1],p=f(w(!1),2),s=p[0],d=p[1],u=f(w(null),2),m=u[0],h=u[1];return wp.element.createElement(b,{className:r()("wp-block-themeisle-blocks-images-grid-component",{"is-single":1===t.images.length}),open:o,items:t.images,onItemSelect:function(e){var t;t=i.includes(e)?i.filter((function(t){return t!==e})):[].concat(g(i),[e]),c(t)},selectedItems:i,isSorting:s,sortingItemKey:m,shouldCancelStart:function(e){if(!e.target.sortableInfo)return!1;var n=t.images[e.target.sortableInfo.index];return!!i.length&&!i.includes(n)},updateBeforeSortStart:function(e){var n=e.index;return new Promise((function(e){d(!0),h(t.images[n]),e()}))},onSortEnd:function(e){var o=e.oldIndex,l=e.newIndex,r=a()(t.images,o,l);i.length&&(r=[].concat(g(r.slice(0,l).filter((function(e){return!i.includes(e)}))),g(i),g(r.slice(l,r.length).filter((function(e){return!i.includes(e)}))))),d(!1),h(null),c([]),n(r)},distance:3,axis:"xy"})},k=lodash.debounce,T=wp.blockEditor,E=T.MediaUpload,x=T.MediaUploadCheck;t.a=function(e){var t=e.attributes,n=e.onSelectImages,o=k(n,250);return wp.element.createElement(x,null,wp.element.createElement(E,{onSelect:o,allowedTypes:["image"],multiple:!0,addToGallery:!0,gallery:!0,value:t.images.map((fun