|
1
|
|
-(()=>{var e={371:(e,t,n)=>{var o;!function(){function a(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,t,n){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,o){if(t=e.c.createElement(t),n)for(var a in n)n.hasOwnProperty(a)&&("style"==a?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return o&&t.appendChild(e.c.createTextNode(o)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,n){t=t||[],n=n||[];for(var o=e.className.split(/\s+/),a=0;a<t.length;a+=1){for(var i=!1,r=0;r<o.length;r+=1)if(t[a]===o[r]){i=!0;break}i||o.push(t[a])}for(t=[],a=0;a<o.length;a+=1){for(i=!1,r=0;r<n.length;r+=1)if(o[a]===n[r]){i=!0;break}i||t.push(o[a])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var n=e.className.split(/\s+/),o=0,a=n.length;o<a;o++)if(n[o]==t)return!0;return!1}function f(e,t,n){function o(){s&&a&&i&&(s(r),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var a=!1,i=!0,r=null,s=n||null;c?(t.onload=function(){a=!0,o()},t.onerror=function(){a=!0,r=Error("Stylesheet failed to load"),o()}):setTimeout((function(){a=!0,o()}),0),d(e,"head",t)}function m(e,t,n,o){var a=e.c.getElementsByTagName("head")[0];if(a){var i=u(e,"script",{src:t}),r=!1;return i.onload=i.onreadystatechange=function(){r||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(r=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&a.removeChild(i))},a.appendChild(i),setTimeout((function(){r||(r=!0,n&&n(Error("Script load timeout")))}),o||5e3),i}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function y(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function k(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function $(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var o=e[n].replace(/['"]/g,"");-1!=o.indexOf(" ")||/^\d/.test(o)?t.push("'"+o+"'"):t.push(o)}return t.join(",")}function P(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function T(e){var t=4,n="n",o=null;return e&&((o=e.match(/(normal|oblique|italic)/i))&&o[1]&&(n=o[1].substr(0,1).toLowerCase()),(o=e.match(/([1-9]00|normal|bold)/i))&&o[1]&&(/bold/i.test(o[1])?t=7:/[1-9]00/.test(o[1])&&(t=parseInt(o[1].substr(0,1),10)))),n+t}function z(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new k("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function C(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),n=[],o=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),g(e.f,n,o)}j(e,"inactive")}function j(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,P(n)):e.h[t]())}function A(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function B(e){d(e.c,"body",e.a)}function H(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+$(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function R(e,t,n,o,a,i){this.g=e,this.j=t,this.a=o,this.c=n,this.f=a||3e3,this.h=i||void 0}function I(e,t,n,o,a,i,r){this.v=e,this.B=t,this.c=n,this.a=o,this.s=r||"BESbswy",this.f={},this.w=a||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=H(e=new S(this.a.c+",serif",P(this.a))),this.g.a.style.cssText=e,e=H(e=new S(this.a.c+",sans-serif",P(this.a))),this.h.a.style.cssText=e,e=H(e=new S("serif",P(this.a))),this.j.a.style.cssText=e,e=H(e=new S("sans-serif",P(this.a))),this.m.a.style.cssText=e,B(this.g),B(this.h),B(this.j),B(this.m)}k.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},R.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),o=new Promise((function(o,a){!function i(){s()-n>=t.f?a():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+$(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(i,25)}),(function(){a()}))}()})),a=null,i=new Promise((function(e,n){a=setTimeout(n,t.f)}));Promise.race([i,o]).then((function(){a&&(clearTimeout(a),a=null),t.g(t.a)}),(function(){t.j(t.a)}))};var O={D:"serif",C:"sans-serif"},L=null;function F(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function N(e,t,n){for(var o in O)if(O.hasOwnProperty(o)&&t===e.f[O[o]]&&n===e.f[O[o]])return!0;return!1}function _(e){var t,n=e.g.a.offsetWidth,o=e.h.a.offsetWidth;(t=n===e.f.serif&&o===e.f["sans-serif"])||(t=F()&&N(e,n,o)),t?s()-e.A>=e.w?F()&&N(e,n,o)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?M(e,e.v):M(e,e.B):function(e){setTimeout(r((function(){_(this)}),e),50)}(e):M(e,e.v)}function M(e,t){setTimeout(r((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)}),e),0)}function D(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}I.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),_(this)};var U=null;function X(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&g(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):C(e.a))}function Y(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function V(e,t,n,o,a){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=a||null,s=o||{};if(0===n.length&&i)C(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],d=s[u.c],h=t.a,p=u;if(h.g&&g(h.f,[h.a.c("wf",p.c,P(p).toString(),"loading")]),j(h,"fontloading",p),h=null,null===U)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var f=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=p?42<parseInt(p[1],10):!f}else U=!1;h=U?new R(r(t.g,t),r(t.h,t),t.c,u,t.s,d):new I(r(t.g,t),r(t.h,t),t.c,u,t.s,e,d),c.push(h)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function W(e,t){this.c=e,this.a=t}function q(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||J,this.a=[],this.f=[],this.g=t||""}D.prototype.g=function(e){var t=this.a;t.g&&g(t.f,[t.a.c("wf",e.c,P(e).toString(),"active")],[t.a.c("wf",e.c,P(e).toString(),"loading"),t.a.c("wf",e.c,P(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,X(this)},D.prototype.h=function(e){var t=this.a;if(t.g){var n=p(t.f,t.a.c("wf",e.c,P(e).toString(),"active")),o=[],a=[t.a.c("wf",e.c,P(e).toString(),"loading")];n||o.push(t.a.c("wf",e.c,P(e).toString(),"inactive")),g(t.f,o,a)}j(t,"fontinactive",e),X(this)},Y.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var o=[],a=n.timeout;!function(e){e.g&&g(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t),o=function(e,t,n){var o,a=[];for(o in t)if(t.hasOwnProperty(o)){var i=e.c[o];i&&a.push(i(t[o],n))}return a}(e.a,n,e.c);var i=new D(e.c,t,a);for(e.h=o.length,t=0,n=o.length;t<n;t++)o[t].load((function(t,n,o){V(e,i,t,n,o)}))}(this,new z(this.c,e),e)},W.prototype.load=function(e){function t(){if(i["__mti_fntLst"+o]){var n,a=i["__mti_fntLst"+o](),r=[];if(a)for(var s=0;s<a.length;s++){var l=a[s].fontfamily;null!=a[s].fontStyle&&null!=a[s].fontWeight?(n=a[s].fontStyle+a[s].fontWeight,r.push(new S(l,n))):r.push(new S(l))}e(r)}else setTimeout((function(){t()}),50)}var n=this,o=n.a.projectId,a=n.a.version;if(o){var i=n.c.o;m(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+o+".js"+(a?"?v="+a:""),(function(a){a?e([]):(i["__MonotypeConfiguration__"+o]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+o}else e([])},q.prototype.load=function(e){var t,n,o=this.a.urls||[],a=this.a.families||[],i=this.a.testStrings||{},r=new b;for(t=0,n=o.length;t<n;t++)f(this.c,o[t],v(r));var s=[];for(t=0,n=a.length;t<n;t++)if((o=a[t].split(":"))[1])for(var l=o[1].split(","),c=0;c<l.length;c+=1)s.push(new S(o[0],l[c]));else s.push(new S(o[0]));y(r,(function(){e(s,i)}))};var J="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var oe={Arimo:!0,Cousine:!0,Tinos:!0};function ae(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new b,n=this.c,o=new G(this.a.api,this.a.text),a=this.a.families;!function(e,t){for(var n=t.length,o=0;o<n;o++){var a=t[o].split(":");3==a.length&&e.f.push(a.pop());var i="";2==a.length&&""!=a[1]&&(i=":"),e.a.push(a.join(i))}}(o,a);var i=new K(a);!function(e){for(var t=e.f.length,n=0;n<t;n++){var o=e.f[n].split(":"),a=o[0].replace(/\+/g," "),i=["n4"];if(2<=o.length){var r;if(r=[],s=o[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":ee[u],null==(d=d[1])||""==d)d="4";else var d=Z[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&r.push(u)}0<r.length&&(i=r),3==o.length&&(r=[],0<(o=(o=o[2])?o.split(","):r).length&&(o=Q[o[0]])&&(e.c[a]=o))}for(e.c[a]||(o=Q[a])&&(e.c[a]=o),o=0;o<i.length;o+=1)e.a.push(new S(a,i[o]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],o=0;o<t;o++)n.push(e.a[o].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(o),v(t)),y(t,(function(){e(i.a,i.c,oe)}))},ae.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var o=[],a=0;a<t.length;a+=2)for(var i=t[a],r=t[a+1],s=0;s<r.length;s++)o.push(new S(i,r[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(o)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,o=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var a=0,i=n.fonts.length;a<i;++a){var r=n.fonts[a];o.a.push(new S(r.name,T("font-weight:"+r.weight+";font-style:"+r.style)))}e(o.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new Y(window);re.a.c.custom=function(e,t){return new q(t,e)},re.a.c.fontdeck=function(e,t){return new ie(t,e)},re.a.c.monotype=function(e,t){return new W(t,e)},re.a.c.typekit=function(e,t){return new ae(t,e)},re.a.c.google=function(e,t){return new ne(t,e)};var se={load:r(re.load,re)};void 0===(o=function(){return se}.call(t,n,t,e))||(e.exports=o)}()}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=o[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";const e=(e,t,n)=>{const o=wp.data.select("core/block-editor").getSettings(),a=o&&o.__experimentalFeatures?o.__experimentalFeatures.color:{},i=a&&a[t]?a[t]:{};return Object.keys(i).map((t=>i[t].find((t=>t&&t[n]===e)))).filter((e=>void 0!==e))[0]},t=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length||!1===e,o=t=>{if(!t||t.startsWith("#"))return t;const n=t.split(","),o=e(n[0],"palette","slug");return o?`var(--wp--preset--color--${o.slug}, ${o.color})`:n[1]},a=t=>{if(!t||t.startsWith("linear-gradient(")||t?.startsWith("radial-gradient("))return t;const n=t.split(/,(.+)/).filter(Boolean),o=e(n[0],"gradients","slug");return o?`var(--wp--preset--gradient--${o.slug}, ${o.gradient})`:n[1]},i=e=>{let n="";return n=t(e?.size)||t(e?.unit)?!t(e?.size)&&t(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,n},r=e=>{let n="";return!t(e?.blur)&&(n+=`blur(${e?.blur?.size}px) `),!t(e?.brightness)&&(n+=`brightness(${e?.brightness?.size}%) `),!t(e?.contrast)&&(n+=`contrast(${e?.contrast?.size}%) `),!t(e?.saturation)&&(n+=`saturate(${e?.saturation?.size}%) `),!t(e?.hue)&&(n+=`hue-rotate(${e?.hue?.size}deg) `),!t(e?.grayscale)&&(n+=`grayscale(${e?.grayscale?.size}%) `),!t(e?.invert)&&(n+=`invert(${e?.invert?.size}%) `),!t(e?.sepia)&&(n+=`sepia(${e?.sepia?.size}%) `),t(n)?void 0:n},s=window.wp.hooks,l={label:"Desktop",slug:"Desktop",value:"base",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"></path></svg>'},c=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],u=window.wp.data,d=window.wp.editor,h=window.wp.element,g=new Set(["px","em","rem","%","vh","vw"]),p=e=>{const t=[];for(const n in e){const o=e[n];!o||g.has(o)||Number.isNaN(o)||"string"==typeof o&&o.includes("undefined")||t.push(`${n}: ${o};`)}return t.join(" ")},f=window.wp.url;var m=n(371),b=n.n(m);const v=n.p+"images/placeholder.e4997309.jpg",y=n.p+"images/libraryPlaceholder.9201fa54.png",w=n.p+"images/dynamic-placeholder.ab3d870e.png",k=window.wp.apiFetch;var S=n.n(k);const $=function(e,t,n){const o=new Date;o.setTime(o.getTime()+60*n*60*1e3);const a=`expires=${o.toUTCString()}`;document.cookie=`${e}=${t}; ${a}; path=/`},P=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null},x={title:"asc-icon",src:"<svg fill='#323131' viewBox='0 0 14 14' role='img' focusable='false' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' stroke='#323131'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path d='m 11.363635,5.363637 c 0,0.1477267 -0.05398,0.2755673 -0.16193,0.383522 -0.107953,0.1079547 -0.235793,0.161932 -0.38352,0.161932 l -7.63637,0 c -0.1477267,0 -0.2755667,-0.053977 -0.38352,-0.161932 -0.1079533,-0.1079547 -0.16193,-0.2357953 -0.16193,-0.383522 0,-0.147728 0.053977,-0.2755693 0.16193,-0.383524 L 6.616475,1.161932 C 6.724435,1.0539773 6.8522783,1 7.000005,1 c 0.1477267,0 0.2755667,0.053977 0.38352,0.161932 l 3.81818,3.818181 c 0.107953,0.1079547 0.16193,0.235796 0.16193,0.383524 z'></path></g></svg>"},T={title:"desc-icon",src:"<svg fill='#323131' viewBox='0 0 14 14' role='img' focusable='false' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' stroke='#323131'><g id='SVGRepo_bgCarrier' stroke-width='0'></g><g id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'></g><g id='SVGRepo_iconCarrier'><path d='m 11.363635,8.636363 c 0,0.147728 -0.05398,0.275569 -0.16193,0.383523 l -3.81818,3.818182 C 7.2755717,12.946023 7.1477317,13 7.000005,13 6.8522783,13 6.724435,12.946023 6.616475,12.838068 L 2.798295,9.019886 C 2.6903417,8.911932 2.636365,8.784091 2.636365,8.636363 c 0,-0.1477267 0.053977,-0.2755673 0.16193,-0.383522 0.1079533,-0.1079547 0.2357933,-0.161932 0.38352,-0.161932 l 7.63637,0 c 0.147727,0 0.275567,0.053977 0.38352,0.161932 0.107953,0.1079547 0.16193,0.2357953 0.16193,0.383522 z'></path></g></svg>"},z={title:"default-sort-icon",src:"<svg xmlns='http://www.w3.org/2000/svg' fill='#323131' stroke='#323131' aria-hidden='true' viewBox='0 0 14 14'><path d='M11.364 8.636q0 .222-.162.384l-3.818 3.818Q7.222 13 7 13t-.384-.162L2.798 9.02q-.162-.162-.162-.384 0-.221.162-.383t.384-.162h7.636q.222 0 .384.162t.162.383zm0-3.272q0 .221-.162.383t-.384.162H3.182q-.222 0-.384-.162t-.162-.383q0-.222.162-.384l3.818-3.818Q6.778 1 7 1t.384.162l3.818 3.818q.162.162.162.384z'/></svg>"},C=(e,t,n,o,a,i,r)=>{const s=e.classList.contains("sorted-asc");j(n,r),e.classList.add(s?"sorted-desc":"sorted-asc");const l=e.querySelector(".sorting");l&&(l.innerHTML="",l.appendChild(B(s?i.src:a.src))),A(o,t,!s)},j=(e,t)=>{e.forEach((e=>{e.classList.remove("sorted-asc","sorted-desc");const n=e.querySelector(".sorting");n&&(n.innerHTML="",n.appendChild(B(t.src)))}))},A=(e,t,n)=>{const o=e.querySelector("tbody");if(!o)return;const a=Array.from(o.querySelectorAll("tr"));0!==a.length&&(a.sort(((e,o)=>E(e,o,t,n))),o.innerHTML="",a.forEach((e=>o.appendChild(e))))},E=(e,t,n,o)=>{const a=e.cells[n]?.textContent.trim(),i=t.cells[n]?.textContent.trim();return void 0===a||void 0===i?0:isNaN(a)||isNaN(i)?o?a.localeCompare(i):i.localeCompare(a):o?a-i:i-a},B=e=>{if(!e)return null;const t=document.createElement("div");t.innerHTML=e.trim();const n=t.firstChild;return n&&"svg"===n.tagName&&(n.setAttribute("width","16"),n.setAttribute("height","16")),n},H=e=>/^\d{4}-\d{2}-\d{2}$/.test(e);function R(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")}function I(e,t){const n=Math.floor(t/5)-2;return e.length>n?e.substring(0,n-3)+"...":e}function O(e,t){return(t-5*e.length)/2}const L=new URL(v),F=new URL(y),N=new URL(w);window?.tableBuilder?.screen&&(window.tableBuilder.helpers={backgroundGenerator:(e,n="Desktop")=>{let r={background:"",size:""};return"image"!==e?.backgroundType||t(e?.backgroundImage?.url)&&t(e?.backgroundImage?.dynamicContentType)||(r.background+=(0,s.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[n]?e?.backgroundImage?.imageUrl?.[n]:e?.backgroundImage?.url})`,e?.backgroundImage),!t(e?.backgroundRepeat)&&(r.background+=`${e?.backgroundRepeat} `),!t(e?.backgroundAttachment)&&(r.background+=`${e?.backgroundAttachment} `),!t(e?.backgroundPosition[n])&&"custom"!==e?.backgroundPosition[n]&&(r.background+=`${e?.backgroundPosition[n]}`),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX[n])&&!t(e?.customPositionY[n])&&(r.background+=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(r.size+=`${e?.backgroundSize}`),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(r.size+=`${i(e?.customSize[n])} auto`)),"classic"!==e?.backgroundType||t(e?.backgroundColor)||(r.background+=`${o(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||t(e?.gradient)||(r.background+=`${a(e?.gradient)} `),t(r?.background)?r.background=void 0:r.background=r.background,t(r?.size)?r.size=void 0:r.size=r.size,r},fillBackgroundGenerator:(e,n="Desktop")=>{let r={"background-image":""};return"classic"===e?.backgroundType&&(r["background-color"]=`${o(e?.backgroundColor)}`),"gradient"===e?.backgroundType&&(r["background-image"]=`${a(e?.gradient)}`),"image"===e?.backgroundType&&((!t(e?.backgroundImage?.url)||!t(e?.backgroundImage?.dynamicContentType))&&(r["background-image"]=(0,s.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[n]?e?.backgroundImage?.imageUrl?.[n]:e?.backgroundImage?.url})`,e?.backgroundImage)),!t(e?.backgroundAttachment)&&(r["background-attachment"]=e?.backgroundAttachment),!t(e?.backgroundPosition[n])&&"custom"!==e?.backgroundPosition[n]&&(r["background-position"]=e?.backgroundPosition[n]),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(r["background-position"]=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(r["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(r["background-size"]=`${i(e?.customSize[n])} auto`),!t(e?.backgroundRepeat)&&(r["background-repeat"]=e?.backgroundRepeat)),r},getBoxShadowValue:e=>{let t="";if((e?.horizontal?.size||0===e?.horizontal?.size)&&(t+=`${e?.horizontal?.size}px`),(e?.vertical?.size||0===e?.vertical?.size)&&(t+=` ${e?.vertical?.size}px`),(e?.blur?.size||0===e?.blur?.size)&&(t+=` ${e?.blur?.size}px`),(e?.spread?.size||0===e?.spread?.size)&&(t+=` ${e?.spread?.size}px`),e?.color&&(t+=` ${o(e?.color)}`),e?.position&&(t+=` ${e?.position}`),(e?.horizontal?.size||0===e?.horizontal?.size)&&e?.vertical?.size||0===e?.vertical?.size)return t},getBorderValue:e=>{if(t(e))return{border:void 0};if(3===Object.keys(e).length&&e?.width&&e?.color)return{border:`${e?.width} ${e?.style||"solid"} ${o(e?.color)}`};if(e?.right||e?.bottom||e?.left||e?.top){const t={};return Object.keys(e).forEach((n=>{e[n]?.width&&e[n]?.color&&(t[`border-${n}`]=`${e[n]?.width} ${e[n]?.style||"solid"} ${o(e[n]?.color)}`)})),t}},getBoxValue:(e={},t="")=>{const{top:n,right:o,bottom:a,left:i}=e,r={top:n,right:o,bottom:a,left:i},s=Object.values(r).filter((e=>void 0!==e)).length;if(0===s)return{[t]:void 0};if(4===s){let e="";return e=n===a&&n===o&&n===i?n:n===a&&i===o?`${n} ${o}`:`${n} ${o} ${a} ${i}`,{[t]:e}}let l={};return"border-radius"!==t?(Object.keys(r).forEach((n=>{l[`${t}-${n}`]=e[n]||void 0})),l):"border-radius"===t?(l["border-top-left-radius"]=n||void 0,l["border-top-right-radius"]=o||void 0,l["border-bottom-right-radius"]=a||void 0,l["border-bottom-left-radius"]=i||void 0,l):void 0},getTypographyValue:(e,t)=>"Desktop"===t?{"font-family":e?.fontFamily?.value,"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"font-style":e?.fontStyle,"font-weight":e?.fontWeight?.value,"text-decoration":e?.textDecoration,"text-transform":e?.textTransform,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit}:{"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit},getSliderValue:i,getMultipleTransition:(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach(((e,n)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let n=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${n} ${e?.animation}`)}})),t.length>0?t.join(", "):void 0},getCSSFilters:r,gkitResponsiveValue:(e,t,n)=>{if(n&&e&&t){if(Array.isArray(t)){let o=e[t[0]];if(o&&o[t[1]])return o[t[1]][n]}return e[t+n]}},parseCSS:(e,t=c)=>{let n={};if(Array.isArray(e)){let[o,a,i=[]]=e;t.forEach((e=>{n[e?.slug]="base"===e?.value?[...o,...a(e?.slug)]:a(e?.slug)})),n.customStyles=i}else n=e;return{rawCSS:n,breakpoints:t}},responsiveHelper:(e,t,n,o)=>{o({[e+n]:t})},useDeviceType:()=>{const{modules:e}=window?.gutenkit||{},t=e?.breakpoints,{deviceType:n}=(0,u.useSelect)((e=>{const n=e("gutenkit/global-store")?.getDeviceType,o=d.store?e(d.store)?.getDeviceType:void 0;return d.store?{deviceType:t?n?.():o?.()}:{deviceType:"Desktop"}}),[]);return n||"Desktop"},orderSortedValue:(e=[],t,n)=>{if(!t)return[];const o=n.startsWith(".")?n:`.${n}`,a=e?.map(((e,t)=>({selector:`${o} .${e.class}`,order:t})));return a},getMultipleTransform:(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap((([n,o])=>{const{rotate:a,rotateHover:r,scale:s,scaleHover:l}=t,c=a?.common3DRotate,u=r?.common3DRotateHover,d=s?.commonKeepProportions,h=l?.commonKeepProportionsHover,g=(t,n,a)=>{const r=[t+e].toString(),s=o&&void 0!==o[r],l=o&&void 0!==i(o[r]);return s&&n&&l?`${a}(${i(o[r])})`:!o||"horizontal"!=o[t]&&"vertical"!=o[t]?void 0:`${a}(calc(-1))`};return[g("commonRotate",!c,"rotateZ"),g("commonRotateX",c,"rotateX"),g("commonRotateY",c,"rotateY"),g("perspective",c,"perspective"),g("commonOffsetX",!0,"translateX"),g("commonOffsetY",!0,"translateY"),g("commonScale",d,"scale"),g("commonScaleX",!d,"scaleX"),g("commonScaleY",!d,"scaleY"),g("commonSkewX",!0,"skewX"),g("commonSkewY",!0,"skewY"),g("commonFlipHorizontal",!0,"scaleX"),g("commonFlipVertical",!0,"scaleY"),g("commonRotateHover",!u,"rotateZ"),g("commonRotateXHover",u,"rotateX"),g("commonRotateYHover",u,"rotateY"),g("perspectiveHover",u,"perspective"),g("commonOffsetXHover",!0,"translateX"),g("commonOffsetYHover",!0,"translateY"),g("commonScaleHover",h,"scale"),g("commonScaleXHover",!h,"scaleX"),g("commonScaleYHover",!h,"scaleY"),g("commonSkewXHover",!0,"skewX"),g("commonSkewYHover",!0,"skewY"),g("commonFlipHorizontalHover",!0,"scaleX"),g("commonFlipVerticalHover",!0,"scaleY")]})).filter((e=>void 0!==e)).join(" ")},getMultipleTransformOrigin:(...e)=>{let t=[];return e&&e.forEach((e=>{e?.value&&t.push(`${e.value}`)})),t.length>0?t.join(" "):void 0},useDeviceList:()=>{const{modules:e}=window?.gutenkit||{},t=(0,h.useRef)(null);let n=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];return e&&(n=(0,h.useMemo)((()=>{const t=e?.breakpoints?(0,u.select)("gutenkit/global-store"):null;let n=[l,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];if(t){const{getActiveBreakpoints:e}=t,o=e()?.sort(((e,t)=>parseInt(t.value)-parseInt(e.value)));o?.length>0&&(n=[l,...o])}return n}),[])),(0,h.useMemo)((()=>{const e=t.current;return JSON.stringify(e)!==JSON.stringify(n)?(t.current=n,n):e}),[n])},useBlockStyles:(e,t,n,o)=>{const{rawCSS:a,breakpoints:i}=(0,h.useMemo)((()=>o),[o]),{__unstableMarkNextChangeAsNotPersistent:r}=(0,u.useDispatch)("core/block-editor"),s=(0,h.useRef)(null),l=(0,h.useMemo)((()=>((e,t)=>{const n={};for(let o=0;o<t.length;o++){const a=t[o],i=e[a.slug]||e[a.slug.toLowerCase()];if(i){const e=[];for(let t=0;t<i.length;t++){const{selector:n,...o}=i[t],a=p(o);a&&e.push(`${n} { ${a} }`)}e.length>0&&(n[a.slug.toLowerCase()]=e.join(" "))}}if(e.customStyles){const t=[];for(let n=0;n<e.customStyles.length;n++){const{mediaQuery:o,selector:a,...i}=e.customStyles[n];if(o&&!o.includes("undefined")){const e=p(i);e&&t.push(`@media (${o}) { ${a} { ${e} } }`)}}t.length>0&&(n.customStyles=t.join(" "))}return n})(a,i)),[a,i]),c=(0,h.useRef)(e);return(0,h.useEffect)((()=>(l&&JSON.stringify(e)!==JSON.stringify(c.current||{})&&(s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{r(),t({[n]:l}),c.current=e}),200)),()=>clearTimeout(s.current))),[l]),l},getTextStrokeValue:(e,t)=>{const{width:n,color:a}=e||{};if(n&&"object"==typeof n){const{size:e,unit:i}=n[t]?n[t]:{};if(null!=e&&!isNaN(e))return`${e}${i||"px"} ${o(a)||""}`.trim()}},getColor:o,getGradient:a,colorsGroup:[{color:"#72aee6",name:"Blue 20"},{color:"#3582c4",name:"Blue 40"},{color:"#e65054",name:"Red 40"},{color:"#8a2424",name:"Red 70"}],boxControlUnit:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"}],overflowOptions:[{label:"Default",value:""},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"}],htmlTags:[{label:"Div",value:"div"},{label:"Header",value:"header"},{label:"Main",value:"main"},{label:"Article",value:"article"},{label:"Section",value:"section"},{label:"Aside",value:"aside"},{label:"Figure",value:"figure"},{label:"Figcaption",value:"figcaption"},{label:"Nav",value:"nav"},{label:"Footer",value:"footer"}],getAttrDependencies:(e,t=!1)=>{if(e){let n="";n=t?Object.keys(e).map((e=>"blocksCSS"!==e?"attributes?."+e+",\n":"")).join(""):Object.keys(e).filter((e=>"blocksCSS"!==e)).join(", \n"),navigator.clipboard.writeText(n).then((()=>{console.info("Copied to clipboard")})).catch((()=>{console.warn("Something went wrong")}))}},isNull:t,linkGenerator:e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,f.prependHTTP)(t));let n={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(n.target="_blank",n.rel="noopener"),e?.noFollow&&(n.rel="_blank"==n.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach((e=>{const[t,o]=e.split("|");n[t]=o})),e?.isDynamicContent?(n["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),n):n?.href?n:null},overlayGenerator:(e,n="Desktop")=>{let s={"background-image":""};return"gradient"===e?.backgroundType&&(s["background-image"]=a(e?.gradient)),"classic"===e?.backgroundType&&(!t(e?.backgroundColor)&&(s["background-color"]=o(e?.backgroundColor)),!t(e?.backgroundImage?.imageUrl)&&(s["background-image"]=`url(${e?.backgroundImage?.imageUrl})`),!t(e?.backgroundAttachment)&&(s["background-attachment"]=e?.backgroundAttachment),!t(e?.backgroundPosition[n])&&"custom"!==e?.backgroundPosition[n]&&(s["background-position"]=e?.backgroundPosition[n]),!t(e?.backgroundPosition[n])&&"custom"===e?.backgroundPosition[n]&&!t(e?.customPositionX)&&!t(e?.customPositionY)&&(s["background-position"]=`${i(e?.customPositionX[n])} ${i(e?.customPositionY[n])}`),!t(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(s["background-size"]=e?.backgroundSize),!t(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(s["background-size"]=`${i(e?.customSize[n])} auto`),!t(e?.backgroundRepeat)&&(s["background-repeat"]=e?.backgroundRepeat)),!t(e?.opacity)&&(s.opacity=`${e?.opacity?.size}`),!t(e?.blendMode)&&(s["mix-blend-mode"]=e?.blendMode),!t(e?.cssFilters)&&(s.filter=r(e?.cssFilters)),t(s)?void 0:s},responsiveTypographyHelper:(e,t,n,o)=>{const a={...e};return{...a,[t]:{...a[t],[o]:n}}},useFontFamilyinBlock:(e=[])=>{const{use_only_global_styles_fonts:n}=window?.gutenkit||{},{isBlockBasedTheme:o}=(0,u.useSelect)((e=>{const{__unstableIsBlockBasedTheme:t}=e("core/block-editor").getSettings();return{isBlockBasedTheme:t||!1}}),[]);n&&o||((0,h.useEffect)((()=>{e.length=0}),[]),(0,h.useEffect)((()=>{let n=[];e?.length>0&&e.forEach((e=>{let o={};!t(e?.fontFamily)&&(o.Font=e?.fontFamily?.value),!t(e?.fontWeight)&&(o.Condensed=e?.fontWeight?.value);let a="";!t(o?.Font)&&(a=o?.Font),!t(o?.Font)&&!t(o?.Condensed)&&(a+=":400,"+o?.Condensed),!t(a)&&n.push(a)})),n.length>0&&b().load({google:{families:[...n]},context:frames["editor-canvas"]})}),[JSON.stringify(e)]))},truncateWords:function(e,t){if(!e)return"";const n=e.split(" ");if(t>=n.length)return e;const o=n.slice(0,t);return o.push("..."),o.join(" ")},GkitLocalStoreGetData:e=>e&&localStorage.getItem(e),GkitLocalStoreSetData:(e,t,n=[])=>{const o=n;o.length>0?o.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},onScrollAnimateIframe:(e,t)=>{const n=window.frames["editor-canvas"]||window;if(n){const{IntersectionObserver:o,document:a}=n,i=new o((e=>{e.forEach((e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}}))})),r=a.querySelectorAll(e);r&&r.forEach((e=>{const t=e.getAttribute("id"),n=a.getElementById(t);i.observe(n)}))}},onScrollAnimate:(e,t)=>{const n=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}}))})),o=document.querySelectorAll(e);o&&o.forEach((e=>{const t=e.getAttribute("id"),o=document.getElementById(t);n.observe(o)}))},placeholderImage:L.href,libraryPlaceholderImage:F.href,dynamicPlaceholderImage:N.href,moveObjectToTop:function(e,t){const n=e.findIndex((e=>e.slug===t));if(-1!==n){const[t]=e.splice(n,1);e.unshift(t)}return e},useHasProActive:function({windowVariable:e="gutenkit",hookName:t="gutenkit.is-pro-active",cookieName:n="isValidLicense",apiPath:o="gutenkit"}={}){const[a,i]=(0,h.useState)((()=>"true"===P(n))),{has_pro:r}=window?.[e]||{};return(0,h.useEffect)((()=>{r&&(async()=>{const e=P(n);e?i("true"===e):setTimeout((async()=>{try{const e=await S()({path:`/${o}/v1/license/status`});"valid"===e?.status?(i(!0),$(n,"true",12)):(i(!1),$(n,"false",12))}catch(e){console.error("Error fetching license status:",e)}}),2e3)})()}),[r]),(0,h.useMemo)((()=>(0,s.applyFilters)(t,a)),[a])},sortingHandler:(e,{ascIcon:t=x,descIcon:n=T,defaultSortIcon:o=z,enableSorting:a=!0})=>{if(!e)return;const i=e.querySelectorAll("th");0!==i.length&&i.forEach(((r,s)=>{if(!a){console.log("Sorting disabled for header:",r),r.classList.remove("sortable");const e=r.querySelector(".sorting");e&&e.remove();const t=r.cloneNode(!0);return r.parentNode.replaceChild(t,r),void(t.dataset.sortableApplied="false")}if("true"===r.dataset.sortableApplied)return;r.classList.add("sortable");let l=r.querySelector(".sorting");l&&l.remove(),l=document.createElement("span"),l.classList.add("sorting");const c=B(o?.src);c&&l.appendChild(c),r.appendChild(l),r.addEventListener("click",(()=>C(r,s,i,e,t,n,o))),r.dataset.sortableApplied="true"}))},exportCSV:e=>{if(!e?.tableHeader||!e?.tableBody)return;const t=e.tableHeader.join(",")+"\n",n=e.tableBody.map((e=>Object.values(e).map((e=>H(e)?`"\t${e}"`:`"${e}"`)).join(","))).join("\n"),o=new Blob([t+n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(o),i=document.createElement("a");i.href=a,i.download="table_data.csv",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)},exportTableAsPDF:function(e,t="table-export.pdf"){if(!e||!Array.isArray(e.tableBody)||!Array.isArray(e.tableHeader))return void console.error("Invalid table data format!");const n=e.tableHeader.length,o=762/n,a=e.tableBody.map((t=>e.tableHeader.map((e=>void 0!==t[e]?String(t[e]):"")))),i=Math.floor(24.25);let r=[];for(let e=0;e<a.length;e+=i)r.push(a.slice(e,e+i));const s=function(e){let t=[],n=[],o=0;function a(e){n.push(o),o+=e.length,t.push(e)}o+=15,a("1 0 obj\n<< /Type /Catalog\n /Pages 2 0 R\n>>\nendobj\n"),a(`2 0 obj\n<< /Type /Pages\n /Kids [PLACEHOLDER]\n /Count ${e.length}\n>>\nendobj\n`),a("3 0 obj\n<< /Type /Font\n /Subtype /Type1\n /BaseFont /Helvetica\n>>\nendobj\n"),a("4 0 obj\n<< /Type /Font\n /Subtype /Type1\n /BaseFont /Helvetica-Bold\n>>\nendobj\n");let i=[],r=5+e.length;e.forEach(((e,t)=>{a(`${5+t} 0 obj\n<< /Length ${e.length} >>\nstream\n${e}endstream\nendobj\n`)})),e.forEach(((e,t)=>{const n=5+t,o=r+t;i.push(`${o} 0 R`),a(`${o} 0 obj\n<< /Type /Page\n /Parent 2 0 R\n /MediaBox [0 0 842 595]\n /Contents ${n} 0 R\n /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >>\n>>\nendobj\n`)}));const s=i.join(" ");t[1]=`2 0 obj\n<< /Type /Pages\n /Kids [${s}]\n /Count ${e.length}\n>>\nendobj\n`;const l=o;let c="xref\n0 "+(t.length+1)+"\n";c+="0000000000 65535 f \n",n.forEach((e=>{c+=String(e).padStart(10,"0")+" 00000 n \n"}));const u=`trailer\n<< /Size ${t.length+1}\n /Root 1 0 R\n>>\nstartxref\n${l}\n%%EOF\n`;return"%PDF-1.4\n%âãÏÓ\n"+t.join("")+c+u}(r.map((t=>function(e,t,n,o,a,i,r,s){let l="BT\n";l+="0.239 0.212 0.361 rg\n",l+=`40 523 m ${n+a*s} 523 l ${n+a*s} 557 l 40 557 l f\n`,l+="/F2 10 Tf\n",l+="1 1 1 rg\n";t.forEach(((e,t)=>{const o=I(e,a-4),i=O(o,a);l+=`1 0 0 1 ${n+a*t+i} 537 Tm (${R(o)}) Tj\n`})),l+="/F1 10 Tf\n",l+="0 0 0 rg\n",e.forEach(((e,t)=>{if(t%2==0){const e=525-i*t-2,o=525-i*(t+1)-2;l+="0.95 0.95 0.95 rg\n",l+=`40 ${o} m ${n+a*s} ${o} l ${n+a*s} ${e} l 40 ${e} l f\n`,l+="0 0 0 rg\n"}const o=525-i*t-10-3;e.forEach(((e,t)=>{const i=I(e,a-4),r=O(i,a);l+=`1 0 0 1 ${n+a*t+r} ${o} Tm (${R(i)}) Tj\n`}))})),l+="ET\n",l+=`0 0 0 RG\n1 w\n40 525 m ${n+a*s} 525 l S\n`,l+="0 w\n";for(let t=0;t<=e.length;t++){const e=525-i*t-2;l+=`0 0 0 RG\n40 ${e} m ${n+a*s} ${e} l S\n`}for(let t=0;t<=s;t++){const o=n+a*t,r=557,s=525-i*e.length-2;l+=`0 0 0 RG\n${o} ${r} m ${o} ${s} l S\n`}return l}(t,e.tableHeader,40,0,o,20,0,n)))),l=new Blob([s],{type:"application/pdf"}),c=URL.createObjectURL(l),u=document.createElement("a");u.href=c,u.download=t,u.click(),setTimeout((()=>{URL.revokeObjectURL(c)}),1e3)},exportExcel:e=>{if(!e?.tableHeader||!e?.tableBody)return;let t="<table><tr>";e.tableHeader.forEach((e=>{t+=`<th>${e}</th>`})),t+="</tr>",e.tableBody.forEach((e=>{t+="<tr>",Object.values(e).forEach((e=>{t+=`<td>${e}</td>`})),t+="</tr>"})),t+="</table>";const n=new Blob([t],{type:"application/vnd.ms-excel"}),o=URL.createObjectURL(n),a=document.createElement("a");a.href=o,a.download="table_data.xls",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)},exportAsPrint:(e,t="table-export")=>{if(!e||!Array.isArray(e.tableBody)||!Array.isArray(e.tableHeader))return void console.error("Invalid table data format!");const n=`\n <!DOCTYPE html>\n <html>\n <head>\n <title>${t}</title>\n <meta charset="utf-8">\n <style>\n body {\n font-family: Arial, sans-serif;\n padding: 20px;\n }\n table {\n width: 100%;\n border-collapse: collapse;\n }\n th, td {\n border: 1px solid #ccc;\n padding: 5px;\n text-align: left;\n font-size: 12px;\n }\n th {\n background-color: #333;\n color: #fff;\n }\n tr:nth-child(even) {\n background-color: #f2f2f2;\n }\n .footer {\n margin-top: 15px;\n font-size: 10px;\n text-align: right;\n }\n </style>\n </head>\n <body>\n \n <table>\n <thead><tr>${e.tableHeader.map((e=>`<th>${e}</th>`)).join("")}</tr></thead>\n <tbody>${e.tableBody.map((e=>`<tr>${Object.values(e).map((e=>`<td>${e}</td>`)).join("")}</tr>`)).join("")}</tbody>\n </table>\n \n <div class="footer">Generated on ${(new Date).toLocaleDateString()}</div>\n <script>\n window.onload = function () {\n setTimeout(() => {\n window.focus();\n window.print();\n }, 100);\n };\n <\/script>\n </body>\n </html>\n `,o=document.createElement("iframe");o.style.display="none",document.body.appendChild(o);const a=o.contentWindow.document;a.open(),a.write(n),a.close(),o.contentWindow.onafterprint=()=>{document.body.removeChild(o)}},searchMechanism:(e,t,n)=>{if(!t||"function"!=typeof n)return()=>{};let o=null,a=null;const i=()=>{t.value="",r()},r=()=>{const o=t.value.trim().toLowerCase();if(a&&(a.style.display=o?"flex":"none"),!o)return void n(e);const i=e.tableBody.filter((e=>Object.values(e).some((e=>String(e).toLowerCase().includes(o))))),r={tableHeader:e.tableHeader,tableBody:i},s=0===i.length?"No matching results found.":null;n(r,s)},s=(l=r,(...e)=>{clearTimeout(o),o=setTimeout((()=>l.apply(void 0,e)),200)});var l;return(()=>{const e=t.parentNode;a=e.querySelector(".gkit-search-clear-icon"),a||(a=document.createElement("span"),a.className="gkit-search-clear-icon",a.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" class="gkit-icon">\n <path fill="#000" fill-rule="evenodd" clip-rule="evenodd" \n d="M19.207 6.207a1 1 0 0 0-1.414-1.414L12 10.586 6.207 4.793a1 1 0 0 0-1.414 1.414L10.586 12l-5.793 5.793a1 1 0 1 0 1.414 1.414L12 13.414l5.793 5.793a1 1 0 0 0 1.414-1.414L13.414 12l5.793-5.793z"/>\n </svg>\n ',e.insertBefore(a,t.nextSibling),a.addEventListener("click",i))})(),t.removeEventListener("input",s),t.addEventListener("input",s),r(),()=>{t.removeEventListener("input",s),a&&(a.removeEventListener("click",i),a.remove()),clearTimeout(o)}},useFetcher:async(e,t,n="",o={})=>{const{liveUpdate:a=!1,cacheDuration:i=12}=o,r=new URLSearchParams({type:t,url:e,nestedPath:n,liveUpdate:a});"number"==typeof i&&r.append("cacheDuration",i);const s=`/wp-json/table-builder/v1/data-table?${r.toString()}`;try{const e=await fetch(s);if(!e.ok){const t=await e.json();throw new Error(t?.message||"Unknown error occurred")}const t=await e.json();return t&&Array.isArray(t.values)?{values:t.values,paths:Array.isArray(t.paths)?t.paths:[],error:null}:{values:Array.isArray(t)?t:[],paths:[],error:null}}catch(e){return{values:[],paths:[],error:e?.message}}},useRefreshFetcher:async(e,t,n="")=>{const o={type:t,url:e,nestedPath:n};try{const e=await fetch("/wp-json/table-builder/v1/data-table/refresh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),t=await e.json();return t&&Array.isArray(t.values)?{values:t.values,paths:Array.isArray(t.paths)?t.paths:[]}:{values:Array.isArray(t)?t:[],paths:[]}}catch(e){return{values:[],paths:[]}}},extractTableData:e=>{if(Array.isArray(e)&&"object"==typeof e[0]){const t=Object.keys(e[0]),n=e.map((e=>t.reduce(((t,n)=>(t[n]=void 0!==e[n]?e[n]:null,t)),{})));return{tableHeader:t,tableBody:n}}if("string"==typeof e){const t=e.split("\n").map((e=>e.trim())).filter((e=>e));if(!t.length)return;const n=t[0].split(",").map((e=>e.trim())),o=t.slice(1).map((e=>{const t=e.split(",");return n.reduce(((e,n,o)=>(e[n]=t[o]?t[o].trim():null,e)),{})}));return{tableHeader:n,tableBody:o}}},Pagination:class{constructor(e={}){this.validateOptions(e),this.initializeState(e),this.setupProxy(),this.render(),this.notifyUpdate()}validateOptions(e){const t=["data","container","onUpdate"].filter((t=>!e[t]));if(t.length)throw new Error(`Missing required options: ${t.join(", ")}`)}initializeState(e){const{data:t={},container:n,onUpdate:o,itemRowPerPage:a=10,hasFooter:i=!0,showResult:r=!0,showRowPerPage:s=!0,showPaginationControl:l=!0,itemPerPageContent:c="Items per page",prevFirstIcon:u=null,prevIcon:d=null,nextIcon:h=null,nextEndIcon:g=null,pageSizeOptions:p=[5,10,20,50,100,"All"],labels:f={},customClasses:m={}}=e;this.container=n,this.onUpdate=o,Array.isArray(t)?(this.tableHeader=null,this.originalTableBody=t):(this.tableHeader=t.tableHeader||null,this.originalTableBody=t.tableBody||[]),this.attributes={itemRowPerPage:a,hasFooter:i,showResult:r,showRowPerPage:s,showPaginationControl:l,itemPerPageContent:c,prevFirstIcon:u,prevIcon:d,nextIcon:h,nextEndIcon:g,pageSizeOptions:p,labels:{showingAll:"Showing all {total} items",showingRange:"Showing {start} to {end} of {total}",pageOf:"Page {current} of {total}",allOption:"All",...f},classes:{info:"pagination-info",pageSize:"pagination-page-size",select:"pagination-select",label:"pagination-label",controls:"pagination-controls",button:"pagination-btn",text:"pagination-text",icon:"pagination-icon",...m}},this.state={currentPage:1,itemsPerPage:this.attributes.itemRowPerPage,get totalPages(){return Math.max(1,Math.ceil(this.tableBody?.length/this.itemsPerPage))},tableBody:[...this.originalTableBody]}}setupProxy(){const e=this;this.paginationState=new Proxy(this.state,{set:(t,n,o)=>(t[n]=o,"currentPage"!==n&&"itemsPerPage"!==n||e.updatePaginationState(),!0)})}updatePaginationState(){this.notifyUpdate(),this.render()}notifyUpdate(){this.onUpdate(this.getDisplayedItems())}getDisplayedItems(){const{currentPage:e,itemsPerPage:t,tableBody:n}=this.paginationState;if(-1===t||-1===Number(t))return{tableHeader:this.tableHeader,tableBody:n};const o=(e-1)*t,a=e*t;return{tableHeader:this.tableHeader,tableBody:n?.slice(o,a)}}updatePagination(e){Array.isArray(e)?this.paginationState.tableBody=[...e]:(this.paginationState.tableBody=e.tableBody||[],e.tableHeader&&(this.tableHeader=e.tableHeader)),this.paginationState.currentPage=Math.min(this.paginationState?.currentPage,this.paginationState?.totalPages)}handlePageChange(e){this.paginationState.currentPage=Math.max(1,Math.min(e,this.paginationState?.totalPages))}handlePageSizeChange(e){this.paginationState.itemsPerPage=e,this.paginationState.currentPage=1}getCurrentPage(){return this.paginationState.currentPage}getTotalPages(){return this.paginationState.totalPages}getPageSize(){return this.paginationState.itemsPerPage}render(){this.container&&(this.container.innerHTML="",this.attributes?.hasFooter&&[this.renderPageSizeControl(),this.renderPageInfo(),this.renderControls()].filter((e=>e&&" "!==e)).forEach((e=>this.container.appendChild(e))))}renderPageInfo(){const{currentPage:e,itemsPerPage:t,tableBody:n}=this.paginationState,{showResult:o,labels:a,classes:i}=this.attributes;if(!o)return null;let r;if(-1===t||-1===Number(t))r=a.showingAll.replace("{total}",n?.length);else{const o=(e-1)*t,i=Math.min(e*t,n?.length);r=a.showingRange.replace("{start}",o+1).replace("{end}",i).replace("{total}",n?.length)}return this.createElement("div",{className:i.info,textContent:r})}renderPageSizeControl(){const{showRowPerPage:e,itemPerPageContent:t,pageSizeOptions:n,classes:o}=this.attributes,{itemsPerPage:a}=this.paginationState;if(!e)return null;const i=n.map((e=>{const t="All"===e?-1:e;return this.createElement("option",{value:t,textContent:e,selected:t===Number(a)})})),r=this.createElement("select",{},i);return r.addEventListener("change",(e=>this.handlePageSizeChange(Number(e?.target?.value)))),this.createElement("div",{className:o.pageSize},[this.createElement("label",{textContent:`${t}:`}),r])}renderControls(){const{currentPage:e,totalPages:t}=this.paginationState,{showPaginationControl:n,prevFirstIcon:o,prevIcon:a,nextIcon:i,nextEndIcon:r,labels:s,classes:l}=this.attributes;if(!n)return null;const c=[this.createButton(o,(()=>this.handlePageChange(1)),1===e),this.createButton(a,(()=>this.handlePageChange(e-1)),1===e),this.createElement("span",{className:l.text,textContent:s.pageOf.replace("{current}",e).replace("{total}",t)}),this.createButton(i,(()=>this.handlePageChange(e+1)),e>=t),this.createButton(r,(()=>this.handlePageChange(t)),e>=t)];return this.createElement("div",{className:l.controls},c)}createButton(e,t,n){const{classes:o}=this.attributes,a=this.createElement("button",{disabled:n,className:o.button,onclick:t});if(e?.src){const t=e.src.replace(/<svg([^>]*)class="([^"]*)"([^>]*)>|<svg([^>]*)>/,((e,t,n,a,i)=>void 0!==n?`<svg${t}class="${n} ${o.icon}"${a}>`:`<svg${i} class="${o.icon}">`)).replace(/<svg([^>]*)>/,((e,t)=>t.includes("width")&&t.includes("height")?`<svg${t}>`:`<svg${t} width="16" height="16">`)),n=document.createElement("span");n.innerHTML=t,a.append(n.firstChild)}else a.textContent="Button";return a}createElement(e,t={},n=[]){const o=document.createElement(e);return Object.assign(o,t),[].concat(n).forEach((e=>{e instanceof Node?o.appendChild(e):"string"==typeof e&&o.appendChild(document.createTextNode(e))})),o}destroy(){this.container&&(this.container.innerHTML=""),this.container=null,this.onUpdate=null,this.originalTableBody=null,this.paginationState=null}}})})()})(); |
|
1
|
+(()=>{var e={371(e,t,o){var n;!function(){function i(e,t,o){return e.call.apply(e.bind,arguments)}function r(e,t,o){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,n),e.apply(t,o)}}return function(){return e.apply(t,arguments)}}function s(e,t,o){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:r).apply(null,arguments)}var a=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,o,n){if(t=e.c.createElement(t),o)for(var i in o)o.hasOwnProperty(i)&&("style"==i?t.style.cssText=o[i]:t.setAttribute(i,o[i]));return n&&t.appendChild(e.c.createTextNode(n)),t}function d(e,t,o){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(o,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,o){t=t||[],o=o||[];for(var n=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var r=!1,s=0;s<n.length;s+=1)if(t[i]===n[s]){r=!0;break}r||n.push(t[i])}for(t=[],i=0;i<n.length;i+=1){for(r=!1,s=0;s<o.length;s+=1)if(n[i]===o[s]){r=!0;break}r||t.push(n[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var o=e.className.split(/\s+/),n=0,i=o.length;n<i;n++)if(o[n]==t)return!0;return!1}function p(e,t,o){function n(){a&&i&&r&&(a(s),a=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,r=!0,s=null,a=o||null;c?(t.onload=function(){i=!0,n()},t.onerror=function(){i=!0,s=Error("Stylesheet failed to load"),n()}):setTimeout(function(){i=!0,n()},0),d(e,"head",t)}function m(e,t,o,n){var i=e.c.getElementsByTagName("head")[0];if(i){var r=u(e,"script",{src:t}),s=!1;return r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,o&&o(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&i.removeChild(r))},i.appendChild(r),setTimeout(function(){s||(s=!0,o&&o(Error("Script load timeout")))},n||5e3),r}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function k(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var o=(t||"n4").match(/^([nio])([1-9])$/i);o&&(this.a=o[1],this.f=parseInt(o[2],10))}function $(e){var t=[];e=e.split(/,\s*/);for(var o=0;o<e.length;o++){var n=e[o].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function x(e){return e.a+e.f}function T(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function z(e){var t=4,o="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(o=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),o+t}function P(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function C(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),o=[],n=[e.a.c("wf","loading")];t||o.push(e.a.c("wf","inactive")),g(e.f,o,n)}j(e,"inactive")}function j(e,t,o){e.j&&e.h[t]&&(o?e.h[t](o.c,x(o)):e.h[t]())}function _(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){d(e.c,"body",e.a)}function N(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+$(e.c)+";font-style:"+T(e)+";font-weight:"+e.f+"00;"}function E(e,t,o,n,i,r){this.g=e,this.j=t,this.a=n,this.c=o,this.f=i||3e3,this.h=r||void 0}function O(e,t,o,n,i,r,s){this.v=e,this.B=t,this.c=o,this.a=n,this.s=s||"BESbswy",this.f={},this.w=i||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=N(e=new S(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=N(e=new S(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=N(e=new S("serif",x(this.a))),this.j.a.style.cssText=e,e=N(e=new S("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}y.prototype.c=function(e){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},E.prototype.start=function(){var e=this.c.o.document,t=this,o=a(),n=new Promise(function(n,i){!function r(){a()-o>=t.f?i():e.fonts.load(function(e){return T(e)+" "+e.f+"00 300px "+$(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(r,25)},function(){i()})}()}),i=null,r=new Promise(function(e,o){i=setTimeout(o,t.f)});Promise.race([r,n]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var I={D:"serif",C:"sans-serif"},M=null;function F(){if(null===M){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);M=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return M}function W(e,t,o){for(var n in I)if(I.hasOwnProperty(n)&&t===e.f[I[n]]&&o===e.f[I[n]])return!0;return!1}function H(e){var t,o=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=o===e.f.serif&&n===e.f["sans-serif"])||(t=F()&&W(e,o,n)),t?a()-e.A>=e.w?F()&&W(e,o,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?L(e,e.v):L(e,e.B):function(e){setTimeout(s(function(){H(this)},e),50)}(e):L(e,e.v)}function L(e,t){setTimeout(s(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)},e),0)}function B(e,t,o){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=o}O.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),H(this)};var V=null;function G(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&g(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):C(e.a))}function R(e){this.j=e,this.a=new _,this.h=0,this.f=this.g=!0}function X(e,t,o,n,i){var r=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,a=n||{};if(0===o.length&&r)C(t.a);else{t.f+=o.length,r&&(t.j=r);var l,c=[];for(l=0;l<o.length;l++){var u=o[l],d=a[u.c],f=t.a,h=u;if(f.g&&g(f.f,[f.a.c("wf",h.c,x(h).toString(),"loading")]),j(f,"fontloading",h),f=null,null===V)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var p=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);V=h?42<parseInt(h[1],10):!p}else V=!1;f=V?new E(s(t.g,t),s(t.h,t),t.c,u,t.s,d):new O(s(t.g,t),s(t.h,t),t.c,u,t.s,e,d),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}},0)}function Y(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function q(e,t){this.c=e||J,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&g(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,G(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var o=h(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),n=[],i=[t.a.c("wf",e.c,x(e).toString(),"loading")];o||n.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),g(t.f,n,i)}j(t,"fontinactive",e),G(this)},R.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,o){var n=[],i=o.timeout;!function(e){e.g&&g(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t),n=function(e,t,o){var n,i=[];for(n in t)if(t.hasOwnProperty(n)){var r=e.c[n];r&&i.push(r(t[n],o))}return i}(e.a,o,e.c);var r=new B(e.c,t,i);for(e.h=n.length,t=0,o=n.length;t<o;t++)n[t].load(function(t,o,n){X(e,r,t,o,n)})}(this,new P(this.c,e),e)},Y.prototype.load=function(e){function t(){if(r["__mti_fntLst"+n]){var o,i=r["__mti_fntLst"+n](),s=[];if(i)for(var a=0;a<i.length;a++){var l=i[a].fontfamily;null!=i[a].fontStyle&&null!=i[a].fontWeight?(o=i[a].fontStyle+i[a].fontWeight,s.push(new S(l,o))):s.push(new S(l))}e(s)}else setTimeout(function(){t()},50)}var o=this,n=o.a.projectId,i=o.a.version;if(n){var r=o.c.o;m(this.c,(o.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),function(i){i?e([]):(r["__MonotypeConfiguration__"+n]=function(){return o.a},t())}).id="__MonotypeAPIScript__"+n}else e([])},U.prototype.load=function(e){var t,o,n=this.a.urls||[],i=this.a.families||[],r=this.a.testStrings||{},s=new b;for(t=0,o=n.length;t<o;t++)p(this.c,n[t],v(s));var a=[];for(t=0,o=i.length;t<o;t++)if((n=i[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)a.push(new S(n[0],l[c]));else a.push(new S(n[0]));k(s,function(){e(a,r)})};var J="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function oe(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}oe.prototype.load=function(e){var t=new b,o=this.c,n=new q(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var o=t.length,n=0;n<o;n++){var i=t[n].split(":");3==i.length&&e.f.push(i.pop());var r="";2==i.length&&""!=i[1]&&(r=":"),e.a.push(i.join(r))}}(n,i);var r=new K(i);!function(e){for(var t=e.f.length,o=0;o<t;o++){var n=e.f[o].split(":"),i=n[0].replace(/\+/g," "),r=["n4"];if(2<=n.length){var s;if(s=[],a=n[1])for(var a,l=(a=a.split(",")).length,c=0;c<l;c++){var u;if((u=a[c]).match(/^[\w-]+$/))if(null==(d=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":ee[u],null==(d=d[1])||""==d)d="4";else var d=Z[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&s.push(u)}0<s.length&&(r=s),3==n.length&&(s=[],0<(n=(n=n[2])?n.split(","):s).length&&(n=Q[n[0]])&&(e.c[i]=n))}for(e.c[i]||(n=Q[i])&&(e.c[i]=n),n=0;n<r.length;n+=1)e.a.push(new S(i,r[n]))}}(r),p(o,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,o=[],n=0;n<t;n++)o.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+o.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),v(t)),k(t,function(){e(r.a,r.c,ne)})},ie.prototype.load=function(e){var t=this.a.id,o=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(o.Typekit&&o.Typekit.config&&o.Typekit.config.fn){t=o.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var r=t[i],s=t[i+1],a=0;a<s.length;a++)n.push(new S(r,s[a]));try{o.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,o=this.c.o,n=this;t?(o.__webfontfontdeckmodule__||(o.__webfontfontdeckmodule__={}),o.__webfontfontdeckmodule__[t]=function(t,o){for(var i=0,r=o.fonts.length;i<r;++i){var s=o.fonts[i];n.a.push(new S(s.name,z("font-weight:"+s.weight+";font-style:"+s.style)))}e(n.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var se=new R(window);se.a.c.custom=function(e,t){return new U(t,e)},se.a.c.fontdeck=function(e,t){return new re(t,e)},se.a.c.monotype=function(e,t){return new Y(t,e)},se.a.c.typekit=function(e,t){return new ie(t,e)},se.a.c.google=function(e,t){return new oe(t,e)};var ae={load:s(se.load,se)};void 0===(n=function(){return ae}.call(t,o,t,e))||(e.exports=n)}()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{GkitLocalStoreGetData:()=>N,GkitLocalStoreSetData:()=>A,backgroundGenerator:()=>v,baseBreakpoint:()=>O,boxControlUnit:()=>y,colorsGroup:()=>w,fillBackgroundGenerator:()=>k,filterStyles:()=>fe,generatePageSettingsCssText:()=>he,generatePlaceholder:()=>Se,generateStyles:()=>ge,getAttrDependencies:()=>x,getAttributes:()=>ie,getBorderValue:()=>a,getBoxShadowValue:()=>s,getBoxValue:()=>l,getBreakpointLabel:()=>ve,getCSSFilters:()=>f,getColor:()=>i,getCookie:()=>ce,getEditorCanvasDocument:()=>Y,getEditorDocuments:()=>U,getGradient:()=>r,getMultipleTransform:()=>h,getMultipleTransformOrigin:()=>p,getMultipleTransition:()=>d,getSliderValue:()=>c,getTextStrokeValue:()=>m,getTypographyValue:()=>u,gkitDomFindChild:()=>oe,gkitDomFindParent:()=>te,gkitDomNextSibling:()=>Z,gkitDomPrevSibling:()=>ee,gkitResponsiveValue:()=>T,gkitSwiper:()=>Q,hasCSS:()=>me,htmlTags:()=>$,isNull:()=>n,isValidCssValue:()=>j,linkGenerator:()=>D,moveObjectToTop:()=>ne,onScrollAnimate:()=>J,onScrollAnimateIframe:()=>K,orderSortedValue:()=>g,overflowOptions:()=>S,overlayGenerator:()=>E,parseCSS:()=>M,responsiveHelper:()=>F,responsiveTypographyHelper:()=>W,setAttributes:()=>re,setCookie:()=>le,truncateCharacter:()=>de,truncateWords:()=>H,useBlockStyles:()=>pe,useDeviceList:()=>ke,useDeviceType:()=>V,useFontFamilyinBlock:()=>q,useHasProActive:()=>ue,useModuleStyles:()=>ye});const t=(e,t,o)=>{const n=wp.data.select("core/block-editor").getSettings(),i=n&&n.__experimentalFeatures?n.__experimentalFeatures.color:{},r=i&&i[t]?i[t]:{};return Object.keys(r).map(t=>r[t].find(t=>t&&t[o]===e)).filter(e=>void 0!==e)[0]},n=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length||!1===e,i=e=>{if(!e)return;if(e.startsWith("#")||e.startsWith("rgba")||e.startsWith("var("))return e;const[o,n]=e.split(","),i=t(o,"palette","slug");return i?.slug?`var(--wp--preset--color--${i.slug}, ${i.color})`:n||void 0},r=e=>{if(!e)return;if(e.startsWith("linear-gradient(")||e?.startsWith("radial-gradient("))return e;const o=e.split(/,(.+)/).filter(Boolean),n=t(o[0],"gradients","slug");return n?`var(--wp--preset--gradient--${n.slug}, ${n.gradient})`:o[1]||void 0},s=e=>{if(!e||"object"!=typeof e||0===Object.keys(e).length)return;if(e?.selectedType||(e={...e,selectedType:"text"}),e?.slug&&e?.shadow)return`var(--wp--preset--shadow--${e.slug}, ${e.shadow})`;if(![e?.horizontal,e?.vertical,e?.blur,e?.spread,e?.color].some(e=>null!=e&&""!==e&&("object"!=typeof e||null!=e?.size)))return;const t=e=>"object"==typeof e&&void 0!==e?.size?`${e.size}px`:"number"==typeof e?`${e}px`:e?`${e}`:"0px",o=t(e?.horizontal),n=t(e?.vertical),r=t(e?.blur),s=t(e?.spread),a=e?.color?i(e.color):"";let l=`${o} ${n} ${r} ${s}`;a&&(l+=` ${a}`),"inset"===e?.position&&(l=`inset ${l}`),l=l.trim();let c,u=`${o} ${n} ${r}`;return a&&(u+=` ${a}`),u=u.trim(),c="box"===e.selectedType?l:"text"===e.selectedType?u:void 0,c||void 0},a=e=>{if(n(e))return{};const t=(e,t,o)=>{if(n(e))return null;const r=n(t)?"solid":t,s=n(o)?void 0:i(o);return`${e} ${r} ${n(s)?"currentColor":s}`};if(!n(e?.width)){const o=t(e.width,e.style,e.color);if(o)return{border:o}}const o={};let r=!1;return["top","right","bottom","left"].forEach(i=>{const s=e?.[i];if(s&&"object"==typeof s&&!n(s?.width)){const e=t(s.width,s.style,s.color);e&&(o[`border-${i}`]=e,r=!0)}}),r?o:{}},l=(e={},t="")=>{if(!e||"object"!=typeof e)return{};const{top:o,right:n,bottom:i,left:r}=e,s=e=>void 0!==e&&""!==e&&null!==e,a=[o,n,i,r].filter(s).length;if(0===a)return{};if(4===a){let e="";return e=o===i&&o===n&&o===r?o:o===i&&r===n?`${o} ${n}`:`${o} ${n} ${i} ${r}`,{[t]:e}}const l={},c={top:o,right:n,bottom:i,left:r};if("border-radius"!==t)Object.entries(c).forEach(([e,o])=>{s(o)&&(l[`${t}-${e}`]=o)});else{const e={"border-top-left-radius":o,"border-top-right-radius":n,"border-bottom-right-radius":i,"border-bottom-left-radius":r};Object.entries(e).forEach(([e,t])=>{s(t)&&(l[e]=t)})}return l},c=e=>{let t="";return t=n(e?.size)||n(e?.unit)?!n(e?.size)&&n(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,t},u=(e,t)=>{const o=o=>c(e?.[o]?.[t]),n={"font-size":o("fontSize"),"line-height":o("lineHeight"),"letter-spacing":o("letterSpacing"),"word-spacing":o("wordSpacing")};return"Desktop"===t?{"font-family":e?.fontFamily?.value||void 0,"font-style":e?.fontStyle||void 0,"font-weight":e?.fontWeight?.value||void 0,"text-decoration":e?.textDecoration||void 0,"text-transform":e?.textTransform||void 0,...n}:n},d=(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach((e,o)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let o=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${o} ${e?.animation}`)}}),t.length>0?t.join(", "):void 0},f=e=>{let t="";return!n(e?.blur?.size)&&(t+=`blur(${e?.blur?.size}px) `),!n(e?.brightness?.size)&&(t+=`brightness(${e?.brightness?.size}%) `),!n(e?.contrast?.size)&&(t+=`contrast(${e?.contrast?.size}%) `),!n(e?.saturation?.size)&&(t+=`saturate(${e?.saturation?.size}%) `),!n(e?.hue?.size)&&(t+=`hue-rotate(${e?.hue?.size}deg) `),!n(e?.grayscale?.size)&&(t+=`grayscale(${e?.grayscale?.size}%) `),!n(e?.invert?.size)&&(t+=`invert(${e?.invert?.size}%) `),!n(e?.sepia?.size)&&(t+=`sepia(${e?.sepia?.size}%) `),n(t)?void 0:t},g=(e=[],t,o)=>{if(!t)return[];const n=o.startsWith(".")?o:`.${o}`,i=e?.map((e,t)=>({selector:`${n} .${e.class}`,order:t}));return i},h=(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap(([o,n])=>{const{rotate:i,rotateHover:r,scale:s,scaleHover:a}=t,l=i?.common3DRotate,u=r?.common3DRotateHover,d=s?.commonKeepProportions,f=a?.commonKeepProportionsHover,g=(t,o,i)=>{const r=[t+e].toString(),s=n&&void 0!==n[r],a=n&&void 0!==c(n[r]);return s&&o&&a?`${i}(${c(n[r])})`:!n||"horizontal"!=n[t]&&"vertical"!=n[t]?void 0:`${i}(calc(-1))`};return[g("commonRotate",!l,"rotateZ"),g("commonRotateX",l,"rotateX"),g("commonRotateY",l,"rotateY"),g("perspective",l,"perspective"),g("commonOffsetX",!0,"translateX"),g("commonOffsetY",!0,"translateY"),g("commonScale",d,"scale"),g("commonScaleX",!d,"scaleX"),g("commonScaleY",!d,"scaleY"),g("commonSkewX",!0,"skewX"),g("commonSkewY",!0,"skewY"),g("commonFlipHorizontal",!0,"scaleX"),g("commonFlipVertical",!0,"scaleY"),g("commonRotateHover",!u,"rotateZ"),g("commonRotateXHover",u,"rotateX"),g("commonRotateYHover",u,"rotateY"),g("perspectiveHover",u,"perspective"),g("commonOffsetXHover",!0,"translateX"),g("commonOffsetYHover",!0,"translateY"),g("commonScaleHover",f,"scale"),g("commonScaleXHover",!f,"scaleX"),g("commonScaleYHover",!f,"scaleY"),g("commonSkewXHover",!0,"skewX"),g("commonSkewYHover",!0,"skewY"),g("commonFlipHorizontalHover",!0,"scaleX"),g("commonFlipVerticalHover",!0,"scaleY")]}).filter(e=>void 0!==e).join(" ")||void 0},p=(...e)=>{let t=[];return e&&e.forEach(e=>{e?.value&&t.push(`${e.value}`)}),t.length>0?t.join(" "):void 0},m=(e,t)=>{const{width:o,color:n}=e||{};if(o&&"object"==typeof o){const{size:e,unit:r}=o[t]?o[t]:{};if(null!=e&&!isNaN(e))return`${e}${r||"px"} ${i(n)||""}`.trim()}},b=window.wp.hooks,v=(e,t="Desktop")=>{let o={background:"",size:""};return"image"!==e?.backgroundType||n(e?.backgroundImage?.url)&&n(e?.backgroundImage?.dynamicContentType)||(o.background+=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage),!n(e?.backgroundRepeat)&&(o.background+=`${e?.backgroundRepeat} `),!n(e?.backgroundAttachment)&&(o.background+=`${e?.backgroundAttachment} `),!n(e?.backgroundPosition?.[t])&&"custom"!==e?.backgroundPosition?.[t]&&(o.background+=`${e?.backgroundPosition?.[t]}`),!n(e?.backgroundPosition?.[t])&&"custom"===e?.backgroundPosition?.[t]&&!n(e?.customPositionX?.[t])&&!n(e?.customPositionY?.[t])&&(o.background+=`${c(e?.customPositionX?.[t])} ${c(e?.customPositionY?.[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o.size+=`${e?.backgroundSize}`),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o.size+=`${c(e?.customSize?.[t])} auto`)),"classic"!==e?.backgroundType||n(e?.backgroundColor)||(o.background+=`${i(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||n(e?.gradient)||(o.background+=`${r(e?.gradient)} `),n(o?.background)?o.background=void 0:o.background=o.background,n(o?.size)?o.size=void 0:o.size=o.size,o},k=(e,t="Desktop")=>{let o={};return"classic"===e?.backgroundType&&(o["background-color"]=i(e?.backgroundColor)),"gradient"===e?.backgroundType&&(o["background-image"]=r(e?.gradient)),"image"===e?.backgroundType&&(n(e?.backgroundImage?.url)&&n(e?.backgroundImage?.dynamicContentType)||(o["background-image"]=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage)),!n(e?.backgroundAttachment)&&(o["background-attachment"]=e?.backgroundAttachment),!n(e?.backgroundPosition?.[t])&&"custom"!==e?.backgroundPosition?.[t]&&(o["background-position"]=e?.backgroundPosition?.[t]),!n(e?.backgroundPosition?.[t])&&"custom"===e?.backgroundPosition?.[t]&&!n(e?.customPositionX)&&!n(e?.customPositionY)&&(o["background-position"]=`${c(e?.customPositionX?.[t])} ${c(e?.customPositionY?.[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o["background-size"]=e?.backgroundSize),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o["background-size"]=`${c(e?.customSize?.[t])} auto`),!n(e?.backgroundRepeat)&&(o["background-repeat"]=e?.backgroundRepeat)),o},w=[{color:"#72aee6",name:"Blue 20"},{color:"#3582c4",name:"Blue 40"},{color:"#e65054",name:"Red 40"},{color:"#8a2424",name:"Red 70"}],y=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"}],S=[{label:"Default",value:""},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"}],$=[{label:"Div",value:"div"},{label:"Header",value:"header"},{label:"Main",value:"main"},{label:"Article",value:"article"},{label:"Section",value:"section"},{label:"Aside",value:"aside"},{label:"Figure",value:"figure"},{label:"Figcaption",value:"figcaption"},{label:"Nav",value:"nav"},{label:"Footer",value:"footer"}],x=(e,t=!1)=>{if(e){let o="";o=t?Object.keys(e).map(e=>"blocksCSS"!==e?"attributes?."+e+",\n":"").join(""):Object.keys(e).filter(e=>"blocksCSS"!==e).join(", \n"),navigator.clipboard.writeText(o).then(()=>{console.info("Copied to clipboard")}).catch(()=>{console.warn("Something went wrong")})}},T=(e,t,o)=>{if(o&&e&&t){if(Array.isArray(t)){let n=e[t[0]];if(n&&n[t[1]])return n[t[1]][o]}return e[t+o]}},z=new Set(["px","em","rem","%","vh","vw"]),P=/(?:^|[\s,])[a-zA-Z-]+\(\s*\)/,C=new Set(["false","true","undefined","null","NaN"]),j=e=>{if(null==e||""===e)return!1;if("boolean"==typeof e)return!1;if("object"==typeof e)return!1;if("number"==typeof e)return!Number.isNaN(e);const t=String(e).trim();return!(""===t||C.has(t)||t.includes("undefined")||t.includes("NaN")||z.has(t)||P.test(t))},_=window.wp.url,D=e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,_.prependHTTP)(t));let o={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(o.target="_blank",o.rel="noopener"),e?.noFollow&&(o.rel="_blank"==o.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach(e=>{const[t,n]=e.split("|");o[t]=n}),e?.isDynamicContent?(o["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),o):o?.href?o:null},A=(e,t,o=[])=>{const n=o;n.length>0?n.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},N=e=>e&&localStorage.getItem(e),E=(e,t="Desktop")=>{let o={};if("gradient"===e?.backgroundType){const t=r(e?.gradient);n(t)||(o["background-image"]=t)}if("classic"===e?.backgroundType){if(n(e?.backgroundColor)||(o["background-color"]=i(e?.backgroundColor)),!n(e?.backgroundImage?.imageUrl)||!n(e?.backgroundImage?.dynamicContentType)){const i=e?.backgroundImage?.imageUrl?.[t]?e.backgroundImage.imageUrl[t]:e.backgroundImage?.url,r=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${i})`,e?.backgroundImage);!i&&n(e?.backgroundImage?.dynamicContentType)||r&&!r.includes("undefined")&&(o["background-image"]=r)}n(e?.backgroundAttachment)||(o["background-attachment"]=e?.backgroundAttachment),n(e?.backgroundPosition?.[t])||"custom"===e?.backgroundPosition[t]||(o["background-position"]=e?.backgroundPosition[t]),n(e?.backgroundPosition?.[t])||"custom"!==e?.backgroundPosition[t]||n(e?.customPositionX)||n(e?.customPositionY)||(o["background-position"]=`${c(e?.customPositionX[t])} ${c(e?.customPositionY[t])}`),n(e?.backgroundSize)||"custom"===e?.backgroundSize||(o["background-size"]=e?.backgroundSize),n(e?.backgroundSize)||"custom"!==e?.backgroundSize||(o["background-size"]=`${c(e?.customSize[t])} auto`),n(e?.backgroundRepeat)||(o["background-repeat"]=e?.backgroundRepeat)}return n(e?.opacity)||(o.opacity=`${e?.opacity?.size}`),n(e?.blendMode)||(o["mix-blend-mode"]=e?.blendMode),n(e?.cssFilters)||(o.filter=f(e?.cssFilters)),Object.keys(o).length?o:void 0},O={label:"Desktop",slug:"Desktop",value:"base",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"></path></svg>'},I=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],M=(e,t=I)=>{let o={};if(Array.isArray(e)){let[n,i,r=[]]=e;t.forEach(e=>{o[e?.slug]="base"===e?.value?[...n,...i(e?.slug)]:i(e?.slug)}),o.customStyles=r}else o=e;return{rawCSS:o,breakpoints:t}},F=(e,t,o,n)=>{n({[e+o]:t})},W=(e,t,o,n)=>{const i={...e};return{...i,[t]:{...i[t],[n]:o}}},H=function(e,t){if(!e)return"";const o=e.split(" ");if(t>=o.length)return e;const n=o.slice(0,t);return n.push("..."),n.join(" ")},L=window.wp.data,B=window.wp.editor,V=()=>{const{modules:e}=window?.gutenkit||{},t=e?.breakpoints,{deviceType:o}=(0,L.useSelect)(e=>{const o=e("gutenkit/global-store")?.getDeviceType,n=B.store?e(B.store)?.getDeviceType:void 0;return B.store?{deviceType:t?o?.():n?.()}:{deviceType:"Desktop"}},[]);return o||"Desktop"},G=window.wp.element;var R=o(371),X=o.n(R);const Y=()=>{const e=document.getElementsByTagName("iframe");for(const t of e){let e;try{e=t.contentDocument}catch(e){continue}if(e&&e!==document&&e.querySelector(".editor-styles-wrapper"))return e}return null},U=()=>{const e=Y();return e?[document,e]:[document]},q=(e=[])=>{(0,G.useEffect)(()=>{e.length=0},[]),(0,G.useEffect)(()=>{let t=[];if(e?.length>0&&e.forEach(e=>{let o={};!n(e?.fontFamily)&&(o.Font=e?.fontFamily?.value),!n(e?.fontWeight)&&(o.Condensed=e?.fontWeight?.value);let i="";!n(o?.Font)&&(i=o?.Font),!n(o?.Font)&&!n(o?.Condensed)&&(i+=":400,"+o?.Condensed),!n(i)&&t.push(i)}),0===t.length)return;const o={google:{families:[...t]}};X().load(o);const i=Y();i?.defaultView&&X().load({...o,context:i.defaultView})},[JSON.stringify(e)])},J=(e,t,o=document)=>{const n=o||document,i=(n.ownerDocument||n).defaultView;if(!i?.IntersectionObserver||"function"!=typeof n.querySelectorAll)return()=>{};const r=new i.IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}})});return n.querySelectorAll(e).forEach(e=>r.observe(e)),()=>r.disconnect()},K=(e,t)=>J(e,t,Y()||document),Q=function(e,t,o=!1,n="Desktop",i=[],r={}){const s=e.querySelector(".swiper-pagination"),a=e.querySelector(".swiper-button-next"),l=e.querySelector(".swiper-button-prev"),{direction:c,speed:u,delay:d,loop:f,autoplay:g,pauseOnMouseEnter:h,allowTouchMove:p,effect:m}=t,b=(e,o,n,i)=>{for(let i=o;i>=0;i--){const o=t?.[`${e}${n[i]?.slug}`]?.size;if(void 0!==o)return o}return i},v={};let k=[];if(i&&i.length){const e=i.find(e=>"WideScreen"===e.slug);var w,y,S,$,x,T;k=i.filter(e=>"WideScreen"!==e.slug),k.forEach((e,t,o)=>{var n;const i=null!==(n=o[t+1]?.value)&&void 0!==n?n:"0";v[i]={slidesPerView:b("slidesPerView",t,k,1),slidesPerGroup:b("slidesPerGroup",t,k,1),spaceBetween:b("spaceBetween",t,k,10),slidesPerGroupSkip:Number(0)}}),e&&(v[e.value]={slidesPerView:null!==(w=null!==(y=t?.slidesPerViewWideScreen?.size)&&void 0!==y?y:t?.slidesPerViewDesktop?.size)&&void 0!==w?w:1,slidesPerGroup:null!==(S=null!==($=t?.slidesPerGroupWideScreen?.size)&&void 0!==$?$:t?.slidesPerGroupDesktop?.size)&&void 0!==S?S:1,spaceBetween:null!==(x=null!==(T=t?.spaceBetweenWideScreen?.size)&&void 0!==T?T:t?.spaceBetweenDesktop?.size)&&void 0!==x?x:10,slidesPerGroupSkip:Number(0)})}let z={direction:c||"horizontal",loop:f||!1,speed:u||1e3,autoplay:g&&{pauseOnMouseEnter:h||!1,delay:d||3e3},allowTouchMove:p||!0,draggable:!0,effect:m||"slide",focusableElements:'a, button, input, textarea, select, details, [tabindex="0"]',pagination:{el:s,clickable:!0},navigation:{nextEl:a,prevEl:l},slidesPerGroupSkip:Number(0),...r};if(o){const{gkitResponsiveValue:e}=window.GkitHelpers;z={...z,slidesPerView:e(t,"slidesPerView",n)?.size||1,slidesPerGroup:e(t,"slidesPerGroup",n)?.size||1,spaceBetween:e(t,"spaceBetween",n)?.size||10},z.allowTouchMove=!1}else{const e=k.length-1;e>=0&&(z.slidesPerView=b("slidesPerView",e,k,1),z.slidesPerGroup=b("slidesPerGroup",e,k,1),z.spaceBetween=b("spaceBetween",e,k,10)),z.breakpoints=v}return new Swiper(e,z)},Z=function(e,t){let o=e.nextElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.nextElementSibling}return null}return o},ee=function(e,t){let o=e.previousElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.previousElementSibling}return null}return o},te=function(e,t){const o=t.startsWith("."),n=t.startsWith("#");let i=e.parentElement;for(;null!==i;){if(o&&i.classList.contains(t.slice(1))||n&&i.id===t.slice(1)||!o&&!n&&i.tagName.toLowerCase()===t.toLowerCase())return i;i=i.parentElement}return null},oe=function(e,t){const o=Array.from(e.children);if(t){const e=t.startsWith("."),n=t.startsWith("#");return o.filter(o=>!!(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase()))}return o},ne=function(e,t){const o=e.findIndex(e=>e.slug===t);if(-1!==o){const[t]=e.splice(o,1);e.unshift(t)}return e},ie=e=>{const{getBlockAttributes:t}=(0,L.select)("core/block-editor");return t(e)},re=(e,t)=>{const{updateBlockAttributes:o}=(0,L.dispatch)("core/block-editor");o(e,t)},se=window.wp.apiFetch;var ae=o.n(se);const le=function(e,t,o){let n=`${e}=${t}; path=/`;if(o){const e=new Date;e.setTime(e.getTime()+60*o*60*1e3),n+=`; expires=${e.toUTCString()}`}document.cookie=n},ce=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null};function ue({windowVariable:e="gutenkit",hookName:t="gutenkit.is-pro-active",cookieName:o="isValidLicense",apiPath:n="gutenkit"}={}){const[i,r]=(0,G.useState)(()=>"true"===ce(o)),{has_pro:s}=window?.[e]||{};return(0,G.useEffect)(()=>{s&&(async()=>{const e=ce(o);e?r("true"===e):setTimeout(async()=>{try{const e=await ae()({path:`/${n}/v1/license/status`});"valid"===e?.status?(r(!0),le(o,"true",12)):(r(!1),le(o,"false",12))}catch(e){console.error("Error fetching license status:",e)}},2e3)})()},[s]),(0,G.useMemo)(()=>(0,b.applyFilters)(t,i),[i])}const de=function(e,t){return t>=e?.length?e:e?.slice(0,t)+"..."},fe=e=>{const t=[];for(const o in e){const n=e[o];j(n)&&t.push(`${o}: ${n};`)}return t.join(" ")},ge=(e,t)=>{const o={};for(let n=0;n<t.length;n++){const i=t[n],r=e[i.slug]||e[i.slug.toLowerCase()];if(r){const e=[];for(let t=0;t<r.length;t++){const{selector:o,...n}=r[t],i=fe(n);i&&e.push(`${o} { ${i} }`)}e.length>0&&(o[i.slug.toLowerCase()]=e.join(" "))}}if(e.customStyles){const t=[];for(let o=0;o<e.customStyles.length;o++){const{mediaQuery:n,selector:i,hasDynamicStyles:r=!1,...s}=e.customStyles[o];if(n&&!n.includes("undefined")){const e=fe(s);e&&t.push(`@media (${n}) { ${i} { ${e} } }`)}}t.length>0&&(o.customStyles=t.join(" "))}return o},he=(e,t)=>{const o=ge(e.rawCSS,t);let n=[];return t.forEach(e=>{let t=e?.value,i=e?.slug||"Desktop",r=e?.direction||"max",s=i?.toLowerCase();if("base"==t&&o?.[s])n.push(o?.[s]);else if(o?.[s]&&t&&r){let e=`\n @media (${r}-width: ${t}px) {\n ${o?.[s]}\n }\n `;n.push(e)}}),n.length>0?n.join(""):""},pe=(e,t,o,n)=>{const{rawCSS:i,breakpoints:r}=(0,G.useMemo)(()=>n,[n]),{__unstableMarkNextChangeAsNotPersistent:s}=(0,L.useDispatch)("core/block-editor"),a=(0,G.useRef)(null),l=(0,G.useMemo)(()=>ge(i,r),[i,r]),c=(0,G.useRef)(e);return(0,G.useEffect)(()=>(l&&JSON.stringify(e)!==JSON.stringify(c.current||{})&&(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{s(),t({[o]:l}),c.current=e},200)),()=>clearTimeout(a.current)),[l]),l},me=e=>!!e&&!!(e?.desktop||e?.tablet||e?.mobile||e?.tabletlandscape||e?.mobilelandscape||e?.laptop||e?.widescreen||e?.customStyles),be=window.wp.i18n,ve=e=>{var t,o;return null!==(t=null!==(o={Desktop:(0,be.__)("Desktop","table-builder-block"),WideScreen:(0,be.__)("Wide Screen","table-builder-block"),Laptop:(0,be.__)("Laptop","table-builder-block"),TabletLandscape:(0,be.__)("Tablet Landscape","table-builder-block"),Tablet:(0,be.__)("Tablet","table-builder-block"),MobileLandscape:(0,be.__)("Mobile Landscape","table-builder-block"),Mobile:(0,be.__)("Mobile","table-builder-block")}[e?.slug])&&void 0!==o?o:e?.label)&&void 0!==t?t:""},ke=()=>{const{modules:e}=window?.gutenkit||{},t=(0,G.useRef)(null);let o=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];return e&&(o=(0,G.useMemo)(()=>{const t=e?.breakpoints?(0,L.select)("gutenkit/global-store"):null;let o=[O,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];if(t){const{getActiveBreakpoints:e}=t,n=e()?.sort((e,t)=>parseInt(t.value)-parseInt(e.value));n?.length>0&&(o=[O,...n])}return o},[])),(0,G.useMemo)(()=>{const e=t.current,n=o.map(e=>({...e,label:ve(e)}));return JSON.stringify(e)!==JSON.stringify(n)?(t.current=n,n):e},[o])},we=e=>{let t="";for(const o in e){const n=e[o];j(n)&&(t+=`${o}: ${n}; `)}return t.trim()},ye=(e,t,o)=>{const{__unstableMarkNextChangeAsNotPersistent:n}=(0,L.useDispatch)("core/block-editor"),i=ie(e);if(!i)return;const{rawCSS:r,breakpoints:s}=o,a=(0,G.useCallback)(t=>{re(e,t)},[e]),l=(0,G.useMemo)(()=>((e,t)=>{const o={};let n="";const i=[];for(let o=0;o<t.length;o++){const n=t[o];i.push({deviceKey:n.slug.toLowerCase(),styles:e[n.slug]||e[n.slug.toLowerCase()]})}if(e.customStyles)for(let t=0;t<e.customStyles.length;t++){const o=e.customStyles[t];i.push({custom:!0,mediaQuery:o.mediaQuery,selector:o.selector,properties:o})}for(let e=0;e<i.length;e++){const{deviceKey:t,styles:r,custom:s,mediaQuery:a,selector:l,properties:c}=i[e];if(r){n="";for(let e=0;e<r.length;e++){const{selector:t,...o}=r[e],i=we(o);i&&(n+=`${t} { ${i} } `)}n&&(o[t]=n.trim())}else if(s&&a&&!a.includes("undefined")){const e=we(c);e&&(n=`@media (${a}) { ${l} { ${e} } }`,o.customStyles=(o.customStyles||"")+n)}}return o})(r,s),[r,s]),c=(0,G.useRef)(i);return(0,G.useEffect)(()=>{l&&JSON.stringify(i)!==JSON.stringify(c.current||{})&&(n(),a({[t]:l}),c.current=i)},[l]),i[t]},Se=(e,t,o)=>{const n=document.createElement("canvas"),i=n.getContext("2d");return n.width=t,n.height=o,i.fillStyle="#d3d3d3",i.fillRect(0,0,t,o),i.fillStyle="#000000",i.font="20px Arial",i.textAlign="center",i.textBaseline="middle",i.fillText(e,t/2,o/2),n.toDataURL()};void 0===window.GkitHelpers&&(window.GkitHelpers={}),window.GkitHelpers={...e}})()})(); |