oont-contents/plugins/astra-addon/addons/advanced-hooks/theme-builder/build/index.js
2025-02-08 15:10:23 +01:00

1 line
No EOL
284 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={53:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},866:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(53),i=n(533);a(n(533),t);var l=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(l," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));var r=new i.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},533:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(53),l=new Map([[i.ElementType.Tag,1],[i.ElementType.Script,1],[i.ElementType.Style,1],[i.ElementType.Directive,1],[i.ElementType.Text,3],[i.ElementType.CDATA,4],[i.ElementType.Comment,8],[i.ElementType.Root,9]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=l.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=s;var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return a(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var u=function(e){function t(t){return e.call(this,i.ElementType.Text,t)||this}return a(t,e),t}(c);t.Text=u;var d=function(e){function t(t){return e.call(this,i.ElementType.Comment,t)||this}return a(t,e),t}(c);t.Comment=d;var h=function(e){function t(t,n){var r=e.call(this,i.ElementType.Directive,n)||this;return r.name=t,r}return a(t,e),t}(c);t.ProcessingInstruction=h;var p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return a(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return a(t,e),t}(p);t.Document=f;var m=function(e){function t(t,n,r,a){void 0===r&&(r=[]),void 0===a&&(a="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var o=e.call(this,a,r)||this;return o.name=t,o.attribs=n,o}return a(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,i.isTag)(e)}function v(e){return e.type===i.ElementType.CDATA}function y(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function w(e){return e.type===i.ElementType.Directive}function C(e){return e.type===i.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(g(e)){var r=t?x(e.children):[],a=new m(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=a}else if(v(e)){r=t?x(e.children):[];var l=new p(i.ElementType.CDATA,r);r.forEach((function(e){return e.parent=l})),n=l}else if(C(e)){r=t?x(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=C,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},482:(e,t,n)=>{"use strict";var r=n(923),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var a=p(n);a&&a!==f&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<i.length;++g){var v=i[g];if(!(o[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},982:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},488:(e,t,n)=>{var r="html",a="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=/<head.*>/i,s=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d.parseFromString(e,"text/html")}}if(document.implementation){var h=n(139).isIE,p=document.implementation.createHTMLDocument(h()?"html-dom-parser":void 0);c=function(e,t){return t?(p.documentElement.getElementsByTagName(t)[0].innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var f,m=document.createElement("template");m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,n,d,h,p=e.match(i);switch(p&&p[1]&&(t=p[1].toLowerCase()),t){case r:return n=u(e),l.test(e)||(d=n.getElementsByTagName(a)[0])&&d.parentNode.removeChild(d),s.test(e)||(d=n.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(r);case a:case o:return h=c(e).getElementsByTagName(t),s.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},975:(e,t,n)=>{var r=n(488),a=n(139).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),a(r(e),null,t)}},139:(e,t,n)=>{for(var r,a=n(982),o=n(533),i=a.CASE_SENSITIVE_TAG_NAMES,l=o.Comment,s=o.Element,c=o.ProcessingInstruction,u=o.Text,d={},h=0,p=i.length;h<p;h++)r=i[h],d[r.toLowerCase()]=r;function f(e){for(var t,n={},r=0,a=e.length;r<a;r++)n[(t=e[r]).name]=t.value;return n}function m(e){return function(e){return d[e]}(e=e.toLowerCase())||e}e.exports={formatAttributes:f,formatDOM:function e(t,n,r){n=n||null;for(var a=[],o=0,i=t.length;o<i;o++){var d,h=t[o];switch(h.nodeType){case 1:(d=new s(m(h.nodeName),f(h.attributes))).children=e(h.childNodes,d);break;case 3:d=new u(h.nodeValue);break;case 8:d=new l(h.nodeValue);break;default:continue}var p=a[o-1]||null;p&&(p.next=d),d.parent=n,d.prev=p,d.next=null,a.push(d)}return r&&((d=new c(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=a[0]||null,d.parent=n,a.unshift(d),a[1]&&(a[1].prev=a[0])),a},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},478:(e,t,n)=>{var r=n(924),a=n(440),o=n(975);o="function"==typeof o.default?o.default:o;var i={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(o(e,(t=t||{}).htmlparser2||i),t)}l.domToReact=r,l.htmlToDOM=o,l.attributesToProps=a,l.Element=n(866).Element,e.exports=l,e.exports.default=l},440:(e,t,n)=>{var r=n(714),a=n(350);function o(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,i,l,s,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(i=e[t],r.isCustomAttribute(t))c[t]=i;else if(l=o(n=t.toLowerCase()))switch(s=r.getPropertyInfo(l),"checked"!==l&&"value"!==l||u||(l=o("default"+n)),c[l]=i,s&&s.type){case r.BOOLEAN:c[l]=!0;break;case r.OVERLOADED_BOOLEAN:""===i&&(c[l]=!0)}else a.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=i);return a.setStyleProp(e.style,c),c}},924:(e,t,n)=>{var r=n(609),a=n(440),o=n(350),i=o.setStyleProp,l=o.canTextBeChildOfNode;function s(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,h,p=(n=n||{}).library||r,f=p.cloneElement,m=p.createElement,g=p.isValidElement,v=[],y="function"==typeof n.replace,b=n.trim,w=0,C=t.length;w<C;w++)if(o=t[w],y&&g(u=n.replace(o)))C>1&&(u=f(u,{key:u.key||w})),v.push(u);else if("text"!==o.type){switch(d=o.attribs,s(o)?i(d.style,d):d&&(d=a(d)),h=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}C>1&&(d.key=w),v.push(m(o.name,d,h))}else{if((c=!o.data.trim().length)&&o.parent&&!l(o.parent))continue;if(b&&c)continue;v.push(o.data)}return 1===v.length?v[0]:v}},350:(e,t,n)=>{var r=n(609),a=n(61).default,o={reactCompat:!0},i=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,a="function"==typeof t,o={},i={};for(n in e)r=e[n],a&&(o=t(n,r))&&2===o.length?i[o[0]]=o[1]:"string"==typeof r&&(i[r]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=a(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},elementsWithNoTextChildren:l}},940:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function f(){var e={line:d,column:h};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:h},this.source=s.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(s.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=h,n.source=e,!s.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function E(){var e=f(),n=y(a);if(n){if(C(),!y(o))return v("property missing ':'");var r=y(i),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(l),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},9:(e,t,n)=>{var r=n(661).Symbol;e.exports=r},104:(e,t,n)=>{var r=n(9),a=n(595),o=n(126),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},472:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},272:(e,t,n)=>{var r=n(64),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},850:(e,t,n)=>{var r=n(648);e.exports=function(e){return"function"==typeof e?e:r}},800:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},595:(e,t,n)=>{var r=n(9),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[l]=n:delete e[l]),a}},126:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},661:(e,t,n)=>{var r=n(800),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},64:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},648:e=>{e.exports=function(e){return e}},485:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},882:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},802:(e,t,n)=>{var r=n(104),a=n(882);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},286:(e,t,n)=>{var r=n(472),a=n(850),o=n(97),i=4294967295,l=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=i,s=l(e,i);t=a(t),e-=i;for(var c=r(s,t);++n<e;)t(n);return c}},728:(e,t,n)=>{var r=n(902),a=1/0;e.exports=function(e){return e?(e=r(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},97:(e,t,n)=>{var r=n(728);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},902:(e,t,n)=>{var r=n(272),a=n(485),o=n(802),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},398:(e,t,n)=>{"use strict";var r=n(85);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},764:(e,t,n)=>{e.exports=n(398)()},85:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},708:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(609),i=s(o),l=s(n(764));function s(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},h=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return h?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return h&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);f.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.A=f},687:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case s:return e;default:return t}}case a:return t}}}function E(e){return C(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||C(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===a},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===i},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=C},923:(e,t,n)=>{"use strict";e.exports=n(687)},714:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}Object.defineProperty(t,"__esModule",{value:!0});var o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){o[e]=new a(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,i=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);_n=!0);}catch(e){i=!0,a=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(t,n)||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.")}()),l=i[0],s=i[1];o[l]=new a(l,1,!1,s,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){o[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){o[e]=new a(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){o[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){o[e]=new a(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){o[e]=new a(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){o[e]=new a(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){o[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)}));var i=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(i,l);o[t]=new a(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(i,l);o[t]=new a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(i,l);o[t]=new a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){o[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){o[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)}));var s=n(3),c=s.CAMELCASE,u=s.SAME,d=s.possibleStandardNames,h=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(d).reduce((function(e,t){var n=d[t];return n===u?e[t]=t:n===c?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=p},3:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},61:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var a=r(n(156)),o=n(77);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,a.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}},77:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||a.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,s):e.replace(o,s)).replace(r,l))}},156:(e,t,n)=>{var r=n(940);e.exports=function(e,t){var n,a=null;if(!e||"string"!=typeof e)return a;for(var o,i,l=r(e),s="function"==typeof t,c=0,u=l.length;c<u;c++)o=(n=l[c]).property,i=n.value,s?t(o,i,n):i&&(a||(a={}),a[o]=i);return a}},420:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(609)),c=n(665),u=(0,n(489).createAnimation)("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");t.default=function(e){var t=e.loading,n=void 0===t||t,a=e.color,o=void 0===a?"#000000":a,i=e.speedMultiplier,d=void 0===i?1:i,h=e.cssOverride,p=void 0===h?{}:h,f=e.size,m=void 0===f?35:f,g=l(e,["loading","color","speedMultiplier","cssOverride","size"]),v=r({background:"transparent !important",width:(0,c.cssValue)(m),height:(0,c.cssValue)(m),borderRadius:"100%",border:"2px solid",borderTopColor:o,borderBottomColor:"transparent",borderLeftColor:o,borderRightColor:o,display:"inline-block",animation:"".concat(u," ").concat(.75/d,"s 0s infinite linear"),animationFillMode:"both"},p);return n?s.createElement("span",r({style:v},g)):null}},489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var o=a.sheet,i="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return o&&o.insertRule(i,0),r}},665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var a=(e.match(/[^0-9]*$/)||"").toString();return n[a]?{value:t,unit:a}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},609:e=>{"use strict";e.exports=window.React}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(609),t=n.n(e);const r=window.ReactDOM;var a,o=n.n(r);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const l="popstate";function s(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var f;function m(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let a=D(("string"==typeof t?p(t):t).pathname||"/",n);if(null==a)return null;let o=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=S(a);i=k(o[e],t,r)}return i}(e,t,n,!1)}function g(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(s(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let l=F([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),g(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:M(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=v(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const y=/^:[\w-]+$/,b=3,w=2,C=1,E=10,x=-2,L=e=>"*"===e;function M(e,t){let n=e.split("/"),r=n.length;return n.some(L)&&(r+=x),t&&(r+=w),n.filter((e=>!L(e))).reduce(((e,t)=>e+(y.test(t)?b:""===t?C:E)),r)}function k(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=_({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},c),d=l.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=_({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:F([o,u.pathname]),pathnameBase:V(F([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=F([o,u.pathnameBase]))}return i}function _(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1),s=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{});return{params:s,pathname:o,pathnameBase:i,pattern:e}}function S(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function O(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function P(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function T(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=p(e):(a=i({},e),s(!a.pathname||!a.pathname.includes("?"),O("?","pathname","search",a)),s(!a.pathname||!a.pathname.includes("#"),O("#","pathname","hash",a)),s(!a.search||!a.search.includes("#"),O("#","search","hash",a)));let o,l=""===e||""===a.pathname,c=l?"/":a.pathname;if(null==c)o=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:H(r),hash:N(a)}}(a,o),d=c&&"/"!==c&&c.endsWith("/"),h=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const F=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const I=["post","put","patch","delete"],Z=(new Set(I),["get",...I]);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R.apply(this,arguments)}new Set(Z),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const A=e.createContext(null),B=e.createContext(null),j=e.createContext(null),U=e.createContext(null),W=e.createContext({outlet:null,matches:[],isDataRoute:!1}),z=e.createContext(null);function $(){return null!=e.useContext(U)}function G(){return $()||s(!1),e.useContext(U).location}function Y(t){e.useContext(j).static||e.useLayoutEffect(t)}function q(){let{isDataRoute:t}=e.useContext(W);return t?function(){let{router:t}=function(){let t=e.useContext(A);return t||s(!1),t}(ne.UseNavigateStable),n=ae(re.UseNavigateStable),r=e.useRef(!1);Y((()=>{r.current=!0}));let a=e.useCallback((function(e,a){void 0===a&&(a={}),r.current&&("number"==typeof e?t.navigate(e):t.navigate(e,R({fromRouteId:n},a)))}),[t,n]);return a}():function(){$()||s(!1);let t=e.useContext(A),{basename:n,future:r,navigator:a}=e.useContext(j),{matches:o}=e.useContext(W),{pathname:i}=G(),l=JSON.stringify(P(o,r.v7_relativeSplatPath)),c=e.useRef(!1);Y((()=>{c.current=!0}));let u=e.useCallback((function(e,r){if(void 0===r&&(r={}),!c.current)return;if("number"==typeof e)return void a.go(e);let o=T(e,JSON.parse(l),i,"path"===r.relative);null==t&&"/"!==n&&(o.pathname="/"===o.pathname?n:F([n,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}),[n,a,l,i,t]);return u}()}function X(t,n){let{relative:r}=void 0===n?{}:n,{future:a}=e.useContext(j),{matches:o}=e.useContext(W),{pathname:i}=G(),l=JSON.stringify(P(o,a.v7_relativeSplatPath));return e.useMemo((()=>T(t,JSON.parse(l),i,"path"===r)),[t,l,i,r])}function Q(t,n,r,o){$()||s(!1);let{navigator:i}=e.useContext(j),{matches:l}=e.useContext(W),c=l[l.length-1],u=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let h,f=G();if(n){var g;let e="string"==typeof n?p(n):n;"/"===d||(null==(g=e.pathname)?void 0:g.startsWith(d))||s(!1),h=e}else h=f;let v=h.pathname||"/",y=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=m(t,{pathname:y}),w=function(t,n,r,a){var o;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===a&&(a=null),null==t){var i;if(!r)return null;if(r.errors)t=r.matches;else{if(!(null!=(i=a)&&i.v7_partialHydration&&0===n.length&&!r.initialized&&r.matches.length>0))return null;t=r.matches}}let l=t,c=null==(o=r)?void 0:o.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||s(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(r&&a&&a.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((t,a,o)=>{let i,s=!1,h=null,p=null;var f;r&&(i=c&&a.route.id?c[a.route.id]:void 0,h=a.route.errorElement||K,u&&(d<0&&0===o?(oe[f="route-fallback"]||(oe[f]=!0),s=!0,p=null):d===o&&(s=!0,p=a.route.hydrateFallbackElement||null)));let m=n.concat(l.slice(0,o+1)),g=()=>{let n;return n=i?h:s?p:a.route.Component?e.createElement(a.route.Component,null):a.route.element?a.route.element:t,e.createElement(te,{match:a,routeContext:{outlet:t,matches:m,isDataRoute:null!=r},children:n})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?e.createElement(ee,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:F([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:F([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,r,o);return n&&w?e.createElement(U.Provider,{value:{location:R({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:a.Pop}},w):w}function J(){let t=function(){var t;let n=e.useContext(z),r=function(){let t=e.useContext(B);return t||s(!1),t}(re.UseRouteError),a=ae(re.UseRouteError);return void 0!==n?n:null==(t=r.errors)?void 0:t[a]}(),n=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:a},r):null,null)}const K=e.createElement(J,null);class ee extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(W.Provider,{value:this.props.routeContext},e.createElement(z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function te(t){let{routeContext:n,match:r,children:a}=t,o=e.useContext(A);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(W.Provider,{value:n},a)}var ne=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ne||{}),re=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(re||{});function ae(t){let n=function(){let t=e.useContext(W);return t||s(!1),t}(),r=n.matches[n.matches.length-1];return r.route.id||s(!1),r.route.id}const oe={},ie={},le=(e,t,n)=>{var r;ie[r="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+"."]||(ie[r]=!0,console.warn(r))};function se(e){s(!1)}function ce(t){let{basename:n="/",children:r=null,location:o,navigationType:i=a.Pop,navigator:l,static:c=!1,future:u}=t;$()&&s(!1);let d=n.replace(/^\/*/,"/"),h=e.useMemo((()=>({basename:d,navigator:l,static:c,future:R({v7_relativeSplatPath:!1},u)})),[d,u,l,c]);"string"==typeof o&&(o=p(o));let{pathname:f="/",search:m="",hash:g="",state:v=null,key:y="default"}=o,b=e.useMemo((()=>{let e=D(f,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:y},navigationType:i}}),[d,f,m,g,v,y,i]);return null==b?null:e.createElement(j.Provider,{value:h},e.createElement(U.Provider,{children:r,value:b}))}function ue(e){let{children:t,location:n}=e;return Q(de(t),n)}function de(t,n){void 0===n&&(n=[]);let r=[];return e.Children.forEach(t,((t,a)=>{if(!e.isValidElement(t))return;let o=[...n,a];if(t.type===e.Fragment)return void r.push.apply(r,de(t.props.children,o));t.type!==se&&s(!1),t.props.index&&t.props.children&&s(!1);let i={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=de(t.props.children,o)),r.push(i)})),r}e.startTransition,new Promise((()=>{})),e.Component;const he=window.wp.i18n,pe=()=>{const{admin_url:t}=astra_theme_builder,n=new URLSearchParams(G().search),r=n.get("page"),a=n.get("path");let o=[(0,e.createElement)("a",{href:t},(0,he.__)("Dashboard","astra-addon")),(0,he.__)("Site Builder","astra-addon")];if("theme-builder"===r)switch(a){case"create-new":o.push((0,he.__)("Create New","astra-addon"));break;case"all-layouts":default:o.push((0,he.__)("All Layouts","astra-addon"));break;case"header":o.push((0,he.__)("Header","astra-addon"));break;case"footer":o.push((0,he.__)("Footer","astra-addon"));break;case"hooks":o.push((0,he.__)("Hooks","astra-addon"));break;case"404-page":o.push((0,he.__)("404 Page","astra-addon"));break;case"single":o.push((0,he.__)("Single Template","astra-addon"));break;case"archive":o.push((0,he.__)("Archive Template","astra-addon"));break;case"content":o.push((0,he.__)("Inside Post/Page","astra-addon"))}return(0,e.createElement)("nav",{className:"ast-tb-breadcrumbs"},o.map(((t,n)=>(0,e.createElement)("span",{className:"ast-tb-crumb",key:n},t,n<o.length-1&&(0,e.createElement)("span",{className:"ast-tb-crumb-icon"},(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-breadcrumb-icon"},(0,e.createElement)("path",{d:"M4.90625 10.2734L8.17578 7.0039L4.90625 3.73438",stroke:"#4B5563",strokeWidth:"1.08984",strokeLinecap:"round",strokeLinejoin:"round"})))))))},fe=()=>(0,e.createElement)("div",{className:"ast-tb-header"},(0,e.createElement)("div",{className:"ast-tb-header-items"},""===astra_theme_builder.logo_url?(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("rect",{width:"40",height:"40",rx:"20",fill:"url(#paint0_linear_6786_60902)"}),(0,e.createElement)("path",{d:"M19.7688 8.00063C19.7679 7.99979 19.7688 7.99979 19.7688 8.00063C16.5122 14.6651 13.2557 21.333 10 27.9975C11.3949 27.9975 12.7907 27.9975 14.1865 27.9975C16.8208 22.8376 19.4568 17.6759 22.0919 12.5126L19.7688 8.00063Z",fill:"white"}),(0,e.createElement)("path",{d:"M24.1092 16.2694C22.7652 18.976 21.4213 21.6833 20.0774 24.3899L19.9996 24.5408H20.0774C21.3695 24.5408 22.6615 24.5408 23.9536 24.5408C24.4704 25.6933 24.9873 26.8475 25.5041 28C27.0027 28 28.5014 28 30 28C28.0364 24.0881 26.0719 20.1788 24.1092 16.2694Z",fill:"white"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"paint0_linear_6786_60902",x1:"-5.96046e-07",y1:"40",x2:"47.0588",y2:"28.2353",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#492CDD"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#AD38E2"})))):(0,e.createElement)("img",{src:astra_theme_builder.logo_url,alt:"Site Logo",className:"ast-tb-logo"}),(0,e.createElement)("h2",{className:"ast-tb-main-title"},astra_theme_builder.title),(0,e.createElement)(pe,null)),(0,e.createElement)("div",{className:"ast-tb-header-close"},(0,e.createElement)("div",{className:"ast-tb-close-wrapper"},(0,e.createElement)("button",{onClick:()=>window.location.href=astra_theme_builder.table_view_url},(0,he.__)("Switch to Table View","astra-addon")),(0,e.createElement)("svg",{onClick:()=>window.location.href=astra_theme_builder.admin_url,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))));function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ge=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(tr){}new Map;const ve=e.startTransition;function ye(t){let{basename:n,children:r,future:o,window:c}=t,p=e.useRef();null==p.current&&(p.current=function(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:c=!1}=r,p=o.history,f=a.Pop,m=null,g=v();function v(){return(p.state||{idx:null}).idx}function y(){f=a.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,p.replaceState(i({},p.state,{idx:g}),""));let w={get action(){return f},get location(){return e(o,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(l,y),m=e,()=>{o.removeEventListener(l,y),m=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=a.Push;let r=d(w.location,e,t);n&&n(r,e),g=v()+1;let i=u(r,g),l=w.createHref(r);try{p.pushState(i,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}c&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=a.Replace;let r=d(w.location,e,t);n&&n(r,e),g=v();let o=u(r,g),i=w.createHref(r);p.replaceState(o,"",i),c&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return d("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}({window:c,v5Compat:!0}));let f=p.current,[m,g]=e.useState({action:f.action,location:f.location}),{v7_startTransition:v}=o||{},y=e.useCallback((e=>{v&&ve?ve((()=>g(e))):g(e)}),[g,v]);return e.useLayoutEffect((()=>f.listen(y)),[f,y]),e.useEffect((()=>{return null!=(e=o)&&e.v7_startTransition||le("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||le("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),void(t&&(t.v7_fetcherPersist||le("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||le("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||le("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||le("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation")));var e,t}),[o]),e.createElement(ce,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:f,future:o})}r.flushSync,e.useId;const be="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,we=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ce=e.forwardRef((function(t,n){let r,{onClick:a,relative:o,reloadDocument:i,replace:l,state:c,target:u,to:d,preventScrollReset:p,viewTransition:f}=t,m=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,ge),{basename:g}=e.useContext(j),v=!1;if("string"==typeof d&&we.test(d)&&(r=d,be))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=D(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:v=!0}catch(e){}let y=function(t,n){let{relative:r}=void 0===n?{}:n;$()||s(!1);let{basename:a,navigator:o}=e.useContext(j),{hash:i,pathname:l,search:c}=X(t,{relative:r}),u=l;return"/"!==a&&(u="/"===l?a:F([a,l])),o.createHref({pathname:u,search:c,hash:i})}(d,{relative:o}),b=function(t,n){let{target:r,replace:a,state:o,preventScrollReset:i,relative:l,viewTransition:s}=void 0===n?{}:n,c=q(),u=G(),d=X(t,{relative:l});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,r)){e.preventDefault();let n=void 0!==a?a:h(u)===h(d);c(t,{replace:n,state:o,preventScrollReset:i,relative:l,viewTransition:s})}}),[u,c,d,a,o,r,t,i,l,s])}(d,{replace:l,state:c,target:u,preventScrollReset:p,relative:o,viewTransition:f});return e.createElement("a",me({},m,{href:r||y,onClick:v||i?a:function(e){a&&a(e),e.defaultPrevented||b(e)},ref:n,target:u}))}));var Ee,xe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ee||(Ee={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(xe||(xe={}));const Le=({label:t,icon:n,layout:r,template:a})=>{const o=G(),[i,l]=(0,e.useState)(!1),[s,c]=(0,e.useState)(!1),u=new URLSearchParams(o.search),d=u.get("page"),h=u.get("path"),p="theme-builder"===d&&(r===h||a===h);(0,e.useEffect)((()=>{l(p)}),[h,r]);const f=i?"ast-tb-sidebar-item-selected":"";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ce,{to:{search:`?page=theme-builder&path=${"template"===r?a:r}`},className:"ast-tb-link",onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)}},(0,e.createElement)("div",{className:`ast-tb-sidebar-item ${f}`},(0,e.createElement)("span",{className:"ast-tb-sidebar-item-icon"},n),(0,e.createElement)("span",{className:`ast-tb-sidebar-item-label ${"404 Page"===t||"Archive"===t?"ast-tb-sidebar-item-svg":""} `},t),s&&(0,e.createElement)("div",{className:"ast-tb-sidebar-item-new-layout-icon",onClick:e=>((e,t,n)=>{if("theme-builder"===d){let e="";"template"===t?"single"!==n&&"archive"!==n||(e=astra_theme_builder.new_custom_layout_base_url+"&type=template&template_type="+n):e=astra_theme_builder.new_custom_layout_base_url+"&type="+t,window.location.href=e}e.preventDefault()})(e,r,a)},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{filter:"url(#filter0_d_7207_80194)"},(0,e.createElement)("g",{clipPath:"url(#clip0_7207_80194)"},(0,e.createElement)("rect",{x:"2",y:"1",width:"20",height:"20",rx:"10",fill:"#005AE0"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12.5523 6 13 6.44772 13 7V10L16 10C16.5523 10 17 10.4477 17 11C17 11.5523 16.5523 12 16 12H13V15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15V12H8C7.44772 12 7 11.5523 7 11C7 10.4477 7.44772 10 8 10L11 10V7C11 6.44772 11.4477 6 12 6Z",fill:"white"}))),(0,e.createElement)("defs",null,(0,e.createElement)("filter",{id:"filter0_d_7207_80194",x:"0",y:"0",width:"24",height:"24",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,e.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,e.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,e.createElement)("feOffset",{dy:"1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"1"}),(0,e.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,e.createElement)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7207_80194"}),(0,e.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7207_80194",result:"shape"})),(0,e.createElement)("clipPath",{id:"clip0_7207_80194"},(0,e.createElement)("rect",{x:"2",y:"1",width:"20",height:"20",rx:"10",fill:"white"}))))))))},Me=({items:t})=>{const n=G(),[r,a]=(0,e.useState)(!1),o=new URLSearchParams(n.search),i=o.get("page"),l=o.get("path"),s="theme-builder"===i&&"all-layouts"===l||"theme-builder"===i&&null===l;(0,e.useEffect)((()=>{a(s)}),[l]);const c=r?"ast-tb-sidebar-item-selected":"";return(0,e.createElement)("div",{className:"ast-tb-sidebar"},(0,e.createElement)(Ce,{to:{search:"?page=theme-builder&path=all-layouts"},className:"ast-tb-link"},(0,e.createElement)("div",{className:`ast-tb-sidebar-header ${c}`},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.39844 9.24418C2.39844 8.85015 2.59899 8.4805 2.93665 8.25215L11.2566 2.62564C11.7008 2.32531 12.2961 2.32531 12.7402 2.62564L21.0602 8.25216C21.3979 8.4805 21.5984 8.85015 21.5984 9.24418V19.7745C21.5984 20.7829 20.7388 21.6004 19.6784 21.6004H4.31844C3.25805 21.6004 2.39844 20.7829 2.39844 19.7745V9.24418Z",stroke:"#4B5563",strokeWidth:"2"})),(0,e.createElement)("h2",null,(0,he.__)("All Layouts","astra-addon")))),(0,e.createElement)("div",{className:"ast-tb-sidebar-subtitle"},(0,e.createElement)("h3",null,(0,he.__)("Website Parts","astra-addon"))),t.map(((t,n)=>(0,e.createElement)(Le,{key:n,label:t.label,icon:t.icon,layout:t.layout,template:t.template}))),!astra_theme_builder.white_labelled&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ast-tb-help-divider"}),(0,e.createElement)("div",{className:"ast-tb-sidebar-help ast-tb-sidebar-item",onClick:()=>window.open(astra_theme_builder.astra_docs_page_url,"_blank")},(0,e.createElement)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.9974 17.3004V17.3426M9.59844 9.54572C9.59844 8.1952 10.673 7.10039 11.9984 7.10039C13.3239 7.10039 14.3984 8.1952 14.3984 9.54572C14.3984 10.8962 13.3239 11.991 11.9984 11.991C11.9984 11.991 11.9974 12.7209 11.9974 13.6213M21.5984 12.5004C21.5984 17.8023 17.3004 22.1004 11.9984 22.1004C6.6965 22.1004 2.39844 17.8023 2.39844 12.5004C2.39844 7.19846 6.6965 2.90039 11.9984 2.90039C17.3004 2.90039 21.5984 7.19846 21.5984 12.5004Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",null,(0,he.__)("Help","astra-addon")))))},ke=[{label:(0,he.__)("Header","astra-addon"),layout:"header",template:"",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.99844 9.00039H20.9984M5.99844 21.6004H17.9984C19.9867 21.6004 21.5984 19.9886 21.5984 18.0004V6.00039C21.5984 4.01217 19.9867 2.40039 17.9984 2.40039H5.99844C4.01021 2.40039 2.39844 4.01217 2.39844 6.00039V18.0004C2.39844 19.9886 4.01021 21.6004 5.99844 21.6004Z",stroke:"#4B5563",strokeWidth:"2"}))},{label:(0,he.__)("Footer","astra-addon"),layout:"footer",template:"",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M21.0016 15.0004L3.00156 15.0004M18.0016 2.40039L6.00156 2.40039C4.01334 2.40039 2.40156 4.01217 2.40156 6.00039L2.40156 18.0004C2.40156 19.9886 4.01334 21.6004 6.00156 21.6004L18.0016 21.6004C19.9898 21.6004 21.6016 19.9886 21.6016 18.0004L21.6016 6.00039C21.6016 4.01217 19.9898 2.40039 18.0016 2.40039Z",stroke:"#4B5563",strokeWidth:"2"}))},{label:(0,he.__)("Hooks","astra-addon"),layout:"hooks",template:"",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.59844 15.0004L6.59844 12.0004L9.59844 9.00039M14.3984 9.00039L17.3984 12.0004L14.3984 15.0004M4.79844 21.6004C3.47295 21.6004 2.39844 20.5259 2.39844 19.2004V4.80039C2.39844 3.47491 3.47295 2.40039 4.79844 2.40039H19.1984C20.5239 2.40039 21.5984 3.47491 21.5984 4.80039V19.2004C21.5984 20.5259 20.5239 21.6004 19.1984 21.6004H4.79844Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},{label:(0,he.__)("Inside Post/Page","astra-addon"),layout:"content",template:"",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.99844 7.80039H20.9984M17.9984 12.0004H5.99844M13.1984 16.8004H5.99844M5.99844 21.6004H17.9984C19.9867 21.6004 21.5984 19.9886 21.5984 18.0004V6.00039C21.5984 4.01217 19.9867 2.40039 17.9984 2.40039H5.99844C4.01021 2.40039 2.39844 4.01217 2.39844 6.00039V18.0004C2.39844 19.9886 4.01021 21.6004 5.99844 21.6004Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},{label:(0,he.__)("Single","astra-addon"),layout:"template",template:"single",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8.99844 2.40039V21.6004M13.1984 6.00039H16.7984M13.1984 9.60039H16.7984M13.1984 13.2004H13.7984M5.99844 21.6004H17.9984C19.9867 21.6004 21.5984 19.9886 21.5984 18.0004V6.00039C21.5984 4.01217 19.9867 2.40039 17.9984 2.40039H5.99844C4.01021 2.40039 2.39844 4.01217 2.39844 6.00039V18.0004C2.39844 19.9886 4.01021 21.6004 5.99844 21.6004Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round"}))},{label:(0,he.__)("Archive","astra-addon"),layout:"template",template:"archive",icon:(0,e.createElement)("svg",{width:"54",height:"35",viewBox:"0 0 54 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-sidebar-item-svg"},(0,e.createElement)("path",{d:"M-31 25.0004L-36 20.002M-28.5 11.002H-23M-18.5 21.502H-21.5M-31 1.50195L-18.5 2.50195M-18.5 23.502L-21.5 6.00195M-24 33.502L-26.5 30.502M32.3984 13.0004V25.0004C32.3984 26.9886 34.0102 28.6004 35.9984 28.6004C37.9867 28.6004 46.0102 28.6004 47.9984 28.6004C49.9867 28.6004 51.5984 26.9886 51.5984 25.0004V13.0004C51.5984 11.0122 49.9867 9.40039 47.9984 9.40039H35.9984C34.0102 9.40039 32.3984 11.0122 32.3984 13.0004Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("mask",{id:"path-2-inside-1_6833_64713",fill:"white"},(0,e.createElement)("rect",{x:"35.7031",y:"12",width:"6",height:"6",rx:"0.3"})),(0,e.createElement)("rect",{x:"35.7031",y:"12",width:"6",height:"6",rx:"0.3",stroke:"#4B5563",strokeWidth:"3",mask:"url(#path-2-inside-1_6833_64713)"}),(0,e.createElement)("rect",{x:"42.7031",y:"13",width:"6",height:"1.5",rx:"0.75",fill:"#4B5563"}),(0,e.createElement)("rect",{x:"42.7031",y:"15.5",width:"5",height:"1.5",rx:"0.75",fill:"#4B5563"}),(0,e.createElement)("mask",{id:"path-5-inside-2_6833_64713",fill:"white"},(0,e.createElement)("rect",{x:"35.7031",y:"20",width:"6",height:"6",rx:"0.3"})),(0,e.createElement)("rect",{x:"35.7031",y:"20",width:"6",height:"6",rx:"0.3",stroke:"#4B5563",strokeWidth:"3",mask:"url(#path-5-inside-2_6833_64713)"}),(0,e.createElement)("rect",{x:"42.7031",y:"21",width:"6",height:"1.5",rx:"0.75",fill:"#4B5563"}),(0,e.createElement)("rect",{x:"42.7031",y:"23.5",width:"5",height:"1.5",rx:"0.75",fill:"#4B5563"}))},{label:(0,he.__)("404 Page","astra-addon"),layout:"404-page",template:"",icon:(0,e.createElement)("svg",{width:"54",height:"24",viewBox:"0 0 54 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-sidebar-item-svg"},(0,e.createElement)("path",{d:"M-4.2 4.50195H-9M32.3969 6.00039V18.0004C32.3969 19.9886 34.0086 21.6004 35.9969 21.6004H47.9969C49.9851 21.6004 51.5969 19.9886 51.5969 18.0004V6.00039C51.5969 4.01217 49.9851 2.40039 47.9969 2.40039H35.9969C34.0086 2.40039 32.3969 4.01217 32.3969 6.00039Z",stroke:"#4B5563",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M38.0231 14.9167C37.8902 14.9167 37.7785 14.8694 37.6881 14.775C37.5977 14.675 37.5525 14.5528 37.5525 14.4083V10.4917L37.72 10.5333L36.1805 12.525L36.1406 12.4167H38.9643C39.092 12.4167 39.1983 12.4611 39.2834 12.55C39.3685 12.6389 39.411 12.75 39.411 12.8833C39.411 13.0111 39.3685 13.1194 39.2834 13.2083C39.1983 13.2917 39.092 13.3333 38.9643 13.3333H35.4786C35.3669 13.3333 35.2579 13.2861 35.1516 13.1917C35.0505 13.0972 35 12.9806 35 12.8417C35 12.7194 35.0399 12.6083 35.1196 12.5083L37.6402 9.28333C37.6828 9.22222 37.7386 9.175 37.8077 9.14167C37.8769 9.10278 37.954 9.08333 38.0391 9.08333C38.1773 9.08333 38.289 9.13333 38.3741 9.23333C38.4645 9.32778 38.5097 9.44722 38.5097 9.59167V14.4083C38.5097 14.5528 38.4618 14.675 38.3661 14.775C38.2757 14.8694 38.1614 14.9167 38.0231 14.9167Z",fill:"#4B5563"}),(0,e.createElement)("path",{d:"M42.0584 15C41.601 15 41.2128 14.875 40.8938 14.625C40.58 14.3694 40.3407 14.0167 40.1759 13.5667C40.011 13.1111 39.9286 12.5889 39.9286 12C39.9286 11.4056 40.011 10.8833 40.1759 10.4333C40.3407 9.98333 40.58 9.63333 40.8938 9.38333C41.2128 9.12778 41.601 9 42.0584 9C42.5157 9 42.9012 9.12778 43.215 9.38333C43.534 9.63333 43.776 9.98333 43.9408 10.4333C44.1057 10.8833 44.1881 11.4056 44.1881 12C44.1881 12.5889 44.1057 13.1111 43.9408 13.5667C43.776 14.0167 43.534 14.3694 43.215 14.625C42.9012 14.875 42.5157 15 42.0584 15ZM42.0584 14C42.2817 14 42.4731 13.9278 42.6327 13.7833C42.7975 13.6333 42.9251 13.4111 43.0155 13.1167C43.1059 12.8167 43.1511 12.4444 43.1511 12C43.1511 11.55 43.1059 11.1778 43.0155 10.8833C42.9251 10.5889 42.7975 10.3694 42.6327 10.225C42.4731 10.075 42.2817 10 42.0584 10C41.8403 10 41.6489 10.075 41.484 10.225C41.3192 10.3694 41.1916 10.5889 41.1012 10.8833C41.0108 11.1778 40.9656 11.55 40.9656 12C40.9656 12.4444 41.0108 12.8167 41.1012 13.1167C41.1916 13.4111 41.3192 13.6333 41.484 13.7833C41.6489 13.9278 41.8403 14 42.0584 14Z",fill:"#4B5563"}),(0,e.createElement)("path",{d:"M47.6121 14.9167C47.4791 14.9167 47.3675 14.8694 47.2771 14.775C47.1867 14.675 47.1415 14.5528 47.1415 14.4083V10.4917L47.309 10.5333L45.7695 12.525L45.7296 12.4167H48.5533C48.6809 12.4167 48.7873 12.4611 48.8724 12.55C48.9575 12.6389 49 12.75 49 12.8833C49 13.0111 48.9575 13.1194 48.8724 13.2083C48.7873 13.2917 48.6809 13.3333 48.5533 13.3333H45.0676C44.9559 13.3333 44.8469 13.2861 44.7405 13.1917C44.6395 13.0972 44.589 12.9806 44.589 12.8417C44.589 12.7194 44.6289 12.6083 44.7086 12.5083L47.2292 9.28333C47.2718 9.22222 47.3276 9.175 47.3967 9.14167C47.4658 9.10278 47.543 9.08333 47.628 9.08333C47.7663 9.08333 47.878 9.13333 47.9631 9.23333C48.0535 9.32778 48.0987 9.44722 48.0987 9.59167V14.4083C48.0987 14.5528 48.0508 14.675 47.9551 14.775C47.8647 14.8694 47.7503 14.9167 47.6121 14.9167Z",fill:"#4B5563"}))}],_e={Header:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{width:"323.5",height:"56",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"20",y:"19",width:"48",height:"18",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"149",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"181",y:"24",width:"25",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"212",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"259",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"})),Footer:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"0.5",y:"248",width:"323.5",height:"56",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"20.5",y:"263",width:"48",height:"18",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"})),Hooks:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.25",y:"50.5",width:"226",height:"103",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M145.417 88.3327L131.75 101.999L145.417 115.666M179.583 88.3327L193.25 101.999L179.583 115.666M169.333 74.666L155.667 129.333",stroke:"white",strokeWidth:"6.83333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("rect",{x:"49.25",y:"173.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"191.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"209.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"227.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"245.5",width:"154",height:"8",rx:"4",fill:"#D6DCE4"})),Archive:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.75",y:"29",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"102",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"119",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"29",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"102",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"119",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"146",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"219",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"236",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"146",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"219",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"236",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"})),Single:(0,e.createElement)("svg",{width:"324",height:"308",viewBox:"0 0 324 308",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"308",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.25",y:"30",width:"25",height:"25",rx:"12.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"36",width:"38",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"45",width:"68",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"75",width:"226",height:"103",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"198",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"216",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"234",width:"226",height:"8",rx:"4",fill:"#D6DCE4"})),Content:(0,e.createElement)("svg",{width:"324",height:"308",viewBox:"0 0 324 308",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"308",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.25",y:"30",width:"25",height:"25",rx:"12.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"36",width:"38",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"45",width:"68",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"75",width:"226",height:"103",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"198",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"216",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"234",width:"226",height:"8",rx:"4",fill:"#D6DCE4"})),Page_404:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("path",{d:"M85.7235 125.175C84.7431 123.322 81.6945 123.322 80.7141 125.175L55.2141 173.342C54.9846 173.773 54.8708 174.257 54.8838 174.746C54.8969 175.235 55.0363 175.712 55.2885 176.131C55.5407 176.549 55.8972 176.896 56.3231 177.136C56.749 177.376 57.2299 177.502 57.7188 177.501H108.719C109.207 177.502 109.688 177.376 110.114 177.136C110.539 176.896 110.895 176.55 111.147 176.131C111.399 175.713 111.539 175.236 111.551 174.748C111.564 174.259 111.45 173.776 111.221 173.344L85.7235 125.175ZM86.0521 169.001H80.3855V163.334H86.0521V169.001ZM80.3855 157.668V143.501H86.0521L86.055 157.668H80.3855Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M134.008 168.752V161.012L156.806 124.992H163.259V136.011H159.324L143.977 160.33V160.75H175.8V168.752H134.008ZM159.639 178.721V166.391L159.744 162.928V124.992H168.926V178.721H159.639Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M204.041 179.744C199.721 179.744 196.013 178.651 192.918 176.465C189.839 174.261 187.47 171.087 185.808 166.941C184.164 162.779 183.342 157.768 183.342 151.909C183.359 146.05 184.19 141.065 185.834 136.955C187.496 132.828 189.866 129.68 192.944 127.511C196.039 125.342 199.739 124.258 204.041 124.258C208.344 124.258 212.043 125.342 215.138 127.511C218.234 129.68 220.604 132.828 222.248 136.955C223.909 141.083 224.74 146.067 224.74 151.909C224.74 157.786 223.909 162.805 222.248 166.968C220.604 171.113 218.234 174.278 215.138 176.465C212.06 178.651 208.361 179.744 204.041 179.744ZM204.041 171.533C207.399 171.533 210.049 169.88 211.99 166.574C213.949 163.251 214.928 158.363 214.928 151.909C214.928 147.642 214.482 144.056 213.59 141.153C212.698 138.25 211.439 136.063 209.813 134.594C208.186 133.108 206.262 132.364 204.041 132.364C200.7 132.364 198.06 134.026 196.118 137.349C194.177 140.654 193.197 145.508 193.18 151.909C193.162 156.194 193.591 159.797 194.465 162.718C195.357 165.638 196.617 167.842 198.243 169.329C199.87 170.798 201.802 171.533 204.041 171.533Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M232.486 168.752V161.012L255.284 124.992H261.737V136.011H257.802L242.455 160.33V160.75H274.278V168.752H232.486ZM258.117 178.721V166.391L258.222 162.928V124.992H267.404V178.721H258.117Z",fill:"#D6DCE4"}))},Se=window.wp.element,De=({options:t})=>{const n=(0,Se.useRef)(null),[r,a]=(0,Se.useState)(!1);return(0,Se.useEffect)((()=>{function e(e){n.current&&!n.current.contains(e.target)&&a(!1)}return r&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[n,r]),(0,e.createElement)("div",{ref:n,className:"ast-tb-card-options"},r?(0,e.createElement)("div",{className:"ast-tb-card-option-items"},t.map(((t,n)=>(0,e.createElement)("button",{key:n,onClick:t?.onClick?()=>t.onClick(a):void 0},t.label)))):null,(0,e.createElement)("button",{type:"button",className:"ast-tb-card-option-button",onClick:()=>a(!r)},r?(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",role:"presentation"},(0,e.createElement)("g",{fill:"currentColor",fillRule:"evenodd"},(0,e.createElement)("circle",{cx:"5",cy:"12",r:"2"}),(0,e.createElement)("circle",{cx:"12",cy:"12",r:"2"}),(0,e.createElement)("circle",{cx:"19",cy:"12",r:"2"})))))},Oe=function({ID:t,title:n,icon:r,layout:a,template:o,enabled:i,post_status:l,edit_post_link:s,post_link:c,fetchGlobalLayoutsData:u,setModalPostID:d}){const[h,p]=(0,e.useState)(!1),[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)("yes"===i||""===i);return(0,e.createElement)("div",{className:"ast-tb-card-parent",onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)}},h&&(r?(0,e.createElement)("button",{className:"ast-tb-card-hover-btn",onClick:()=>{let e=astra_theme_builder.new_custom_layout_base_url+"&type="+a;"template"===a&&(e+="&template_type="+o),window.location.href=e}},(0,e.createElement)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12 6.5V18.5M18 12.5L6 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,he.__)("Create Layout","astra-addon")):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"ast-tb-card-hover-edit-btn",onClick:()=>window.open(s,"_self")},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("mask",{id:"path-1-inside-1_7535_7137",fill:"white"},(0,e.createElement)("path",{d:"M15.7618 18.9188C15.7618 18.9614 15.7458 19.0022 15.7173 19.0322C15.6887 19.0623 15.65 19.0792 15.6096 19.0792H4.97535C4.93498 19.0792 4.89626 19.0623 4.86771 19.0322C4.83916 19.0022 4.82312 18.9614 4.82312 18.9188V7.71491C4.82312 7.67237 4.83916 7.63157 4.86771 7.6015C4.89626 7.57142 4.93498 7.55452 4.97535 7.55452H11.5167L13.3398 5.63374H4.97535C4.4516 5.63425 3.94945 5.85368 3.5791 6.24386C3.20875 6.63404 3.00048 7.1631 3 7.71491V18.9188C3.00048 19.4706 3.20875 19.9997 3.5791 20.3899C3.94945 20.7801 4.4516 20.9995 4.97535 21H15.6096C16.1334 20.9995 16.6355 20.7801 17.0059 20.3899C17.3762 19.9997 17.5845 19.4706 17.585 18.9188V12.0271L15.7618 13.9478V18.9188Z"}),(0,e.createElement)("path",{d:"M20.1957 3.84357C19.6828 3.30343 18.9874 3 18.2623 3C17.5371 3 16.8417 3.30343 16.3288 3.84357L9.23781 11.3135C9.11071 11.4476 9.02412 11.6184 8.98895 11.8043L8.34448 15.2002C8.31744 15.3397 8.3202 15.4839 8.35256 15.6222C8.38493 15.7605 8.44608 15.8894 8.53159 15.9998C8.6171 16.1101 8.72483 16.199 8.84697 16.26C8.96912 16.321 9.10262 16.3527 9.23781 16.3527C9.29898 16.3525 9.36 16.3463 9.42012 16.3344L12.6425 15.6554C12.819 15.6181 12.9811 15.5265 13.1083 15.3923L20.1984 7.92235C20.4528 7.65454 20.6545 7.33651 20.792 6.98646C20.9296 6.63641 21.0003 6.26122 21 5.88236C20.9997 5.5035 20.9286 5.12842 20.7906 4.77857C20.6525 4.42873 20.4504 4.111 20.1957 3.84357ZM18.9067 5.20156C18.9915 5.29076 19.0587 5.39668 19.1046 5.51327C19.1505 5.62986 19.1741 5.75483 19.1741 5.88104C19.1741 6.00725 19.1505 6.13222 19.1046 6.24881C19.0587 6.3654 18.9915 6.47132 18.9067 6.56052L18.4181 7.07433L17.1292 5.71633L17.6178 5.20156C17.7887 5.02152 18.0205 4.92037 18.2623 4.92037C18.504 4.92037 18.7358 5.02152 18.9067 5.20156ZM12.0117 13.8249L10.4 14.1649L10.7227 12.466L15.8402 7.07433L17.1292 8.43232L12.0117 13.8249Z"})),(0,e.createElement)("path",{d:"M15.7618 18.9188C15.7618 18.9614 15.7458 19.0022 15.7173 19.0322C15.6887 19.0623 15.65 19.0792 15.6096 19.0792H4.97535C4.93498 19.0792 4.89626 19.0623 4.86771 19.0322C4.83916 19.0022 4.82312 18.9614 4.82312 18.9188V7.71491C4.82312 7.67237 4.83916 7.63157 4.86771 7.6015C4.89626 7.57142 4.93498 7.55452 4.97535 7.55452H11.5167L13.3398 5.63374H4.97535C4.4516 5.63425 3.94945 5.85368 3.5791 6.24386C3.20875 6.63404 3.00048 7.1631 3 7.71491V18.9188C3.00048 19.4706 3.20875 19.9997 3.5791 20.3899C3.94945 20.7801 4.4516 20.9995 4.97535 21H15.6096C16.1334 20.9995 16.6355 20.7801 17.0059 20.3899C17.3762 19.9997 17.5845 19.4706 17.585 18.9188V12.0271L15.7618 13.9478V18.9188Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M20.1957 3.84357C19.6828 3.30343 18.9874 3 18.2623 3C17.5371 3 16.8417 3.30343 16.3288 3.84357L9.23781 11.3135C9.11071 11.4476 9.02412 11.6184 8.98895 11.8043L8.34448 15.2002C8.31744 15.3397 8.3202 15.4839 8.35256 15.6222C8.38493 15.7605 8.44608 15.8894 8.53159 15.9998C8.6171 16.1101 8.72483 16.199 8.84697 16.26C8.96912 16.321 9.10262 16.3527 9.23781 16.3527C9.29898 16.3525 9.36 16.3463 9.42012 16.3344L12.6425 15.6554C12.819 15.6181 12.9811 15.5265 13.1083 15.3923L20.1984 7.92235C20.4528 7.65454 20.6545 7.33651 20.792 6.98646C20.9296 6.63641 21.0003 6.26122 21 5.88236C20.9997 5.5035 20.9286 5.12842 20.7906 4.77857C20.6525 4.42873 20.4504 4.111 20.1957 3.84357ZM18.9067 5.20156C18.9915 5.29076 19.0587 5.39668 19.1046 5.51327C19.1505 5.62986 19.1741 5.75483 19.1741 5.88104C19.1741 6.00725 19.1505 6.13222 19.1046 6.24881C19.0587 6.3654 18.9915 6.47132 18.9067 6.56052L18.4181 7.07433L17.1292 5.71633L17.6178 5.20156C17.7887 5.02152 18.0205 4.92037 18.2623 4.92037C18.504 4.92037 18.7358 5.02152 18.9067 5.20156ZM12.0117 13.8249L10.4 14.1649L10.7227 12.466L15.8402 7.07433L17.1292 8.43232L12.0117 13.8249Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M11.5167 7.55452V8.55452H11.9463L12.242 8.24295L11.5167 7.55452ZM13.3398 5.63374L14.0651 6.32217L15.6677 4.63374H13.3398V5.63374ZM4.97535 5.63374V4.63374L4.97438 4.63374L4.97535 5.63374ZM3 7.71491L2 7.71403V7.71491H3ZM3 18.9188H2L2 18.9197L3 18.9188ZM4.97535 21L4.97438 22H4.97535V21ZM15.6096 21V22L15.6106 22L15.6096 21ZM17.585 18.9188L18.585 18.9197V18.9188H17.585ZM17.585 12.0271H18.585V9.52091L16.8597 11.3386L17.585 12.0271ZM15.7618 13.9478L15.0365 13.2594L14.7618 13.5488V13.9478H15.7618ZM20.1957 3.84357L19.4705 4.53211L19.4716 4.53325L20.1957 3.84357ZM16.3288 3.84357L15.6036 3.15503L15.6036 3.15509L16.3288 3.84357ZM9.23781 11.3135L8.51255 10.625L8.51192 10.6257L9.23781 11.3135ZM8.98895 11.8043L9.97141 11.9907L9.97151 11.9902L8.98895 11.8043ZM8.34448 15.2002L9.32623 15.3904L9.32694 15.3866L8.34448 15.2002ZM8.53159 15.9998L9.32195 15.3871L8.53159 15.9998ZM9.23781 16.3527L9.23802 17.3527L9.24125 17.3527L9.23781 16.3527ZM9.42012 16.3344L9.61477 17.3154L9.6263 17.3129L9.42012 16.3344ZM12.6425 15.6554L12.8487 16.6339L12.8493 16.6338L12.6425 15.6554ZM13.1083 15.3923L12.383 14.7038L12.3823 14.7045L13.1083 15.3923ZM20.1984 7.92235L19.4733 7.23369L19.4731 7.23392L20.1984 7.92235ZM20.792 6.98646L21.7228 7.35218L20.792 6.98646ZM18.9067 5.20156L18.1815 5.8901L18.1818 5.89039L18.9067 5.20156ZM18.9067 6.56052L19.6314 7.24962L19.6316 7.24935L18.9067 6.56052ZM18.4181 7.07433L17.6928 7.76275L18.4174 8.5262L19.1428 7.76343L18.4181 7.07433ZM17.1292 5.71633L16.4039 5.0279L15.7505 5.71633L16.4039 6.40476L17.1292 5.71633ZM17.6178 5.20156L16.8926 4.51303L16.8925 4.51314L17.6178 5.20156ZM12.0117 13.8249L12.2181 14.8034L12.5227 14.7391L12.7371 14.5133L12.0117 13.8249ZM10.4 14.1649L9.41761 13.9783L9.13746 15.4532L10.6065 15.1434L10.4 14.1649ZM10.7227 12.466L9.99743 11.7775L9.79514 11.9907L9.7403 12.2794L10.7227 12.466ZM15.8402 7.07433L16.5655 6.3859L15.8402 5.62174L15.1149 6.3859L15.8402 7.07433ZM17.1292 8.43232L17.8545 9.12068L18.5079 8.43226L17.8545 7.74389L17.1292 8.43232ZM14.7618 18.9188C14.7618 18.7125 14.8392 18.5048 14.992 18.3438L16.4426 19.7207C16.6525 19.4995 16.7618 19.2102 16.7618 18.9188H14.7618ZM14.992 18.3438C15.1464 18.1811 15.3674 18.0792 15.6096 18.0792V20.0792C15.9326 20.0792 16.231 19.9436 16.4426 19.7207L14.992 18.3438ZM15.6096 18.0792H4.97535V20.0792H15.6096V18.0792ZM4.97535 18.0792C5.21754 18.0792 5.43854 18.1811 5.59301 18.3438L4.1424 19.7207C4.35397 19.9436 4.65241 20.0792 4.97535 20.0792V18.0792ZM5.59301 18.3438C5.74581 18.5048 5.82312 18.7125 5.82312 18.9188H3.82312C3.82312 19.2102 3.93251 19.4995 4.1424 19.7207L5.59301 18.3438ZM5.82312 18.9188V7.71491H3.82312V18.9188H5.82312ZM5.82312 7.71491C5.82312 7.92123 5.74581 8.12894 5.59301 8.28992L4.1424 6.91307C3.9325 7.13421 3.82312 7.4235 3.82312 7.71491H5.82312ZM5.59301 8.28992C5.43853 8.45268 5.21753 8.55452 4.97535 8.55452V6.55452C4.65243 6.55452 4.35398 6.69016 4.1424 6.91307L5.59301 8.28992ZM4.97535 8.55452H11.5167V6.55452H4.97535V8.55452ZM12.242 8.24295L14.0651 6.32217L12.6145 4.94531L10.7914 6.86609L12.242 8.24295ZM13.3398 4.63374H4.97535V6.63374H13.3398V4.63374ZM4.97438 4.63374C4.16843 4.63452 3.40695 4.97265 2.85379 5.55543L4.30441 6.93229C4.49195 6.7347 4.73478 6.63397 4.97632 6.63374L4.97438 4.63374ZM2.85379 5.55543C2.30232 6.13645 2.0007 6.91365 2 7.71403L4 7.71578C4.00026 7.41255 4.11519 7.13164 4.30441 6.93229L2.85379 5.55543ZM2 7.71491V18.9188H4V7.71491H2ZM2 18.9197C2.0007 19.7201 2.30232 20.4973 2.85379 21.0783L4.30441 19.7015C4.11519 19.5021 4.00026 19.2212 4 18.918L2 18.9197ZM2.85379 21.0783C3.40695 21.6611 4.16843 21.9992 4.97438 22L4.97632 20C4.73478 19.9998 4.49195 19.899 4.30441 19.7015L2.85379 21.0783ZM4.97535 22H15.6096V20H4.97535V22ZM15.6106 22C16.4165 21.9992 17.178 21.6611 17.7312 21.0783L16.2806 19.7015C16.093 19.899 15.8502 19.9998 15.6086 20L15.6106 22ZM17.7312 21.0783C18.2826 20.4973 18.5843 19.7201 18.585 18.9197L16.585 18.918C16.5847 19.2212 16.4698 19.5021 16.2806 19.7015L17.7312 21.0783ZM18.585 18.9188V12.0271H16.585V18.9188H18.585ZM16.8597 11.3386L15.0365 13.2594L16.4871 14.6363L18.3103 12.7155L16.8597 11.3386ZM14.7618 13.9478V18.9188H16.7618V13.9478H14.7618ZM20.9209 3.15503C20.225 2.42212 19.2699 2 18.2623 2V4C18.7049 4 19.1407 4.18474 19.4705 4.53211L20.9209 3.15503ZM18.2623 2C17.2546 2 16.2995 2.42212 15.6036 3.15503L17.054 4.53211C17.3838 4.18474 17.8196 4 18.2623 4V2ZM15.6036 3.15509L8.51255 10.625L9.96307 12.002L17.0541 4.53204L15.6036 3.15509ZM8.51192 10.6257C8.24963 10.9025 8.07632 11.2487 8.00639 11.6183L9.97151 11.9902C9.97165 11.9895 9.97166 11.99 9.97079 11.9917C9.96992 11.9934 9.96787 11.9969 9.96369 12.0013L8.51192 10.6257ZM8.00649 11.6178L7.36201 15.0137L9.32694 15.3866L9.97141 11.9907L8.00649 11.6178ZM7.36273 15.01C7.30891 15.2878 7.31436 15.5744 7.37887 15.85L9.32626 15.3943C9.32604 15.3934 9.32597 15.3917 9.32622 15.3904L7.36273 15.01ZM7.37887 15.85C7.44339 16.1257 7.56609 16.3864 7.74123 16.6124L9.32195 15.3871C9.32607 15.3924 9.32646 15.3952 9.32626 15.3943L7.37887 15.85ZM7.74123 16.6124C7.9165 16.8385 8.14064 17.0249 8.39996 17.1545L9.29399 15.3655C9.30902 15.373 9.3177 15.3816 9.32195 15.3871L7.74123 16.6124ZM8.39996 17.1545C8.65952 17.2842 8.94598 17.3527 9.23802 17.3527L9.23759 15.3527C9.25926 15.3527 9.27871 15.3578 9.29399 15.3655L8.39996 17.1545ZM9.24125 17.3527C9.36673 17.3522 9.49178 17.3397 9.61475 17.3153L9.22548 15.3535C9.22822 15.353 9.23122 15.3527 9.23436 15.3527L9.24125 17.3527ZM9.6263 17.3129L12.8487 16.6339L12.4363 14.6769L9.21393 15.3559L9.6263 17.3129ZM12.8493 16.6338C13.2296 16.5534 13.5712 16.3576 13.8342 16.08L12.3823 14.7045C12.391 14.6954 12.4084 14.6828 12.4356 14.6771L12.8493 16.6338ZM13.8336 16.0807L20.9237 8.61078L19.4731 7.23392L12.383 14.7038L13.8336 16.0807ZM20.9235 8.61101C21.2682 8.24807 21.539 7.81987 21.7228 7.35218L19.8613 6.62075C19.77 6.85315 19.6373 7.06101 19.4733 7.23369L20.9235 8.61101ZM21.7228 7.35218C21.9065 6.88455 22.0003 6.385 22 5.88169L20 5.88303C20.0002 6.13744 19.9527 6.38828 19.8613 6.62075L21.7228 7.35218ZM22 5.88169C21.9997 5.37838 21.9052 4.87896 21.7208 4.41159L19.8603 5.14556C19.952 5.37787 19.9998 5.62863 20 5.88303L22 5.88169ZM21.7208 4.41159C21.5364 3.94415 21.265 3.51633 20.9198 3.15389L19.4716 4.53325C19.6358 4.70566 19.7687 4.9133 19.8603 5.14556L21.7208 4.41159ZM18.1818 5.89039C18.1762 5.88453 18.1744 5.88037 18.174 5.87941L20.0351 5.14713C19.943 4.91299 19.8067 4.69699 19.6316 4.51273L18.1818 5.89039ZM18.174 5.87941C18.1737 5.8785 18.1741 5.8792 18.1741 5.88104H20.1741C20.1741 5.63045 20.1272 5.38121 20.0351 5.14713L18.174 5.87941ZM18.1741 5.88104C18.1741 5.88287 18.1737 5.88357 18.174 5.88267L20.0351 6.61495C20.1272 6.38087 20.1741 6.13163 20.1741 5.88104H18.1741ZM18.174 5.88267C18.1744 5.88171 18.1762 5.87755 18.1818 5.87169L19.6316 7.24935C19.8067 7.06509 19.943 6.84909 20.0351 6.61495L18.174 5.88267ZM18.1821 5.87141L17.6935 6.38522L19.1428 7.76343L19.6314 7.24962L18.1821 5.87141ZM19.1434 6.3859L17.8545 5.0279L16.4039 6.40476L17.6928 7.76275L19.1434 6.3859ZM17.8545 6.40476L18.3431 5.88999L16.8925 4.51314L16.4039 5.0279L17.8545 6.40476ZM18.343 5.8901C18.3309 5.90283 18.303 5.92037 18.2623 5.92037V3.92037C17.738 3.92037 17.2465 4.14021 16.8926 4.51303L18.343 5.8901ZM18.2623 5.92037C18.2215 5.92037 18.1936 5.90283 18.1815 5.8901L19.6319 4.51303C19.278 4.14021 18.7865 3.92037 18.2623 3.92037V5.92037ZM11.8053 12.8465L10.1936 13.1864L10.6065 15.1434L12.2181 14.8034L11.8053 12.8465ZM11.3825 14.3515L11.7052 12.6526L9.7403 12.2794L9.41761 13.9783L11.3825 14.3515ZM11.448 13.1544L16.5655 7.76275L15.1149 6.3859L9.99743 11.7775L11.448 13.1544ZM15.1149 7.76275L16.4039 9.12075L17.8545 7.74389L16.5655 6.3859L15.1149 7.76275ZM16.4038 7.74396L11.2863 13.1366L12.7371 14.5133L17.8545 9.12068L16.4038 7.74396Z",fill:"white",mask:"url(#path-1-inside-1_7535_7137)"})),(0,he.__)("Edit","astra-addon")),(0,e.createElement)(Ce,{to:{search:"?page=theme-builder&path="+("template"===a?`${o}&id=${t}`:`${a}&id=${t}`)},className:"ast-tb-link"},(0,e.createElement)("button",{className:"ast-tb-card-hover-preview-btn"},(0,e.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.04472 11.8528L3.97078 12.0503L4.06071 12.2412C4.81322 13.8378 6.01061 15.1834 7.50911 16.1162C9.00523 17.0476 10.738 17.528 12.5 17.5001C14.262 17.528 15.9948 17.0476 17.4909 16.1162C18.9894 15.1834 20.1868 13.8378 20.9393 12.2412L21.0292 12.0503L20.9553 11.8528C20.8333 11.5267 20.5079 11.0373 20.0674 10.5119C19.6142 9.97137 19.0026 9.34967 18.2654 8.75984C16.7988 7.58644 14.7848 6.5 12.5 6.5C10.2152 6.5 8.20118 7.58644 6.73463 8.75984C5.99743 9.34967 5.38585 9.97137 4.93262 10.5119C4.49207 11.0373 4.16673 11.5267 4.04472 11.8528ZM12.5 15.5C11.8078 15.5 11.1311 15.2947 10.5555 14.9101C9.97993 14.5256 9.53133 13.9789 9.26642 13.3394C9.00151 12.6999 8.9322 11.9961 9.06725 11.3172C9.2023 10.6383 9.53564 10.0146 10.0251 9.52513C10.5146 9.03564 11.1383 8.7023 11.8172 8.56725C12.4961 8.4322 13.1999 8.50151 13.8394 8.76642C14.4789 9.03133 15.0256 9.47993 15.4101 10.0555C15.7947 10.6311 16 11.3078 16 12C16 12.9283 15.6313 13.8185 14.9749 14.4749C14.3185 15.1313 13.4283 15.5 12.5 15.5ZM12.5 9.5C12.0055 9.5 11.5222 9.64662 11.1111 9.92133C10.7 10.196 10.3795 10.5865 10.1903 11.0433C10.0011 11.5001 9.95157 12.0028 10.048 12.4877C10.1445 12.9727 10.3826 13.4181 10.7322 13.7678C11.0819 14.1174 11.5273 14.3555 12.0123 14.452C12.4972 14.5484 12.9999 14.4989 13.4567 14.3097C13.9135 14.1205 14.304 13.8 14.5787 13.3889C14.8534 12.9778 15 12.4945 15 12C15 11.337 14.7366 10.7011 14.2678 10.2322C13.7989 9.76339 13.163 9.5 12.5 9.5ZM12.5 18.5C9.4172 18.5 7.03273 17.2462 5.41524 15.7825C4.60531 15.0496 3.99296 14.2684 3.58607 13.5755C3.16858 12.8645 3 12.3025 3 12C3 11.8937 3.04086 11.7031 3.16504 11.4258C3.28537 11.157 3.46876 10.8402 3.71375 10.4919C4.20345 9.79588 4.91842 9.00404 5.80204 8.25805C7.57719 6.75941 9.96653 5.5 12.5 5.5C15.0335 5.5 17.4228 6.75941 19.198 8.25805C20.0816 9.00404 20.7965 9.79588 21.2862 10.4919C21.5312 10.8402 21.7146 11.157 21.835 11.4258C21.9591 11.7031 22 11.8937 22 12C22 12.3025 21.8314 12.8645 21.4139 13.5755C21.007 14.2684 20.3947 15.0496 19.5848 15.7825C17.9673 17.2462 15.5828 18.5 12.5 18.5Z",fill:"#1F2A37",stroke:"#046BD2"})),(0,he.__)("Quick View","astra-addon"))))),(0,e.createElement)("div",{className:"ast-tb-card"},(0,e.createElement)("div",{className:"ast-tb-card-icon-wrapper "+(h?"ast-tb-card-icon-wrapper-hover":"")},r||(()=>{switch(a){case"header":return _e.Header;case"footer":return _e.Footer;case"404-page":return _e.Page_404;case"hooks":return _e.Hooks;case"content":return _e.Content;case"template":return o&&"single"===o?_e.Single:_e.Archive}})()),(0,e.createElement)("div",{className:"ast-tb-card-title-wrapper"},(0,e.createElement)("h3",{className:r?"ast-tb-card-title ast-tb-create-new-card-title":"ast-tb-card-title"},(()=>{if(!r)return g&&"publish"===l?(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#17B26A"})):(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#94A3B8"}))})(),n?(e=>e.length>20?e.substring(0,20)+"...":e)(n):(0,he.__)("(untitled)","astra-addon")),!!t&&(0,e.createElement)(De,{options:[{label:g?(0,he.__)("Disable","astra-addon"):(0,he.__)("Enable","astra-addon"),onClick:()=>{const e=g?"no":"yes",n=new XMLHttpRequest,r=astra_theme_builder.quick_view.url+"?action=ast_advanced_hook_display_toggle&post_id="+t+"&enable="+e+"&nonce="+astra_theme_builder.quick_view.nonce;n.open("GET",r),n.send(),v(!g),u()}},{label:(0,he.__)("Preview","astra-addon"),onClick:()=>window.location.href=c},{label:f?(0,he.__)("Copied","astra-addon"):(0,he.__)("Copy Shortcode","astra-addon"),onClick:()=>{const e=document.createElement("input");e.setAttribute("value",`[astra_custom_layout id=${t}]`),document.body.appendChild(e),e.select(),document.execCommand("copy")&&(document.body.removeChild(e),m(!0),setTimeout((()=>{m(!1)}),2e3))}},{label:(0,he.__)("Display Conditions","astra-addon"),onClick:e=>{d(t),e(!1)}}]}))))},Pe=[{label:(0,he.__)("Header","astra-addon"),layout:"header",template:"",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{width:"323.5",height:"56",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"20",y:"19",width:"48",height:"18",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"149",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"181",y:"24",width:"25",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"212",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"259",y:"24",width:"26",height:"8",rx:"2",fill:"#F5F9FE"}))},{label:(0,he.__)("Footer","astra-addon"),layout:"footer",template:"",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"0.5",y:"248",width:"323.5",height:"56",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"20.5",y:"263",width:"48",height:"18",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"273",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"117.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"163.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"283",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"209.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"254.5",y:"263",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}))},{label:(0,he.__)("Hooks","astra-addon"),layout:"hooks",template:"",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.25",y:"50.5",width:"226",height:"103",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M145.417 88.3327L131.75 101.999L145.417 115.666M179.583 88.3327L193.25 101.999L179.583 115.666M169.333 74.666L155.667 129.333",stroke:"white",strokeWidth:"6.83333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("rect",{x:"49.25",y:"173.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"191.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"209.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"227.5",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"245.5",width:"154",height:"8",rx:"4",fill:"#D6DCE4"}))},{label:(0,he.__)("Inside Post/Page","astra-addon"),layout:"content",template:"",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 306",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{y:"2",width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"135.75",y:"46.5",width:"52",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"103.75",y:"59.5",width:"116",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"48.75",y:"77.5",width:"226",height:"87",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"180.5",width:"170",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"198.5",width:"170",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"229.75",y:"174.5",width:"44",height:"38",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{y:"250",width:"323.5",height:"56",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"20",y:"265",width:"48",height:"18",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"141",y:"265",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"100",y:"265",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"100",y:"275",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"141",y:"275",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"100",y:"285",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"141",y:"285",width:"26",height:"6",rx:"2",fill:"#F5F9FE"}),(0,e.createElement)("rect",{x:"245",y:"266",width:"22",height:"12",rx:"2",fill:"#C4CBD5"}),(0,e.createElement)("rect",{x:"181",y:"266",width:"60",height:"12",rx:"2",fill:"#F5F9FE"}))},{label:(0,he.__)("Single","astra-addon"),layout:"template",template:"single",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 308",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{x:"0.5",width:"323.5",height:"308",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.25",y:"30",width:"25",height:"25",rx:"12.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"36",width:"38",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"79.25",y:"45",width:"68",height:"4",rx:"2",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"75",width:"226",height:"103",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"198",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"216",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.25",y:"234",width:"226",height:"8",rx:"4",fill:"#D6DCE4"}))},{label:(0,he.__)("Archive","astra-addon"),layout:"template",template:"archive",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("rect",{x:"49.75",y:"29",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"102",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"119",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"29",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"102",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"119",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"146",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"219",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"49.75",y:"236",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"146",width:"107",height:"63",rx:"5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"219",width:"107",height:"7",rx:"3.5",fill:"#D6DCE4"}),(0,e.createElement)("rect",{x:"166.75",y:"236",width:"62",height:"7",rx:"3.5",fill:"#D6DCE4"}))},{label:(0,he.__)("404 Page","astra-addon"),layout:"404-page",template:"",icon:(0,e.createElement)("svg",{width:"324",height:"304",viewBox:"0 0 324 304",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ast-tb-card-svg-icon"},(0,e.createElement)("rect",{width:"323.5",height:"304",rx:"5",fill:"#ECEFF3"}),(0,e.createElement)("path",{d:"M85.7235 125.175C84.7431 123.322 81.6945 123.322 80.7141 125.175L55.2141 173.342C54.9846 173.773 54.8708 174.257 54.8838 174.746C54.8969 175.235 55.0363 175.712 55.2885 176.131C55.5407 176.549 55.8972 176.896 56.3231 177.136C56.749 177.376 57.2299 177.502 57.7188 177.501H108.719C109.207 177.502 109.688 177.376 110.114 177.136C110.539 176.896 110.895 176.55 111.147 176.131C111.399 175.713 111.539 175.236 111.551 174.748C111.564 174.259 111.45 173.776 111.221 173.344L85.7235 125.175ZM86.0521 169.001H80.3855V163.334H86.0521V169.001ZM80.3855 157.668V143.501H86.0521L86.055 157.668H80.3855Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M134.008 168.752V161.012L156.806 124.992H163.259V136.011H159.324L143.977 160.33V160.75H175.8V168.752H134.008ZM159.639 178.721V166.391L159.744 162.928V124.992H168.926V178.721H159.639Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M204.041 179.744C199.721 179.744 196.013 178.651 192.918 176.465C189.839 174.261 187.47 171.087 185.808 166.941C184.164 162.779 183.342 157.768 183.342 151.909C183.359 146.05 184.19 141.065 185.834 136.955C187.496 132.828 189.866 129.68 192.944 127.511C196.039 125.342 199.739 124.258 204.041 124.258C208.344 124.258 212.043 125.342 215.138 127.511C218.234 129.68 220.604 132.828 222.248 136.955C223.909 141.083 224.74 146.067 224.74 151.909C224.74 157.786 223.909 162.805 222.248 166.968C220.604 171.113 218.234 174.278 215.138 176.465C212.06 178.651 208.361 179.744 204.041 179.744ZM204.041 171.533C207.399 171.533 210.049 169.88 211.99 166.574C213.949 163.251 214.928 158.363 214.928 151.909C214.928 147.642 214.482 144.056 213.59 141.153C212.698 138.25 211.439 136.063 209.813 134.594C208.186 133.108 206.262 132.364 204.041 132.364C200.7 132.364 198.06 134.026 196.118 137.349C194.177 140.654 193.197 145.508 193.18 151.909C193.162 156.194 193.591 159.797 194.465 162.718C195.357 165.638 196.617 167.842 198.243 169.329C199.87 170.798 201.802 171.533 204.041 171.533Z",fill:"#D6DCE4"}),(0,e.createElement)("path",{d:"M232.486 168.752V161.012L255.284 124.992H261.737V136.011H257.802L242.455 160.33V160.75H274.278V168.752H232.486ZM258.117 178.721V166.391L258.222 162.928V124.992H267.404V178.721H258.117Z",fill:"#D6DCE4"}))}],Te=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ast-tb-canvas-content-row"},Pe.map(((t,n)=>(0,e.createElement)(Oe,{key:n,title:t.label,icon:t.icon,layout:t.layout,template:t.template}))))),Fe=window.wp.apiFetch;var Ve=n.n(Fe);const He=window.wp.components;var Ne=n(286),Ie=n.n(Ne);function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ze.apply(null,arguments)}var Re=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ae=Math.abs,Be=String.fromCharCode,je=Object.assign;function Ue(e){return e.trim()}function We(e,t,n){return e.replace(t,n)}function ze(e,t){return e.indexOf(t)}function $e(e,t){return 0|e.charCodeAt(t)}function Ge(e,t,n){return e.slice(t,n)}function Ye(e){return e.length}function qe(e){return e.length}function Xe(e,t){return t.push(e),e}var Qe=1,Je=1,Ke=0,et=0,tt=0,nt="";function rt(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Qe,column:Je,length:i,return:""}}function at(e,t){return je(rt("",null,null,"",null,null,0),e,{length:-e.length},t)}function ot(){return tt=et>0?$e(nt,--et):0,Je--,10===tt&&(Je=1,Qe--),tt}function it(){return tt=et<Ke?$e(nt,et++):0,Je++,10===tt&&(Je=1,Qe++),tt}function lt(){return $e(nt,et)}function st(){return et}function ct(e,t){return Ge(nt,e,t)}function ut(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dt(e){return Qe=Je=1,Ke=Ye(nt=e),et=0,[]}function ht(e){return nt="",e}function pt(e){return Ue(ct(et-1,gt(91===e?e+2:40===e?e+1:e)))}function ft(e){for(;(tt=lt())&&tt<33;)it();return ut(e)>2||ut(tt)>3?"":" "}function mt(e,t){for(;--t&&it()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return ct(e,st()+(t<6&&32==lt()&&32==it()))}function gt(e){for(;it();)switch(tt){case e:return et;case 34:case 39:34!==e&&39!==e&&gt(tt);break;case 40:41===e&&gt(e);break;case 92:it()}return et}function vt(e,t){for(;it()&&e+tt!==57&&(e+tt!==84||47!==lt()););return"/*"+ct(t,et-1)+"*"+Be(47===e?e:it())}function yt(e){for(;!ut(lt());)it();return ct(e,et)}var bt="-ms-",wt="-moz-",Ct="-webkit-",Et="comm",xt="rule",Lt="decl",Mt="@keyframes";function kt(e,t){for(var n="",r=qe(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function _t(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Lt:return e.return=e.return||e.value;case Et:return"";case Mt:return e.return=e.value+"{"+kt(e.children,r)+"}";case xt:e.value=e.props.join(",")}return Ye(n=kt(e.children,r))?e.return=e.value+"{"+n+"}":""}function St(e){return ht(Dt("",null,null,null,[""],e=dt(e),0,[0],e))}function Dt(e,t,n,r,a,o,i,l,s){for(var c=0,u=0,d=i,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",w=a,C=o,E=r,x=b;g;)switch(f=y,y=it()){case 40:if(108!=f&&58==$e(x,d-1)){-1!=ze(x+=We(pt(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=pt(y);break;case 9:case 10:case 13:case 32:x+=ft(f);break;case 92:x+=mt(st()-1,7);continue;case 47:switch(lt()){case 42:case 47:Xe(Pt(vt(it(),st()),t,n),s);break;default:x+="/"}break;case 123*m:l[c++]=Ye(x)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(x=We(x,/\f/g,"")),p>0&&Ye(x)-d&&Xe(p>32?Tt(x+";",r,n,d-1):Tt(We(x," ","")+";",r,n,d-2),s);break;case 59:x+=";";default:if(Xe(E=Ot(x,t,n,c,u,a,l,b,w=[],C=[],d),o),123===y)if(0===u)Dt(x,t,E,E,w,o,d,l,C);else switch(99===h&&110===$e(x,3)?100:h){case 100:case 108:case 109:case 115:Dt(e,E,E,r&&Xe(Ot(e,E,E,0,0,a,l,b,a,w=[],d),C),a,C,d,l,r?w:C);break;default:Dt(x,E,E,E,[""],C,0,l,C)}}c=u=p=0,m=v=1,b=x="",d=i;break;case 58:d=1+Ye(x),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ot())continue;switch(x+=Be(y),y*m){case 38:v=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(Ye(x)-1)*v,v=1;break;case 64:45===lt()&&(x+=pt(it())),h=lt(),u=d=Ye(b=x+=yt(st())),y++;break;case 45:45===f&&2==Ye(x)&&(m=0)}}return o}function Ot(e,t,n,r,a,o,i,l,s,c,u){for(var d=a-1,h=0===a?o:[""],p=qe(h),f=0,m=0,g=0;f<r;++f)for(var v=0,y=Ge(e,d+1,d=Ae(m=i[f])),b=e;v<p;++v)(b=Ue(m>0?h[v]+" "+y:We(y,/&\f/g,h[v])))&&(s[g++]=b);return rt(e,t,n,0===a?xt:l,s,c,u)}function Pt(e,t,n){return rt(e,t,n,Et,Be(tt),Ge(e,2,-2),0)}function Tt(e,t,n,r){return rt(e,t,n,Lt,Ge(e,0,r),Ge(e,r+1,-1),r)}var Ft=function(e,t,n){for(var r=0,a=0;r=a,a=lt(),38===r&&12===a&&(t[n]=1),!ut(a);)it();return ct(e,et)},Vt=new WeakMap,Ht=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Vt.get(n))&&!r){Vt.set(e,!0);for(var a=[],o=function(e,t){return ht(function(e,t){var n=-1,r=44;do{switch(ut(r)){case 0:38===r&&12===lt()&&(t[n]=1),e[n]+=Ft(et-1,t,n);break;case 2:e[n]+=pt(r);break;case 4:if(44===r){e[++n]=58===lt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Be(r)}}while(r=it());return e}(dt(e),t))}(t,a),i=n.props,l=0,s=0;l<o.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=a[l]?o[l].replace(/&\f/g,i[c]):i[c]+" "+o[l]}}},Nt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function It(e,t){switch(function(e,t){return 45^$e(e,0)?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}(e,t)){case 5103:return Ct+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ct+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ct+e+wt+e+bt+e+e;case 6828:case 4268:return Ct+e+bt+e+e;case 6165:return Ct+e+bt+"flex-"+e+e;case 5187:return Ct+e+We(e,/(\w+).+(:[^]+)/,Ct+"box-$1$2"+bt+"flex-$1$2")+e;case 5443:return Ct+e+bt+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return Ct+e+bt+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return Ct+e+bt+We(e,"shrink","negative")+e;case 5292:return Ct+e+bt+We(e,"basis","preferred-size")+e;case 6060:return Ct+"box-"+We(e,"-grow","")+Ct+e+bt+We(e,"grow","positive")+e;case 4554:return Ct+We(e,/([^-])(transform)/g,"$1"+Ct+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,Ct+"$1"),/(image-set)/,Ct+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,Ct+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,Ct+"box-pack:$3"+bt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ct+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,Ct+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ye(e)-1-t>6)switch($e(e,t+1)){case 109:if(45!==$e(e,t+4))break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+wt+(108==$e(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ze(e,"stretch")?It(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$e(e,t+1))break;case 6444:switch($e(e,Ye(e)-3-(~ze(e,"!important")&&10))){case 107:return We(e,":",":"+Ct)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ct+(45===$e(e,14)?"inline-":"")+"box$3$1"+Ct+"$2$3$1"+bt+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Ct+e+bt+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ct+e+bt+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ct+e+bt+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ct+e+bt+e+e}return e}var Zt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Lt:e.return=It(e.value,e.length);break;case Mt:return kt([at(e,{value:We(e.value,"@","@"+Ct)})],r);case xt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return kt([at(e,{props:[We(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kt([at(e,{props:[We(t,/:(plac\w+)/,":"+Ct+"input-$1")]}),at(e,{props:[We(t,/:(plac\w+)/,":-moz-$1")]}),at(e,{props:[We(t,/:(plac\w+)/,bt+"input-$1")]})],r)}return""}))}}],Rt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,a,o=e.stylisPlugins||Zt,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,c,u,d,h=[_t,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Ht,Nt].concat(o,h),u=qe(c),function(e,t,n,r){for(var a="",o=0;o<u;o++)a+=c[o](e,t,n,r)||"";return a});a=function(e,t,n,r){s=n,kt(St(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Re({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(l),f};function At(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Bt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},jt=function(e,t,n){Bt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}},Ut={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Wt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var zt=/[A-Z]|^ms/g,$t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gt=function(e){return 45===e.charCodeAt(1)},Yt=function(e){return null!=e&&"boolean"!=typeof e},qt=Wt((function(e){return Gt(e)?e:e.replace(zt,"-$&").toLowerCase()})),Xt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($t,(function(e,t,n){return Jt={name:t,styles:n,next:Jt},t}))}return 1===Ut[e]||Gt(e)||"number"!=typeof t||0===t?t:t+"px"};function Qt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return Jt={name:a.name,styles:a.styles,next:Jt},a.name;var o=n;if(void 0!==o.styles){var i=o.next;if(void 0!==i)for(;void 0!==i;)Jt={name:i.name,styles:i.styles,next:Jt},i=i.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Qt(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=o+"{"+t[l]+"}":Yt(l)&&(r+=qt(o)+":"+Xt(o,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Qt(e,t,i);switch(o){case"animation":case"animationName":r+=qt(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Yt(i[c])&&(r+=qt(o)+":"+Xt(o,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Jt,s=n(e);return Jt=l,Qt(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Jt,Kt=/label:\s*([^\s;{]+)\s*(;|$)/g;function en(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Jt=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=Qt(n,t,o)):a+=o[0];for(var i=1;i<e.length;i++)a+=Qt(n,t,e[i]),r&&(a+=o[i]);Kt.lastIndex=0;for(var l,s="";null!==(l=Kt.exec(a));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s;return{name:c,styles:a,next:Jt}}var tn=!!e.useInsertionEffect&&e.useInsertionEffect,nn=tn||function(e){return e()},rn=(tn||e.useLayoutEffect,e.createContext("undefined"!=typeof HTMLElement?Rt({key:"css"}):null)),an=(rn.Provider,function(t){return(0,e.forwardRef)((function(n,r){var a=(0,e.useContext)(rn);return t(n,a,r)}))}),on=e.createContext({}),ln={}.hasOwnProperty,sn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Bt(t,n,r),nn((function(){return jt(t,n,r)})),null},un=an((function(t,n,r){var a=t.css;"string"==typeof a&&void 0!==n.registered[a]&&(a=n.registered[a]);var o=t[sn],i=[a],l="";"string"==typeof t.className?l=At(n.registered,i,t.className):null!=t.className&&(l=t.className+" ");var s=en(i,void 0,e.useContext(on));l+=n.key+"-"+s.name;var c={};for(var u in t)ln.call(t,u)&&"css"!==u&&u!==sn&&(c[u]=t[u]);return c.className=l,r&&(c.ref=r),e.createElement(e.Fragment,null,e.createElement(cn,{cache:n,serialized:s,isStringTag:"string"==typeof o}),e.createElement(o,c))})),dn=(n(482),function(t,n){var r=arguments;if(null==n||!ln.call(n,"css"))return e.createElement.apply(void 0,r);var a=r.length,o=new Array(a);o[0]=un,o[1]=function(e,t){var n={};for(var r in t)ln.call(t,r)&&(n[r]=t[r]);return n[sn]=e,n}(t,n);for(var i=2;i<a;i++)o[i]=r[i];return e.createElement.apply(null,o)});function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return en(t)}var pn=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var l in i="",o)o[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a},fn=function(e){var t=e.cache,n=e.serializedArr;return nn((function(){for(var e=0;e<n.length;e++)jt(t,n[e],!1)})),null},mn=an((function(t,n){var r=[],a=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var o=en(t,n.registered);return r.push(o),Bt(n,o,!1),n.key+"-"+o.name},o={css:a,cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,n){var r=[],a=At(e,r,n);return r.length<2?n:a+t(r)}(n.registered,a,pn(t))},theme:e.useContext(on)},i=t.children(o);return e.createElement(e.Fragment,null,e.createElement(fn,{cache:n,serializedArr:r}),i)}));function gn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vn(e){return vn="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},vn(e)}var yn=n(708);function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(e){var t=function(e){if("object"!=vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vn(t)?t:t+""}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wn(r.key),r)}}function En(e,t,n){return t&&Cn(e.prototype,t),n&&Cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xn(e,t)}function Ln(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}function Mn(e,t,n){return(t=wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function On(e){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},On(e)}function Pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=On(e);if(t){var a=On(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var Tn=function(){};function Fn(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Vn(e,t,n){var r=[n];if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(Fn(e,a)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Hn=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===vn(e)&&null!==e?[e]:[]},Nn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Dn({},gn(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function In(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Zn(e){return In(e)?window.pageYOffset:e.scrollTop}function Rn(e,t){In(e)?window.scrollTo(0,t):e.scrollTop=t}function An(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Tn,a=Zn(e),o=t-a,i=0;!function t(){var l,s=o*((l=(l=i+=10)/n-1)*l*l+1)+a;Rn(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Bn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var jn=!1,Un={get passive(){return jn=!0}},Wn="undefined"!=typeof window?window:{};Wn.addEventListener&&Wn.removeEventListener&&(Wn.addEventListener("p",Tn,Un),Wn.removeEventListener("p",Tn,!1));var zn=jn;var $n=function(e){return"auto"===e?"bottom":e},Gn=(0,e.createContext)({getPortalPlacement:null}),Yn=function(e){Ln(n,e);var t=Pn(n);function n(){var e;bn(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,a=n.maxMenuHeight,o=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,s=n.theme;if(t){var c="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),h=d.bottom,p=d.height,f=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Zn(s),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,C=g-f,E=w+v,x=u-v-f,L=h-g+v+y,M=v+f-b,k=160;switch(a){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!i)return o&&An(s,L,k),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&C>=r)return o&&An(s,L,k),{placement:"bottom",maxHeight:i?C-y:x-y};if("auto"===a||i){var _=t,S=i?w:E;return S>=r&&(_=Math.min(S-y-l.controlHeight,t)),{placement:"top",maxHeight:_}}if("bottom"===a)return o&&Rn(s,L),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(E>=p&&!i)return o&&An(s,M,k),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&w>=r){var D=t;return(!i&&E>=r||i&&w>=r)&&(D=i?w-b:E-b),o&&An(s,M,k),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:a,menuEl:t,minHeight:r,placement:o,shouldScroll:l&&!c,isFixedPosition:c,theme:s}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||$n(t);return Dn(Dn({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return En(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);Yn.contextType=Gn;var qn=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Xn=qn,Qn=qn,Jn=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return dn("div",Ze({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};Jn.defaultProps={children:"No options"};var Kn=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return dn("div",Ze({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};Kn.defaultProps={children:"Loading..."};var er,tr,nr,rr=function(e){Ln(n,e);var t=Pn(n);function n(){var e;bn(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==$n(e.props.menuPlacement)&&e.setState({placement:n})},e}return En(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,a=e.className,o=e.controlElement,i=e.cx,l=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,d="fixed"===c;if(!t&&!d||!o)return null;var h=this.state.placement||$n(s),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),f=d?0:window.pageYOffset,m=p[h]+f,g=dn("div",Ze({css:u("menuPortal",{offset:m,position:c,rect:p}),className:i({"menu-portal":!0},a)},l),n);return dn(Gn.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,r.createPortal)(g,t):g)}}]),n}(e.Component),ar={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},or=function(e){var t=e.size,n=gn(e,["size"]);return dn("svg",Ze({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ar},n))},ir=function(e){return dn(or,Ze({size:20},e),dn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},lr=function(e){return dn(or,Ze({size:20},e),dn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},sr=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},cr=sr,ur=sr,dr=function(){var e=hn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(er||(tr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],nr||(nr=tr.slice(0)),er=Object.freeze(Object.defineProperties(tr,{raw:{value:Object.freeze(nr)}})))),hr=function(e){var t=e.delay,n=e.offset;return dn("span",{css:hn({animation:"".concat(dr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},pr=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,o=e.isRtl;return dn("div",Ze({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),dn(hr,{delay:0,offset:o}),dn(hr,{delay:160,offset:!0}),dn(hr,{delay:320,offset:!o}))};pr.defaultProps={size:4};var fr=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},mr=function(e){var t=e.children,n=e.innerProps;return dn("div",n,t)},gr=mr,vr=mr,yr=function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,o=e.data,i=e.getStyles,l=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,h=r.Label,p=r.Remove;return dn(mn,null,(function(r){var f=r.css,m=r.cx;return dn(d,{data:o,innerProps:Dn({className:m(f(i("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":s},n))},l),selectProps:u},dn(h,{data:o,innerProps:{className:m(f(i("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:u},t),dn(p,{data:o,innerProps:Dn({className:m(f(i("multiValueRemove",e)),a({"multi-value__remove":!0},n))},c),selectProps:u}))}))};yr.defaultProps={cropWithEllipsis:!0};var br={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return dn("div",Ze({css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},o),t||dn(ir,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,o=e.isDisabled,i=e.isFocused,l=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return dn("div",Ze({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":c},a)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return dn("div",Ze({css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},o),t||dn(lr,null))},DownChevron:lr,CrossIcon:ir,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.Heading,i=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return dn("div",Ze({css:a("group",e),className:r({group:!0},n)},l),dn(o,Ze({},i,{selectProps:u,theme:c,getStyles:a,cx:r}),s),dn("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,a=Nn(e);a.data;var o=gn(a,["data"]);return dn("div",Ze({css:t("groupHeading",e),className:n({"group-heading":!0},r)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.innerProps,o=e.getStyles;return dn("div",Ze({css:o("indicatorsContainer",e),className:r({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return dn("span",Ze({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=Nn(e),o=a.innerRef,i=a.isDisabled,l=a.isHidden,s=gn(a,["innerRef","isDisabled","isHidden"]);return dn("div",{css:r("input",e)},dn(yn.A,Ze({className:n({input:!0},t),inputRef:o,inputStyle:fr(l),disabled:i},s)))},LoadingIndicator:pr,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerRef,i=e.innerProps;return dn("div",Ze({css:a("menu",e),className:r({menu:!0},n),ref:o},i),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.innerRef,l=e.isMulti;return dn("div",Ze({css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:i},o),t)},MenuPortal:rr,LoadingMessage:Kn,NoOptionsMessage:Jn,MultiValue:yr,MultiValueContainer:gr,MultiValueLabel:vr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return dn("div",n,t||dn(ir,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.isFocused,l=e.isSelected,s=e.innerRef,c=e.innerProps;return dn("div",Ze({css:a("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":l},n),ref:s},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps;return dn("div",Ze({css:a("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.innerProps,i=e.isDisabled,l=e.isRtl;return dn("div",Ze({css:a("container",e),className:r({"--is-disabled":i,"--is-rtl":l},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,o=e.isDisabled,i=e.innerProps;return dn("div",Ze({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.innerProps,o=e.isMulti,i=e.getStyles,l=e.hasValue;return dn("div",Ze({css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},n)},a),t)}};function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e){return function(e){if(Array.isArray(e))return wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return wr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Er=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(a=t[n])||Er(r)&&Er(a)))return!1;var r,a;return!0}for(var Lr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Mr=function(e){return dn("span",Ze({css:Lr},e))},kr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,a=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,a=e.options,o=e.label,i=void 0===o?"":o,l=e.selectValue,s=e.isDisabled,c=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(i," focused, ").concat(u(l,r),".");if("menu"===t){var d=s?" disabled":"",h="".concat(c?"selected":"focused").concat(d);return"option ".concat(i," ").concat(h,", ").concat(u(a,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},_r=function(n){var r=n.ariaSelection,a=n.focusedOption,o=n.focusedValue,i=n.focusableOptions,l=n.isFocused,s=n.selectValue,c=n.selectProps,u=c.ariaLiveMessages,d=c.getOptionLabel,h=c.inputValue,p=c.isMulti,f=c.isOptionDisabled,m=c.isSearchable,g=c.menuIsOpen,v=c.options,y=c.screenReaderStatus,b=c.tabSelectsValue,w=c["aria-label"],C=c["aria-live"],E=(0,e.useMemo)((function(){return Dn(Dn({},kr),u||{})}),[u]),x=(0,e.useMemo)((function(){var e,t="";if(r&&E.onChange){var n=r.option,a=r.removedValue,o=r.value,i=a||n||(e=o,Array.isArray(e)?null:e),l=Dn({isDisabled:i&&f(i),label:i?d(i):""},r);t=E.onChange(l)}return t}),[r,f,d,E]),L=(0,e.useMemo)((function(){var e="",t=a||o,n=!!(a&&s&&s.includes(a));if(t&&E.onFocus){var r={focused:t,label:d(t),isDisabled:f(t),isSelected:n,options:v,context:t===a?"menu":"value",selectValue:s};e=E.onFocus(r)}return e}),[a,o,d,f,E,v,s]),M=(0,e.useMemo)((function(){var e="";if(g&&v.length&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e}),[i,h,g,E,v,y]),k=(0,e.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":g?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:a&&f(a),isMulti:p,isSearchable:m,tabSelectsValue:b})}return e}),[w,a,o,p,f,m,g,E,b]),_="".concat(L," ").concat(M," ").concat(k);return dn(Mr,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},l&&dn(t().Fragment,null,dn("span",{id:"aria-selection"},x),dn("span",{id:"aria-context"},_)))},Sr=[{base:"A",letters:"AⒶÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷḂḄḆɃƂƁ"},{base:"C",letters:"CⒸĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻḞƑꝻ"},{base:"G",letters:"GⒼǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿĴɈ"},{base:"K",letters:"KⓀḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂḾṀṂⱮƜ"},{base:"N",letters:"NⓃǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆꝖꝘɊ"},{base:"R",letters:"RⓇŔṘŘȐȒṚṜŖṞɌⱤꞦꞂ"},{base:"S",letters:"SⓈẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍẊẌ"},{base:"Y",letters:"YⓎỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑḃḅḇƀƃɓ"},{base:"c",letters:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕḟƒꝼ"},{base:"g",letters:"gⓖǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙĵǰɉ"},{base:"k",letters:"kⓚḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜḿṁṃɱɯ"},{base:"n",letters:"nⓝǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠɋꝗꝙ"},{base:"r",letters:"rⓡŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧẋẍ"},{base:"y",letters:"yⓨỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩźẑżžẓẕƶȥɀⱬꝣ"}],Dr=new RegExp("["+Sr.map((function(e){return e.letters})).join("")+"]","g"),Or={},Pr=0;Pr<Sr.length;Pr++)for(var Tr=Sr[Pr],Fr=0;Fr<Tr.letters.length;Fr++)Or[Tr.letters[Fr]]=Tr.base;var Vr=function(e){return e.replace(Dr,(function(e){return Or[e]}))},Hr=function(e,t){var n;void 0===t&&(t=xr);var r,a=[],o=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}}(Vr),Nr=function(e){return e.replace(/^\s+|\s+$/g,"")},Ir=function(e){return"".concat(e.label," ").concat(e.value)};function Zr(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=gn(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return dn("input",Ze({ref:t},n,{css:hn({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Rr=["boxSizing","height","overflow","paddingRight","position"],Ar={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Br(e){e.preventDefault()}function jr(e){e.stopPropagation()}function Ur(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Wr(){return"ontouchstart"in window||navigator.maxTouchPoints}var zr=!("undefined"==typeof window||!window.document||!window.document.createElement),$r=0,Gr={capture:!1,passive:!1},Yr=function(){return document.activeElement&&document.activeElement.blur()},qr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Xr(n){var r=n.children,a=n.lockEnabled,o=n.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,a=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,l=(0,e.useRef)(!1),s=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,h=n.clientHeight,p=u.current,f=t>0,m=d-h-c,g=!1;m>t&&l.current&&(a&&a(e),l.current=!1),f&&s.current&&(i&&i(e),s.current=!1),f&&t>m?(r&&!l.current&&r(e),p.scrollTop=d,g=!0,l.current=!0):!f&&-t>c&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),h=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,e.useCallback)((function(e){if(e){var t=!!zn&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",h,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",f,t)}}),[f,p,h]),g=(0,e.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",h,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",f,!1))}),[f,p,h]);return(0,e.useEffect)((function(){if(n){var e=u.current;return m(e),function(){g(e)}}}),[n,m,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:n.onBottomArrive,onBottomLeave:n.onBottomLeave,onTopArrive:n.onTopArrive,onTopLeave:n.onTopLeave}),l=function(t){var n=t.isEnabled,r=t.accountForScrollbars,a=void 0===r||r,o=(0,e.useRef)({}),i=(0,e.useRef)(null),l=(0,e.useCallback)((function(e){if(zr){var t=document.body,n=t&&t.style;if(a&&Rr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),a&&$r<1){var r=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+r||0;Object.keys(Ar).forEach((function(e){var t=Ar[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Wr()&&(t.addEventListener("touchmove",Br,Gr),e&&(e.addEventListener("touchstart",Ur,Gr),e.addEventListener("touchmove",jr,Gr))),$r+=1}}),[]),s=(0,e.useCallback)((function(e){if(zr){var t=document.body,n=t&&t.style;$r=Math.max($r-1,0),a&&$r<1&&Rr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Wr()&&(t.removeEventListener("touchmove",Br,Gr),e&&(e.removeEventListener("touchstart",Ur,Gr),e.removeEventListener("touchmove",jr,Gr)))}}),[]);return(0,e.useEffect)((function(){if(n){var e=i.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){i.current=e}}({isEnabled:a});return dn(t().Fragment,null,a&&dn("div",{onClick:Yr,css:qr}),r((function(e){i(e),l(e)})))}var Qr={clearIndicator:ur,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dropdownIndicator:cr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Qn,menu:function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=r.spacing,i=r.colors;return Mn(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Mn(t,"backgroundColor",i.neutral0),Mn(t,"borderRadius",a),Mn(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Mn(t,"marginBottom",o.menuGutter),Mn(t,"marginTop",o.menuGutter),Mn(t,"position","absolute"),Mn(t,"width","100%"),Mn(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:Xn,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Jr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Kr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Bn(),captureMenuScroll:!Bn(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Dn({ignoreCase:!0,ignoreAccents:!0,stringify:Ir,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,l=n.matchFrom,s=i?Nr(t):t,c=i?Nr(o(e)):o(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),a&&(s=Hr(s),c=Vr(c)),"start"===l?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function ea(e,t,n,r){return{type:"option",data:t,isDisabled:ia(e,t,n),isSelected:la(e,t,n),label:aa(e,t),value:oa(e,t),index:r}}function ta(e,t){return e.options.map((function(n,r){if(n.options){var a=n.options.map((function(n,r){return ea(e,n,t,r)})).filter((function(t){return ra(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var o=ea(e,n,t,r);return ra(e,o)?o:void 0})).filter((function(e){return!!e}))}function na(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Cr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ra(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,o=t.isSelected,i=t.label,l=t.value;return(!ca(e)||!o)&&sa(e,{label:i,value:l,data:a},r)}var aa=function(e,t){return e.getOptionLabel(t)},oa=function(e,t){return e.getOptionValue(t)};function ia(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function la(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=oa(e,t);return n.some((function(t){return oa(e,t)===r}))}function sa(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ca=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ua=1,da=function(e){Ln(r,e);var n=Pn(r);function r(e){var t;return bn(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,a=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),a(e,n)},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,a=t.props,o=a.closeMenuOnSelect,i=a.isMulti;t.onInputChange("",{action:"set-value"}),o&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,a=n.isMulti,o=n.name,i=t.state.selectValue,l=a&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(l){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",name:o});a?t.setValue([].concat(Cr(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,a=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==a})),i=n?o:o[0]||null;t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(t.props.isMulti?[]:null,{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],a=n.slice(0,n.length-1),o=e?a:a[0]||null;t.onChange(o,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vn.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return aa(t.props,e)},t.getOptionValue=function(e){return oa(t.props,e)},t.getStyles=function(e,n){var r=Qr[e](n);r.boxSizing="border-box";var a=t.props.styles[e];return a?a(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Dn(Dn({},br),e.components);var e},t.buildCategorizedOptions=function(){return ta(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return na(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Dn({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,a=n.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&In(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var a=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=a>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return ca(t.props)},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,a=n.backspaceRemovesValue,o=n.escapeClearsValue,i=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,h=n.openMenuOnFocus,p=t.state,f=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!a)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||h&&t.isOptionSelected(f,g))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):l&&o&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++ua),t.state.selectValue=Hn(e.value),t}return En(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,a,o,i=this.props,l=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!l&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=n.offsetHeight/3,a.bottom+o>r.bottom?Rn(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):a.top-o<r.top&&Rn(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildFocusableOptions(),i="first"===e?0:o.length-1;if(!this.props.isMulti){var l=o.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var o=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===a?0:-1===a?o:a-1;break;case"next":a>-1&&a<o&&(i=a+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,o=r.indexOf(n);n||(o=-1),"up"===e?a=o>0?o-1:r.length-1:"down"===e?a=(o+1)%r.length:"pageup"===e?(a=o-t)<0&&(a=0):"pagedown"===e?(a=o+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Jr):Dn(Dn({},Jr),this.props.theme):Jr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,a=this.selectOption,o=this.setValue,i=this.props,l=i.isMulti,s=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:s,options:c,selectOption:a,selectProps:i,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ia(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return la(this.props,e,t)}},{key:"filterOption",value:function(e,t){return sa(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,a=e.inputId,o=e.inputValue,i=e.tabIndex,l=e.form,s=this.getComponents().Input,c=this.state.inputIsHidden,u=this.commonProps,d=a||this.getElementId("input"),h={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return r?t().createElement(s,Ze({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:n,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:o},h)):t().createElement(Zr,Ze({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Tn,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:i,form:l,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),r=n.MultiValue,a=n.MultiValueContainer,o=n.MultiValueLabel,i=n.MultiValueRemove,l=n.SingleValue,s=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,h=u.isDisabled,p=u.isMulti,f=u.inputValue,m=u.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return f?null:t().createElement(s,Ze({},c,{key:"placeholder",isDisabled:h,isFocused:b}),m);if(p){var w=v.map((function(n,l){var s=n===y;return t().createElement(r,Ze({},c,{components:{Container:a,Label:o,Remove:i},isFocused:s,isDisabled:h,key:"".concat(e.getOptionValue(n)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));return w}if(f)return null;var C=v[0];return t().createElement(l,Ze({},c,{data:C,isDisabled:h}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,a=r.isDisabled,o=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,Ze({},n,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,a=r.isDisabled,o=r.isLoading,i=this.state.isFocused;return e&&o?t().createElement(e,Ze({},n,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var a=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return t().createElement(r,Ze({},a,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,Ze({},n,{innerProps:o,isDisabled:r,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),r=n.Group,a=n.GroupHeading,o=n.Menu,i=n.MenuList,l=n.MenuPortal,s=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,h=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,v=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,w=p.menuIsOpen,C=p.menuPlacement,E=p.menuPosition,x=p.menuPortalTarget,L=p.menuShouldBlockScroll,M=p.menuShouldScrollIntoView,k=p.noOptionsMessage,_=p.onMenuScrollToTop,S=p.onMenuScrollToBottom;if(!w)return null;var D,O=function(n,r){var a=n.type,o=n.data,i=n.isDisabled,l=n.isSelected,s=n.label,c=n.value,p=h===o,f=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(r),v={id:g,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1};return t().createElement(u,Ze({},d,{innerProps:v,data:o,isDisabled:i,isSelected:l,key:g,label:s,type:a,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,i=n.options,l=n.index,s="".concat(e.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return t().createElement(r,Ze({},d,{key:s,data:o,options:i,Heading:a,headingProps:{id:c,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return O(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return O(n,"".concat(n.index))}));else if(g){var P=v({inputValue:m});if(null===P)return null;D=t().createElement(s,d,P)}else{var T=k({inputValue:m});if(null===T)return null;D=t().createElement(c,d,T)}var F={minMenuHeight:y,maxMenuHeight:b,menuPlacement:C,menuPosition:E,menuShouldScrollIntoView:M},V=t().createElement(Yn,Ze({},d,F),(function(n){var r=n.ref,a=n.placerProps,l=a.placement,s=a.maxHeight;return t().createElement(o,Ze({},d,F,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:l}),t().createElement(Xr,{captureEnabled:f,onTopArrive:_,onBottomArrive:S,lockEnabled:L},(function(n){return t().createElement(i,Ze({},d,{innerRef:function(t){e.getMenuListRef(t),n(t)},isLoading:g,maxHeight:s,focusedOption:h}),D)})))}));return x||"fixed"===E?t().createElement(l,Ze({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:E}),V):V}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,a=n.isDisabled,o=n.isMulti,i=n.name,l=this.state.selectValue;if(i&&!a){if(o){if(r){var s=l.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:i,type:"hidden",value:s})}var c=l.length>0?l.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:i,type:"hidden"});return t().createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return t().createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,r=n.ariaSelection,a=n.focusedOption,o=n.focusedValue,i=n.isFocused,l=n.selectValue,s=this.getFocusableOptions();return t().createElement(_r,Ze({},e,{ariaSelection:r,focusedOption:a,focusedValue:o,isFocused:i,selectValue:l,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,r=e.IndicatorsContainer,a=e.SelectContainer,o=e.ValueContainer,i=this.props,l=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,h=this.commonProps=this.getCommonProps();return t().createElement(a,Ze({},h,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),t().createElement(n,Ze({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),t().createElement(o,Ze({},h,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,Ze({},h,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,o=e.options,i=e.value,l=e.menuIsOpen,s=e.inputValue,c={};if(n&&(i!==n.value||o!==n.options||l!==n.menuIsOpen||s!==n.inputValue)){var u=Hn(i),d=l?function(e,t){return na(ta(e,t))}(e,u):[],h=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,u):null,p=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,d);c={selectValue:u,focusedOption:p,focusedValue:h,clearFocusValueOnUpdate:!1}}var f=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{};return Dn(Dn(Dn({},c),f),{},{prevProps:e})}}]),r}(e.Component);da.defaultProps=Kr;var ha,pa,fa,ma=(ha=da,fa=pa=function(e){Ln(r,e);var n=Pn(r);function r(){var e;bn(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return En(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=gn(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return t().createElement(ha,Ze({},r,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(e.Component),pa.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},fa);const ga=ma;var va=n(478);va.domToReact,va.htmlToDOM,va.attributesToProps,va.Element;const ya=va,ba=JSON.parse("{\"Hy\":\"<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><mask id='mask0_48_586' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='2' width='21' height='20'><path fill-rule='evenodd' clip-rule='evenodd' d='M1.99023 12C1.99023 6.48 6.44826 2 11.9412 2C17.4341 2 21.8921 6.48 21.8921 12C21.8921 17.52 17.4341 22 11.9412 22C6.44826 22 1.99023 17.52 1.99023 12ZM12.9363 13H16.9167V11H12.9363V7H10.9461V11H6.96571V13H10.9461V17H12.9363V13Z' fill='white'/></mask><g mask='url(#mask0_48_586)'><rect width='23.8823' height='24' fill='#6B7280'/></g></svg>\",\"bH\":\"<svg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'><mask id='mask0_48_610' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='2' y='2' width='21' height='20'><path fill-rule='evenodd' clip-rule='evenodd' d='M2.87305 12C2.87305 6.48 7.33108 2 12.824 2C18.3169 2 22.775 6.48 22.775 12C22.775 17.52 18.3169 22 12.824 22C7.33108 22 2.87305 17.52 2.87305 12ZM7.84853 13H17.7995V11H7.84853V13Z' fill='white'/></mask><g mask='url(#mask0_48_610)'><rect x='0.882812' width='23.8823' height='24' fill='#6B7280'/></g></svg>\"}"),{__}=wp.i18n,wa=t=>{const n=ya(ba.Hy),r=ya(ba.bH),[a,o]=(0,e.useState)(t.specific),[i,l]=(0,e.useState)([]),[s,c]=(0,e.useState)({rule:t.value.rule,specific:t.value.specific});s.rule.length=0===s.rule.length?1:s.rule.length;let u=astCustomLayout.displayRules;"template"===t.layout&&("single"===t.templateType?u=astCustomLayout.singleDisplayRules:"archive"===t.templateType&&(u=astCustomLayout.archiveDisplayRules));const d=Object.entries(u).map((([t,n])=>{let r=n.value;return(0,e.createElement)("optgroup",{label:n.label,key:t,className:`counts-${r.length}`},Object.entries(r).map((([t,n])=>{const r=s.rule.includes(t)?"disabled":"";return(0,e.createElement)("option",{value:t,key:t,disabled:r}," ",n," ")})))})),h=()=>{const e=s.rule.concat("");c({...s,rule:e})},p=(e,n=!1)=>{"specifics"===s.rule[e]&&!1===n&&(s.specific=[],o([]));let r={rule:s.rule.filter((e=>""!=e)),specific:s.specific.map((e=>e.value)),specificText:s.specific};c({...s}),t.onChange(r)},f=1===s.rule.length||2===s.rule.length&&s.rule.includes("clflag")?"ast-disabled-close ":"";return(0,e.createElement)("div",{className:"ast-custom-layout-meta-wrap components-base-control__field"},Ie()(s.rule.length,(t=>(t=>(0,e.createElement)("div",{className:"ast-display-rule",key:"key-"+t},("clflag"!==s.rule[t]||"clflag"===s.rule[t]&&1===s.rule.length)&&(0,e.createElement)("div",{className:"ast-select-control"},(0,e.createElement)("select",{className:"components-select-control__input ast-custom-select",value:void 0!==s.rule[t]&&null!==s.rule[t]?s.rule[t]:"",onChange:e=>((e,t)=>{let n=e.target.value;s.rule[t]=n,p(t)})(e,t)},(0,e.createElement)("option",{value:""}," ",__("— Select —","astra-addon")),d),"specifics"==s.rule[t]&&(0,e.createElement)(ga,{value:a,options:i,onInputChange:e=>(e=>{let t="";"1"===astCustomLayout.checkPolylangActive&&(t="&pll_ajax_backend=1&pll_post_id="+document.querySelector(".metabox-base-form #post_ID").value);const n={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"action=astra_get_posts_by_query&q="+e+"&nonce="+astCustomLayout.ajax_nonce+t},r=[];""!==e&&1<e.length?fetch(ajaxurl,n).then((e=>e.json())).then((e=>{Object.entries(e).forEach((([e,t])=>{const n=Object.entries(t.children).map((([e,t])=>({value:t.id,label:t.text})));let a={label:t.text,options:n};r.push(a)})),l(r)})).catch((e=>{console.error("Error fetching data:",e)})):l(r)})(e),isMulti:!0,menuPortalTarget:document.body.querySelector(".components-modal__screen-overlay"),onChange:e=>((e,t)=>{o(e),s.specific=e,c({...s}),p(t,!0)})(e,t),isSearchable:!0,className:"ast-meta-select",classNamePrefix:"ast"})),("clflag"!==s.rule[t]||"clflag"===s.rule[t]&&1===s.rule.length)&&(0,e.createElement)("div",{className:"ast-single-options"},(0,e.createElement)("span",{className:"ast-add-rule ast-option",onClick:h},n),(0,e.createElement)("span",{className:f+"ast-cl-close target_rule-condition-delete ast-option",onClick:e=>(e=>{const t=s.rule.filter(((t,n)=>n!==e));s.rule=t,p(e)})(t)},r))))(t))))},Ca=t=>{const n=ya(ba.Hy),r=ya(ba.bH),[a,o]=(0,e.useState)(t.value),i=0===t.value.length?[""]:t.value,[l,s]=(0,e.useState)(i);l.length=0===l.length?1:l.length;const c=Object.entries(astCustomLayout.userRoles).map((([t,n])=>(0,e.createElement)("optgroup",{label:n.label,key:t},Object.entries(n.value).map((([t,n])=>{const r=l.includes(t)?"disabled":"";return(0,e.createElement)("option",{value:t,key:t,disabled:r}," ",n," ")}))))),u=()=>{const e=l.concat("all");let n=e.filter((e=>""!=e));const r=[...new Set(n)];s(e),o(r),t.onChange(r)},d=1===l.length||2===l.length&&l.includes("clflag")?"ast-disabled-close ":"";return(0,e.createElement)("div",{className:"ast-custom-layout-meta-wrap components-base-control__field"},Ie()(l.length,(a=>(a=>(0,e.createElement)("div",{className:"ast-display-rule",key:"key-"+a},("clflag"!==l[a]||"clflag"===l[a]&&1===l.length)&&(0,e.createElement)("div",{className:"ast-select-control"},(0,e.createElement)("select",{className:"components-select-control__input ast-custom-select",value:void 0!==l[a]&&null!==l[a]?l[a]:"",onChange:e=>((e,n)=>{let r=e.target.value;l[n]=r;let a=l.filter((e=>""!=e));const i=[...new Set(a)];s(l),o({...i}),t.onChange(i)})(e,a)},(0,e.createElement)("option",{value:"all"}," ",(0,he.__)("All","astra-addon")),c)),("clflag"!==l[a]||"clflag"===l[a]&&1===l.length)&&(0,e.createElement)("div",{className:"ast-single-options"},(0,e.createElement)("span",{className:"ast-add-rule ast-option",onClick:u},n),(0,e.createElement)("span",{className:d+"target_rule-condition-delete ast-option",onClick:e=>(e=>{const n=l.filter(((t,n)=>n!==e));let r=n.filter((e=>""!=e));const a=[...new Set(r)];s(n),o(a),t.onChange(a)})(a)},r))))(a))))},Ea=t=>{const{isLoading:n,closeModal:r,whiteLabelledLogo:a,returnToPostLabel:o,returnToPostDescription:i,onReturnToPostClick:l}=t,s=o||(0,he.__)("Return To Post","astra-addon"),c=i||(0,he.__)("Make sure to update your post for changes to take effect.","astra-addon"),u=l||r,d=!0===n;return(0,e.createElement)(He.Modal,{title:(0,he.__)("Display and User Conditions","astra-addon"),className:"ast-layout-settings-modal ast-display-user-conditions",shouldCloseOnClickOutside:!1,onRequestClose:r,icon:a()},d?(0,e.createElement)("div",{className:"ast-display-condition-modal-spinner"},(0,e.createElement)(He.Spinner,null)):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ast-cl-settings-content"},(0,e.createElement)("table",{className:"ast-advanced-hook-table widefat"},(0,e.createElement)("tbody",null,"404-page"!==t.meta["ast-advanced-hook-layout"]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("tr",{className:"ast-advanced-hook-row ast-target-rules-display"},(0,e.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,e.createElement)("label",null," ",(0,he.__)("Display On","astra-addon"))),(0,e.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,e.createElement)(wa,{layout:void 0!==t.meta["ast-advanced-hook-layout"]&&""!==t.meta["ast-advanced-hook-layout"]?t.meta["ast-advanced-hook-layout"]:"0",templateType:void 0!==t.meta["ast-advanced-hook-template-type"]&&""!==t.meta["ast-advanced-hook-template-type"]?t.meta["ast-advanced-hook-template-type"]:"",value:t.meta["ast-advanced-hook-location"],specific:t.meta["ast-advanced-hook-location"].specificText,isDisplayRule:!0,onChange:e=>{if(-1===e.rule.indexOf("clflag"))e.rule.push("clflag");else if(0<e.rule.indexOf("clflag")){let t=e.rule.indexOf("clflag");e.rule.splice(t,1)}t.meta["ast-advanced-hook-location"]={rule:e.rule,specific:e.specific,specificText:e.specificText},t.setMetaFieldValue(t.meta["ast-advanced-hook-location"],"ast-advanced-hook-location")}}))),(0,e.createElement)("tr",{className:"ast-advanced-hook-row ast-target-rules-display"},(0,e.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,e.createElement)("label",null," ",(0,he.__)("Do Not Display On","astra-addon"))),(0,e.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,e.createElement)(wa,{layout:void 0!==t.meta["ast-advanced-hook-layout"]&&""!==t.meta["ast-advanced-hook-layout"]?t.meta["ast-advanced-hook-layout"]:"0",templateType:void 0!==t.meta["ast-advanced-hook-template-type"]&&""!==t.meta["ast-advanced-hook-template-type"]?t.meta["ast-advanced-hook-template-type"]:"",value:t.meta["ast-advanced-hook-exclusion"],specific:t.meta["ast-advanced-hook-exclusion"].specificText,onChange:e=>{if(-1===e.rule.indexOf("clflag"))e.rule.push("clflag");else if(0<e.rule.indexOf("clflag")){let t=e.rule.indexOf("clflag");e.rule.splice(t,1)}t.meta["ast-advanced-hook-exclusion"]={rule:e.rule,specific:e.specific,specificText:e.specificText},t.setMetaFieldValue(t.meta["ast-advanced-hook-exclusion"],"ast-advanced-hook-exclusion")}})))),(0,e.createElement)("tr",{className:"ast-advanced-hook-row ast-target-rules-display"},(0,e.createElement)("td",{className:"ast-advanced-hook-row-heading"},(0,e.createElement)("label",null," ",(0,he.__)("Display for Users","astra-addon"))),(0,e.createElement)("td",{className:"ast-advanced-hook-row-content"},(0,e.createElement)(Ca,{value:void 0!==t.meta["ast-advanced-hook-users"]&&""!==t.meta["ast-advanced-hook-users"]?t.meta["ast-advanced-hook-users"]:[],onChange:e=>{if(-1===e.indexOf("clflag"))e.push("clflag");else if(0<e.indexOf("clflag")){let t=e.indexOf("clflag");e.splice(t,1)}t.setMetaFieldValue([...e],"ast-advanced-hook-users")}}))))))),(0,e.createElement)("div",{className:"ast-cl-footer-container"},(0,e.createElement)("div",{className:"ast-button-container"},(0,e.createElement)("span",{className:"ast-cl-popup-notice"},(0,e.createElement)("i",{className:"dashicons dashicons-warning"}),c," ")," ",(0,e.createElement)("button",{disabled:d,className:"button button-default",onClick:u}," ",s))))},xa=({items:t,loading:n,fetchGlobalLayoutsData:r,setModalPostID:a})=>{const o=[(0,he.__)("Header","astra-addon"),(0,he.__)("Footer","astra-addon"),(0,he.__)("Hooks","astra-addon"),(0,he.__)("Inside Post/Page","astra-addon"),(0,he.__)("Single","astra-addon"),(0,he.__)("Archive","astra-addon"),(0,he.__)("404","astra-addon")],i={};return o.forEach((e=>{i[e]=[]})),t.forEach((e=>{switch(e.layout_value){case"header":i.Header.push(e);break;case"footer":i.Footer.push(e);break;case"hooks":i.Hooks.push(e);break;case"content":i["Inside Post/Page"].push(e);break;case"template":"single"===e.template_type?i.Single.push(e):"archive"===e.template_type&&i.Archive.push(e);break;case"404-page":i[404].push(e)}})),(0,e.createElement)(e.Fragment,null,o.map(((t,n)=>i&&i[t]&&i[t].length>0&&(0,e.createElement)("div",{className:"ast-tb-category-parent",key:n},(0,e.createElement)("h2",null,t),(0,e.createElement)("div",{className:"ast-tb-canvas-content-row-flex"},i&&i[t]&&i[t].map(((t,n)=>(0,e.createElement)(Oe,{key:n,ID:t.ID,title:t.post_title,icon:!1,layout:t.layout_value,template:t.template_type,enabled:t.enabled,post_status:t.post_status,post_link:t.post_link,edit_post_link:t.edit_post_link,fetchGlobalLayoutsData:r,setModalPostID:a}))))))))},La=({type:t,position:n})=>(0,e.createElement)("div",{className:`ast-tb-empty ast-tb-empty-pos-${n}`},(0,e.createElement)("div",{className:"ast-tb-empty-icon"},(0,e.createElement)("svg",{width:"40",height:"46",viewBox:"0 0 40 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{filter:"url(#filter0_dd_7338_14794)"},(0,e.createElement)("path",{d:"M4 6C4 3.79086 5.79086 2 8 2H24L36 14V38C36 40.2091 34.2091 42 32 42H8C5.79086 42 4 40.2091 4 38V6Z",fill:"#046BD2"}),(0,e.createElement)("path",{opacity:"0.3",d:"M24 2L36 14H28C25.7909 14 24 12.2091 24 10V2Z",fill:"white"}),(0,e.createElement)("path",{d:"M20.6693 22.6667L19.9256 21.1793C19.7115 20.7512 19.6045 20.5372 19.4449 20.3808C19.3037 20.2425 19.1335 20.1373 18.9467 20.0729C18.7354 20 18.4961 20 18.0175 20H15.4693C14.7225 20 14.3492 20 14.064 20.1453C13.8131 20.2732 13.6091 20.4771 13.4813 20.728C13.3359 21.0132 13.3359 21.3866 13.3359 22.1333V22.6667M13.3359 22.6667H23.4693C24.5894 22.6667 25.1494 22.6667 25.5773 22.8847C25.9536 23.0764 26.2595 23.3824 26.4513 23.7587C26.6693 24.1865 26.6693 24.7466 26.6693 25.8667V28.8C26.6693 29.9201 26.6693 30.4802 26.4513 30.908C26.2595 31.2843 25.9536 31.5903 25.5773 31.782C25.1494 32 24.5894 32 23.4693 32H16.5359C15.4158 32 14.8558 32 14.428 31.782C14.0516 31.5903 13.7457 31.2843 13.5539 30.908C13.3359 30.4802 13.3359 29.9201 13.3359 28.8V22.6667Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("filter",{id:"filter0_dd_7338_14794",x:"-3",y:"0",width:"46",height:"46",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,e.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,e.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,e.createElement)("feOffset",{dy:"1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"1"}),(0,e.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.06 0"}),(0,e.createElement)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7338_14794"}),(0,e.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,e.createElement)("feOffset",{dy:"1"}),(0,e.createElement)("feGaussianBlur",{stdDeviation:"1.5"}),(0,e.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.1 0"}),(0,e.createElement)("feBlend",{mode:"normal",in2:"effect1_dropShadow_7338_14794",result:"effect2_dropShadow_7338_14794"}),(0,e.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_7338_14794",result:"shape"}))))),(0,e.createElement)("div",{className:"ast-tb-empty-text"},(0,e.createElement)("h3",null,(0,he.__)("No Layouts Found","astra-addon")),(0,e.createElement)("p",null,`No templates found for ${t}. Want to create one?...`)),(0,e.createElement)("div",{className:"ast-tb-empty-btn"},(()=>{const t=new URLSearchParams(G().search),n=t.get("page"),r=t.get("path");if("theme-builder"===n&&"all-layouts"===r||"theme-builder"===n&&null===r)return(0,e.createElement)(Ce,{to:{search:"?page=theme-builder&path=create-new"},className:"ast-tb-link"},(0,e.createElement)("button",{className:"ast-tb-btn ast-tb-btn-primary",onClick:()=>setShowGlobalLayouts(!1)},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.0013 4.1665V15.8332M4.16797 9.99984H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})),"Create New"));{let t="";return t="single"===r||"archive"===r?astra_theme_builder.new_custom_layout_base_url+"&type=template&template_type="+r:astra_theme_builder.new_custom_layout_base_url+"&type="+r,(0,e.createElement)("button",{className:"ast-tb-btn ast-tb-btn-primary",onClick:()=>{window.location.href=t}},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.0013 4.1665V15.8332M4.16797 9.99984H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})),(0,he.__)("Create New","astra-addon"))}})()));var Ma=n(420),ka=n.n(Ma);function _a(e){return _a="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},_a(e)}function Sa(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Da(e){Sa(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_a(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Oa(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Pa(e){Sa(1,arguments);var t=Da(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Ta(e){Sa(1,arguments);var t=Da(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=Pa(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=Pa(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}var Fa={};function Va(){return Fa}function Ha(e,t){var n,r,a,o,i,l,s,c;Sa(1,arguments);var u=Va(),d=Oa(null!==(n=null!==(r=null!==(a=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:u.weekStartsOn)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Da(e),p=h.getUTCDay(),f=(p<d?7:0)+p-d;return h.setUTCDate(h.getUTCDate()-f),h.setUTCHours(0,0,0,0),h}function Na(e,t){var n,r,a,o,i,l,s,c;Sa(1,arguments);var u=Da(e),d=u.getUTCFullYear(),h=Va(),p=Oa(null!==(n=null!==(r=null!==(a=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==a?a:h.firstWeekContainsDate)&&void 0!==r?r:null===(s=h.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,p),f.setUTCHours(0,0,0,0);var m=Ha(f,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=Ha(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function Ia(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Za={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Ia("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ia(n+1,2)},d:function(e,t){return Ia(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ia(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ia(e.getUTCHours(),t.length)},m:function(e,t){return Ia(e.getUTCMinutes(),t.length)},s:function(e,t){return Ia(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Ia(Math.floor(r*Math.pow(10,n-3)),t.length)}};const Ra=Za;var Aa={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Ra.y(e,t)},Y:function(e,t,n,r){var a=Na(e,r),o=a>0?a:1-a;return"YY"===t?Ia(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Ia(o,t.length)},R:function(e,t){return Ia(Ta(e),t.length)},u:function(e,t){return Ia(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ia(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ia(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Ra.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Ia(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=function(e,t){Sa(1,arguments);var n=Da(e),r=Ha(n,t).getTime()-function(e,t){var n,r,a,o,i,l,s,c;Sa(1,arguments);var u=Va(),d=Oa(null!==(n=null!==(r=null!==(a=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(i=t.locale)||void 0===i||null===(l=i.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==a?a:u.firstWeekContainsDate)&&void 0!==r?r:null===(s=u.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=Na(e,t),p=new Date(0);return p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0),Ha(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Ia(a,t.length)},I:function(e,t,n){var r=function(e){Sa(1,arguments);var t=Da(e),n=Pa(t).getTime()-function(e){Sa(1,arguments);var t=Ta(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Pa(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ia(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ra.d(e,t)},D:function(e,t,n){var r=function(e){Sa(1,arguments);var t=Da(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ia(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ia(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ia(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return Ia(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ra.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ra.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ia(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ia(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ra.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ra.s(e,t)},S:function(e,t){return Ra.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return ja(a);case"XXXX":case"XX":return Ua(a);default:return Ua(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ja(a);case"xxxx":case"xx":return Ua(a);default:return Ua(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ba(a,":");default:return"GMT"+Ua(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ba(a,":");default:return"GMT"+Ua(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return Ia(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return Ia((r._originalDate||e).getTime(),t.length)}};function Ba(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+Ia(o,2)}function ja(e,t){return e%60==0?(e>0?"-":"+")+Ia(Math.abs(e)/60,2):Ua(e,t)}function Ua(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+Ia(Math.floor(a/60),2)+n+Ia(a%60,2)}const Wa=Aa;var za=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},$a=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const Ga={p:$a,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return za(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",za(a,t)).replace("{{time}}",$a(o,t))}};var Ya=["D","DD"],qa=["YY","YYYY"];function Xa(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Qa={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ja(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ka={date:Ja({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ja({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ja({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var eo={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function to(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var i=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const no={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:to({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:to({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:to({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:to({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:to({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ro(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,l=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e){for(var t=0;t<e.length;t++)if(e[t].test(l))return t}(s):function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].test(l))return t}(s);return i=e.valueCallback?e.valueCallback(c):c,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(l.length)}}}var ao,oo={ordinalNumber:(ao={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(ao.matchPattern);if(!n)return null;var r=n[0],a=e.match(ao.parsePattern);if(!a)return null;var o=ao.valueCallback?ao.valueCallback(a[0]):a[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:ro({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ro({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ro({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ro({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ro({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const io={code:"en-US",formatDistance:function(e,t,n){var r,a=Qa[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Ka,formatRelative:function(e,t,n,r){return eo[e]},localize:no,match:oo,options:{weekStartsOn:0,firstWeekContainsDate:1}};var lo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,so=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,co=/^'([^]*?)'?$/,uo=/''/g,ho=/[a-zA-Z]/;function po(e,t,n){var r,a,o,i,l,s,c,u,d,h,p,f,m,g,v,y,b,w;Sa(2,arguments);var C=String(t),E=Va(),x=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:E.locale)&&void 0!==r?r:io,L=Oa(null!==(o=null!==(i=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:E.firstWeekContainsDate)&&void 0!==i?i:null===(d=E.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Oa(null!==(p=null!==(f=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:E.weekStartsOn)&&void 0!==f?f:null===(b=E.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var k=Da(e);if(!function(e){if(Sa(1,arguments),!function(e){return Sa(1,arguments),e instanceof Date||"object"===_a(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Da(e);return!isNaN(Number(t))}(k))throw new RangeError("Invalid time value");var _=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),S=function(e,t){return Sa(2,arguments),function(e,t){Sa(2,arguments);var n=Da(e).getTime(),r=Oa(t);return new Date(n+r)}(e,-Oa(t))}(k,_),D={firstWeekContainsDate:L,weekStartsOn:M,locale:x,_originalDate:k},O=C.match(so).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ga[t])(e,x.formatLong):e})).join("").match(lo).map((function(r){if("''"===r)return"'";var a,o,i=r[0];if("'"===i)return(o=(a=r).match(co))?o[1].replace(uo,"'"):a;var l=Wa[i];if(l)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==qa.indexOf(e)}(r)||Xa(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==Ya.indexOf(e)}(r)||Xa(r,t,String(e)),l(S,r,x.localize,D);if(i.match(ho))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return O}function fo(e){return po(new Date(e),"MMMM d, yyyy")}const mo=({isOpen:t,onCancel:n,onDelete:r})=>t?(0,e.createElement)("div",{className:"ast-tb-modal-overlay"},(0,e.createElement)("div",{className:"ast-tb-delete-modal"},(0,e.createElement)("div",{className:"ast-tb-delete-modal-content"},(0,e.createElement)("h2",null,(0,he.__)("Move to Trash","astra-addon")),(0,e.createElement)("p",null,(0,he.__)("Are you sure you want to move this item to Trash?","astra-addon")),(0,e.createElement)("div",{className:"ast-tb-delete-modal-options"},(0,e.createElement)("button",{className:"ast-tb-delete-modal-btns",onClick:r},(0,he.__)("Move to Trash","astra-addon")),(0,e.createElement)("button",{className:"ast-tb-delete-modal-btns",onClick:n},(0,he.__)("Cancel","astra-addon")))))):null,go=({ID:t,post_title:n,author_name:r,author_image:a,post_modified:o,post_status:i,enabled:l,post_link:s,edit_post_link:c,onDelete:u,type:d,fetchGlobalLayoutsData:h,setModalPostID:p})=>{const[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)(!1),[y,b]=(0,e.useState)(!1),[w,C]=(0,e.useState)("yes"===l||""===l),E=()=>{v(!0)},x=()=>{v(!1)},[L,M]=(0,e.useState)(!1),k=()=>{M(!1)},_=(0,e.useRef)(null),[S,D]=(0,e.useState)(1),[O,P]=(0,e.useState)(0),[T,F]=(0,e.useState)(!0),V=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=_.current.clientWidth/1200;D(e),P(_.current.clientHeight/e),V&&V.current&&(V.current.onload=()=>{(()=>{const e=V.current.contentDocument;if(e){const t=e.getElementById("wpadminbar"),n=e.querySelector(".site-header"),r=e.getElementById("colophon");e&&e.body&&(e.body.style.pointerEvents="none"),t&&t.remove(),r&&r.remove(),n&&n.remove()}})(),setTimeout((()=>{V&&V.current&&(F(!1),V.current.style.display="block")}),800)})}),[]),(0,e.createElement)("div",{className:"ast-tb-layout-preview-card",onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)}},f&&(0,e.createElement)("button",{className:"ast-tb-preview-card-hover-btn",onClick:()=>window.open(c,"_self")},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("mask",{id:"path-1-inside-1_7535_8810",fill:"white"},(0,e.createElement)("path",{d:"M16.2618 18.9188C16.2618 18.9614 16.2458 19.0022 16.2173 19.0322C16.1887 19.0623 16.15 19.0792 16.1096 19.0792H5.47535C5.43498 19.0792 5.39626 19.0623 5.36771 19.0322C5.33916 19.0022 5.32312 18.9614 5.32312 18.9188V7.71491C5.32312 7.67237 5.33916 7.63157 5.36771 7.6015C5.39626 7.57142 5.43498 7.55452 5.47535 7.55452H12.0167L13.8398 5.63374H5.47535C4.9516 5.63425 4.44945 5.85368 4.0791 6.24386C3.70875 6.63404 3.50048 7.1631 3.5 7.71491V18.9188C3.50048 19.4706 3.70875 19.9997 4.0791 20.3899C4.44945 20.7801 4.9516 20.9995 5.47535 21H16.1096C16.6334 20.9995 17.1355 20.7801 17.5059 20.3899C17.8762 19.9997 18.0845 19.4706 18.085 18.9188V12.0271L16.2618 13.9478V18.9188Z"}),(0,e.createElement)("path",{d:"M20.6957 3.84357C20.1828 3.30343 19.4874 3 18.7623 3C18.0371 3 17.3417 3.30343 16.8288 3.84357L9.73781 11.3135C9.61071 11.4476 9.52412 11.6184 9.48895 11.8043L8.84448 15.2002C8.81744 15.3397 8.8202 15.4839 8.85256 15.6222C8.88493 15.7605 8.94608 15.8894 9.03159 15.9998C9.1171 16.1101 9.22483 16.199 9.34697 16.26C9.46912 16.321 9.60262 16.3527 9.73781 16.3527C9.79898 16.3525 9.86 16.3463 9.92012 16.3344L13.1425 15.6554C13.319 15.6181 13.4811 15.5265 13.6083 15.3923L20.6984 7.92235C20.9528 7.65454 21.1545 7.33651 21.292 6.98646C21.4296 6.63641 21.5003 6.26122 21.5 5.88236C21.4997 5.5035 21.4286 5.12842 21.2906 4.77857C21.1525 4.42873 20.9504 4.111 20.6957 3.84357ZM19.4067 5.20156C19.4915 5.29076 19.5587 5.39668 19.6046 5.51327C19.6505 5.62986 19.6741 5.75483 19.6741 5.88104C19.6741 6.00725 19.6505 6.13222 19.6046 6.24881C19.5587 6.3654 19.4915 6.47132 19.4067 6.56052L18.9181 7.07433L17.6292 5.71633L18.1178 5.20156C18.2887 5.02152 18.5205 4.92037 18.7623 4.92037C19.004 4.92037 19.2358 5.02152 19.4067 5.20156ZM12.5117 13.8249L10.9 14.1649L11.2227 12.466L16.3402 7.07433L17.6292 8.43232L12.5117 13.8249Z"})),(0,e.createElement)("path",{d:"M16.2618 18.9188C16.2618 18.9614 16.2458 19.0022 16.2173 19.0322C16.1887 19.0623 16.15 19.0792 16.1096 19.0792H5.47535C5.43498 19.0792 5.39626 19.0623 5.36771 19.0322C5.33916 19.0022 5.32312 18.9614 5.32312 18.9188V7.71491C5.32312 7.67237 5.33916 7.63157 5.36771 7.6015C5.39626 7.57142 5.43498 7.55452 5.47535 7.55452H12.0167L13.8398 5.63374H5.47535C4.9516 5.63425 4.44945 5.85368 4.0791 6.24386C3.70875 6.63404 3.50048 7.1631 3.5 7.71491V18.9188C3.50048 19.4706 3.70875 19.9997 4.0791 20.3899C4.44945 20.7801 4.9516 20.9995 5.47535 21H16.1096C16.6334 20.9995 17.1355 20.7801 17.5059 20.3899C17.8762 19.9997 18.0845 19.4706 18.085 18.9188V12.0271L16.2618 13.9478V18.9188Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M20.6957 3.84357C20.1828 3.30343 19.4874 3 18.7623 3C18.0371 3 17.3417 3.30343 16.8288 3.84357L9.73781 11.3135C9.61071 11.4476 9.52412 11.6184 9.48895 11.8043L8.84448 15.2002C8.81744 15.3397 8.8202 15.4839 8.85256 15.6222C8.88493 15.7605 8.94608 15.8894 9.03159 15.9998C9.1171 16.1101 9.22483 16.199 9.34697 16.26C9.46912 16.321 9.60262 16.3527 9.73781 16.3527C9.79898 16.3525 9.86 16.3463 9.92012 16.3344L13.1425 15.6554C13.319 15.6181 13.4811 15.5265 13.6083 15.3923L20.6984 7.92235C20.9528 7.65454 21.1545 7.33651 21.292 6.98646C21.4296 6.63641 21.5003 6.26122 21.5 5.88236C21.4997 5.5035 21.4286 5.12842 21.2906 4.77857C21.1525 4.42873 20.9504 4.111 20.6957 3.84357ZM19.4067 5.20156C19.4915 5.29076 19.5587 5.39668 19.6046 5.51327C19.6505 5.62986 19.6741 5.75483 19.6741 5.88104C19.6741 6.00725 19.6505 6.13222 19.6046 6.24881C19.5587 6.3654 19.4915 6.47132 19.4067 6.56052L18.9181 7.07433L17.6292 5.71633L18.1178 5.20156C18.2887 5.02152 18.5205 4.92037 18.7623 4.92037C19.004 4.92037 19.2358 5.02152 19.4067 5.20156ZM12.5117 13.8249L10.9 14.1649L11.2227 12.466L16.3402 7.07433L17.6292 8.43232L12.5117 13.8249Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M12.0167 7.55452V8.55452H12.4463L12.742 8.24295L12.0167 7.55452ZM13.8398 5.63374L14.5651 6.32217L16.1677 4.63374H13.8398V5.63374ZM5.47535 5.63374V4.63374L5.47438 4.63374L5.47535 5.63374ZM3.5 7.71491L2.5 7.71403V7.71491H3.5ZM3.5 18.9188H2.5L2.5 18.9197L3.5 18.9188ZM5.47535 21L5.47438 22H5.47535V21ZM16.1096 21V22L16.1106 22L16.1096 21ZM18.085 18.9188L19.085 18.9197V18.9188H18.085ZM18.085 12.0271H19.085V9.52091L17.3597 11.3386L18.085 12.0271ZM16.2618 13.9478L15.5365 13.2594L15.2618 13.5488V13.9478H16.2618ZM20.6957 3.84357L19.9705 4.53211L19.9716 4.53325L20.6957 3.84357ZM16.8288 3.84357L16.1036 3.15503L16.1036 3.15509L16.8288 3.84357ZM9.73781 11.3135L9.01255 10.625L9.01192 10.6257L9.73781 11.3135ZM9.48895 11.8043L10.4714 11.9907L10.4715 11.9902L9.48895 11.8043ZM8.84448 15.2002L9.82623 15.3904L9.82694 15.3866L8.84448 15.2002ZM9.03159 15.9998L9.82195 15.3871L9.03159 15.9998ZM9.73781 16.3527L9.73802 17.3527L9.74125 17.3527L9.73781 16.3527ZM9.92012 16.3344L10.1148 17.3154L10.1263 17.3129L9.92012 16.3344ZM13.1425 15.6554L13.3487 16.6339L13.3493 16.6338L13.1425 15.6554ZM13.6083 15.3923L12.883 14.7038L12.8823 14.7045L13.6083 15.3923ZM20.6984 7.92235L19.9733 7.23369L19.9731 7.23392L20.6984 7.92235ZM21.292 6.98646L22.2228 7.35218L21.292 6.98646ZM19.4067 5.20156L18.6815 5.8901L18.6818 5.89039L19.4067 5.20156ZM19.4067 6.56052L20.1314 7.24962L20.1316 7.24935L19.4067 6.56052ZM18.9181 7.07433L18.1928 7.76275L18.9174 8.5262L19.6428 7.76343L18.9181 7.07433ZM17.6292 5.71633L16.9039 5.0279L16.2505 5.71633L16.9039 6.40476L17.6292 5.71633ZM18.1178 5.20156L17.3926 4.51303L17.3925 4.51314L18.1178 5.20156ZM12.5117 13.8249L12.7181 14.8034L13.0227 14.7391L13.2371 14.5133L12.5117 13.8249ZM10.9 14.1649L9.91761 13.9783L9.63746 15.4532L11.1065 15.1434L10.9 14.1649ZM11.2227 12.466L10.4974 11.7775L10.2951 11.9907L10.2403 12.2794L11.2227 12.466ZM16.3402 7.07433L17.0655 6.3859L16.3402 5.62174L15.6149 6.3859L16.3402 7.07433ZM17.6292 8.43232L18.3545 9.12068L19.0079 8.43226L18.3545 7.74389L17.6292 8.43232ZM15.2618 18.9188C15.2618 18.7125 15.3392 18.5048 15.492 18.3438L16.9426 19.7207C17.1525 19.4995 17.2618 19.2102 17.2618 18.9188H15.2618ZM15.492 18.3438C15.6464 18.1811 15.8674 18.0792 16.1096 18.0792V20.0792C16.4326 20.0792 16.731 19.9436 16.9426 19.7207L15.492 18.3438ZM16.1096 18.0792H5.47535V20.0792H16.1096V18.0792ZM5.47535 18.0792C5.71754 18.0792 5.93854 18.1811 6.09301 18.3438L4.6424 19.7207C4.85397 19.9436 5.15241 20.0792 5.47535 20.0792V18.0792ZM6.09301 18.3438C6.24581 18.5048 6.32312 18.7125 6.32312 18.9188H4.32312C4.32312 19.2102 4.43251 19.4995 4.6424 19.7207L6.09301 18.3438ZM6.32312 18.9188V7.71491H4.32312V18.9188H6.32312ZM6.32312 7.71491C6.32312 7.92123 6.24581 8.12894 6.09301 8.28992L4.6424 6.91307C4.4325 7.13421 4.32312 7.4235 4.32312 7.71491H6.32312ZM6.09301 8.28992C5.93853 8.45268 5.71753 8.55452 5.47535 8.55452V6.55452C5.15243 6.55452 4.85398 6.69016 4.6424 6.91307L6.09301 8.28992ZM5.47535 8.55452H12.0167V6.55452H5.47535V8.55452ZM12.742 8.24295L14.5651 6.32217L13.1145 4.94531L11.2914 6.86609L12.742 8.24295ZM13.8398 4.63374H5.47535V6.63374H13.8398V4.63374ZM5.47438 4.63374C4.66843 4.63452 3.90695 4.97265 3.35379 5.55543L4.80441 6.93229C4.99195 6.7347 5.23478 6.63397 5.47632 6.63374L5.47438 4.63374ZM3.35379 5.55543C2.80232 6.13645 2.5007 6.91365 2.5 7.71403L4.5 7.71578C4.50026 7.41255 4.61519 7.13164 4.80441 6.93229L3.35379 5.55543ZM2.5 7.71491V18.9188H4.5V7.71491H2.5ZM2.5 18.9197C2.5007 19.7201 2.80232 20.4973 3.35379 21.0783L4.80441 19.7015C4.61519 19.5021 4.50026 19.2212 4.5 18.918L2.5 18.9197ZM3.35379 21.0783C3.90695 21.6611 4.66843 21.9992 5.47438 22L5.47632 20C5.23478 19.9998 4.99195 19.899 4.80441 19.7015L3.35379 21.0783ZM5.47535 22H16.1096V20H5.47535V22ZM16.1106 22C16.9165 21.9992 17.678 21.6611 18.2312 21.0783L16.7806 19.7015C16.593 19.899 16.3502 19.9998 16.1086 20L16.1106 22ZM18.2312 21.0783C18.7826 20.4973 19.0843 19.7201 19.085 18.9197L17.085 18.918C17.0847 19.2212 16.9698 19.5021 16.7806 19.7015L18.2312 21.0783ZM19.085 18.9188V12.0271H17.085V18.9188H19.085ZM17.3597 11.3386L15.5365 13.2594L16.9871 14.6363L18.8103 12.7155L17.3597 11.3386ZM15.2618 13.9478V18.9188H17.2618V13.9478H15.2618ZM21.4209 3.15503C20.725 2.42212 19.7699 2 18.7623 2V4C19.2049 4 19.6407 4.18474 19.9705 4.53211L21.4209 3.15503ZM18.7623 2C17.7546 2 16.7995 2.42212 16.1036 3.15503L17.554 4.53211C17.8838 4.18474 18.3196 4 18.7623 4V2ZM16.1036 3.15509L9.01255 10.625L10.4631 12.002L17.5541 4.53204L16.1036 3.15509ZM9.01192 10.6257C8.74963 10.9025 8.57632 11.2487 8.50639 11.6183L10.4715 11.9902C10.4716 11.9895 10.4717 11.99 10.4708 11.9917C10.4699 11.9934 10.4679 11.9969 10.4637 12.0013L9.01192 10.6257ZM8.50649 11.6178L7.86201 15.0137L9.82694 15.3866L10.4714 11.9907L8.50649 11.6178ZM7.86273 15.01C7.80891 15.2878 7.81436 15.5744 7.87887 15.85L9.82626 15.3943C9.82604 15.3934 9.82597 15.3917 9.82622 15.3904L7.86273 15.01ZM7.87887 15.85C7.94339 16.1257 8.06609 16.3864 8.24123 16.6124L9.82195 15.3871C9.82607 15.3924 9.82646 15.3952 9.82626 15.3943L7.87887 15.85ZM8.24123 16.6124C8.4165 16.8385 8.64064 17.0249 8.89996 17.1545L9.79399 15.3655C9.80902 15.373 9.8177 15.3816 9.82195 15.3871L8.24123 16.6124ZM8.89996 17.1545C9.15952 17.2842 9.44598 17.3527 9.73802 17.3527L9.73759 15.3527C9.75926 15.3527 9.77871 15.3578 9.79399 15.3655L8.89996 17.1545ZM9.74125 17.3527C9.86673 17.3522 9.99178 17.3397 10.1148 17.3153L9.72548 15.3535C9.72822 15.353 9.73122 15.3527 9.73436 15.3527L9.74125 17.3527ZM10.1263 17.3129L13.3487 16.6339L12.9363 14.6769L9.71393 15.3559L10.1263 17.3129ZM13.3493 16.6338C13.7296 16.5534 14.0712 16.3576 14.3342 16.08L12.8823 14.7045C12.891 14.6954 12.9084 14.6828 12.9356 14.6771L13.3493 16.6338ZM14.3336 16.0807L21.4237 8.61078L19.9731 7.23392L12.883 14.7038L14.3336 16.0807ZM21.4235 8.61101C21.7682 8.24807 22.039 7.81987 22.2228 7.35218L20.3613 6.62075C20.27 6.85315 20.1373 7.06101 19.9733 7.23369L21.4235 8.61101ZM22.2228 7.35218C22.4065 6.88455 22.5003 6.385 22.5 5.88169L20.5 5.88303C20.5002 6.13744 20.4527 6.38828 20.3613 6.62075L22.2228 7.35218ZM22.5 5.88169C22.4997 5.37838 22.4052 4.87896 22.2208 4.41159L20.3603 5.14556C20.452 5.37787 20.4998 5.62863 20.5 5.88303L22.5 5.88169ZM22.2208 4.41159C22.0364 3.94415 21.765 3.51633 21.4198 3.15389L19.9716 4.53325C20.1358 4.70566 20.2687 4.9133 20.3603 5.14556L22.2208 4.41159ZM18.6818 5.89039C18.6762 5.88453 18.6744 5.88037 18.674 5.87941L20.5351 5.14713C20.443 4.91299 20.3067 4.69699 20.1316 4.51273L18.6818 5.89039ZM18.674 5.87941C18.6737 5.8785 18.6741 5.8792 18.6741 5.88104H20.6741C20.6741 5.63045 20.6272 5.38121 20.5351 5.14713L18.674 5.87941ZM18.6741 5.88104C18.6741 5.88287 18.6737 5.88357 18.674 5.88267L20.5351 6.61495C20.6272 6.38087 20.6741 6.13163 20.6741 5.88104H18.6741ZM18.674 5.88267C18.6744 5.88171 18.6762 5.87755 18.6818 5.87169L20.1316 7.24935C20.3067 7.06509 20.443 6.84909 20.5351 6.61495L18.674 5.88267ZM18.6821 5.87141L18.1935 6.38522L19.6428 7.76343L20.1314 7.24962L18.6821 5.87141ZM19.6434 6.3859L18.3545 5.0279L16.9039 6.40476L18.1928 7.76275L19.6434 6.3859ZM18.3545 6.40476L18.8431 5.88999L17.3925 4.51314L16.9039 5.0279L18.3545 6.40476ZM18.843 5.8901C18.8309 5.90283 18.803 5.92037 18.7623 5.92037V3.92037C18.238 3.92037 17.7465 4.14021 17.3926 4.51303L18.843 5.8901ZM18.7623 5.92037C18.7215 5.92037 18.6936 5.90283 18.6815 5.8901L20.1319 4.51303C19.778 4.14021 19.2865 3.92037 18.7623 3.92037V5.92037ZM12.3053 12.8465L10.6936 13.1864L11.1065 15.1434L12.7181 14.8034L12.3053 12.8465ZM11.8825 14.3515L12.2052 12.6526L10.2403 12.2794L9.91761 13.9783L11.8825 14.3515ZM11.948 13.1544L17.0655 7.76275L15.6149 6.3859L10.4974 11.7775L11.948 13.1544ZM15.6149 7.76275L16.9039 9.12075L18.3545 7.74389L17.0655 6.3859L15.6149 7.76275ZM16.9038 7.74396L11.7863 13.1366L13.2371 14.5133L18.3545 9.12068L16.9038 7.74396Z",fill:"white",mask:"url(#path-1-inside-1_7535_8810)"})),(0,he.__)("Edit","astra-addon")),(0,e.createElement)("div",{className:"ast-tb-layout-preview-body"},(0,e.createElement)("div",{ref:_,className:`ast-tb__preview-iframe ast-tb__preview-iframe__${d}`},(0,e.createElement)(ka(),{color:"silver",loading:T,size:50,"aria-label":"Loading Spinner","data-testid":"loader",className:"ast-iframe-spinner"}),(0,e.createElement)("iframe",{title:"preview",src:s,ref:V,className:"ast-tb__preview-iframe__iframe",style:{transform:`scale(${S})`,height:O,width:1200,display:"none"}}))),(0,e.createElement)("div",{className:"ast-tb-layout-preview-footer"},(0,e.createElement)("div",{className:"ast-tb-preview-info"},w&&"publish"===i?(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#17B26A"})):(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#94A3B8"})),(0,e.createElement)("h3",{className:"ast-tb-card-title"},n?(H=n).length>20?H.substring(0,20)+"...":H:"(untitled)",i&&"publish"!==i?` (${i})`:"")),(0,e.createElement)("div",{className:"ast-tb-preview-card-actions"},(0,e.createElement)("div",{className:"ast-tb-preview-actions-author"},(0,e.createElement)("img",{className:"ast-tb-preview-actions-author-avatar",src:a||""}),(0,e.createElement)("span",{className:"ast-tb-preview-actions-author-name"},r||"")),(0,e.createElement)("div",{className:"ast-tb-preview-actions-date"},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_7302_7183)"},(0,e.createElement)("path",{d:"M4 3.5V1.5M8 3.5V1.5M3.5 5.5H8.5M2.5 10.5H9.5C10.0523 10.5 10.5 10.0523 10.5 9.5V3.5C10.5 2.94772 10.0523 2.5 9.5 2.5H2.5C1.94772 2.5 1.5 2.94772 1.5 3.5V9.5C1.5 10.0523 1.94772 10.5 2.5 10.5Z",stroke:"#1E293B",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_7302_7183"},(0,e.createElement)("rect",{width:"12",height:"12",fill:"white"})))),(0,e.createElement)("span",{className:"ast-tb-preview-actions-date-text"},o?fo(o):"")),(0,e.createElement)("button",{className:"ast-tb-preview-actions-btn",onClick:()=>{M(!0)}},g?(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:E,onMouseLeave:x},(0,e.createElement)("path",{d:"M14.25 5.25L13.5995 14.3569C13.5434 15.1418 12.8903 15.75 12.1033 15.75H5.89668C5.10972 15.75 4.45656 15.1418 4.40049 14.3569L3.75 5.25M7.5 8.25V12.75M10.5 8.25V12.75M11.25 5.25V3C11.25 2.58579 10.9142 2.25 10.5 2.25H7.5C7.08579 2.25 6.75 2.58579 6.75 3V5.25M3 5.25H15",stroke:"#F87171",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:E,onMouseLeave:x},(0,e.createElement)("path",{d:"M14.25 5.25L13.5995 14.3569C13.5434 15.1418 12.8903 15.75 12.1033 15.75H5.89668C5.10972 15.75 4.45656 15.1418 4.40049 14.3569L3.75 5.25M7.5 8.25V12.75M10.5 8.25V12.75M11.25 5.25V3C11.25 2.58579 10.9142 2.25 10.5 2.25H7.5C7.08579 2.25 6.75 2.58579 6.75 3V5.25M3 5.25H15",stroke:"#9CA3AF",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)(De,{options:[{label:w?(0,he.__)("Disable","astra-addon"):(0,he.__)("Enable","astra-addon"),onClick:()=>{const e=w?"no":"yes",n=new XMLHttpRequest,r=astra_theme_builder.quick_view.url+"?action=ast_advanced_hook_display_toggle&post_id="+t+"&enable="+e+"&nonce="+astra_theme_builder.quick_view.nonce;n.open("GET",r),n.send(),C(!w),h()}},{label:(0,he.__)("Preview","astra-addon"),onClick:()=>window.location.href=s},{label:y?(0,he.__)("Copied","astra-addon"):(0,he.__)("Copy Shortcode","astra-addon"),onClick:()=>{const e=document.createElement("input");e.setAttribute("value",`[astra_custom_layout id=${t}]`),document.body.appendChild(e),e.select(),document.execCommand("copy")&&(document.body.removeChild(e),b(!0),setTimeout((()=>{b(!1)}),2e3))}},{label:(0,he.__)("Display Conditions","astra-addon"),onClick:e=>{p(t),e(!1)}}]})),(0,e.createElement)(mo,{isOpen:L,onCancel:k,onDelete:()=>{var e={method:"DELETE",redirect:"follow",headers:{"X-WP-Nonce":astra_theme_builder.nonce}};fetch(astra_theme_builder.rest_url+t,e).then((e=>e.text())).then((e=>{u()})).catch((e=>{console.log(e),window.location.href=astra_theme_builder.admin_url})),k()}}));var H},vo=({ID:t,post_title:n,author_name:r,author_image:a,post_modified:o,post_status:i,enabled:l,post_link:s,edit_post_link:c,onDelete:u,type:d,fetchGlobalLayoutsData:h,setModalPostID:p})=>{const[f,m]=(0,e.useState)(!1),[g,v]=(0,e.useState)("yes"===l||""===l),[y,b]=(0,e.useState)(!1),w=()=>{b(!1)},[C,E]=(0,e.useState)(!1),[x,L]=(0,e.useState)(!1),M=()=>{L(!0)},k=()=>{L(!1)},_=(0,e.useRef)(null),[S,D]=(0,e.useState)(1),[O,P]=(0,e.useState)(0),[T,F]=(0,e.useState)(!0),V=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=_.current.clientWidth/1200;D(e),P(_.current.clientHeight/e),V&&V.current&&(V.current.onload=()=>{(()=>{const e=V.current.contentDocument;if(e){const t=e.getElementById("wpadminbar"),n=e.querySelector(".site-header"),r=e.getElementById("colophon");e&&e.body&&(e.body.style.pointerEvents="none"),t&&t.remove(),r&&r.remove(),n&&n.remove()}})(),setTimeout((()=>{V&&V.current&&(F(!1),V.current.style.display="block")}),800)})}),[]),(0,e.createElement)("div",{className:"ast-tb-layout-preview-card",onMouseEnter:()=>{E(!0)},onMouseLeave:()=>{E(!1)}},C&&(0,e.createElement)("button",{className:"ast-tb-preview-card-hover-btn",onClick:()=>window.open(c,"_self")},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("mask",{id:"path-1-inside-1_7535_8810",fill:"white"},(0,e.createElement)("path",{d:"M16.2618 18.9188C16.2618 18.9614 16.2458 19.0022 16.2173 19.0322C16.1887 19.0623 16.15 19.0792 16.1096 19.0792H5.47535C5.43498 19.0792 5.39626 19.0623 5.36771 19.0322C5.33916 19.0022 5.32312 18.9614 5.32312 18.9188V7.71491C5.32312 7.67237 5.33916 7.63157 5.36771 7.6015C5.39626 7.57142 5.43498 7.55452 5.47535 7.55452H12.0167L13.8398 5.63374H5.47535C4.9516 5.63425 4.44945 5.85368 4.0791 6.24386C3.70875 6.63404 3.50048 7.1631 3.5 7.71491V18.9188C3.50048 19.4706 3.70875 19.9997 4.0791 20.3899C4.44945 20.7801 4.9516 20.9995 5.47535 21H16.1096C16.6334 20.9995 17.1355 20.7801 17.5059 20.3899C17.8762 19.9997 18.0845 19.4706 18.085 18.9188V12.0271L16.2618 13.9478V18.9188Z"}),(0,e.createElement)("path",{d:"M20.6957 3.84357C20.1828 3.30343 19.4874 3 18.7623 3C18.0371 3 17.3417 3.30343 16.8288 3.84357L9.73781 11.3135C9.61071 11.4476 9.52412 11.6184 9.48895 11.8043L8.84448 15.2002C8.81744 15.3397 8.8202 15.4839 8.85256 15.6222C8.88493 15.7605 8.94608 15.8894 9.03159 15.9998C9.1171 16.1101 9.22483 16.199 9.34697 16.26C9.46912 16.321 9.60262 16.3527 9.73781 16.3527C9.79898 16.3525 9.86 16.3463 9.92012 16.3344L13.1425 15.6554C13.319 15.6181 13.4811 15.5265 13.6083 15.3923L20.6984 7.92235C20.9528 7.65454 21.1545 7.33651 21.292 6.98646C21.4296 6.63641 21.5003 6.26122 21.5 5.88236C21.4997 5.5035 21.4286 5.12842 21.2906 4.77857C21.1525 4.42873 20.9504 4.111 20.6957 3.84357ZM19.4067 5.20156C19.4915 5.29076 19.5587 5.39668 19.6046 5.51327C19.6505 5.62986 19.6741 5.75483 19.6741 5.88104C19.6741 6.00725 19.6505 6.13222 19.6046 6.24881C19.5587 6.3654 19.4915 6.47132 19.4067 6.56052L18.9181 7.07433L17.6292 5.71633L18.1178 5.20156C18.2887 5.02152 18.5205 4.92037 18.7623 4.92037C19.004 4.92037 19.2358 5.02152 19.4067 5.20156ZM12.5117 13.8249L10.9 14.1649L11.2227 12.466L16.3402 7.07433L17.6292 8.43232L12.5117 13.8249Z"})),(0,e.createElement)("path",{d:"M16.2618 18.9188C16.2618 18.9614 16.2458 19.0022 16.2173 19.0322C16.1887 19.0623 16.15 19.0792 16.1096 19.0792H5.47535C5.43498 19.0792 5.39626 19.0623 5.36771 19.0322C5.33916 19.0022 5.32312 18.9614 5.32312 18.9188V7.71491C5.32312 7.67237 5.33916 7.63157 5.36771 7.6015C5.39626 7.57142 5.43498 7.55452 5.47535 7.55452H12.0167L13.8398 5.63374H5.47535C4.9516 5.63425 4.44945 5.85368 4.0791 6.24386C3.70875 6.63404 3.50048 7.1631 3.5 7.71491V18.9188C3.50048 19.4706 3.70875 19.9997 4.0791 20.3899C4.44945 20.7801 4.9516 20.9995 5.47535 21H16.1096C16.6334 20.9995 17.1355 20.7801 17.5059 20.3899C17.8762 19.9997 18.0845 19.4706 18.085 18.9188V12.0271L16.2618 13.9478V18.9188Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M20.6957 3.84357C20.1828 3.30343 19.4874 3 18.7623 3C18.0371 3 17.3417 3.30343 16.8288 3.84357L9.73781 11.3135C9.61071 11.4476 9.52412 11.6184 9.48895 11.8043L8.84448 15.2002C8.81744 15.3397 8.8202 15.4839 8.85256 15.6222C8.88493 15.7605 8.94608 15.8894 9.03159 15.9998C9.1171 16.1101 9.22483 16.199 9.34697 16.26C9.46912 16.321 9.60262 16.3527 9.73781 16.3527C9.79898 16.3525 9.86 16.3463 9.92012 16.3344L13.1425 15.6554C13.319 15.6181 13.4811 15.5265 13.6083 15.3923L20.6984 7.92235C20.9528 7.65454 21.1545 7.33651 21.292 6.98646C21.4296 6.63641 21.5003 6.26122 21.5 5.88236C21.4997 5.5035 21.4286 5.12842 21.2906 4.77857C21.1525 4.42873 20.9504 4.111 20.6957 3.84357ZM19.4067 5.20156C19.4915 5.29076 19.5587 5.39668 19.6046 5.51327C19.6505 5.62986 19.6741 5.75483 19.6741 5.88104C19.6741 6.00725 19.6505 6.13222 19.6046 6.24881C19.5587 6.3654 19.4915 6.47132 19.4067 6.56052L18.9181 7.07433L17.6292 5.71633L18.1178 5.20156C18.2887 5.02152 18.5205 4.92037 18.7623 4.92037C19.004 4.92037 19.2358 5.02152 19.4067 5.20156ZM12.5117 13.8249L10.9 14.1649L11.2227 12.466L16.3402 7.07433L17.6292 8.43232L12.5117 13.8249Z",fill:"#1F2A37"}),(0,e.createElement)("path",{d:"M12.0167 7.55452V8.55452H12.4463L12.742 8.24295L12.0167 7.55452ZM13.8398 5.63374L14.5651 6.32217L16.1677 4.63374H13.8398V5.63374ZM5.47535 5.63374V4.63374L5.47438 4.63374L5.47535 5.63374ZM3.5 7.71491L2.5 7.71403V7.71491H3.5ZM3.5 18.9188H2.5L2.5 18.9197L3.5 18.9188ZM5.47535 21L5.47438 22H5.47535V21ZM16.1096 21V22L16.1106 22L16.1096 21ZM18.085 18.9188L19.085 18.9197V18.9188H18.085ZM18.085 12.0271H19.085V9.52091L17.3597 11.3386L18.085 12.0271ZM16.2618 13.9478L15.5365 13.2594L15.2618 13.5488V13.9478H16.2618ZM20.6957 3.84357L19.9705 4.53211L19.9716 4.53325L20.6957 3.84357ZM16.8288 3.84357L16.1036 3.15503L16.1036 3.15509L16.8288 3.84357ZM9.73781 11.3135L9.01255 10.625L9.01192 10.6257L9.73781 11.3135ZM9.48895 11.8043L10.4714 11.9907L10.4715 11.9902L9.48895 11.8043ZM8.84448 15.2002L9.82623 15.3904L9.82694 15.3866L8.84448 15.2002ZM9.03159 15.9998L9.82195 15.3871L9.03159 15.9998ZM9.73781 16.3527L9.73802 17.3527L9.74125 17.3527L9.73781 16.3527ZM9.92012 16.3344L10.1148 17.3154L10.1263 17.3129L9.92012 16.3344ZM13.1425 15.6554L13.3487 16.6339L13.3493 16.6338L13.1425 15.6554ZM13.6083 15.3923L12.883 14.7038L12.8823 14.7045L13.6083 15.3923ZM20.6984 7.92235L19.9733 7.23369L19.9731 7.23392L20.6984 7.92235ZM21.292 6.98646L22.2228 7.35218L21.292 6.98646ZM19.4067 5.20156L18.6815 5.8901L18.6818 5.89039L19.4067 5.20156ZM19.4067 6.56052L20.1314 7.24962L20.1316 7.24935L19.4067 6.56052ZM18.9181 7.07433L18.1928 7.76275L18.9174 8.5262L19.6428 7.76343L18.9181 7.07433ZM17.6292 5.71633L16.9039 5.0279L16.2505 5.71633L16.9039 6.40476L17.6292 5.71633ZM18.1178 5.20156L17.3926 4.51303L17.3925 4.51314L18.1178 5.20156ZM12.5117 13.8249L12.7181 14.8034L13.0227 14.7391L13.2371 14.5133L12.5117 13.8249ZM10.9 14.1649L9.91761 13.9783L9.63746 15.4532L11.1065 15.1434L10.9 14.1649ZM11.2227 12.466L10.4974 11.7775L10.2951 11.9907L10.2403 12.2794L11.2227 12.466ZM16.3402 7.07433L17.0655 6.3859L16.3402 5.62174L15.6149 6.3859L16.3402 7.07433ZM17.6292 8.43232L18.3545 9.12068L19.0079 8.43226L18.3545 7.74389L17.6292 8.43232ZM15.2618 18.9188C15.2618 18.7125 15.3392 18.5048 15.492 18.3438L16.9426 19.7207C17.1525 19.4995 17.2618 19.2102 17.2618 18.9188H15.2618ZM15.492 18.3438C15.6464 18.1811 15.8674 18.0792 16.1096 18.0792V20.0792C16.4326 20.0792 16.731 19.9436 16.9426 19.7207L15.492 18.3438ZM16.1096 18.0792H5.47535V20.0792H16.1096V18.0792ZM5.47535 18.0792C5.71754 18.0792 5.93854 18.1811 6.09301 18.3438L4.6424 19.7207C4.85397 19.9436 5.15241 20.0792 5.47535 20.0792V18.0792ZM6.09301 18.3438C6.24581 18.5048 6.32312 18.7125 6.32312 18.9188H4.32312C4.32312 19.2102 4.43251 19.4995 4.6424 19.7207L6.09301 18.3438ZM6.32312 18.9188V7.71491H4.32312V18.9188H6.32312ZM6.32312 7.71491C6.32312 7.92123 6.24581 8.12894 6.09301 8.28992L4.6424 6.91307C4.4325 7.13421 4.32312 7.4235 4.32312 7.71491H6.32312ZM6.09301 8.28992C5.93853 8.45268 5.71753 8.55452 5.47535 8.55452V6.55452C5.15243 6.55452 4.85398 6.69016 4.6424 6.91307L6.09301 8.28992ZM5.47535 8.55452H12.0167V6.55452H5.47535V8.55452ZM12.742 8.24295L14.5651 6.32217L13.1145 4.94531L11.2914 6.86609L12.742 8.24295ZM13.8398 4.63374H5.47535V6.63374H13.8398V4.63374ZM5.47438 4.63374C4.66843 4.63452 3.90695 4.97265 3.35379 5.55543L4.80441 6.93229C4.99195 6.7347 5.23478 6.63397 5.47632 6.63374L5.47438 4.63374ZM3.35379 5.55543C2.80232 6.13645 2.5007 6.91365 2.5 7.71403L4.5 7.71578C4.50026 7.41255 4.61519 7.13164 4.80441 6.93229L3.35379 5.55543ZM2.5 7.71491V18.9188H4.5V7.71491H2.5ZM2.5 18.9197C2.5007 19.7201 2.80232 20.4973 3.35379 21.0783L4.80441 19.7015C4.61519 19.5021 4.50026 19.2212 4.5 18.918L2.5 18.9197ZM3.35379 21.0783C3.90695 21.6611 4.66843 21.9992 5.47438 22L5.47632 20C5.23478 19.9998 4.99195 19.899 4.80441 19.7015L3.35379 21.0783ZM5.47535 22H16.1096V20H5.47535V22ZM16.1106 22C16.9165 21.9992 17.678 21.6611 18.2312 21.0783L16.7806 19.7015C16.593 19.899 16.3502 19.9998 16.1086 20L16.1106 22ZM18.2312 21.0783C18.7826 20.4973 19.0843 19.7201 19.085 18.9197L17.085 18.918C17.0847 19.2212 16.9698 19.5021 16.7806 19.7015L18.2312 21.0783ZM19.085 18.9188V12.0271H17.085V18.9188H19.085ZM17.3597 11.3386L15.5365 13.2594L16.9871 14.6363L18.8103 12.7155L17.3597 11.3386ZM15.2618 13.9478V18.9188H17.2618V13.9478H15.2618ZM21.4209 3.15503C20.725 2.42212 19.7699 2 18.7623 2V4C19.2049 4 19.6407 4.18474 19.9705 4.53211L21.4209 3.15503ZM18.7623 2C17.7546 2 16.7995 2.42212 16.1036 3.15503L17.554 4.53211C17.8838 4.18474 18.3196 4 18.7623 4V2ZM16.1036 3.15509L9.01255 10.625L10.4631 12.002L17.5541 4.53204L16.1036 3.15509ZM9.01192 10.6257C8.74963 10.9025 8.57632 11.2487 8.50639 11.6183L10.4715 11.9902C10.4716 11.9895 10.4717 11.99 10.4708 11.9917C10.4699 11.9934 10.4679 11.9969 10.4637 12.0013L9.01192 10.6257ZM8.50649 11.6178L7.86201 15.0137L9.82694 15.3866L10.4714 11.9907L8.50649 11.6178ZM7.86273 15.01C7.80891 15.2878 7.81436 15.5744 7.87887 15.85L9.82626 15.3943C9.82604 15.3934 9.82597 15.3917 9.82622 15.3904L7.86273 15.01ZM7.87887 15.85C7.94339 16.1257 8.06609 16.3864 8.24123 16.6124L9.82195 15.3871C9.82607 15.3924 9.82646 15.3952 9.82626 15.3943L7.87887 15.85ZM8.24123 16.6124C8.4165 16.8385 8.64064 17.0249 8.89996 17.1545L9.79399 15.3655C9.80902 15.373 9.8177 15.3816 9.82195 15.3871L8.24123 16.6124ZM8.89996 17.1545C9.15952 17.2842 9.44598 17.3527 9.73802 17.3527L9.73759 15.3527C9.75926 15.3527 9.77871 15.3578 9.79399 15.3655L8.89996 17.1545ZM9.74125 17.3527C9.86673 17.3522 9.99178 17.3397 10.1148 17.3153L9.72548 15.3535C9.72822 15.353 9.73122 15.3527 9.73436 15.3527L9.74125 17.3527ZM10.1263 17.3129L13.3487 16.6339L12.9363 14.6769L9.71393 15.3559L10.1263 17.3129ZM13.3493 16.6338C13.7296 16.5534 14.0712 16.3576 14.3342 16.08L12.8823 14.7045C12.891 14.6954 12.9084 14.6828 12.9356 14.6771L13.3493 16.6338ZM14.3336 16.0807L21.4237 8.61078L19.9731 7.23392L12.883 14.7038L14.3336 16.0807ZM21.4235 8.61101C21.7682 8.24807 22.039 7.81987 22.2228 7.35218L20.3613 6.62075C20.27 6.85315 20.1373 7.06101 19.9733 7.23369L21.4235 8.61101ZM22.2228 7.35218C22.4065 6.88455 22.5003 6.385 22.5 5.88169L20.5 5.88303C20.5002 6.13744 20.4527 6.38828 20.3613 6.62075L22.2228 7.35218ZM22.5 5.88169C22.4997 5.37838 22.4052 4.87896 22.2208 4.41159L20.3603 5.14556C20.452 5.37787 20.4998 5.62863 20.5 5.88303L22.5 5.88169ZM22.2208 4.41159C22.0364 3.94415 21.765 3.51633 21.4198 3.15389L19.9716 4.53325C20.1358 4.70566 20.2687 4.9133 20.3603 5.14556L22.2208 4.41159ZM18.6818 5.89039C18.6762 5.88453 18.6744 5.88037 18.674 5.87941L20.5351 5.14713C20.443 4.91299 20.3067 4.69699 20.1316 4.51273L18.6818 5.89039ZM18.674 5.87941C18.6737 5.8785 18.6741 5.8792 18.6741 5.88104H20.6741C20.6741 5.63045 20.6272 5.38121 20.5351 5.14713L18.674 5.87941ZM18.6741 5.88104C18.6741 5.88287 18.6737 5.88357 18.674 5.88267L20.5351 6.61495C20.6272 6.38087 20.6741 6.13163 20.6741 5.88104H18.6741ZM18.674 5.88267C18.6744 5.88171 18.6762 5.87755 18.6818 5.87169L20.1316 7.24935C20.3067 7.06509 20.443 6.84909 20.5351 6.61495L18.674 5.88267ZM18.6821 5.87141L18.1935 6.38522L19.6428 7.76343L20.1314 7.24962L18.6821 5.87141ZM19.6434 6.3859L18.3545 5.0279L16.9039 6.40476L18.1928 7.76275L19.6434 6.3859ZM18.3545 6.40476L18.8431 5.88999L17.3925 4.51314L16.9039 5.0279L18.3545 6.40476ZM18.843 5.8901C18.8309 5.90283 18.803 5.92037 18.7623 5.92037V3.92037C18.238 3.92037 17.7465 4.14021 17.3926 4.51303L18.843 5.8901ZM18.7623 5.92037C18.7215 5.92037 18.6936 5.90283 18.6815 5.8901L20.1319 4.51303C19.778 4.14021 19.2865 3.92037 18.7623 3.92037V5.92037ZM12.3053 12.8465L10.6936 13.1864L11.1065 15.1434L12.7181 14.8034L12.3053 12.8465ZM11.8825 14.3515L12.2052 12.6526L10.2403 12.2794L9.91761 13.9783L11.8825 14.3515ZM11.948 13.1544L17.0655 7.76275L15.6149 6.3859L10.4974 11.7775L11.948 13.1544ZM15.6149 7.76275L16.9039 9.12075L18.3545 7.74389L17.0655 6.3859L15.6149 7.76275ZM16.9038 7.74396L11.7863 13.1366L13.2371 14.5133L18.3545 9.12068L16.9038 7.74396Z",fill:"white",mask:"url(#path-1-inside-1_7535_8810)"})),(0,he.__)("Edit","astra-addon")),(0,e.createElement)("div",{className:"ast-tb-layout-preview-body"},(0,e.createElement)("div",{ref:_,className:`ast-tb__preview-iframe ast-tb__preview-iframe__${d}`},(0,e.createElement)(ka(),{color:"silver",loading:T,size:50,"aria-label":"Loading Spinner","data-testid":"loader",className:"ast-iframe-spinner"}),(0,e.createElement)("iframe",{ref:V,title:"preview",src:s,className:"ast-tb__preview-iframe__iframe",style:{transform:`scale(${S})`,height:O,width:1200,display:"none"}}))),(0,e.createElement)("div",{className:"ast-tb-layout-preview-footer"},(0,e.createElement)("div",{className:"ast-tb-preview-info"},g&&"publish"===i?(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#17B26A"})):(0,e.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("circle",{cx:"4",cy:"4",r:"3",fill:"#94A3B8"})),(0,e.createElement)("h3",{className:"ast-tb-card-title"},n?(H=n).length>20?H.substring(0,20)+"...":H:"(untitled)",i&&"publish"!==i?` (${i})`:"")),(0,e.createElement)("div",{className:"ast-tb-preview-card-actions"},(0,e.createElement)("div",{className:"ast-tb-preview-actions-author"},(0,e.createElement)("img",{className:"ast-tb-preview-actions-author-avatar",src:a||""}),(0,e.createElement)("span",{className:"ast-tb-preview-actions-author-name"},r||"")),(0,e.createElement)("div",{className:"ast-tb-preview-actions-date"},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_7302_7183)"},(0,e.createElement)("path",{d:"M4 3.5V1.5M8 3.5V1.5M3.5 5.5H8.5M2.5 10.5H9.5C10.0523 10.5 10.5 10.0523 10.5 9.5V3.5C10.5 2.94772 10.0523 2.5 9.5 2.5H2.5C1.94772 2.5 1.5 2.94772 1.5 3.5V9.5C1.5 10.0523 1.94772 10.5 2.5 10.5Z",stroke:"#1E293B",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_7302_7183"},(0,e.createElement)("rect",{width:"12",height:"12",fill:"white"})))),(0,e.createElement)("span",{className:"ast-tb-preview-actions-date-text"},o?fo(o):"")),(0,e.createElement)("button",{className:"ast-tb-preview-actions-btn",onClick:()=>{b(!0)}},x?(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:M,onMouseLeave:k},(0,e.createElement)("path",{d:"M14.25 5.25L13.5995 14.3569C13.5434 15.1418 12.8903 15.75 12.1033 15.75H5.89668C5.10972 15.75 4.45656 15.1418 4.40049 14.3569L3.75 5.25M7.5 8.25V12.75M10.5 8.25V12.75M11.25 5.25V3C11.25 2.58579 10.9142 2.25 10.5 2.25H7.5C7.08579 2.25 6.75 2.58579 6.75 3V5.25M3 5.25H15",stroke:"#F87171",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:M,onMouseLeave:k},(0,e.createElement)("path",{d:"M14.25 5.25L13.5995 14.3569C13.5434 15.1418 12.8903 15.75 12.1033 15.75H5.89668C5.10972 15.75 4.45656 15.1418 4.40049 14.3569L3.75 5.25M7.5 8.25V12.75M10.5 8.25V12.75M11.25 5.25V3C11.25 2.58579 10.9142 2.25 10.5 2.25H7.5C7.08579 2.25 6.75 2.58579 6.75 3V5.25M3 5.25H15",stroke:"#9CA3AF",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)(De,{options:[{label:g?(0,he.__)("Disable","astra-addon"):(0,he.__)("Enable","astra-addon"),onClick:()=>{const e=g?"no":"yes",n=new XMLHttpRequest,r=astra_theme_builder.quick_view.url+"?action=ast_advanced_hook_display_toggle&post_id="+t+"&enable="+e+"&nonce="+astra_theme_builder.quick_view.nonce;n.open("GET",r),n.send(),v(!g),h()}},{label:(0,he.__)("Preview","astra-addon"),onClick:()=>window.location.href=s},{label:f?(0,he.__)("Copied","astra-addon"):(0,he.__)("Copy Shortcode","astra-addon"),onClick:()=>{const e=document.createElement("input");e.setAttribute("value",`[astra_custom_layout id=${t}]`),document.body.appendChild(e),e.select(),document.execCommand("copy")&&(document.body.removeChild(e),m(!0),setTimeout((()=>{m(!1)}),2e3))}},{label:(0,he.__)("Display Conditions","astra-addon"),onClick:e=>{p(t),e(!1)}}]})),(0,e.createElement)(mo,{isOpen:y,onCancel:w,onDelete:()=>{var e={method:"DELETE",redirect:"follow",headers:{"X-WP-Nonce":astra_theme_builder.nonce}};fetch(astra_theme_builder.rest_url+t,e).then((e=>e.text())).then((e=>{u()})).catch((e=>{console.log(e),window.location.href=astra_theme_builder.admin_url})),w()}}));var H};var yo=function(){return yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},yo.apply(this,arguments)},bo=function(t){var n=t.animate,r=void 0===n||n,a=t.animateBegin,o=t.backgroundColor,i=void 0===o?"#f5f6f7":o,l=t.backgroundOpacity,s=void 0===l?1:l,c=t.baseUrl,u=void 0===c?"":c,d=t.children,h=t.foregroundColor,p=void 0===h?"#eee":h,f=t.foregroundOpacity,m=void 0===f?1:f,g=t.gradientRatio,v=void 0===g?2:g,y=t.gradientDirection,b=void 0===y?"left-right":y,w=t.uniqueKey,C=t.interval,E=void 0===C?.25:C,x=t.rtl,L=void 0!==x&&x,M=t.speed,k=void 0===M?1.2:M,_=t.style,S=void 0===_?{}:_,D=t.title,O=void 0===D?"Loading...":D,P=t.beforeMask,T=void 0===P?null:P,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(t,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),V=w||Math.random().toString(36).substring(6),H=V+"-diff",N=V+"-animated-diff",I=V+"-aria",Z=L?{transform:"scaleX(-1)"}:null,R="0; "+E+"; 1",A=k+"s",B="top-bottom"===b?"rotate(90)":void 0;return(0,e.createElement)("svg",yo({"aria-labelledby":I,role:"img",style:yo(yo({},S),Z)},F),O?(0,e.createElement)("title",{id:I},O):null,T&&(0,e.isValidElement)(T)?T:null,(0,e.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+u+"#"+H+")",style:{fill:"url("+u+"#"+N+")"}}),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:H},d),(0,e.createElement)("linearGradient",{id:N,gradientTransform:B},(0,e.createElement)("stop",{offset:"0%",stopColor:i,stopOpacity:s},r&&(0,e.createElement)("animate",{attributeName:"offset",values:-v+"; "+-v+"; 1",keyTimes:R,dur:A,repeatCount:"indefinite",begin:a})),(0,e.createElement)("stop",{offset:"50%",stopColor:p,stopOpacity:m},r&&(0,e.createElement)("animate",{attributeName:"offset",values:-v/2+"; "+-v/2+"; "+(1+v/2),keyTimes:R,dur:A,repeatCount:"indefinite",begin:a})),(0,e.createElement)("stop",{offset:"100%",stopColor:i,stopOpacity:s},r&&(0,e.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+v),keyTimes:R,dur:A,repeatCount:"indefinite",begin:a})))))},wo=function(t){return t.children?(0,e.createElement)(bo,yo({},t)):(0,e.createElement)(Co,yo({},t))},Co=function(t){return(0,e.createElement)(wo,yo({viewBox:"0 0 476 124"},t),(0,e.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,e.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,e.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,e.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,e.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,e.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};const Eo=wo,xo=({numberOfItems:t,type:n})=>{const r=Array(t).fill(),a="Header"===n||"Footer"===n?"ast-tb-layout-details-section-header-footer":"ast-tb-layout-details-section";return(0,e.createElement)(e.Fragment,null,"Header"===n||"Footer"===n?(0,e.createElement)("div",{className:`ast-tb-preview-skeleton-cards ${a}`},r.map(((t,n)=>(0,e.createElement)("div",{className:"ast-tb-preview-skeleton-cards-hf",key:n},(0,e.createElement)(Eo,{speed:2,width:"100%",height:172,viewBox:"0 0 100 172",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0",preserveAspectRatio:"none"},(0,e.createElement)("path",{d:"M 0 0 h 759 v 394 H 0 z"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"2",ry:"2",width:"719",height:"354"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"4",ry:"4",width:"719",height:"22"})),(0,e.createElement)(Eo,{speed:2,width:"100%",height:40,viewBox:"0 0 100 40",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0",preserveAspectRatio:"none"},(0,e.createElement)("path",{d:"M 0 0 h 759 v 394 H 0 z"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"2",ry:"2",width:"719",height:"354"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"4",ry:"4",width:"719",height:"22"})))))):(0,e.createElement)("div",{className:`ast-tb-preview-skeleton-cards ${a}`},r.map(((t,n)=>(0,e.createElement)("div",{className:"ast-tb-preview-skeleton-cards-hf",key:n},(0,e.createElement)(Eo,{speed:2,width:"100%",height:358,viewBox:"0 0 736 358",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0",preserveAspectRatio:"none"},(0,e.createElement)("path",{d:"M 0 0 h 759 v 394 H 0 z"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"2",ry:"2",width:"719",height:"354"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"4",ry:"4",width:"719",height:"22"})),(0,e.createElement)(Eo,{speed:2,width:"100%",height:40,viewBox:"0 0 736 40",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0",preserveAspectRatio:"none"},(0,e.createElement)("path",{d:"M 0 0 h 759 v 394 H 0 z"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"2",ry:"2",width:"719",height:"354"}),(0,e.createElement)("rect",{x:"20",y:"20",rx:"4",ry:"4",width:"719",height:"22"})))))))},Lo=({type:t,layoutData:n,ID:r,loading:a,itemChanged:o,setItemChanged:i,fetchGlobalLayoutsData:l,setModalPostID:s})=>{const[c,u]=(0,e.useState)([]),d=[],h="Header"===t||"Footer"===t?3:2;(0,e.useEffect)((()=>{u(n)}),[n]),(0,e.useEffect)((()=>{r&&""!==r&&c.length>0&&(e=>{e=parseInt(e);const t=c.findIndex((t=>t.ID===e));if(-1!==t){let e=t-h;e<0&&(e=0),e<d.length&&d[e].scrollIntoView({behavior:"smooth"})}})(r)}),[c,r]);const p=()=>{window.location.reload()},f="Header"===t||"Footer"===t?"ast-tb-layout-details-section-header-footer":"ast-tb-layout-details-section";return(0,e.createElement)(e.Fragment,null,a?(0,e.createElement)(xo,{numberOfItems:4,type:t}):(0,e.createElement)("div",{className:`${f} ${c&&!a&&c.length<1?"ast-tb-layout-details-section-empty":""}`},c&&!a&&c.length<1&&(0,e.createElement)(La,{type:t,position:"Header"===t||"Footer"===t?"right":"center"}),c&&c.map(((n,r)=>(0,e.createElement)("div",{className:"ast-tb-layout-details-preview-parent",key:r},r<c.length-h?(0,e.createElement)("div",{className:"ast-tb-layout-details-preview-parent",ref:e=>d[r]=e},"Header"===t||"Footer"===t?(0,e.createElement)(vo,{...n,setModalPostID:s,fetchGlobalLayoutsData:l,onDelete:()=>p(),type:t,itemChanged:o,setItemChanged:i}):(0,e.createElement)(go,{...n,setModalPostID:s,fetchGlobalLayoutsData:l,onDelete:()=>p(),type:t,itemChanged:o,setItemChanged:i})):"Header"===t||"Footer"===t?(0,e.createElement)(vo,{...n,setModalPostID:s,fetchGlobalLayoutsData:l,onDelete:()=>p(),type:t,itemChanged:o,setItemChanged:i}):(0,e.createElement)(go,{...n,setModalPostID:s,fetchGlobalLayoutsData:l,onDelete:()=>p(),type:t,itemChanged:o,setItemChanged:i}))))))},Mo=function({categoriesProps:t,categoryData:n,loading:r,fetchGlobalLayoutsData:a}){const o=new URLSearchParams(G().search),i=o.get("page"),l=o.get("path"),s=o.get("id"),[c,u]=(0,e.useState)(0),[d,h]=(0,e.useState)({}),[p,f]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),v=()=>{f(!1),h({}),u(0),g(!1)};(0,e.useEffect)((()=>{c>0&&(f(!0),async function(e){try{return(await Ve()({path:`/wp/v2/astra-advanced-hook/${e}`})).meta}catch(e){throw console.error("Error fetching post meta:",e),e}}(c).then((e=>{h({meta:e,oldMeta:e})})))}),[c]);let y=(0,e.createElement)("p",null);if("theme-builder"===i)switch(l){case"create-new":y=(0,e.createElement)(Te,null);break;case"all-layouts":default:t&&t.length>0&&(y=(0,e.createElement)(xa,{setModalPostID:u,fetchGlobalLayoutsData:a,items:t||"",loading:r}));break;case"header":y=(0,e.createElement)(Lo,{type:"Header",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n.Header:"",ID:s||"",loading:r});break;case"footer":y=(0,e.createElement)(Lo,{type:"Footer",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n.Footer:"",ID:s||"",loading:r});break;case"hooks":y=(0,e.createElement)(Lo,{type:"Hooks",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n.Hooks:"",ID:s||"",loading:r});break;case"404-page":y=(0,e.createElement)(Lo,{type:"404 Page",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n[404]:"",ID:s||"",loading:r});break;case"single":y=(0,e.createElement)(Lo,{type:"Single Template",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n.Single:"",ID:s||"",loading:r});break;case"archive":y=(0,e.createElement)(Lo,{type:"Archive",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n.Archive:"",ID:s||"",loading:r});break;case"content":y=(0,e.createElement)(Lo,{type:"Inside Post/Page",setModalPostID:u,fetchGlobalLayoutsData:a,layoutData:n?n["Inside Post/Page"]:"",ID:s||"",loading:r})}return(0,e.createElement)(e.Fragment,null,y,p&&(0,e.createElement)(Ea,{...d,closeModal:v,whiteLabelledLogo:()=>""===astra_theme_builder.logo_url?"":(0,e.createElement)("img",{src:astra_theme_builder.logo_url,alt:"Site Logo",className:"ast-custom-layout-popup-logo"}),returnToPostLabel:m?(0,he.__)("Saving","astra-addon"):(0,he.__)("Save","astra-addon"),returnToPostDescription:(0,he.__)("Please make sure to save any changes made to take effect.","astra-addon"),onReturnToPostClick:()=>{g(!0),async function(e,t){try{return(await Ve()({path:`/wp/v2/astra-advanced-hook/${e}`,method:"POST",data:{meta:t}})).meta}catch(e){throw console.error("Error updating post meta:",e),e}}(c,d.meta).then((()=>v()))},setMetaFieldValue:(e,t)=>{h({meta:{[t]:e},...d})},isLoading:!d?.meta}))},ko=({setShowInfobox:t,showNoticeFor:n})=>{const[r,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(!document.cookie.includes("astTbNoticeDisplayed=true")){const e=new Date;e.setDate(e.getDate()+30),document.cookie=`astTbNoticeDisplayed=true; expires=${e.toUTCString()}`,a(!0)}}),[]),r&&(0,e.createElement)("div",{className:"ast-tb-info"},(0,e.createElement)("div",{className:"ast-tb-info-icon"},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_7471_16789)"},(0,e.createElement)("path",{d:"M9.9974 13.3327V9.99935M9.9974 6.66602H10.0057M18.3307 9.99935C18.3307 14.6017 14.5998 18.3327 9.9974 18.3327C5.39502 18.3327 1.66406 14.6017 1.66406 9.99935C1.66406 5.39698 5.39502 1.66602 9.9974 1.66602C14.5998 1.66602 18.3307 5.39698 18.3307 9.99935Z",stroke:"#046BD2",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_7471_16789"},(0,e.createElement)("rect",{width:"20",height:"20",fill:"white"}))))),(0,e.createElement)("div",{className:"ast-tb-info-content"},(0,e.createElement)("h3",null,(0,he.__)(`Need to install ${"spectra"===n?"Spectra Pro":"Ultimate Addons For Elementor"} to make better layouts with Site Builder`,"astra-addon")),(0,e.createElement)("div",{className:"ast-tb-info-content-actions"},(0,e.createElement)("button",{className:"ast-tb-info-content-actions-install",onClick:()=>{"spectra"===n?window.open(astra_theme_builder.spectra_pro_url):window.open(astra_theme_builder.uae_pro_url)}},(0,he.__)("Install Now","astra-addon")),(0,e.createElement)("button",{className:"ast-tb-info-content-actions-dismiss",onClick:()=>t(!1)},(0,he.__)("Dismiss","astra-addon")))),(0,e.createElement)("div",{className:"ast-tb-info-close-icon",onClick:()=>t(!1)},(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M23 13L13 23M13 13L23 23",stroke:"#475569",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}))))},_o=({numberOfItems:t})=>{const n=Array(t).fill();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"ast-tb-category-parent"},(0,e.createElement)(Eo,{speed:2,width:200,height:36,viewBox:"0 0 200 36",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"324",height:"56"})),(0,e.createElement)("div",{className:"ast-tb-canvas-content-row-flex"},(0,e.createElement)("div",{className:"ast-tb-canvas-content-row-flex ast-tb-skeleton-cards"},n.map(((t,n)=>(0,e.createElement)("div",{className:"ast-tb-skeleton-card",key:n},(0,e.createElement)(Eo,{speed:2,width:242,height:212,viewBox:"0 0 242 212",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"324",height:"304"}),(0,e.createElement)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"324",height:"56"}),(0,e.createElement)("rect",{x:"20",y:"19",rx:"2",ry:"2",width:"48",height:"18"}),(0,e.createElement)("rect",{x:"149",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"117",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"181",y:"24",rx:"2",ry:"2",width:"25",height:"8"}),(0,e.createElement)("rect",{x:"212",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"259",y:"24",rx:"2",ry:"2",width:"26",height:"8"})),(0,e.createElement)(Eo,{speed:2,width:242,height:35,viewBox:"0 0 242 35",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("path",{d:"M 0 0 h 363.5 v 56 H 0 V 0 z"}),(0,e.createElement)("rect",{x:"20",y:"16",rx:"6",ry:"6",width:"112",height:"24"}),(0,e.createElement)("circle",{cx:"24",cy:"28",r:"3"}),(0,e.createElement)("path",{d:"M 0 1 h 363.5 v -2 H 0 v 2 z"})))))))),(0,e.createElement)("div",{className:"ast-tb-category-parent"},(0,e.createElement)(Eo,{speed:2,width:200,height:36,viewBox:"0 0 200 36",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"324",height:"56"})),(0,e.createElement)("div",{className:"ast-tb-canvas-content-row-flex"},(0,e.createElement)("div",{className:"ast-tb-canvas-content-row-flex ast-tb-skeleton-cards"},n.map(((t,n)=>(0,e.createElement)("div",{className:"ast-tb-skeleton-card",key:n},(0,e.createElement)(Eo,{speed:2,width:242,height:212,viewBox:"0 0 242 212",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"324",height:"304"}),(0,e.createElement)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"324",height:"56"}),(0,e.createElement)("rect",{x:"20",y:"19",rx:"2",ry:"2",width:"48",height:"18"}),(0,e.createElement)("rect",{x:"149",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"117",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"181",y:"24",rx:"2",ry:"2",width:"25",height:"8"}),(0,e.createElement)("rect",{x:"212",y:"24",rx:"2",ry:"2",width:"26",height:"8"}),(0,e.createElement)("rect",{x:"259",y:"24",rx:"2",ry:"2",width:"26",height:"8"})),(0,e.createElement)(Eo,{speed:2,width:242,height:35,viewBox:"0 0 242 35",backgroundColor:"#e8e8e8",foregroundColor:"#f0f0f0"},(0,e.createElement)("path",{d:"M 0 0 h 363.5 v 56 H 0 V 0 z"}),(0,e.createElement)("rect",{x:"20",y:"16",rx:"6",ry:"6",width:"112",height:"24"}),(0,e.createElement)("circle",{cx:"24",cy:"28",r:"3"}),(0,e.createElement)("path",{d:"M 0 1 h 363.5 v -2 H 0 v 2 z"})))))))))},So=()=>{const[t,n]=(0,e.useState)([]),[r,a]=(0,e.useState)(!0),[o,i]=(0,e.useState)(!0),l=()=>{fetch(astra_theme_builder.rest_url,{method:"GET",headers:{"X-WP-Nonce":astra_theme_builder.nonce}}).then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((e=>{setTimeout((()=>{a(!1),n(e)}),700)})).catch((e=>{console.error("Fetch error:",e),window.location.href=astra_theme_builder.admin_url}))};(0,e.useEffect)((()=>{l()}),[]);const s=()=>{const e=new URLSearchParams(G().search),t=e.get("page"),n=e.get("path");return"theme-builder"===t&&("create-new"===n||"all-layouts"===n||null===n)},c=[(0,he.__)("Header","astra-addon"),(0,he.__)("Footer","astra-addon"),(0,he.__)("Hooks","astra-addon"),(0,he.__)("Inside Post/Page","astra-addon"),(0,he.__)("Single","astra-addon"),(0,he.__)("Archive","astra-addon"),(0,he.__)("404","astra-addon")],u={};return c.forEach((e=>{u[e]=[]})),t&&t.forEach((e=>{switch(e.layout_value){case"header":u.Header.push(e);break;case"footer":u.Footer.push(e);break;case"hooks":u.Hooks.push(e);break;case"content":u["Inside Post/Page"].push(e);break;case"template":"single"===e.template_type?u.Single.push(e):"archive"===e.template_type&&u.Archive.push(e);break;case"404-page":u[404].push(e)}})),(0,e.createElement)("div",{className:"ast-tb-canvas"},(0,e.createElement)("div",{className:"ast-tb-canvas-body"},o&&""!==astra_theme_builder.show_notice_for&&(0,e.createElement)(ko,{setShowInfobox:i,showNoticeFor:astra_theme_builder.show_notice_for}),(0,e.createElement)("div",{className:"ast-tb-canvas-header"},(0,e.createElement)("h2",null,(()=>{const e=new URLSearchParams(G().search),n=e.get("page"),r=e.get("path");if("theme-builder"===n)switch(r){case"create-new":return(0,he.__)("Start customizing every part of your website.","astra-addon");case"all-layouts":return t&&t.length<1?(0,he.__)("Start customizing every part of your website.","astra-addon"):(0,he.__)("All Layouts","astra-addon");case"header":return(0,he.__)("Header","astra-addon");case"footer":return(0,he.__)("Footer","astra-addon");case"single":return(0,he.__)("Single Template","astra-addon");case"archive":return(0,he.__)("Archive Template","astra-addon");case"hooks":return(0,he.__)("Hooks","astra-addon");case"content":return(0,he.__)("Content","astra-addon");case"404-page":return(0,he.__)("404 Page","astra-addon");default:return(0,he.__)("All Layouts","astra-addon")}return"theme-builder"===n&&"all-layouts"===r?(0,he.__)("All Layouts","astra-addon"):(0,he.__)("Start customizing every part of your website.","astra-addon")})()),(()=>{const t=new URLSearchParams(G().search),n=t.get("page"),r=t.get("path");if("theme-builder"!==n||"all-layouts"!==r&&null!==r&&"create-new"!==r){let t="";return t="single"===r||"archive"===r?astra_theme_builder.new_custom_layout_base_url+"&type=template&template_type="+r:astra_theme_builder.new_custom_layout_base_url+"&type="+r,(0,e.createElement)("button",{className:"ast-tb-btn ast-tb-btn-primary",onClick:()=>{window.location.href=t}},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.0013 4.1665V15.8332M4.16797 9.99984H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})),(0,he.__)("Create New","astra-addon"))}return(0,e.createElement)(Ce,{to:{search:"?page=theme-builder&path=create-new"},className:"ast-tb-link"},(0,e.createElement)("button",{className:"ast-tb-btn ast-tb-btn-primary"},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.0013 4.1665V15.8332M4.16797 9.99984H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})),(0,he.__)("Create New","astra-addon")))})()),(0,e.createElement)("div",{className:"ast-tb-canvas-content"},r&&s()?(0,e.createElement)(_o,{numberOfItems:10}):t&&t.length<1&&s()?(0,e.createElement)(Te,null):(0,e.createElement)(ue,null,(0,e.createElement)(se,{path:"*",element:(0,e.createElement)(Mo,{categoriesProps:t,categoryData:u,loading:r,fetchGlobalLayoutsData:l})})))))};document.getElementById("ast-tb-app-root")&&o().render((0,e.createElement)((()=>((0,e.useEffect)((()=>{const e=document.querySelector("html.wp-toolbar");e&&(e.style.paddingTop=0)}),[]),(0,e.createElement)(ye,null,(0,e.createElement)("div",{className:"ast-tb-app"},(0,e.createElement)(fe,null),(0,e.createElement)("div",{className:"ast-tb-main"},(0,e.createElement)(Me,{items:ke}),(0,e.createElement)(So,null)))))),null),document.getElementById("ast-tb-app-root"))})()})();