diff --git a/js/block-editor.asset.php b/js/block-editor.asset.php index 70035065..9a311549 100644 --- a/js/block-editor.asset.php +++ b/js/block-editor.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'b2f0bbe921dc49b7d514'); + array('react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'aa5db967c92ad9d1ab3d'); diff --git a/js/block-editor.js b/js/block-editor.js index df5bc24f..d9380cbd 100644 --- a/js/block-editor.js +++ b/js/block-editor.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.apiFetch;var r=e.n(t);const o=window.wp.i18n,i=window.wp.data,a=window.wp.components,n=window.ReactJSXRuntime,s={_init(){"undefined"!=typeof CLD_VIDEO_PLAYER&&wp.hooks.addFilter("blocks.registerBlockType","Cloudinary/Media/Video",function(e,t){return"core/video"===t&&("off"!==CLD_VIDEO_PLAYER.video_autoplay_mode&&(e.attributes.autoplay.default=!0),"on"===CLD_VIDEO_PLAYER.video_loop&&(e.attributes.loop.default=!0),"off"===CLD_VIDEO_PLAYER.video_controls&&(e.attributes.controls.default=!1)),e})}};s._init();wp.hooks.addFilter("blocks.registerBlockType","cloudinary/addAttributes",function(e,t){return"core/image"!==t&&"core/video"!==t||(e.attributes||(e.attributes={}),e.attributes.overwrite_transformations={type:"boolean"},e.attributes.transformations={type:"boolean"}),e});const l=e=>{const{attributes:{overwrite_transformations:t},setAttributes:r}=e;return(0,n.jsx)(a.PanelBody,{title:(0,o.__)("Transformations","cloudinary"),children:(0,n.jsx)(a.ToggleControl,{label:(0,o.__)("Overwrite Global Transformations","cloudinary"),checked:t,onChange:e=>{r({overwrite_transformations:e})}})})};let d=e=>{const{setAttributes:t,media:r}=e,{InspectorControls:o}=wp.editor;return r&&r.transformations&&t({transformations:!0}),(0,n.jsx)(o,{children:(0,n.jsx)(l,{...e})})};d=(0,i.withSelect)((e,t)=>({...t,media:t.attributes.id?e("core").getMedia(t.attributes.id):null}))(d);wp.hooks.addFilter("editor.BlockEdit","cloudinary/filterEdit",e=>t=>{const{name:r}=t,o="core/image"===r||"core/video"===r;return(0,n.jsxs)(n.Fragment,{children:[o?(0,n.jsx)(d,{...t}):null,(0,n.jsx)(e,{...t})]})},20);let c=e=>(0,n.jsx)(n.Fragment,{children:e.modalClass&&(0,n.jsx)(a.ToggleControl,{label:(0,o.__)("Overwrite Cloudinary Global Transformations","cloudinary"),checked:e.overwrite_featured_transformations,onChange:t=>e.setOverwrite(t),className:"cloudinary-overwrite-transformations"})});c=(0,i.withSelect)(e=>({overwrite_featured_transformations:e("core/editor")?.getEditedPostAttribute("meta")._cloudinary_featured_overwrite??!1}))(c),c=(0,i.withDispatch)(e=>({setOverwrite:t=>{e("core/editor").editPost({meta:{_cloudinary_featured_overwrite:t}})}}))(c);const u=e=>class extends e{render(){return(0,n.jsxs)(n.Fragment,{children:[super.render(),!!this.props.value&&(0,n.jsx)(c,{...this.props})]})}},m={_init(){wp.hooks.addFilter("editor.MediaUpload","cloudinary/filter-featured-image",u)}};m._init();const h={wrapper:null,query:{per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},available:{},taxonomies:null,fetchWait:null,_init(){if(this.wrapper=document.getElementById("cld-tax-items"),!this.wrapper)return;const{getTaxonomies:e}=(0,i.select)("core");this.fetchWait=setInterval(()=>{this.taxonomies=e(),this.taxonomies&&(clearInterval(this.fetchWait),this._init_listeners())},1e3)},_init_listeners(){this.taxonomies.forEach(e=>{e.rest_base&&e.visibility.public&&(0,i.subscribe)(()=>{const t=e.slug,r=e.hierarchical,{isResolving:o}=(0,i.select)("core/data"),a=["taxonomy",t,this.query];this.available[t]=null,r&&(this.available[t]=(0,i.select)("core").getEntityRecords("taxonomy",t,this.query)),o("core","getEntityRecords",a)||this.event(e)})})},event(e){const t=(0,i.select)("core/editor").getEditedPostAttribute(e.rest_base);if(!t)return;const r=[...t],o=Array.from(this.wrapper.querySelectorAll(`[data-item*="${e.slug}"]`));[...r].forEach(t=>{const r=this.wrapper.querySelector(`[data-item="${e.slug}:${t}"]`);o.splice(o.indexOf(r),1),null===r&&this.createItem(this.getItem(e,t))}),o.forEach(e=>{e.parentNode.removeChild(e)})},createItem(e){if(!e||!e.id)return;const t=document.createElement("li"),r=document.createElement("span"),o=document.createElement("input"),i=document.createTextNode(e.name);t.classList.add("cld-tax-order-list-item"),t.dataset.item=`${e.taxonomy}:${e.id}`,o.classList.add("cld-tax-order-list-item-input"),o.type="hidden",o.name="cld_tax_order[]",o.value=`${e.taxonomy}:${e.id}`,r.className="dashicons dashicons-menu cld-tax-order-list-item-handle",t.appendChild(r),t.appendChild(o),t.appendChild(i),this.wrapper.appendChild(t)},getItem(e,t){let r={};if(null===this.available[e.slug])r=(0,i.select)("core").getEntityRecord("taxonomy",e.slug,t);else for(const o of this.available[e.slug])if(o.id===t){r=o,r.taxonomy=e.slug;break}return r}};window.addEventListener("load",()=>h._init());window.$=window.jQuery,r().use((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const r=new URL(e.url,location.href);if(r.protocol!==location.protocol||r.hostname!==location.hostname||r.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-cld-fetch-from-editor"]="true",t(e)})})(); +(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.apiFetch;var r=e.n(t);const o=window.wp.i18n,i=window.wp.data,a=window.wp.components,n=window.ReactJSXRuntime,s={_init(){"undefined"!=typeof CLD_VIDEO_PLAYER&&wp.hooks.addFilter("blocks.registerBlockType","Cloudinary/Media/Video",function(e,t){return"core/video"===t&&("off"!==CLD_VIDEO_PLAYER.video_autoplay_mode&&(e.attributes.autoplay.default=!0),"on"===CLD_VIDEO_PLAYER.video_loop&&(e.attributes.loop.default=!0),"off"===CLD_VIDEO_PLAYER.video_controls&&(e.attributes.controls.default=!1)),e})}};s._init();wp.hooks.addFilter("blocks.registerBlockType","cloudinary/addAttributes",function(e,t){return"core/image"!==t&&"core/video"!==t||(e.attributes||(e.attributes={}),e.attributes.overwrite_transformations={type:"boolean"},e.attributes.transformations={type:"boolean"}),e});const l=e=>{const{attributes:{overwrite_transformations:t},setAttributes:r}=e;return(0,n.jsx)(a.PanelBody,{title:(0,o.__)("Transformations","cloudinary"),children:(0,n.jsx)(a.ToggleControl,{label:(0,o.__)("Overwrite Global Transformations","cloudinary"),checked:t,onChange:e=>{r({overwrite_transformations:e})},__nextHasNoMarginBottom:!0})})};let d=e=>{const{setAttributes:t,media:r}=e,{InspectorControls:o}=wp.editor;return r&&r.transformations&&t({transformations:!0}),(0,n.jsx)(o,{children:(0,n.jsx)(l,{...e})})};d=(0,i.withSelect)((e,t)=>({...t,media:t.attributes.id?e("core").getMedia(t.attributes.id):null}))(d);wp.hooks.addFilter("editor.BlockEdit","cloudinary/filterEdit",e=>t=>{const{name:r}=t,o="core/image"===r||"core/video"===r;return(0,n.jsxs)(n.Fragment,{children:[o?(0,n.jsx)(d,{...t}):null,(0,n.jsx)(e,{...t})]})},20);let c=e=>(0,n.jsx)(n.Fragment,{children:e.modalClass&&(0,n.jsx)(a.ToggleControl,{label:(0,o.__)("Overwrite Cloudinary Global Transformations","cloudinary"),checked:e.overwrite_featured_transformations,onChange:t=>e.setOverwrite(t),className:"cloudinary-overwrite-transformations",__nextHasNoMarginBottom:!0})});c=(0,i.withSelect)(e=>({overwrite_featured_transformations:e("core/editor")?.getEditedPostAttribute("meta")._cloudinary_featured_overwrite??!1}))(c),c=(0,i.withDispatch)(e=>({setOverwrite:t=>{e("core/editor").editPost({meta:{_cloudinary_featured_overwrite:t}})}}))(c);const u=e=>class extends e{render(){return(0,n.jsxs)(n.Fragment,{children:[super.render(),!!this.props.value&&(0,n.jsx)(c,{...this.props})]})}},m={_init(){wp.hooks.addFilter("editor.MediaUpload","cloudinary/filter-featured-image",u)}};m._init();const h={wrapper:null,query:{per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},available:{},taxonomies:null,fetchWait:null,_init(){if(this.wrapper=document.getElementById("cld-tax-items"),!this.wrapper)return;const{getTaxonomies:e}=(0,i.select)("core");this.fetchWait=setInterval(()=>{this.taxonomies=e(),this.taxonomies&&(clearInterval(this.fetchWait),this._init_listeners())},1e3)},_init_listeners(){this.taxonomies.forEach(e=>{e.rest_base&&e.visibility.public&&(0,i.subscribe)(()=>{const t=e.slug,r=e.hierarchical,{isResolving:o}=(0,i.select)("core/data"),a=["taxonomy",t,this.query];this.available[t]=null,r&&(this.available[t]=(0,i.select)("core").getEntityRecords("taxonomy",t,this.query)),o("core","getEntityRecords",a)||this.event(e)})})},event(e){const t=(0,i.select)("core/editor").getEditedPostAttribute(e.rest_base);if(!t)return;const r=[...t],o=Array.from(this.wrapper.querySelectorAll(`[data-item*="${e.slug}"]`));[...r].forEach(t=>{const r=this.wrapper.querySelector(`[data-item="${e.slug}:${t}"]`);o.splice(o.indexOf(r),1),null===r&&this.createItem(this.getItem(e,t))}),o.forEach(e=>{e.parentNode.removeChild(e)})},createItem(e){if(!e||!e.id)return;const t=document.createElement("li"),r=document.createElement("span"),o=document.createElement("input"),i=document.createTextNode(e.name);t.classList.add("cld-tax-order-list-item"),t.dataset.item=`${e.taxonomy}:${e.id}`,o.classList.add("cld-tax-order-list-item-input"),o.type="hidden",o.name="cld_tax_order[]",o.value=`${e.taxonomy}:${e.id}`,r.className="dashicons dashicons-menu cld-tax-order-list-item-handle",t.appendChild(r),t.appendChild(o),t.appendChild(i),this.wrapper.appendChild(t)},getItem(e,t){let r={};if(null===this.available[e.slug])r=(0,i.select)("core").getEntityRecord("taxonomy",e.slug,t);else for(const o of this.available[e.slug])if(o.id===t){r=o,r.taxonomy=e.slug;break}return r}};window.addEventListener("load",()=>h._init());window.$=window.jQuery,r().use((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const r=new URL(e.url,location.href);if(r.protocol!==location.protocol||r.hostname!==location.hostname||r.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-cld-fetch-from-editor"]="true",t(e)})})(); //# sourceMappingURL=block-editor.js.map \ No newline at end of file diff --git a/js/gallery-block.asset.php b/js/gallery-block.asset.php index 1a4ea7a6..8cbd493a 100644 --- a/js/gallery-block.asset.php +++ b/js/gallery-block.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '98e435d77738ea4c4f99'); + array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'fee80877520a08e9e0b4'); diff --git a/js/gallery-block.js b/js/gallery-block.js index 318b3ae6..55975e5a 100644 --- a/js/gallery-block.js +++ b/js/gallery-block.js @@ -1,2 +1,2 @@ -(()=>{var e={1780(e){"use strict";function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(s).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var c=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function d(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,a){var s=e.shift();if(e.length>0){if(r[s]=r[s]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(r[s])){if(!this.override){if(!o(n)||!i(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof r[s]);return}r[s]={}}this._fill(e,r[s],n,a)}else{if(!this.override&&o(r[s])&&!i(r[s])){if(!o(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}r[s]=t(n,a)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(o){var i=void 0===r?null:r[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)}),e},u.prototype.str=function(e,r,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[e]=t(r,o),n},u.prototype.pick=function(e,t,n,o){var i,a,s,c,u;for(a=l(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks;var n=r(1780),o=r.n(n);const i=window.wp.apiFetch;var a=r.n(i);const s=window.wp.components,l=(window.wp["components/buildStyle/style.css"],window.wp.element),c=window.wp.blockEditor;var u=r(8055),p=r.n(u);const d=window.ReactJSXRuntime,f=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-round"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"})})})]}),h=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"ratio-square"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"})})})]}),v=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-radius"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"})})})]}),y=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-none"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"})})})]}),m=[{value:{type:"expanded",columns:1},icon:()=>(0,d.jsxs)("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-modern"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"})})})]}),label:(0,e.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:()=>(0,d.jsxs)("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-grid-2-column"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"})})})]}),label:(0,e.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:()=>(0,d.jsxs)("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-grid-3-column"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"})})})]}),label:(0,e.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:()=>(0,d.jsxs)("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-classic"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"})})})]}),label:(0,e.__)("Classic","cloudinary")}],b=["image"],g=[{label:(0,e.__)("1:1","cloudinary"),value:"1:1"},{label:(0,e.__)("3:4","cloudinary"),value:"3:4"},{label:(0,e.__)("4:3","cloudinary"),value:"4:3"},{label:(0,e.__)("4:6","cloudinary"),value:"4:6"},{label:(0,e.__)("6:4","cloudinary"),value:"6:4"},{label:(0,e.__)("5:7","cloudinary"),value:"5:7"},{label:(0,e.__)("7:5","cloudinary"),value:"7:5"},{label:(0,e.__)("8:5","cloudinary"),value:"8:5"},{label:(0,e.__)("5:8","cloudinary"),value:"5:8"},{label:(0,e.__)("9:16","cloudinary"),value:"9:16"},{label:(0,e.__)("16:9","cloudinary"),value:"16:9"}],x=[{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("Fade","cloudinary"),value:"fade"},{label:(0,e.__)("Slide","cloudinary"),value:"slide"}],_=[{label:(0,e.__)("Always","cloudinary"),value:"always"},{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("MouseOver","cloudinary"),value:"mouseover"}],w=[{label:(0,e.__)("Inline","cloudinary"),value:"inline"},{label:(0,e.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,e.__)("Popup","cloudinary"),value:"popup"}],j=[{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],L=[{label:(0,e.__)("Click","cloudinary"),value:"click"},{label:(0,e.__)("Hover","cloudinary"),value:"hover"}],O=[{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"}],A=[{label:(0,e.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,e.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,e.__)("None","cloudinary"),value:"none"}],P=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:y,label:(0,e.__)("None","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")},{value:"rectangle",icon:()=>(0,d.jsxs)("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"ratio-9-16"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "})})})]}),label:(0,e.__)("Rectangle","cloudinary")}],k=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")}],C=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Border","cloudinary"),value:"border"},{label:(0,e.__)("Gradient","cloudinary"),value:"gradient"}],S=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,e.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],E=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:y,label:(0,e.__)("None","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")}],M=[{label:(0,e.__)("Pad","cloudinary"),value:"pad"},{label:(0,e.__)("Fill","cloudinary"),value:"fill"}],T=[{label:(0,e.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,e.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,e.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,e.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}];var B=r(6942),D=r.n(B);const R=({value:e,children:t,icon:r,onChange:n,current:o})=>{const i="object"==typeof e?JSON.stringify(e)===JSON.stringify(o):o===e;return(0,d.jsxs)("button",{type:"button",onClick:()=>n(e),className:D()("radio-select",{"radio-select--active":i}),children:[(0,d.jsx)(r,{}),(0,d.jsx)("div",{className:"radio-select__label",children:t})]})},Z=window.wp.data,N=e=>e<10?"0"+String(e):e.toString(16),F=e=>{const t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,N).join("")},I=e=>{const t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function W(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function z(e){return e instanceof W(e).Element||e instanceof Element}function V(e){return e instanceof W(e).HTMLElement||e instanceof HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}var U=Math.max,q=Math.min,$=Math.round;function G(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function X(){return!/^((?!chrome|android).)*safari/i.test(G())}function J(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&V(e)&&(o=e.offsetWidth>0&&$(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$(n.height)/e.offsetHeight||1);var a=(z(e)?W(e):window).visualViewport,s=!X()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Y(e){var t=W(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(e){return e?(e.nodeName||"").toLowerCase():null}function Q(e){return((z(e)?e.ownerDocument:e.document)||window.document).documentElement}function ee(e){return J(Q(e)).left+Y(e).scrollLeft}function te(e){return W(e).getComputedStyle(e)}function re(e){var t=te(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ne(e,t,r){void 0===r&&(r=!1);var n,o,i=V(t),a=V(t)&&function(e){var t=e.getBoundingClientRect(),r=$(t.width)/e.offsetWidth||1,n=$(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=Q(t),l=J(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==K(t)||re(s))&&(c=(n=t)!==W(n)&&V(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Y(n)),V(t)?((u=J(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=ee(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function oe(e){var t=J(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ie(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(H(e)?e.host:null)||Q(e)}function ae(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:V(e)&&re(e)?e:ae(ie(e))}function se(e,t){var r;void 0===t&&(t=[]);var n=ae(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=W(n),a=o?[i].concat(i.visualViewport||[],re(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(se(ie(a)))}function le(e){return["table","td","th"].indexOf(K(e))>=0}function ce(e){return V(e)&&"fixed"!==te(e).position?e.offsetParent:null}function ue(e){for(var t=W(e),r=ce(e);r&&le(r)&&"static"===te(r).position;)r=ce(r);return r&&("html"===K(r)||"body"===K(r)&&"static"===te(r).position)?t:r||function(e){var t=/firefox/i.test(G());if(/Trident/i.test(G())&&V(e)&&"fixed"===te(e).position)return null;var r=ie(e);for(H(r)&&(r=r.host);V(r)&&["html","body"].indexOf(K(r))<0;){var n=te(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var pe="top",de="bottom",fe="right",he="left",ve="auto",ye=[pe,de,fe,he],me="start",be="end",ge="viewport",xe="popper",_e=ye.reduce(function(e,t){return e.concat([t+"-"+me,t+"-"+be])},[]),we=[].concat(ye,[ve]).reduce(function(e,t){return e.concat([t,t+"-"+me,t+"-"+be])},[]),je=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Le(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var Oe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ae(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function Me(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Ce(o):null,a=o?Se(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case pe:t={x:s,y:r.y-n.height};break;case de:t={x:s,y:r.y+r.height};break;case fe:t={x:r.x+r.width,y:l};break;case he:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Ee(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case me:t[c]=t[c]-(r[u]/2-n[u]/2);break;case be:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Be(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=he,x=pe,_=window;if(c){var w=ue(r),j="clientHeight",L="clientWidth";if(w===W(r)&&"static"!==te(w=Q(r)).position&&"absolute"===s&&(j="scrollHeight",L="scrollWidth"),o===pe||(o===he||o===fe)&&i===be)x=de,v-=(p&&w===_&&_.visualViewport?_.visualViewport.height:w[j])-n.height,v*=l?1:-1;if(o===he||(o===pe||o===de)&&i===be)g=fe,f-=(p&&w===_&&_.visualViewport?_.visualViewport.width:w[L])-n.width,f*=l?1:-1}var O,A=Object.assign({position:s},c&&Te),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:$(r*o)/o||0,y:$(n*o)/o||0}}({x:f,y:v},W(r)):{x:f,y:v};return f=P.x,v=P.y,l?Object.assign({},A,((O={})[x]=b?"0":"",O[g]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},A,((t={})[x]=b?v+"px":"",t[g]=m?f+"px":"",t.transform="",t))}const De={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];V(o)&&K(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});V(n)&&K(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=we.reduce(function(e,r){return e[r]=function(e,t,r){var n=Ce(e),o=[he,pe].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[he,fe].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Ne(e){return e.replace(/left|right|bottom|top/g,function(e){return Ze[e]})}var Fe={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,function(e){return Fe[e]})}function We(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&H(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ve(e,t,r){return t===ge?ze(function(e,t){var r=W(e),n=Q(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=X();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+ee(e),y:l}}(e,r)):z(t)?function(e,t){var r=J(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):ze(function(e){var t,r=Q(e),n=Y(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=U(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=U(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ee(e),l=-n.scrollTop;return"rtl"===te(o||r).direction&&(s+=U(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Q(e)))}function He(e,t,r,n){var o="clippingParents"===t?function(e){var t=se(ie(e)),r=["absolute","fixed"].indexOf(te(e).position)>=0&&V(e)?ue(e):e;return z(r)?t.filter(function(e){return z(e)&&We(e,r)&&"body"!==K(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Ve(e,r,n);return t.top=U(o.top,t.top),t.right=q(o.right,t.right),t.bottom=q(o.bottom,t.bottom),t.left=U(o.left,t.left),t},Ve(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qe(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function $e(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?ge:c,p=r.elementContext,d=void 0===p?xe:p,f=r.altBoundary,h=void 0!==f&&f,v=r.padding,y=void 0===v?0:v,m=Ue("number"!=typeof y?y:qe(y,ye)),b=d===xe?"reference":xe,g=e.rects.popper,x=e.elements[h?b:d],_=He(z(x)?x:x.contextElement||Q(e.elements.popper),l,u,a),w=J(e.elements.reference),j=Me({reference:w,element:g,strategy:"absolute",placement:o}),L=ze(Object.assign({},g,j)),O=d===xe?L:w,A={top:_.top-O.top+m.top,bottom:O.bottom-_.bottom+m.bottom,left:_.left-O.left+m.left,right:O.right-_.right+m.right},P=e.modifiersData.offset;if(d===xe&&P){var k=P[o];Object.keys(A).forEach(function(e){var t=[fe,de].indexOf(e)>=0?1:-1,r=[pe,de].indexOf(e)>=0?"y":"x";A[e]+=k[r]*t})}return A}function Ge(e,t,r){return U(e,q(t,r))}const Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,v=void 0===h?0:h,y=$e(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),m=Ce(t.placement),b=Se(t.placement),g=!b,x=Ee(m),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,L=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,A="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(w){if(i){var C,S="y"===x?pe:he,E="y"===x?de:fe,M="y"===x?"height":"width",T=w[x],B=T+y[S],D=T-y[E],R=f?-L[M]/2:0,Z=b===me?j[M]:L[M],N=b===me?-L[M]:-j[M],F=t.elements.arrow,I=f&&F?oe(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=W[S],V=W[E],H=Ge(0,j[M],I[M]),$=g?j[M]/2-R-H-z-A.mainAxis:Z-H-z-A.mainAxis,G=g?-j[M]/2+R+H+V+A.mainAxis:N+H+V+A.mainAxis,X=t.elements.arrow&&ue(t.elements.arrow),J=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,Y=null!=(C=null==P?void 0:P[x])?C:0,K=T+G-Y,Q=Ge(f?q(B,T+$-Y-J):B,T,f?U(D,K):D);w[x]=Q,k[x]=Q-T}if(s){var ee,te="x"===x?pe:he,re="x"===x?de:fe,ne=w[_],ie="y"===_?"height":"width",ae=ne+y[te],se=ne-y[re],le=-1!==[pe,he].indexOf(m),ce=null!=(ee=null==P?void 0:P[_])?ee:0,ve=le?ae:ne-j[ie]-L[ie]-ce+A.altAxis,ye=le?ne+j[ie]+L[ie]-ce-A.altAxis:se,be=f&&le?function(e,t,r){var n=Ge(e,t,r);return n>r?r:n}(ve,ne,ye):Ge(f?ve:ae,ne,f?ye:se);w[_]=be,k[_]=be-ne}t.modifiersData[n]=k}},requiresIfExists:["offset"]};const Je={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Ce(r.placement),l=Ee(s),c=[he,fe].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ue("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qe(e,ye))}(o.padding,r),p=oe(i),d="y"===l?pe:he,f="y"===l?de:fe,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],y=ue(i),m=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,b=h/2-v/2,g=u[d],x=m-p[c]-u[f],_=m/2-p[c]/2+b,w=Ge(g,_,x),j=l;r.modifiersData[n]=((t={})[j]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&We(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ke(e){return[pe,fe,de,he].some(function(t){return e[t]>=0})}var Qe=Pe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=W(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,ke)}),s&&l.addEventListener("resize",r.update,ke),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,ke)}),s&&l.removeEventListener("resize",r.update,ke)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Me({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:Ce(t.placement),variation:Se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Be(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Be(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},De,Re,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,y=t.options.placement,m=Ce(y),b=l||(m===y||!h?[Ne(y)]:function(e){if(Ce(e)===ve)return[];var t=Ne(e);return[Ie(e),t,Ie(t)]}(y)),g=[y].concat(b).reduce(function(e,r){return e.concat(Ce(r)===ve?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?we:l,u=Se(n),p=u?s?_e:_e.filter(function(e){return Se(e)===u}):ye,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var f=d.reduce(function(t,r){return t[r]=$e(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Ce(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,j=!0,L=g[0],O=0;O=0,S=C?"width":"height",E=$e(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),M=C?k?fe:he:k?de:pe;x[S]>_[S]&&(M=Ne(M));var T=Ne(M),B=[];if(i&&B.push(E[P]<=0),s&&B.push(E[M]<=0,E[T]<=0),B.every(function(e){return e})){L=A,j=!1;break}w.set(A,B)}if(j)for(var D=function(e){var t=g.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},R=h?3:1;R>0;R--){if("break"===D(R))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Xe,Je,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=$e(t,{elementContext:"reference"}),s=$e(t,{altBoundary:!0}),l=Ye(a,n),c=Ye(s,o,i),u=Ke(l),p=Ke(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),et="tippy-content",tt="tippy-backdrop",rt="tippy-arrow",nt="tippy-svg-arrow",ot={passive:!0,capture:!0},it=function(){return document.body};function at(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function st(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function lt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ct(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function ut(e){return[].concat(e)}function pt(e,t){-1===e.indexOf(t)&&e.push(t)}function dt(e){return e.split("-")[0]}function ft(e){return[].slice.call(e)}function ht(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function vt(){return document.createElement("div")}function yt(e){return["Element","Fragment"].some(function(t){return st(e,t)})}function mt(e){return st(e,"MouseEvent")}function bt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function gt(e){return yt(e)?[e]:function(e){return st(e,"NodeList")}(e)?ft(e):Array.isArray(e)?e:ft(document.querySelectorAll(e))}function xt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function _t(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wt(e){var t,r=ut(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function jt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function Lt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Ot={isTouch:!1},At=0;function Pt(){Ot.isTouch||(Ot.isTouch=!0,window.performance&&document.addEventListener("mousemove",kt))}function kt(){var e=performance.now();e-At<20&&(Ot.isTouch=!1,document.removeEventListener("mousemove",kt)),At=e}function Ct(){var e=document.activeElement;if(bt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var St=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Et={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Mt=Object.assign({appendTo:it,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Et,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Tt=Object.keys(Mt);function Bt(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Mt[o])?n:i);return t},{});return Object.assign({},e,t)}function Dt(e,t){var r=Object.assign({},t,{content:lt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Bt(Object.assign({},Mt,{plugins:t}))):Tt).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Mt.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Rt(e,t){e.innerHTML=t}function Zt(e){var t=vt();return!0===e?t.className=rt:(t.className=nt,yt(e)?t.appendChild(e):Rt(t,e)),t}function Nt(e,t){yt(t.content)?(Rt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Rt(e,t.content):e.textContent=t.content)}function Ft(e){var t=e.firstElementChild,r=ft(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(et)}),arrow:r.find(function(e){return e.classList.contains(rt)||e.classList.contains(nt)}),backdrop:r.find(function(e){return e.classList.contains(tt)})}}function It(e){var t=vt(),r=vt();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=vt();function o(r,n){var o=Ft(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Nt(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(Zt(n.arrow))):i.appendChild(Zt(n.arrow)):s&&i.removeChild(s)}return n.className=et,n.setAttribute("data-state","hidden"),Nt(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}It.$$tippy=!0;var Wt=1,zt=[],Vt=[];function Ht(e,t){var r,n,o,i,a,s,l,c,u=Dt(e,Object.assign({},Mt,Bt(ht(t)))),p=!1,d=!1,f=!1,h=!1,v=[],y=ct($,u.interactiveDebounce),m=Wt++,b=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),g={id:m,reference:e,popper:vt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;T("onBeforeUpdate",[g,t]),U();var r=g.props,n=Dt(e,Object.assign({},r,ht(t),{ignoreAttributes:!0}));g.props=n,H(),r.interactiveDebounce!==n.interactiveDebounce&&(R(),y=ct($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?ut(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),M(),w&&w(r,n);g.popperInstance&&(Y(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));T("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=Ot.isTouch&&!g.props.touch,o=at(g.props.duration,0,Mt.duration);if(e||t||r||n)return;if(k().hasAttribute("disabled"))return;if(T("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,P()&&(_.style.visibility="visible");M(),I(),g.state.isMounted||(_.style.transition="none");if(P()){var i=S();xt([i.box,i.content],0)}s=function(){var e;if(g.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,P()&&g.props.animation){var t=S(),r=t.box,n=t.content;xt([r,n],o),_t([r,n],"visible")}B(),D(),pt(Vt,g),null==(e=g.popperInstance)||e.forceUpdate(),T("onMount",[g]),g.props.animation&&P()&&function(e,t){z(e,t)}(o,function(){g.state.isShown=!0,T("onShown",[g])})}},function(){var e,t=g.props.appendTo,r=k();e=g.props.interactive&&t===it||"parent"===t?r.parentNode:lt(t,[r]);e.contains(_)||e.appendChild(_);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=at(g.props.duration,1,Mt.duration);if(e||t||r)return;if(T("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,h=!1,p=!1,P()&&(_.style.visibility="hidden");if(R(),W(),M(!0),P()){var o=S(),i=o.box,a=o.content;g.props.animation&&(xt([i,a],n),_t([i,a],"hidden"))}B(),D(),g.props.animation?P()&&function(e,t){z(e,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()})}(n,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",y),pt(zt,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Vt=Vt.filter(function(e){return e!==g}),g.state.isMounted=!1,T("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,T("onDestroy",[g])}};if(!u.render)return g;var x=u.render(g),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,e._tippy=g,_._tippy=g;var j=b.map(function(e){return e.fn(g)}),L=e.hasAttribute("aria-expanded");return H(),D(),M(),T("onCreate",[g]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",y)}),g;function O(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===O()[0]}function P(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function k(){return l||e}function C(){var e=k().parentNode;return e?wt(e):document}function S(){return Ft(_)}function E(e){return g.state.isMounted&&!g.state.isVisible||Ot.isTouch||i&&"focus"===i.type?0:at(g.props.delay,e?0:1,Mt.delay)}function M(e){void 0===e&&(e=!1),_.style.pointerEvents=g.props.interactive&&!e?"":"none",_.style.zIndex=""+g.props.zIndex}function T(e,t,r){var n;(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=g.props)[e].apply(n,t)}function B(){var t=g.props.aria;if(t.content){var r="aria-"+t.content,n=_.id;ut(g.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(g.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function D(){!L&&g.props.aria.expanded&&ut(g.props.triggerTarget||e).forEach(function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")})}function R(){C().removeEventListener("mousemove",y),zt=zt.filter(function(e){return e!==y})}function Z(t){if(!Ot.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Lt(_,r)){if(ut(g.props.triggerTarget||e).some(function(e){return Lt(e,r)})){if(Ot.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout(function(){d=!1}),g.state.isMounted||W())}}}function N(){f=!0}function F(){f=!1}function I(){var e=C();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,ot),e.addEventListener("touchstart",F,ot),e.addEventListener("touchmove",N,ot)}function W(){var e=C();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,ot),e.removeEventListener("touchstart",F,ot),e.removeEventListener("touchmove",N,ot)}function z(e,t){var r=S().box;function n(e){e.target===r&&(jt(r,"remove",n),t())}if(0===e)return t();jt(r,"remove",a),jt(r,"add",n),a=n}function V(t,r,n){void 0===n&&(n=!1),ut(g.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function H(){var e;A()&&(V("touchstart",q,{passive:!0}),V("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(V(e,q),e){case"mouseenter":V("mouseleave",G);break;case"focus":V(St?"focusout":"blur",X);break;case"focusin":V("focusout",X)}})}function U(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function q(e){var t,r=!1;if(g.state.isEnabled&&!J(e)&&!d){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,D(),!g.state.isVisible&&mt(e)&&zt.forEach(function(t){return t(e)}),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function $(e){var t=e.target,r=k().contains(t)||_.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(_).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=dt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+l>i,f=n-t.bottom-c>i,h=t.left-r+u>i,v=r-t.right-p>i;return d||f||h||v})})(n,e)&&(R(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==k()||g.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!Ot.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=P()?Ft(_).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(P()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];P()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),g.popperInstance=Qe(c,_,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return ft(_.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&T("onTrigger",[g,e]),I();var t=E(!0),n=O(),o=n[0],i=n[1];Ot.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){g.show()},t):g.show()}function te(e){if(g.clearDelayTimeouts(),T("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=E(!1);t?n=setTimeout(function(){g.state.isVisible&&g.hide()},t):o=requestAnimationFrame(function(){g.hide()})}}else W()}}function Ut(e,t){void 0===t&&(t={});var r=Mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Pt,ot),window.addEventListener("blur",Ct);var n=Object.assign({},t,{plugins:r}),o=gt(e).reduce(function(e,t){var r=t&&Ht(t,n);return r&&e.push(r),e},[]);return yt(e)?o[0]:o}Ut.defaultProps=Mt,Ut.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Mt[t]=e[t]})},Ut.currentInput=Ot;Object.assign({},De,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Ut.setDefaultProps({render:It});const qt=Ut,$t=({children:e,value:t})=>(0,d.jsxs)("div",{className:"colorpalette-color-label",children:[(0,d.jsx)("span",{children:e}),(0,d.jsx)("span",{className:"component-color-indicator","aria-label":`Color: ${t}`,style:{background:t}})]}),Gt=new(o())("_"),Xt=({attributes:t,setAttributes:r,colors:n})=>{const o=p()(t),i=Gt.object(o),[a,u]=(0,l.useState)(i.customSettings);t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background;const f=(e,t)=>{const n={[t]:I(e)};r(n)},h=(e=>{const[t,r]=(0,l.useState)(null),n=(0,l.useCallback)(e=>r(e),[]);return(0,l.useEffect)(()=>{if(!t)return;const r=qt(t,{content:e});return()=>{r?.destroy()}},[t,e]),n})((0,e.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary"));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Layout","cloudinary"),children:m.map(e=>(0,d.jsx)(R,{value:e.value,onChange:e=>{r({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1},children:e.label},`${e.value.type}-${e.value.columns}-layout`))}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Color Palette","cloudinary"),initialOpen:!1,children:[(0,d.jsx)($t,{value:t.themeProps_primary,children:(0,e.__)("Primary","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_primary,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_primary")}),(0,d.jsx)($t,{value:t.themeProps_onPrimary,children:(0,e.__)("On Primary","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_onPrimary,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_onPrimary")}),(0,d.jsx)($t,{value:t.themeProps_active,children:(0,e.__)("Active","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_active,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_active")})]}),"classic"===t.displayProps_mode&&(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Fade Transition","cloudinary"),initialOpen:!1,children:(0,d.jsx)(s.SelectControl,{value:t.transition,options:x,onChange:e=>r({transition:e})})}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1,children:[(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:g,onChange:e=>r({aspectRatio:e})}),(0,d.jsxs)("p",{children:[(0,d.jsxs)("div",{className:"cld-ui-title",children:[(0,e.__)("Resize/Crop Mode","cloudinary"),(0,d.jsx)("span",{className:"dashicons dashicons-info cld-tooltip",ref:h})]}),(0,d.jsx)(s.ButtonGroup,{children:M.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.transformation_crop,onClick:()=>r({transformation_crop:e.value,transformation_background:null}),children:e.label},e.value+"-look-and-feel"))})]}),"pad"===t.transformation_crop&&(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Pad style","cloudinary"),value:t.transformation_background,options:T,onChange:e=>{r({transformation_background:e})}}),(0,d.jsx)("p",{children:(0,e.__)("Navigation","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:_.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.navigation,onClick:()=>r({navigation:e.value}),children:e.label},e.value+"-navigation"))})}),(0,d.jsxs)("div",{style:{marginTop:"30px"},children:[(0,d.jsx)(s.ToggleControl,{label:(0,e.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:()=>r({zoom:!t.zoom})}),t.zoom&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Zoom Type","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:w.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.zoomProps_type,onClick:()=>r({zoomProps_type:e.value}),children:e.label},e.value+"-zoom-type"))})}),"flyout"===t.zoomProps_type&&(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:j,onChange:e=>r({zoomProps_viewerPosition:e})}),"popup"!==t.zoomProps_type&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Zoom Trigger","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:L.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.zoomProps_trigger,onClick:()=>r({zoomProps_trigger:e.value}),children:e.label},e.value+"-zoom-trigger"))})})]})]})]})]}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Carousel Parameters","cloudinary"),initialOpen:!1,children:[(0,d.jsx)("p",{children:(0,e.__)("Carousel Location","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:O.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.carouselLocation,onClick:()=>r({carouselLocation:e.value}),children:e.label},e.value+"-carousel-location"))})}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:e=>r({carouselOffset:e}),min:0,max:100}),(0,d.jsx)("p",{children:(0,e.__)("Carousel Style","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:A.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.carouselStyle,onClick:()=>r({carouselStyle:e.value}),children:e.label},e.value+"-carousel-style"))})}),"thumbnails"===t.carouselStyle&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:e=>r({thumbnailProps_width:e}),min:5,max:300}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:e=>r({thumbnailProps_height:e}),min:5,max:300}),(0,d.jsx)("p",{children:(0,e.__)("Navigation Button Shape","cloudinary")}),P.map(e=>(0,d.jsx)(R,{value:e.value,onChange:e=>r({thumbnailProps_navigationShape:e}),icon:e.icon,current:t.thumbnailProps_navigationShape,children:e.label},e.value+"-navigation-button-shape")),(0,d.jsx)("p",{children:(0,e.__)("Selected Style","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:C.map(e=>(0,d.jsx)(s.Button,{isDefault:!0,isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:()=>r({thumbnailProps_selectedStyle:e.value}),children:e.label},e.value+"-selected-style"))})}),(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:S,onChange:e=>r({thumbnailProps_selectedBorderPosition:e})}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:e=>r({thumbnailProps_selectedBorderWidth:e}),min:0,max:10}),(0,d.jsx)("p",{children:(0,e.__)("Media Shape Icon","cloudinary")}),E.map(e=>(0,d.jsx)(R,{value:e.value,onChange:e=>r({thumbnailProps_mediaSymbolShape:e}),icon:e.icon,current:t.thumbnailProps_mediaSymbolShape,children:e.label},e.value+"-media"))]}),"indicators"===t.carouselStyle&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Indicators Shape","cloudinary")}),k.map(e=>(0,d.jsx)(R,{value:e.value,onChange:e=>r({indicatorProps_shape:e}),icon:e.icon,current:t.indicatorProps_shape,children:e.label},e.value+"-indicator"))]})]}),(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Additional Settings","cloudinary"),initialOpen:!1,children:(0,d.jsx)(s.TextareaControl,{label:(0,e.__)("Custom Settings","cloudinary"),help:(0,e.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a,onChange:e=>{let t={};u(e);try{t=JSON.parse(e)}catch(e){}if("object"==typeof t){const e={...i};e.customSettings=t,r({...i,...e})}}})})]})},Jt=new(o())("_"),Yt=(0,e.__)("Drag images, upload new ones or select files from your library.","cloudinary"),Kt=(e,t)=>({...e,container:"."+t,zoom:!1}),Qt=({setAttributes:t,attributes:r,className:n,isSelected:i})=>{const[u,f]=(0,l.useState)(null),[h,v]=(0,l.useState)(!1),y=(0,l.useMemo)(()=>{if(0!==r.selectedImages.length)return r;const e={},{container:t,...n}=Jt.dot(CLD_GALLERY_CONFIG);return Object.keys(n).forEach(t=>{r[t]||(e[t]=n[t])}),{...r,...e}},[r]),m=(0,l.useMemo)(()=>r.selectedImages.length?r.selectedImages.map(({attachmentId:e})=>({id:e})):[],[r]);(0,l.useEffect)(()=>{if(u&&((({status:e,message:t,options:r={}})=>{(0,Z.dispatch)("core/notices").createNotice(e,t,{isDismissible:!0,...r})})({status:"error",message:u}),f(null)),r.selectedImages.length){let e;const{customSettings:t,...n}=(e=>{const t=new(o())("_"),r=p()(e),{selectedImages:n,...i}=t.object(r,{});return i.mediaAssets=n,"classic"!==i?.displayProps?.mode?delete i.transition:delete i.displayProps.columns,"pad"!==i?.transformation_crop&&delete i.transformation_background,"pad"!==i?.transformation?.crop&&delete i.transformation.background,i?.themeProps?.primary&&(i.themeProps.primary=I(i?.themeProps?.primary)),i?.themeProps?.onPrimary&&(i.themeProps.onPrimary=I(i?.themeProps?.onPrimary)),i?.themeProps?.active&&(i.themeProps.active=I(i?.themeProps?.active)),i})(r);try{e=cloudinary.galleryWidget(Kt({...n,...t},r.container))}catch{e=cloudinary.galleryWidget(Kt(n,r.container))}return e.render(),v(!1),()=>e.destroy()}},[u,r,t,n]);const g=!!r.selectedImages.length;return r.container||t({container:`${n}${F(15)}`}),t(y),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:r.container||n}),(0,d.jsx)("div",{className:"wp-block-cloudinary-gallery",children:(0,d.jsx)(c.MediaPlaceholder,{labels:{title:!g&&(0,e.__)("Cloudinary Gallery","cloudinary"),instructions:!g&&Yt},icon:"format-gallery",disableMediaButtons:g&&!i,allowedTypes:b,addToGallery:g,isAppender:g,onSelect:r=>(async r=>{v(!0);try{const e=await a()({path:CLD_REST_ENDPOINT+"/image_data",method:"POST",data:{images:r}});t({selectedImages:e})}catch{v(!1),f((0,e.__)("Could not load selected images. Please try again.","cloudinary"))}})(r),value:m,multiple:!0,children:h&&(0,d.jsx)("div",{className:"loading-spinner-container",children:(0,d.jsx)(s.Spinner,{})})})})]}),(0,d.jsx)(c.InspectorControls,{children:(0,d.jsx)(Xt,{attributes:r,setAttributes:t})})]})},er=({attributes:e})=>(0,d.jsx)("div",{className:e.container}),tr=JSON.parse('{"aspectRatio":{"type":"string"},"navigation":{"type":"string"},"zoom":{"type":"boolean"},"carouselLocation":{"type":"string"},"carouselOffset":{"type":"number"},"carouselStyle":{"type":"string"},"displayProps_mode":{"type":"string"},"displayProps_columns":{"type":"number"},"indicatorProps_shape":{"type":"string"},"themeProps_primary":{"type":"string"},"themeProps_onPrimary":{"type":"string"},"themeProps_active":{"type":"string"},"zoomProps_type":{"type":"string"},"zoomProps_viewerPosition":{"type":"string"},"zoomProps_trigger":{"type":"string"},"thumbnailProps_width":{"type":"number"},"thumbnailProps_height":{"type":"number"},"thumbnailProps_navigationShape":{"type":"string"},"thumbnailProps_selectedStyle":{"type":"string"},"thumbnailProps_selectedBorderPosition":{"type":"string"},"thumbnailProps_selectedBorderWidth":{"type":"number"},"thumbnailProps_mediaSymbolShape":{"type":"string"},"cloudName":{"type":"string"},"container":{"type":"string"},"selectedImages":{"type":"array","default":[]},"transformation_crop":{"type":"string","default":"pad"},"transformation_background":{"type":"string"},"customSettings":{"type":"string"}}');(0,t.registerBlockType)("cloudinary/gallery",{title:(0,e.__)("Cloudinary Gallery","cloudinary"),description:(0,e.__)("Add a gallery powered by the Cloudinary Gallery Widget to your post.","cloudinary"),category:"widgets",icon:"format-gallery",attributes:tr,edit:Qt,save:er})})()})(); +(()=>{var e={1780(e){"use strict";function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(s).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var c=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function d(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,a){var s=e.shift();if(e.length>0){if(r[s]=r[s]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(r[s])){if(!this.override){if(!o(n)||!i(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof r[s]);return}r[s]={}}this._fill(e,r[s],n,a)}else{if(!this.override&&o(r[s])&&!i(r[s])){if(!o(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}r[s]=t(n,a)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(o){var i=void 0===r?null:r[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)}),e},u.prototype.str=function(e,r,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[e]=t(r,o),n},u.prototype.pick=function(e,t,n,o){var i,a,s,c,u;for(a=l(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.blocks;var n=r(1780),o=r.n(n);const i=window.wp.apiFetch;var a=r.n(i);const s=window.wp.components,l=(window.wp["components/buildStyle/style.css"],window.wp.element),c=window.wp.blockEditor;var u=r(8055),p=r.n(u);const d=window.ReactJSXRuntime,f=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-round"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"})})})]}),h=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"ratio-square"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"})})})]}),v=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-radius"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"})})})]}),y=()=>(0,d.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"shape-none"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"})})})]}),m=[{value:{type:"expanded",columns:1},icon:()=>(0,d.jsxs)("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-modern"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"})})})]}),label:(0,e.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:()=>(0,d.jsxs)("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-grid-2-column"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"})})})]}),label:(0,e.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:()=>(0,d.jsxs)("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-grid-3-column"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"})})})]}),label:(0,e.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:()=>(0,d.jsxs)("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"layout-classic"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"})})})]}),label:(0,e.__)("Classic","cloudinary")}],g=["image"],b=[{label:(0,e.__)("1:1","cloudinary"),value:"1:1"},{label:(0,e.__)("3:4","cloudinary"),value:"3:4"},{label:(0,e.__)("4:3","cloudinary"),value:"4:3"},{label:(0,e.__)("4:6","cloudinary"),value:"4:6"},{label:(0,e.__)("6:4","cloudinary"),value:"6:4"},{label:(0,e.__)("5:7","cloudinary"),value:"5:7"},{label:(0,e.__)("7:5","cloudinary"),value:"7:5"},{label:(0,e.__)("8:5","cloudinary"),value:"8:5"},{label:(0,e.__)("5:8","cloudinary"),value:"5:8"},{label:(0,e.__)("9:16","cloudinary"),value:"9:16"},{label:(0,e.__)("16:9","cloudinary"),value:"16:9"}],x=[{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("Fade","cloudinary"),value:"fade"},{label:(0,e.__)("Slide","cloudinary"),value:"slide"}],_=[{label:(0,e.__)("Always","cloudinary"),value:"always"},{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("MouseOver","cloudinary"),value:"mouseover"}],w=[{label:(0,e.__)("Inline","cloudinary"),value:"inline"},{label:(0,e.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,e.__)("Popup","cloudinary"),value:"popup"}],j=[{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],L=[{label:(0,e.__)("Click","cloudinary"),value:"click"},{label:(0,e.__)("Hover","cloudinary"),value:"hover"}],O=[{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"}],A=[{label:(0,e.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,e.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,e.__)("None","cloudinary"),value:"none"}],P=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:y,label:(0,e.__)("None","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")},{value:"rectangle",icon:()=>(0,d.jsxs)("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,d.jsx)("title",{children:"ratio-9-16"}),(0,d.jsx)("desc",{children:"Created with Sketch."}),(0,d.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000",children:(0,d.jsx)("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "})})})]}),label:(0,e.__)("Rectangle","cloudinary")}],k=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")}],S=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Border","cloudinary"),value:"border"},{label:(0,e.__)("Gradient","cloudinary"),value:"gradient"}],C=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,e.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],M=[{value:"round",icon:f,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:v,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:y,label:(0,e.__)("None","cloudinary")},{value:"square",icon:h,label:(0,e.__)("Square","cloudinary")}],E=[{label:(0,e.__)("Pad","cloudinary"),value:"pad"},{label:(0,e.__)("Fill","cloudinary"),value:"fill"}],T=[{label:(0,e.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,e.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,e.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,e.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}];var B=r(6942),D=r.n(B);const N=({value:e,children:t,icon:r,onChange:n,current:o})=>{const i="object"==typeof e?JSON.stringify(e)===JSON.stringify(o):o===e;return(0,d.jsxs)("button",{type:"button",onClick:()=>n(e),className:D()("radio-select",{"radio-select--active":i}),children:[(0,d.jsx)(r,{}),(0,d.jsx)("div",{className:"radio-select__label",children:t})]})},R=window.wp.data,Z=e=>e<10?"0"+String(e):e.toString(16),z=e=>{const t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,Z).join("")},F=e=>{const t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function W(e){return e instanceof I(e).Element||e instanceof Element}function H(e){return e instanceof I(e).HTMLElement||e instanceof HTMLElement}function V(e){return"undefined"!=typeof ShadowRoot&&(e instanceof I(e).ShadowRoot||e instanceof ShadowRoot)}var U=Math.max,q=Math.min,$=Math.round;function G(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function X(){return!/^((?!chrome|android).)*safari/i.test(G())}function J(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&H(e)&&(o=e.offsetWidth>0&&$(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$(n.height)/e.offsetHeight||1);var a=(W(e)?I(e):window).visualViewport,s=!X()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Y(e){var t=I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(e){return e?(e.nodeName||"").toLowerCase():null}function Q(e){return((W(e)?e.ownerDocument:e.document)||window.document).documentElement}function ee(e){return J(Q(e)).left+Y(e).scrollLeft}function te(e){return I(e).getComputedStyle(e)}function re(e){var t=te(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ne(e,t,r){void 0===r&&(r=!1);var n,o,i=H(t),a=H(t)&&function(e){var t=e.getBoundingClientRect(),r=$(t.width)/e.offsetWidth||1,n=$(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=Q(t),l=J(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==K(t)||re(s))&&(c=(n=t)!==I(n)&&H(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Y(n)),H(t)?((u=J(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=ee(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function oe(e){var t=J(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ie(e){return"html"===K(e)?e:e.assignedSlot||e.parentNode||(V(e)?e.host:null)||Q(e)}function ae(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:H(e)&&re(e)?e:ae(ie(e))}function se(e,t){var r;void 0===t&&(t=[]);var n=ae(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=I(n),a=o?[i].concat(i.visualViewport||[],re(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(se(ie(a)))}function le(e){return["table","td","th"].indexOf(K(e))>=0}function ce(e){return H(e)&&"fixed"!==te(e).position?e.offsetParent:null}function ue(e){for(var t=I(e),r=ce(e);r&&le(r)&&"static"===te(r).position;)r=ce(r);return r&&("html"===K(r)||"body"===K(r)&&"static"===te(r).position)?t:r||function(e){var t=/firefox/i.test(G());if(/Trident/i.test(G())&&H(e)&&"fixed"===te(e).position)return null;var r=ie(e);for(V(r)&&(r=r.host);H(r)&&["html","body"].indexOf(K(r))<0;){var n=te(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var pe="top",de="bottom",fe="right",he="left",ve="auto",ye=[pe,de,fe,he],me="start",ge="end",be="viewport",xe="popper",_e=ye.reduce(function(e,t){return e.concat([t+"-"+me,t+"-"+ge])},[]),we=[].concat(ye,[ve]).reduce(function(e,t){return e.concat([t,t+"-"+me,t+"-"+ge])},[]),je=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Le(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var Oe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ae(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function Ee(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Se(o):null,a=o?Ce(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case pe:t={x:s,y:r.y-n.height};break;case de:t={x:s,y:r.y+r.height};break;case fe:t={x:r.x+r.width,y:l};break;case he:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Me(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case me:t[c]=t[c]-(r[u]/2-n[u]/2);break;case ge:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Be(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=he,x=pe,_=window;if(c){var w=ue(r),j="clientHeight",L="clientWidth";if(w===I(r)&&"static"!==te(w=Q(r)).position&&"absolute"===s&&(j="scrollHeight",L="scrollWidth"),o===pe||(o===he||o===fe)&&i===ge)x=de,v-=(p&&w===_&&_.visualViewport?_.visualViewport.height:w[j])-n.height,v*=l?1:-1;if(o===he||(o===pe||o===de)&&i===ge)b=fe,f-=(p&&w===_&&_.visualViewport?_.visualViewport.width:w[L])-n.width,f*=l?1:-1}var O,A=Object.assign({position:s},c&&Te),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:$(r*o)/o||0,y:$(n*o)/o||0}}({x:f,y:v},I(r)):{x:f,y:v};return f=P.x,v=P.y,l?Object.assign({},A,((O={})[x]=g?"0":"",O[b]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},A,((t={})[x]=g?v+"px":"",t[b]=m?f+"px":"",t.transform="",t))}const De={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];H(o)&&K(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});H(n)&&K(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=we.reduce(function(e,r){return e[r]=function(e,t,r){var n=Se(e),o=[he,pe].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[he,fe].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Re={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Re[e]})}var ze={start:"end",end:"start"};function Fe(e){return e.replace(/start|end/g,function(e){return ze[e]})}function Ie(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&V(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function We(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function He(e,t,r){return t===be?We(function(e,t){var r=I(e),n=Q(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=X();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+ee(e),y:l}}(e,r)):W(t)?function(e,t){var r=J(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):We(function(e){var t,r=Q(e),n=Y(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=U(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=U(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ee(e),l=-n.scrollTop;return"rtl"===te(o||r).direction&&(s+=U(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Q(e)))}function Ve(e,t,r,n){var o="clippingParents"===t?function(e){var t=se(ie(e)),r=["absolute","fixed"].indexOf(te(e).position)>=0&&H(e)?ue(e):e;return W(r)?t.filter(function(e){return W(e)&&Ie(e,r)&&"body"!==K(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=He(e,r,n);return t.top=U(o.top,t.top),t.right=q(o.right,t.right),t.bottom=q(o.bottom,t.bottom),t.left=U(o.left,t.left),t},He(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qe(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function $e(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?be:c,p=r.elementContext,d=void 0===p?xe:p,f=r.altBoundary,h=void 0!==f&&f,v=r.padding,y=void 0===v?0:v,m=Ue("number"!=typeof y?y:qe(y,ye)),g=d===xe?"reference":xe,b=e.rects.popper,x=e.elements[h?g:d],_=Ve(W(x)?x:x.contextElement||Q(e.elements.popper),l,u,a),w=J(e.elements.reference),j=Ee({reference:w,element:b,strategy:"absolute",placement:o}),L=We(Object.assign({},b,j)),O=d===xe?L:w,A={top:_.top-O.top+m.top,bottom:O.bottom-_.bottom+m.bottom,left:_.left-O.left+m.left,right:O.right-_.right+m.right},P=e.modifiersData.offset;if(d===xe&&P){var k=P[o];Object.keys(A).forEach(function(e){var t=[fe,de].indexOf(e)>=0?1:-1,r=[pe,de].indexOf(e)>=0?"y":"x";A[e]+=k[r]*t})}return A}function Ge(e,t,r){return U(e,q(t,r))}const Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,v=void 0===h?0:h,y=$e(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),m=Se(t.placement),g=Ce(t.placement),b=!g,x=Me(m),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,L=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,A="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(w){if(i){var S,C="y"===x?pe:he,M="y"===x?de:fe,E="y"===x?"height":"width",T=w[x],B=T+y[C],D=T-y[M],N=f?-L[E]/2:0,R=g===me?j[E]:L[E],Z=g===me?-L[E]:-j[E],z=t.elements.arrow,F=f&&z?oe(z):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=I[C],H=I[M],V=Ge(0,j[E],F[E]),$=b?j[E]/2-N-V-W-A.mainAxis:R-V-W-A.mainAxis,G=b?-j[E]/2+N+V+H+A.mainAxis:Z+V+H+A.mainAxis,X=t.elements.arrow&&ue(t.elements.arrow),J=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,Y=null!=(S=null==P?void 0:P[x])?S:0,K=T+G-Y,Q=Ge(f?q(B,T+$-Y-J):B,T,f?U(D,K):D);w[x]=Q,k[x]=Q-T}if(s){var ee,te="x"===x?pe:he,re="x"===x?de:fe,ne=w[_],ie="y"===_?"height":"width",ae=ne+y[te],se=ne-y[re],le=-1!==[pe,he].indexOf(m),ce=null!=(ee=null==P?void 0:P[_])?ee:0,ve=le?ae:ne-j[ie]-L[ie]-ce+A.altAxis,ye=le?ne+j[ie]+L[ie]-ce-A.altAxis:se,ge=f&&le?function(e,t,r){var n=Ge(e,t,r);return n>r?r:n}(ve,ne,ye):Ge(f?ve:ae,ne,f?ye:se);w[_]=ge,k[_]=ge-ne}t.modifiersData[n]=k}},requiresIfExists:["offset"]};const Je={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Se(r.placement),l=Me(s),c=[he,fe].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ue("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qe(e,ye))}(o.padding,r),p=oe(i),d="y"===l?pe:he,f="y"===l?de:fe,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],y=ue(i),m=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,g=h/2-v/2,b=u[d],x=m-p[c]-u[f],_=m/2-p[c]/2+g,w=Ge(b,_,x),j=l;r.modifiersData[n]=((t={})[j]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ie(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ke(e){return[pe,fe,de,he].some(function(t){return e[t]>=0})}var Qe=Pe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=I(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,ke)}),s&&l.addEventListener("resize",r.update,ke),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,ke)}),s&&l.removeEventListener("resize",r.update,ke)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Ee({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:Se(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Be(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Be(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},De,Ne,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,y=t.options.placement,m=Se(y),g=l||(m===y||!h?[Ze(y)]:function(e){if(Se(e)===ve)return[];var t=Ze(e);return[Fe(e),t,Fe(t)]}(y)),b=[y].concat(g).reduce(function(e,r){return e.concat(Se(r)===ve?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?we:l,u=Ce(n),p=u?s?_e:_e.filter(function(e){return Ce(e)===u}):ye,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var f=d.reduce(function(t,r){return t[r]=$e(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Se(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,j=!0,L=b[0],O=0;O=0,C=S?"width":"height",M=$e(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),E=S?k?fe:he:k?de:pe;x[C]>_[C]&&(E=Ze(E));var T=Ze(E),B=[];if(i&&B.push(M[P]<=0),s&&B.push(M[E]<=0,M[T]<=0),B.every(function(e){return e})){L=A,j=!1;break}w.set(A,B)}if(j)for(var D=function(e){var t=b.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Xe,Je,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=$e(t,{elementContext:"reference"}),s=$e(t,{altBoundary:!0}),l=Ye(a,n),c=Ye(s,o,i),u=Ke(l),p=Ke(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),et="tippy-content",tt="tippy-backdrop",rt="tippy-arrow",nt="tippy-svg-arrow",ot={passive:!0,capture:!0},it=function(){return document.body};function at(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function st(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function lt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ct(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function ut(e){return[].concat(e)}function pt(e,t){-1===e.indexOf(t)&&e.push(t)}function dt(e){return e.split("-")[0]}function ft(e){return[].slice.call(e)}function ht(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function vt(){return document.createElement("div")}function yt(e){return["Element","Fragment"].some(function(t){return st(e,t)})}function mt(e){return st(e,"MouseEvent")}function gt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function bt(e){return yt(e)?[e]:function(e){return st(e,"NodeList")}(e)?ft(e):Array.isArray(e)?e:ft(document.querySelectorAll(e))}function xt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function _t(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wt(e){var t,r=ut(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function jt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function Lt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Ot={isTouch:!1},At=0;function Pt(){Ot.isTouch||(Ot.isTouch=!0,window.performance&&document.addEventListener("mousemove",kt))}function kt(){var e=performance.now();e-At<20&&(Ot.isTouch=!1,document.removeEventListener("mousemove",kt)),At=e}function St(){var e=document.activeElement;if(gt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ct=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Mt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Et=Object.assign({appendTo:it,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Tt=Object.keys(Et);function Bt(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Et[o])?n:i);return t},{});return Object.assign({},e,t)}function Dt(e,t){var r=Object.assign({},t,{content:lt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Bt(Object.assign({},Et,{plugins:t}))):Tt).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Et.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Nt(e,t){e.innerHTML=t}function Rt(e){var t=vt();return!0===e?t.className=rt:(t.className=nt,yt(e)?t.appendChild(e):Nt(t,e)),t}function Zt(e,t){yt(t.content)?(Nt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Nt(e,t.content):e.textContent=t.content)}function zt(e){var t=e.firstElementChild,r=ft(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(et)}),arrow:r.find(function(e){return e.classList.contains(rt)||e.classList.contains(nt)}),backdrop:r.find(function(e){return e.classList.contains(tt)})}}function Ft(e){var t=vt(),r=vt();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=vt();function o(r,n){var o=zt(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Zt(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(Rt(n.arrow))):i.appendChild(Rt(n.arrow)):s&&i.removeChild(s)}return n.className=et,n.setAttribute("data-state","hidden"),Zt(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Ft.$$tippy=!0;var It=1,Wt=[],Ht=[];function Vt(e,t){var r,n,o,i,a,s,l,c,u=Dt(e,Object.assign({},Et,Bt(ht(t)))),p=!1,d=!1,f=!1,h=!1,v=[],y=ct($,u.interactiveDebounce),m=It++,g=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),b={id:m,reference:e,popper:vt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){0;if(b.state.isDestroyed)return;T("onBeforeUpdate",[b,t]),U();var r=b.props,n=Dt(e,Object.assign({},r,ht(t),{ignoreAttributes:!0}));b.props=n,V(),r.interactiveDebounce!==n.interactiveDebounce&&(N(),y=ct($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?ut(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),E(),w&&w(r,n);b.popperInstance&&(Y(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));T("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=Ot.isTouch&&!b.props.touch,o=at(b.props.duration,0,Et.duration);if(e||t||r||n)return;if(k().hasAttribute("disabled"))return;if(T("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,P()&&(_.style.visibility="visible");E(),F(),b.state.isMounted||(_.style.transition="none");if(P()){var i=C();xt([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,P()&&b.props.animation){var t=C(),r=t.box,n=t.content;xt([r,n],o),_t([r,n],"visible")}B(),D(),pt(Ht,b),null==(e=b.popperInstance)||e.forceUpdate(),T("onMount",[b]),b.props.animation&&P()&&function(e,t){W(e,t)}(o,function(){b.state.isShown=!0,T("onShown",[b])})}},function(){var e,t=b.props.appendTo,r=k();e=b.props.interactive&&t===it||"parent"===t?r.parentNode:lt(t,[r]);e.contains(_)||e.appendChild(_);b.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=at(b.props.duration,1,Et.duration);if(e||t||r)return;if(T("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,p=!1,P()&&(_.style.visibility="hidden");if(N(),I(),E(!0),P()){var o=C(),i=o.box,a=o.content;b.props.animation&&(xt([i,a],n),_t([i,a],"hidden"))}B(),D(),b.props.animation?P()&&function(e,t){W(e,function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()})}(n,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;S().addEventListener("mousemove",y),pt(Wt,y),y(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;K(),Q().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Ht=Ht.filter(function(e){return e!==b}),b.state.isMounted=!1,T("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,T("onDestroy",[b])}};if(!u.render)return b;var x=u.render(b),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var j=g.map(function(e){return e.fn(b)}),L=e.hasAttribute("aria-expanded");return V(),D(),E(),T("onCreate",[b]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",y)}),b;function O(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===O()[0]}function P(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function k(){return l||e}function S(){var e=k().parentNode;return e?wt(e):document}function C(){return zt(_)}function M(e){return b.state.isMounted&&!b.state.isVisible||Ot.isTouch||i&&"focus"===i.type?0:at(b.props.delay,e?0:1,Et.delay)}function E(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function T(e,t,r){var n;(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=b.props)[e].apply(n,t)}function B(){var t=b.props.aria;if(t.content){var r="aria-"+t.content,n=_.id;ut(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(b.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function D(){!L&&b.props.aria.expanded&&ut(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){S().removeEventListener("mousemove",y),Wt=Wt.filter(function(e){return e!==y})}function R(t){if(!Ot.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Lt(_,r)){if(ut(b.props.triggerTarget||e).some(function(e){return Lt(e,r)})){if(Ot.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout(function(){d=!1}),b.state.isMounted||I())}}}function Z(){f=!0}function z(){f=!1}function F(){var e=S();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,ot),e.addEventListener("touchstart",z,ot),e.addEventListener("touchmove",Z,ot)}function I(){var e=S();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,ot),e.removeEventListener("touchstart",z,ot),e.removeEventListener("touchmove",Z,ot)}function W(e,t){var r=C().box;function n(e){e.target===r&&(jt(r,"remove",n),t())}if(0===e)return t();jt(r,"remove",a),jt(r,"add",n),a=n}function H(t,r,n){void 0===n&&(n=!1),ut(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function V(){var e;A()&&(H("touchstart",q,{passive:!0}),H("touchend",G,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(H(e,q),e){case"mouseenter":H("mouseleave",G);break;case"focus":H(Ct?"focusout":"blur",X);break;case"focusin":H("focusout",X)}})}function U(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function q(e){var t,r=!1;if(b.state.isEnabled&&!J(e)&&!d){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,D(),!b.state.isVisible&&mt(e)&&Wt.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||p)&&!1!==b.props.hideOnClick&&b.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function $(e){var t=e.target,r=k().contains(t)||_.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(_).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=dt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+l>i,f=n-t.bottom-c>i,h=t.left-r+u>i,v=r-t.right-p>i;return d||f||h||v})})(n,e)&&(N(),te(e))}}function G(e){J(e)||b.props.trigger.indexOf("click")>=0&&p||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function X(e){b.props.trigger.indexOf("focusin")<0&&e.target!==k()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!Ot.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){K();var t=b.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=P()?zt(_).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(P()){var r=C().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];P()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),b.popperInstance=Qe(c,_,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return ft(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&T("onTrigger",[b,e]),F();var t=M(!0),n=O(),o=n[0],i=n[1];Ot.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),T("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=M(!1);t?n=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}else I()}}function Ut(e,t){void 0===t&&(t={});var r=Et.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Pt,ot),window.addEventListener("blur",St);var n=Object.assign({},t,{plugins:r}),o=bt(e).reduce(function(e,t){var r=t&&Vt(t,n);return r&&e.push(r),e},[]);return yt(e)?o[0]:o}Ut.defaultProps=Et,Ut.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Et[t]=e[t]})},Ut.currentInput=Ot;Object.assign({},De,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Ut.setDefaultProps({render:Ft});const qt=Ut,$t=({children:e,value:t})=>(0,d.jsxs)("div",{className:"colorpalette-color-label",children:[(0,d.jsx)("span",{children:e}),(0,d.jsx)("span",{className:"component-color-indicator","aria-label":`Color: ${t}`,style:{background:t}})]}),Gt=new(o())("_"),Xt=({attributes:t,setAttributes:r,colors:n})=>{const o=p()(t),i=Gt.object(o),[a,u]=(0,l.useState)(i.customSettings);t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background;const f=(e,t)=>{const n={[t]:F(e)};r(n)},h=(e=>{const[t,r]=(0,l.useState)(null),n=(0,l.useCallback)(e=>r(e),[]);return(0,l.useEffect)(()=>{if(!t)return;const r=qt(t,{content:e});return()=>{r?.destroy()}},[t,e]),n})((0,e.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary"));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Layout","cloudinary"),children:m.map(e=>(0,d.jsx)(N,{value:e.value,onChange:e=>{r({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1},children:e.label},`${e.value.type}-${e.value.columns}-layout`))}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Color Palette","cloudinary"),initialOpen:!1,children:[(0,d.jsx)($t,{value:t.themeProps_primary,children:(0,e.__)("Primary","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_primary,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_primary")}),(0,d.jsx)($t,{value:t.themeProps_onPrimary,children:(0,e.__)("On Primary","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_onPrimary,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_onPrimary")}),(0,d.jsx)($t,{value:t.themeProps_active,children:(0,e.__)("Active","cloudinary")}),(0,d.jsx)(c.ColorPalette,{value:t.themeProps_active,colors:n,disableCustomColors:!1,onChange:e=>f(e,"themeProps_active")})]}),"classic"===t.displayProps_mode&&(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Fade Transition","cloudinary"),initialOpen:!1,children:(0,d.jsx)(s.SelectControl,{value:t.transition,options:x,onChange:e=>r({transition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1,children:[(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:b,onChange:e=>r({aspectRatio:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsxs)("p",{children:[(0,d.jsxs)("div",{className:"cld-ui-title",children:[(0,e.__)("Resize/Crop Mode","cloudinary"),(0,d.jsx)("span",{className:"dashicons dashicons-info cld-tooltip",ref:h})]}),(0,d.jsx)(s.ButtonGroup,{children:E.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.transformation_crop,onClick:()=>r({transformation_crop:e.value,transformation_background:null}),children:e.label},e.value+"-look-and-feel"))})]}),"pad"===t.transformation_crop&&(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Pad style","cloudinary"),value:t.transformation_background,options:T,onChange:e=>{r({transformation_background:e})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)("p",{children:(0,e.__)("Navigation","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:_.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.navigation,onClick:()=>r({navigation:e.value}),children:e.label},e.value+"-navigation"))})}),(0,d.jsxs)("div",{style:{marginTop:"30px"},children:[(0,d.jsx)(s.ToggleControl,{label:(0,e.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:()=>r({zoom:!t.zoom}),__nextHasNoMarginBottom:!0}),t.zoom&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Zoom Type","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:w.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.zoomProps_type,onClick:()=>r({zoomProps_type:e.value}),children:e.label},e.value+"-zoom-type"))})}),"flyout"===t.zoomProps_type&&(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:j,onChange:e=>r({zoomProps_viewerPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),"popup"!==t.zoomProps_type&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Zoom Trigger","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:L.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.zoomProps_trigger,onClick:()=>r({zoomProps_trigger:e.value}),children:e.label},e.value+"-zoom-trigger"))})})]})]})]})]}),(0,d.jsxs)(s.PanelBody,{title:(0,e.__)("Carousel Parameters","cloudinary"),initialOpen:!1,children:[(0,d.jsx)("p",{children:(0,e.__)("Carousel Location","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:O.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.carouselLocation,onClick:()=>r({carouselLocation:e.value}),children:e.label},e.value+"-carousel-location"))})}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:e=>r({carouselOffset:e}),min:0,max:100,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)("p",{children:(0,e.__)("Carousel Style","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:A.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.carouselStyle,onClick:()=>r({carouselStyle:e.value}),children:e.label},e.value+"-carousel-style"))})}),"thumbnails"===t.carouselStyle&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:e=>r({thumbnailProps_width:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:e=>r({thumbnailProps_height:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)("p",{children:(0,e.__)("Navigation Button Shape","cloudinary")}),P.map(e=>(0,d.jsx)(N,{value:e.value,onChange:e=>r({thumbnailProps_navigationShape:e}),icon:e.icon,current:t.thumbnailProps_navigationShape,children:e.label},e.value+"-navigation-button-shape")),(0,d.jsx)("p",{children:(0,e.__)("Selected Style","cloudinary")}),(0,d.jsx)("p",{children:(0,d.jsx)(s.ButtonGroup,{children:S.map(e=>(0,d.jsx)(s.Button,{variant:"secondary",isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:()=>r({thumbnailProps_selectedStyle:e.value}),children:e.label},e.value+"-selected-style"))})}),(0,d.jsx)(s.SelectControl,{label:(0,e.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:C,onChange:e=>r({thumbnailProps_selectedBorderPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)(s.RangeControl,{label:(0,e.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:e=>r({thumbnailProps_selectedBorderWidth:e}),min:0,max:10,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,d.jsx)("p",{children:(0,e.__)("Media Shape Icon","cloudinary")}),M.map(e=>(0,d.jsx)(N,{value:e.value,onChange:e=>r({thumbnailProps_mediaSymbolShape:e}),icon:e.icon,current:t.thumbnailProps_mediaSymbolShape,children:e.label},e.value+"-media"))]}),"indicators"===t.carouselStyle&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,e.__)("Indicators Shape","cloudinary")}),k.map(e=>(0,d.jsx)(N,{value:e.value,onChange:e=>r({indicatorProps_shape:e}),icon:e.icon,current:t.indicatorProps_shape,children:e.label},e.value+"-indicator"))]})]}),(0,d.jsx)(s.PanelBody,{title:(0,e.__)("Additional Settings","cloudinary"),initialOpen:!1,children:(0,d.jsx)(s.TextareaControl,{label:(0,e.__)("Custom Settings","cloudinary"),help:(0,e.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a,onChange:e=>{let t={};u(e);try{t=JSON.parse(e)}catch(e){}if("object"==typeof t){const e={...i};e.customSettings=t,r({...i,...e})}},__nextHasNoMarginBottom:!0})})]})},Jt=new(o())("_"),Yt=(0,e.__)("Drag images, upload new ones or select files from your library.","cloudinary"),Kt=(e,t)=>({...e,container:"."+t,zoom:!1}),Qt=({setAttributes:t,attributes:r,className:n,isSelected:i})=>{const[u,f]=(0,l.useState)(null),[h,v]=(0,l.useState)(!1),y=(0,l.useMemo)(()=>{if(0!==r.selectedImages.length)return r;const e={},{container:t,...n}=Jt.dot(CLD_GALLERY_CONFIG);return Object.keys(n).forEach(t=>{r[t]||(e[t]=n[t])}),{...r,...e}},[r]),m=(0,l.useMemo)(()=>r.selectedImages.length?r.selectedImages.map(({attachmentId:e})=>({id:e})):[],[r]);(0,l.useEffect)(()=>{if(u&&((({status:e,message:t,options:r={}})=>{(0,R.dispatch)("core/notices").createNotice(e,t,{isDismissible:!0,...r})})({status:"error",message:u}),f(null)),r.selectedImages.length){let e;const{customSettings:t,...n}=(e=>{const t=new(o())("_"),r=p()(e),{selectedImages:n,...i}=t.object(r,{});return i.mediaAssets=n,"classic"!==i?.displayProps?.mode?delete i.transition:delete i.displayProps.columns,"pad"!==i?.transformation_crop&&delete i.transformation_background,"pad"!==i?.transformation?.crop&&delete i.transformation.background,i?.themeProps?.primary&&(i.themeProps.primary=F(i?.themeProps?.primary)),i?.themeProps?.onPrimary&&(i.themeProps.onPrimary=F(i?.themeProps?.onPrimary)),i?.themeProps?.active&&(i.themeProps.active=F(i?.themeProps?.active)),i})(r);try{e=cloudinary.galleryWidget(Kt({...n,...t},r.container))}catch{e=cloudinary.galleryWidget(Kt(n,r.container))}return e.render(),v(!1),()=>e.destroy()}},[u,r,t,n]);const b=!!r.selectedImages.length;return r.container||t({container:`${n}${z(15)}`}),t(y),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:r.container||n}),(0,d.jsx)("div",{className:"wp-block-cloudinary-gallery",children:(0,d.jsx)(c.MediaPlaceholder,{labels:{title:!b&&(0,e.__)("Cloudinary Gallery","cloudinary"),instructions:!b&&Yt},icon:"format-gallery",disableMediaButtons:b&&!i,allowedTypes:g,addToGallery:b,isAppender:b,onSelect:r=>(async r=>{v(!0);try{const e=await a()({path:CLD_REST_ENDPOINT+"/image_data",method:"POST",data:{images:r}});t({selectedImages:e})}catch{v(!1),f((0,e.__)("Could not load selected images. Please try again.","cloudinary"))}})(r),value:m,multiple:!0,children:h&&(0,d.jsx)("div",{className:"loading-spinner-container",children:(0,d.jsx)(s.Spinner,{})})})})]}),(0,d.jsx)(c.InspectorControls,{children:(0,d.jsx)(Xt,{attributes:r,setAttributes:t})})]})},er=({attributes:e})=>(0,d.jsx)("div",{className:e.container}),tr=JSON.parse('{"aspectRatio":{"type":"string"},"navigation":{"type":"string"},"zoom":{"type":"boolean"},"carouselLocation":{"type":"string"},"carouselOffset":{"type":"number"},"carouselStyle":{"type":"string"},"displayProps_mode":{"type":"string"},"displayProps_columns":{"type":"number"},"indicatorProps_shape":{"type":"string"},"themeProps_primary":{"type":"string"},"themeProps_onPrimary":{"type":"string"},"themeProps_active":{"type":"string"},"zoomProps_type":{"type":"string"},"zoomProps_viewerPosition":{"type":"string"},"zoomProps_trigger":{"type":"string"},"thumbnailProps_width":{"type":"number"},"thumbnailProps_height":{"type":"number"},"thumbnailProps_navigationShape":{"type":"string"},"thumbnailProps_selectedStyle":{"type":"string"},"thumbnailProps_selectedBorderPosition":{"type":"string"},"thumbnailProps_selectedBorderWidth":{"type":"number"},"thumbnailProps_mediaSymbolShape":{"type":"string"},"cloudName":{"type":"string"},"container":{"type":"string"},"selectedImages":{"type":"array","default":[]},"transformation_crop":{"type":"string","default":"pad"},"transformation_background":{"type":"string"},"customSettings":{"type":"string"}}');(0,t.registerBlockType)("cloudinary/gallery",{apiVersion:2,title:(0,e.__)("Cloudinary Gallery","cloudinary"),description:(0,e.__)("Add a gallery powered by the Cloudinary Gallery Widget to your post.","cloudinary"),category:"widgets",icon:"format-gallery",attributes:tr,edit:Qt,save:er})})()})(); //# sourceMappingURL=gallery-block.js.map \ No newline at end of file diff --git a/js/gallery.asset.php b/js/gallery.asset.php index 2ac9e5fd..5ac23808 100644 --- a/js/gallery.asset.php +++ b/js/gallery.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '9cc411f20e1aa5754b7f'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '2bd7ae20e0947dcb9dbd'); diff --git a/js/gallery.js b/js/gallery.js index dd1c800b..5f01a1dc 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -1,2 +1,2 @@ -(()=>{var e={1780(e){"use strict";function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(s).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var c=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function d(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,a){var s=e.shift();if(e.length>0){if(r[s]=r[s]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(r[s])){if(!this.override){if(!o(n)||!i(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof r[s]);return}r[s]={}}this._fill(e,r[s],n,a)}else{if(!this.override&&o(r[s])&&!i(r[s])){if(!o(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}r[s]=t(n,a)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(o){var i=void 0===r?null:r[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)}),e},u.prototype.str=function(e,r,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[e]=t(r,o),n},u.prototype.pick=function(e,t,n,o){var i,a,s,c,u;for(a=l(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(1780),t=r.n(e);const n=window.wp.element;var o=r(8055),i=r.n(o);const a=window.wp.i18n,s=(window.wp["components/buildStyle/style.css"],window.wp.components),l=window.wp.blockEditor,c=window.ReactJSXRuntime,u=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-round"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"})})})]}),p=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"ratio-square"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"})})})]}),d=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-radius"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"})})})]}),f=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-none"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"})})})]}),h=[{value:{type:"expanded",columns:1},icon:()=>(0,c.jsxs)("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-modern"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"})})})]}),label:(0,a.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:()=>(0,c.jsxs)("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-grid-2-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"})})})]}),label:(0,a.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:()=>(0,c.jsxs)("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-grid-3-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"})})})]}),label:(0,a.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:()=>(0,c.jsxs)("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-classic"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"})})})]}),label:(0,a.__)("Classic","cloudinary")}],v=[{label:(0,a.__)("1:1","cloudinary"),value:"1:1"},{label:(0,a.__)("3:4","cloudinary"),value:"3:4"},{label:(0,a.__)("4:3","cloudinary"),value:"4:3"},{label:(0,a.__)("4:6","cloudinary"),value:"4:6"},{label:(0,a.__)("6:4","cloudinary"),value:"6:4"},{label:(0,a.__)("5:7","cloudinary"),value:"5:7"},{label:(0,a.__)("7:5","cloudinary"),value:"7:5"},{label:(0,a.__)("8:5","cloudinary"),value:"8:5"},{label:(0,a.__)("5:8","cloudinary"),value:"5:8"},{label:(0,a.__)("9:16","cloudinary"),value:"9:16"},{label:(0,a.__)("16:9","cloudinary"),value:"16:9"}],y=[{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("Fade","cloudinary"),value:"fade"},{label:(0,a.__)("Slide","cloudinary"),value:"slide"}],m=[{label:(0,a.__)("Always","cloudinary"),value:"always"},{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("MouseOver","cloudinary"),value:"mouseover"}],b=[{label:(0,a.__)("Inline","cloudinary"),value:"inline"},{label:(0,a.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,a.__)("Popup","cloudinary"),value:"popup"}],g=[{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],x=[{label:(0,a.__)("Click","cloudinary"),value:"click"},{label:(0,a.__)("Hover","cloudinary"),value:"hover"}],_=[{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"}],w=[{label:(0,a.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,a.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,a.__)("None","cloudinary"),value:"none"}],j=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")},{value:"rectangle",icon:()=>(0,c.jsxs)("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"ratio-9-16"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "})})})]}),label:(0,a.__)("Rectangle","cloudinary")}],L=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],O=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Border","cloudinary"),value:"border"},{label:(0,a.__)("Gradient","cloudinary"),value:"gradient"}],A=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,a.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],k=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],P=[{label:(0,a.__)("Pad","cloudinary"),value:"pad"},{label:(0,a.__)("Fill","cloudinary"),value:"fill"}],C=[{label:(0,a.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,a.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,a.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,a.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}];var S=r(6942),E=r.n(S);const M=({value:e,children:t,icon:r,onChange:n,current:o})=>{const i="object"==typeof e?JSON.stringify(e)===JSON.stringify(o):o===e;return(0,c.jsxs)("button",{type:"button",onClick:()=>n(e),className:E()("radio-select",{"radio-select--active":i}),children:[(0,c.jsx)(r,{}),(0,c.jsx)("div",{className:"radio-select__label",children:t})]})};window.wp.data;const T=e=>{const t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function B(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){return e instanceof B(e).Element||e instanceof Element}function R(e){return e instanceof B(e).HTMLElement||e instanceof HTMLElement}function Z(e){return"undefined"!=typeof ShadowRoot&&(e instanceof B(e).ShadowRoot||e instanceof ShadowRoot)}var N=Math.max,F=Math.min,W=Math.round;function I(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(I())}function V(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&R(e)&&(o=e.offsetWidth>0&&W(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&W(n.height)/e.offsetHeight||1);var a=(D(e)?B(e):window).visualViewport,s=!z()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function H(e){var t=B(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function $(e){return V(q(e)).left+H(e).scrollLeft}function G(e){return B(e).getComputedStyle(e)}function X(e){var t=G(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function J(e,t,r){void 0===r&&(r=!1);var n,o,i=R(t),a=R(t)&&function(e){var t=e.getBoundingClientRect(),r=W(t.width)/e.offsetWidth||1,n=W(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=q(t),l=V(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==U(t)||X(s))&&(c=(n=t)!==B(n)&&R(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:H(n)),R(t)?((u=V(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=$(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Y(e){var t=V(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function K(e){return"html"===U(e)?e:e.assignedSlot||e.parentNode||(Z(e)?e.host:null)||q(e)}function Q(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:R(e)&&X(e)?e:Q(K(e))}function ee(e,t){var r;void 0===t&&(t=[]);var n=Q(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=B(n),a=o?[i].concat(i.visualViewport||[],X(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ee(K(a)))}function te(e){return["table","td","th"].indexOf(U(e))>=0}function re(e){return R(e)&&"fixed"!==G(e).position?e.offsetParent:null}function ne(e){for(var t=B(e),r=re(e);r&&te(r)&&"static"===G(r).position;)r=re(r);return r&&("html"===U(r)||"body"===U(r)&&"static"===G(r).position)?t:r||function(e){var t=/firefox/i.test(I());if(/Trident/i.test(I())&&R(e)&&"fixed"===G(e).position)return null;var r=K(e);for(Z(r)&&(r=r.host);R(r)&&["html","body"].indexOf(U(r))<0;){var n=G(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var oe="top",ie="bottom",ae="right",se="left",le="auto",ce=[oe,ie,ae,se],ue="start",pe="end",de="viewport",fe="popper",he=ce.reduce(function(e,t){return e.concat([t+"-"+ue,t+"-"+pe])},[]),ve=[].concat(ce,[le]).reduce(function(e,t){return e.concat([t,t+"-"+ue,t+"-"+pe])},[]),ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var be={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function Oe(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?we(o):null,a=o?je(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case oe:t={x:s,y:r.y-n.height};break;case ie:t={x:s,y:r.y+r.height};break;case ae:t={x:r.x+r.width,y:l};break;case se:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Le(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ue:t[c]=t[c]-(r[u]/2-n[u]/2);break;case pe:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ke(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=se,x=oe,_=window;if(c){var w=ne(r),j="clientHeight",L="clientWidth";if(w===B(r)&&"static"!==G(w=q(r)).position&&"absolute"===s&&(j="scrollHeight",L="scrollWidth"),o===oe||(o===se||o===ae)&&i===pe)x=ie,v-=(p&&w===_&&_.visualViewport?_.visualViewport.height:w[j])-n.height,v*=l?1:-1;if(o===se||(o===oe||o===ie)&&i===pe)g=ae,f-=(p&&w===_&&_.visualViewport?_.visualViewport.width:w[L])-n.width,f*=l?1:-1}var O,A=Object.assign({position:s},c&&Ae),k=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:W(r*o)/o||0,y:W(n*o)/o||0}}({x:f,y:v},B(r)):{x:f,y:v};return f=k.x,v=k.y,l?Object.assign({},A,((O={})[x]=b?"0":"",O[g]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},A,((t={})[x]=b?v+"px":"",t[g]=m?f+"px":"",t.transform="",t))}const Pe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];R(o)&&U(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});R(n)&&U(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=ve.reduce(function(e,r){return e[r]=function(e,t,r){var n=we(e),o=[se,oe].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[se,ae].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Se={left:"right",right:"left",bottom:"top",top:"bottom"};function Ee(e){return e.replace(/left|right|bottom|top/g,function(e){return Se[e]})}var Me={start:"end",end:"start"};function Te(e){return e.replace(/start|end/g,function(e){return Me[e]})}function Be(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Z(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Re(e,t,r){return t===de?De(function(e,t){var r=B(e),n=q(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=z();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+$(e),y:l}}(e,r)):D(t)?function(e,t){var r=V(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):De(function(e){var t,r=q(e),n=H(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=N(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=N(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+$(e),l=-n.scrollTop;return"rtl"===G(o||r).direction&&(s+=N(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(q(e)))}function Ze(e,t,r,n){var o="clippingParents"===t?function(e){var t=ee(K(e)),r=["absolute","fixed"].indexOf(G(e).position)>=0&&R(e)?ne(e):e;return D(r)?t.filter(function(e){return D(e)&&Be(e,r)&&"body"!==U(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Re(e,r,n);return t.top=N(o.top,t.top),t.right=F(o.right,t.right),t.bottom=F(o.bottom,t.bottom),t.left=N(o.left,t.left),t},Re(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fe(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function We(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?de:c,p=r.elementContext,d=void 0===p?fe:p,f=r.altBoundary,h=void 0!==f&&f,v=r.padding,y=void 0===v?0:v,m=Ne("number"!=typeof y?y:Fe(y,ce)),b=d===fe?"reference":fe,g=e.rects.popper,x=e.elements[h?b:d],_=Ze(D(x)?x:x.contextElement||q(e.elements.popper),l,u,a),w=V(e.elements.reference),j=Oe({reference:w,element:g,strategy:"absolute",placement:o}),L=De(Object.assign({},g,j)),O=d===fe?L:w,A={top:_.top-O.top+m.top,bottom:O.bottom-_.bottom+m.bottom,left:_.left-O.left+m.left,right:O.right-_.right+m.right},k=e.modifiersData.offset;if(d===fe&&k){var P=k[o];Object.keys(A).forEach(function(e){var t=[ae,ie].indexOf(e)>=0?1:-1,r=[oe,ie].indexOf(e)>=0?"y":"x";A[e]+=P[r]*t})}return A}function Ie(e,t,r){return N(e,F(t,r))}const ze={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,v=void 0===h?0:h,y=We(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),m=we(t.placement),b=je(t.placement),g=!b,x=Le(m),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,L=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,A="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var C,S="y"===x?oe:se,E="y"===x?ie:ae,M="y"===x?"height":"width",T=w[x],B=T+y[S],D=T-y[E],R=f?-L[M]/2:0,Z=b===ue?j[M]:L[M],W=b===ue?-L[M]:-j[M],I=t.elements.arrow,z=f&&I?Y(I):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[S],U=V[E],q=Ie(0,j[M],z[M]),$=g?j[M]/2-R-q-H-A.mainAxis:Z-q-H-A.mainAxis,G=g?-j[M]/2+R+q+U+A.mainAxis:W+q+U+A.mainAxis,X=t.elements.arrow&&ne(t.elements.arrow),J=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,K=null!=(C=null==k?void 0:k[x])?C:0,Q=T+G-K,ee=Ie(f?F(B,T+$-K-J):B,T,f?N(D,Q):D);w[x]=ee,P[x]=ee-T}if(s){var te,re="x"===x?oe:se,le="x"===x?ie:ae,ce=w[_],pe="y"===_?"height":"width",de=ce+y[re],fe=ce-y[le],he=-1!==[oe,se].indexOf(m),ve=null!=(te=null==k?void 0:k[_])?te:0,ye=he?de:ce-j[pe]-L[pe]-ve+A.altAxis,me=he?ce+j[pe]+L[pe]-ve-A.altAxis:fe,be=f&&he?function(e,t,r){var n=Ie(e,t,r);return n>r?r:n}(ye,ce,me):Ie(f?ye:de,ce,f?me:fe);w[_]=be,P[_]=be-ce}t.modifiersData[n]=P}},requiresIfExists:["offset"]};const Ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=we(r.placement),l=Le(s),c=[se,ae].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fe(e,ce))}(o.padding,r),p=Y(i),d="y"===l?oe:se,f="y"===l?ie:ae,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],y=ne(i),m=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,b=h/2-v/2,g=u[d],x=m-p[c]-u[f],_=m/2-p[c]/2+b,w=Ie(g,_,x),j=l;r.modifiersData[n]=((t={})[j]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Be(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ue(e){return[oe,ae,ie,se].some(function(t){return e[t]>=0})}var qe=xe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=B(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,_e)}),s&&l.addEventListener("resize",r.update,_e),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,_e)}),s&&l.removeEventListener("resize",r.update,_e)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:we(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ke(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ke(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Pe,Ce,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,y=t.options.placement,m=we(y),b=l||(m===y||!h?[Ee(y)]:function(e){if(we(e)===le)return[];var t=Ee(e);return[Te(e),t,Te(t)]}(y)),g=[y].concat(b).reduce(function(e,r){return e.concat(we(r)===le?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?ve:l,u=je(n),p=u?s?he:he.filter(function(e){return je(e)===u}):ce,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var f=d.reduce(function(t,r){return t[r]=We(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[we(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,j=!0,L=g[0],O=0;O=0,S=C?"width":"height",E=We(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),M=C?P?ae:se:P?ie:oe;x[S]>_[S]&&(M=Ee(M));var T=Ee(M),B=[];if(i&&B.push(E[k]<=0),s&&B.push(E[M]<=0,E[T]<=0),B.every(function(e){return e})){L=A,j=!1;break}w.set(A,B)}if(j)for(var D=function(e){var t=g.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},R=h?3:1;R>0;R--){if("break"===D(R))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ze,Ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=We(t,{elementContext:"reference"}),s=We(t,{altBoundary:!0}),l=He(a,n),c=He(s,o,i),u=Ue(l),p=Ue(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),$e="tippy-content",Ge="tippy-backdrop",Xe="tippy-arrow",Je="tippy-svg-arrow",Ye={passive:!0,capture:!0},Ke=function(){return document.body};function Qe(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function et(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rt(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function nt(e){return[].concat(e)}function ot(e,t){-1===e.indexOf(t)&&e.push(t)}function it(e){return e.split("-")[0]}function at(e){return[].slice.call(e)}function st(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function lt(){return document.createElement("div")}function ct(e){return["Element","Fragment"].some(function(t){return et(e,t)})}function ut(e){return et(e,"MouseEvent")}function pt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function dt(e){return ct(e)?[e]:function(e){return et(e,"NodeList")}(e)?at(e):Array.isArray(e)?e:at(document.querySelectorAll(e))}function ft(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ht(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function vt(e){var t,r=nt(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function yt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function mt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var bt={isTouch:!1},gt=0;function xt(){bt.isTouch||(bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",_t))}function _t(){var e=performance.now();e-gt<20&&(bt.isTouch=!1,document.removeEventListener("mousemove",_t)),gt=e}function wt(){var e=document.activeElement;if(pt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var jt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Lt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ot=Object.assign({appendTo:Ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Lt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Ot);function kt(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Ot[o])?n:i);return t},{});return Object.assign({},e,t)}function Pt(e,t){var r=Object.assign({},t,{content:tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(kt(Object.assign({},Ot,{plugins:t}))):At).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Ot.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Ct(e,t){e.innerHTML=t}function St(e){var t=lt();return!0===e?t.className=Xe:(t.className=Je,ct(e)?t.appendChild(e):Ct(t,e)),t}function Et(e,t){ct(t.content)?(Ct(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ct(e,t.content):e.textContent=t.content)}function Mt(e){var t=e.firstElementChild,r=at(t.children);return{box:t,content:r.find(function(e){return e.classList.contains($e)}),arrow:r.find(function(e){return e.classList.contains(Xe)||e.classList.contains(Je)}),backdrop:r.find(function(e){return e.classList.contains(Ge)})}}function Tt(e){var t=lt(),r=lt();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=lt();function o(r,n){var o=Mt(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Et(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(St(n.arrow))):i.appendChild(St(n.arrow)):s&&i.removeChild(s)}return n.className=$e,n.setAttribute("data-state","hidden"),Et(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Tt.$$tippy=!0;var Bt=1,Dt=[],Rt=[];function Zt(e,t){var r,n,o,i,a,s,l,c,u=Pt(e,Object.assign({},Ot,kt(st(t)))),p=!1,d=!1,f=!1,h=!1,v=[],y=rt($,u.interactiveDebounce),m=Bt++,b=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),g={id:m,reference:e,popper:lt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;T("onBeforeUpdate",[g,t]),U();var r=g.props,n=Pt(e,Object.assign({},r,st(t),{ignoreAttributes:!0}));g.props=n,H(),r.interactiveDebounce!==n.interactiveDebounce&&(R(),y=rt($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?nt(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),M(),w&&w(r,n);g.popperInstance&&(Y(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));T("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=bt.isTouch&&!g.props.touch,o=Qe(g.props.duration,0,Ot.duration);if(e||t||r||n)return;if(P().hasAttribute("disabled"))return;if(T("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,k()&&(_.style.visibility="visible");M(),W(),g.state.isMounted||(_.style.transition="none");if(k()){var i=S();ft([i.box,i.content],0)}s=function(){var e;if(g.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,k()&&g.props.animation){var t=S(),r=t.box,n=t.content;ft([r,n],o),ht([r,n],"visible")}B(),D(),ot(Rt,g),null==(e=g.popperInstance)||e.forceUpdate(),T("onMount",[g]),g.props.animation&&k()&&function(e,t){z(e,t)}(o,function(){g.state.isShown=!0,T("onShown",[g])})}},function(){var e,t=g.props.appendTo,r=P();e=g.props.interactive&&t===Ke||"parent"===t?r.parentNode:tt(t,[r]);e.contains(_)||e.appendChild(_);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=Qe(g.props.duration,1,Ot.duration);if(e||t||r)return;if(T("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,h=!1,p=!1,k()&&(_.style.visibility="hidden");if(R(),I(),M(!0),k()){var o=S(),i=o.box,a=o.content;g.props.animation&&(ft([i,a],n),ht([i,a],"hidden"))}B(),D(),g.props.animation?k()&&function(e,t){z(e,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()})}(n,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",y),ot(Dt,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Rt=Rt.filter(function(e){return e!==g}),g.state.isMounted=!1,T("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,T("onDestroy",[g])}};if(!u.render)return g;var x=u.render(g),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,e._tippy=g,_._tippy=g;var j=b.map(function(e){return e.fn(g)}),L=e.hasAttribute("aria-expanded");return H(),D(),M(),T("onCreate",[g]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",y)}),g;function O(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===O()[0]}function k(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function P(){return l||e}function C(){var e=P().parentNode;return e?vt(e):document}function S(){return Mt(_)}function E(e){return g.state.isMounted&&!g.state.isVisible||bt.isTouch||i&&"focus"===i.type?0:Qe(g.props.delay,e?0:1,Ot.delay)}function M(e){void 0===e&&(e=!1),_.style.pointerEvents=g.props.interactive&&!e?"":"none",_.style.zIndex=""+g.props.zIndex}function T(e,t,r){var n;(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=g.props)[e].apply(n,t)}function B(){var t=g.props.aria;if(t.content){var r="aria-"+t.content,n=_.id;nt(g.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(g.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function D(){!L&&g.props.aria.expanded&&nt(g.props.triggerTarget||e).forEach(function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")})}function R(){C().removeEventListener("mousemove",y),Dt=Dt.filter(function(e){return e!==y})}function Z(t){if(!bt.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!mt(_,r)){if(nt(g.props.triggerTarget||e).some(function(e){return mt(e,r)})){if(bt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout(function(){d=!1}),g.state.isMounted||I())}}}function N(){f=!0}function F(){f=!1}function W(){var e=C();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,Ye),e.addEventListener("touchstart",F,Ye),e.addEventListener("touchmove",N,Ye)}function I(){var e=C();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,Ye),e.removeEventListener("touchstart",F,Ye),e.removeEventListener("touchmove",N,Ye)}function z(e,t){var r=S().box;function n(e){e.target===r&&(yt(r,"remove",n),t())}if(0===e)return t();yt(r,"remove",a),yt(r,"add",n),a=n}function V(t,r,n){void 0===n&&(n=!1),nt(g.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function H(){var e;A()&&(V("touchstart",q,{passive:!0}),V("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(V(e,q),e){case"mouseenter":V("mouseleave",G);break;case"focus":V(jt?"focusout":"blur",X);break;case"focusin":V("focusout",X)}})}function U(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function q(e){var t,r=!1;if(g.state.isEnabled&&!J(e)&&!d){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,D(),!g.state.isVisible&&ut(e)&&Dt.forEach(function(t){return t(e)}),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function $(e){var t=e.target,r=P().contains(t)||_.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(_).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=it(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+l>i,f=n-t.bottom-c>i,h=t.left-r+u>i,v=r-t.right-p>i;return d||f||h||v})})(n,e)&&(R(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==P()||g.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!bt.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=k()?Mt(_).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||P()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),g.popperInstance=qe(c,_,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return at(_.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&T("onTrigger",[g,e]),W();var t=E(!0),n=O(),o=n[0],i=n[1];bt.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){g.show()},t):g.show()}function te(e){if(g.clearDelayTimeouts(),T("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=E(!1);t?n=setTimeout(function(){g.state.isVisible&&g.hide()},t):o=requestAnimationFrame(function(){g.hide()})}}else I()}}function Nt(e,t){void 0===t&&(t={});var r=Ot.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",xt,Ye),window.addEventListener("blur",wt);var n=Object.assign({},t,{plugins:r}),o=dt(e).reduce(function(e,t){var r=t&&Zt(t,n);return r&&e.push(r),e},[]);return ct(e)?o[0]:o}Nt.defaultProps=Ot,Nt.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Ot[t]=e[t]})},Nt.currentInput=bt;Object.assign({},Pe,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Nt.setDefaultProps({render:Tt});const Ft=Nt,Wt=({children:e,value:t})=>(0,c.jsxs)("div",{className:"colorpalette-color-label",children:[(0,c.jsx)("span",{children:e}),(0,c.jsx)("span",{className:"component-color-indicator","aria-label":`Color: ${t}`,style:{background:t}})]}),It=new(t())("_"),zt=({attributes:e,setAttributes:t,colors:r})=>{const o=i()(e),u=It.object(o),[p,d]=(0,n.useState)(u.customSettings);e.transformation_crop||(e.transformation_crop="pad",e.transformation_background="rgb:FFFFFF"),"fill"===e.transformation_crop&&delete e.transformation_background;const f=(e,r)=>{const n={[r]:T(e)};t(n)},S=(e=>{const[t,r]=(0,n.useState)(null),o=(0,n.useCallback)(e=>r(e),[]);return(0,n.useEffect)(()=>{if(!t)return;const r=Ft(t,{content:e});return()=>{r?.destroy()}},[t,e]),o})((0,a.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary"));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Layout","cloudinary"),children:h.map(r=>(0,c.jsx)(M,{value:r.value,onChange:e=>{t({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:r.icon,current:{type:e.displayProps_mode,columns:e.displayProps_columns||1},children:r.label},`${r.value.type}-${r.value.columns}-layout`))}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Color Palette","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(Wt,{value:e.themeProps_primary,children:(0,a.__)("Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_primary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_primary")}),(0,c.jsx)(Wt,{value:e.themeProps_onPrimary,children:(0,a.__)("On Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_onPrimary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_onPrimary")}),(0,c.jsx)(Wt,{value:e.themeProps_active,children:(0,a.__)("Active","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_active,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_active")})]}),"classic"===e.displayProps_mode&&(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Fade Transition","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.SelectControl,{value:e.transition,options:y,onChange:e=>t({transition:e})})}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Aspect Ratio","cloudinary"),value:e.aspectRatio,options:v,onChange:e=>t({aspectRatio:e})}),(0,c.jsxs)("p",{children:[(0,c.jsxs)("div",{className:"cld-ui-title",children:[(0,a.__)("Resize/Crop Mode","cloudinary"),(0,c.jsx)("span",{className:"dashicons dashicons-info cld-tooltip",ref:S})]}),(0,c.jsx)(s.ButtonGroup,{children:P.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.transformation_crop,onClick:()=>t({transformation_crop:r.value,transformation_background:null}),children:r.label},r.value+"-look-and-feel"))})]}),"pad"===e.transformation_crop&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Pad style","cloudinary"),value:e.transformation_background,options:C,onChange:e=>{t({transformation_background:e})}}),(0,c.jsx)("p",{children:(0,a.__)("Navigation","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:m.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.navigation,onClick:()=>t({navigation:r.value}),children:r.label},r.value+"-navigation"))})}),(0,c.jsxs)("div",{style:{marginTop:"30px"},children:[(0,c.jsx)(s.ToggleControl,{label:(0,a.__)("Show Zoom","cloudinary"),checked:e.zoom,onChange:()=>t({zoom:!e.zoom})}),e.zoom&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Type","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:b.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.zoomProps_type,onClick:()=>t({zoomProps_type:r.value}),children:r.label},r.value+"-zoom-type"))})}),"flyout"===e.zoomProps_type&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Zoom Viewer Position","cloudinary"),value:e.zoomProps_viewerPosition,options:g,onChange:e=>t({zoomProps_viewerPosition:e})}),"popup"!==e.zoomProps_type&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Trigger","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:x.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.zoomProps_trigger,onClick:()=>t({zoomProps_trigger:r.value}),children:r.label},r.value+"-zoom-trigger"))})})]})]})]})]}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Carousel Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)("p",{children:(0,a.__)("Carousel Location","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:_.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.carouselLocation,onClick:()=>t({carouselLocation:r.value}),children:r.label},r.value+"-carousel-location"))})}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Carousel Offset","cloudinary"),value:e.carouselOffset,onChange:e=>t({carouselOffset:e}),min:0,max:100}),(0,c.jsx)("p",{children:(0,a.__)("Carousel Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:w.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.carouselStyle,onClick:()=>t({carouselStyle:r.value}),children:r.label},r.value+"-carousel-style"))})}),"thumbnails"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Width","cloudinary"),value:e.thumbnailProps_width,onChange:e=>t({thumbnailProps_width:e}),min:5,max:300}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Height","cloudinary"),value:e.thumbnailProps_height,onChange:e=>t({thumbnailProps_height:e}),min:5,max:300}),(0,c.jsx)("p",{children:(0,a.__)("Navigation Button Shape","cloudinary")}),j.map(r=>(0,c.jsx)(M,{value:r.value,onChange:e=>t({thumbnailProps_navigationShape:e}),icon:r.icon,current:e.thumbnailProps_navigationShape,children:r.label},r.value+"-navigation-button-shape")),(0,c.jsx)("p",{children:(0,a.__)("Selected Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:O.map(r=>(0,c.jsx)(s.Button,{isDefault:!0,isPressed:r.value===e.thumbnailProps_selectedStyle,onClick:()=>t({thumbnailProps_selectedStyle:r.value}),children:r.label},r.value+"-selected-style"))})}),(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Selected Border Position","cloudinary"),value:e.thumbnailProps_selectedBorderPosition,options:A,onChange:e=>t({thumbnailProps_selectedBorderPosition:e})}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Selected Border Width","cloudinary"),value:e.thumbnailProps_selectedBorderWidth,onChange:e=>t({thumbnailProps_selectedBorderWidth:e}),min:0,max:10}),(0,c.jsx)("p",{children:(0,a.__)("Media Shape Icon","cloudinary")}),k.map(r=>(0,c.jsx)(M,{value:r.value,onChange:e=>t({thumbnailProps_mediaSymbolShape:e}),icon:r.icon,current:e.thumbnailProps_mediaSymbolShape,children:r.label},r.value+"-media"))]}),"indicators"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Indicators Shape","cloudinary")}),L.map(r=>(0,c.jsx)(M,{value:r.value,onChange:e=>t({indicatorProps_shape:e}),icon:r.icon,current:e.indicatorProps_shape,children:r.label},r.value+"-indicator"))]})]}),(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Additional Settings","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.TextareaControl,{label:(0,a.__)("Custom Settings","cloudinary"),help:(0,a.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:p,onChange:e=>{let r={};d(e);try{r=JSON.parse(e)}catch(e){}if("object"==typeof r){const e={...u};e.customSettings=r,t({...u,...e})}}})})]})},{cloudName:Vt,mediaAssets:Ht,...Ut}=(e=>{const t={};return Object.keys(e).forEach(r=>{t[r]={type:typeof e[r],default:e[r]}}),t})(new(t())("_").dot(CLD_GALLERY_CONFIG)),qt={};Object.keys(Ut).forEach(e=>{qt[e]=Ut[e]?.default});const $t=e=>({cloudName:"demo",...e,mediaAssets:[{tag:"shoes_product_gallery_demo",mediaType:"image"}],container:".gallery-preview"}),Gt=document.querySelector("#cloudinary-settings-page form");void 0!==Gt&&Gt.addEventListener("submit",function(e){(!e.submitter.name||e.submitter.name&&"cld_submission"!==e.submitter.name)&&e.preventDefault()});const Xt=()=>{const[e,r]=(0,n.useState)(qt),o=CLD_THEME_COLORS.map(e=>({...e,color:T(e.color)})).filter(e=>0!==e.color.length);return(0,n.useEffect)(()=>{let r,n;const o=(e=>{const r=new(t())("_"),n=i()(e),{selectedImages:o,...a}=r.object(n,{});return a.mediaAssets=o,"classic"!==a?.displayProps?.mode?delete a.transition:delete a.displayProps.columns,"pad"!==a?.transformation_crop&&delete a.transformation_background,"pad"!==a?.transformation?.crop&&delete a.transformation.background,a?.themeProps?.primary&&(a.themeProps.primary=T(a?.themeProps?.primary)),a?.themeProps?.onPrimary&&(a.themeProps.onPrimary=T(a?.themeProps?.onPrimary)),a?.themeProps?.active&&(a.themeProps.active=T(a?.themeProps?.active)),a})(e),{customSettings:a,...s}=o;try{try{n=JSON.parse(a)}catch{n=a}r=cloudinary.galleryWidget($t({...s,...n}))}catch{r=cloudinary.galleryWidget($t(s))}r.render();const l=document.getElementById("gallery_settings_input");return l&&(l.value=JSON.stringify(o)),()=>r.destroy()}),(0,c.jsx)("div",{className:"cld-gallery-settings-container",children:(0,c.jsxs)("div",{className:"cld-gallery-settings",children:[(0,c.jsx)("div",{className:"interface-interface-skeleton__sidebar cld-gallery-settings__column",children:(0,c.jsx)("div",{className:"interface-complementary-area edit-post-sidebar",children:(0,c.jsx)("div",{className:"components-panel",children:(0,c.jsx)("div",{className:"block-editor-block-inspector",children:(0,c.jsx)(zt,{attributes:e,setAttributes:t=>{r({...e,...t})},colors:o})})})})}),(0,c.jsx)("div",{className:"gallery-preview cld-gallery-settings__column"})]})})};(0,n.createRoot)(document.getElementById("app_gallery_gallery_config")).render((0,c.jsx)(Xt,{}))})()})(); +(()=>{var e={1780(e){"use strict";function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(s).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var c=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function d(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,a){var s=e.shift();if(e.length>0){if(r[s]=r[s]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(r[s])){if(!this.override){if(!o(n)||!i(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof r[s]);return}r[s]={}}this._fill(e,r[s],n,a)}else{if(!this.override&&o(r[s])&&!i(r[s])){if(!o(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}r[s]=t(n,a)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(o){var i=void 0===r?null:r[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)}),e},u.prototype.str=function(e,r,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[e]=t(r,o),n},u.prototype.pick=function(e,t,n,o){var i,a,s,c,u;for(a=l(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(1780),t=r.n(e);const n=window.wp.element;var o=r(8055),i=r.n(o);const a=window.wp.i18n,s=(window.wp["components/buildStyle/style.css"],window.wp.components),l=window.wp.blockEditor,c=window.ReactJSXRuntime,u=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-round"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"})})})]}),p=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"ratio-square"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"})})})]}),d=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-radius"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"})})})]}),f=()=>(0,c.jsxs)("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"shape-none"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"})})})]}),h=[{value:{type:"expanded",columns:1},icon:()=>(0,c.jsxs)("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-modern"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"})})})]}),label:(0,a.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:()=>(0,c.jsxs)("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-grid-2-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"})})})]}),label:(0,a.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:()=>(0,c.jsxs)("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-grid-3-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"})})})]}),label:(0,a.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:()=>(0,c.jsxs)("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"layout-classic"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"})})})]}),label:(0,a.__)("Classic","cloudinary")}],v=[{label:(0,a.__)("1:1","cloudinary"),value:"1:1"},{label:(0,a.__)("3:4","cloudinary"),value:"3:4"},{label:(0,a.__)("4:3","cloudinary"),value:"4:3"},{label:(0,a.__)("4:6","cloudinary"),value:"4:6"},{label:(0,a.__)("6:4","cloudinary"),value:"6:4"},{label:(0,a.__)("5:7","cloudinary"),value:"5:7"},{label:(0,a.__)("7:5","cloudinary"),value:"7:5"},{label:(0,a.__)("8:5","cloudinary"),value:"8:5"},{label:(0,a.__)("5:8","cloudinary"),value:"5:8"},{label:(0,a.__)("9:16","cloudinary"),value:"9:16"},{label:(0,a.__)("16:9","cloudinary"),value:"16:9"}],y=[{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("Fade","cloudinary"),value:"fade"},{label:(0,a.__)("Slide","cloudinary"),value:"slide"}],m=[{label:(0,a.__)("Always","cloudinary"),value:"always"},{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("MouseOver","cloudinary"),value:"mouseover"}],b=[{label:(0,a.__)("Inline","cloudinary"),value:"inline"},{label:(0,a.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,a.__)("Popup","cloudinary"),value:"popup"}],g=[{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],x=[{label:(0,a.__)("Click","cloudinary"),value:"click"},{label:(0,a.__)("Hover","cloudinary"),value:"hover"}],_=[{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"}],w=[{label:(0,a.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,a.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,a.__)("None","cloudinary"),value:"none"}],j=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")},{value:"rectangle",icon:()=>(0,c.jsxs)("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,c.jsx)("title",{children:"ratio-9-16"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000",children:(0,c.jsx)("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "})})})]}),label:(0,a.__)("Rectangle","cloudinary")}],L=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],O=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Border","cloudinary"),value:"border"},{label:(0,a.__)("Gradient","cloudinary"),value:"gradient"}],A=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,a.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],k=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],P=[{label:(0,a.__)("Pad","cloudinary"),value:"pad"},{label:(0,a.__)("Fill","cloudinary"),value:"fill"}],C=[{label:(0,a.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,a.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,a.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,a.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}];var S=r(6942),M=r.n(S);const E=({value:e,children:t,icon:r,onChange:n,current:o})=>{const i="object"==typeof e?JSON.stringify(e)===JSON.stringify(o):o===e;return(0,c.jsxs)("button",{type:"button",onClick:()=>n(e),className:M()("radio-select",{"radio-select--active":i}),children:[(0,c.jsx)(r,{}),(0,c.jsx)("div",{className:"radio-select__label",children:t})]})};window.wp.data;const B=e=>{const t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){return e instanceof T(e).Element||e instanceof Element}function N(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement}function R(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}var Z=Math.max,z=Math.min,F=Math.round;function W(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(W())}function I(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&N(e)&&(o=e.offsetWidth>0&&F(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&F(n.height)/e.offsetHeight||1);var a=(D(e)?T(e):window).visualViewport,s=!H()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function V(e){var t=T(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function $(e){return I(q(e)).left+V(e).scrollLeft}function G(e){return T(e).getComputedStyle(e)}function X(e){var t=G(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function J(e,t,r){void 0===r&&(r=!1);var n,o,i=N(t),a=N(t)&&function(e){var t=e.getBoundingClientRect(),r=F(t.width)/e.offsetWidth||1,n=F(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=q(t),l=I(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==U(t)||X(s))&&(c=(n=t)!==T(n)&&N(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:V(n)),N(t)?((u=I(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=$(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Y(e){var t=I(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function K(e){return"html"===U(e)?e:e.assignedSlot||e.parentNode||(R(e)?e.host:null)||q(e)}function Q(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:N(e)&&X(e)?e:Q(K(e))}function ee(e,t){var r;void 0===t&&(t=[]);var n=Q(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=T(n),a=o?[i].concat(i.visualViewport||[],X(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ee(K(a)))}function te(e){return["table","td","th"].indexOf(U(e))>=0}function re(e){return N(e)&&"fixed"!==G(e).position?e.offsetParent:null}function ne(e){for(var t=T(e),r=re(e);r&&te(r)&&"static"===G(r).position;)r=re(r);return r&&("html"===U(r)||"body"===U(r)&&"static"===G(r).position)?t:r||function(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&N(e)&&"fixed"===G(e).position)return null;var r=K(e);for(R(r)&&(r=r.host);N(r)&&["html","body"].indexOf(U(r))<0;){var n=G(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var oe="top",ie="bottom",ae="right",se="left",le="auto",ce=[oe,ie,ae,se],ue="start",pe="end",de="viewport",fe="popper",he=ce.reduce(function(e,t){return e.concat([t+"-"+ue,t+"-"+pe])},[]),ve=[].concat(ce,[le]).reduce(function(e,t){return e.concat([t,t+"-"+ue,t+"-"+pe])},[]),ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var be={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function Oe(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?we(o):null,a=o?je(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case oe:t={x:s,y:r.y-n.height};break;case ie:t={x:s,y:r.y+r.height};break;case ae:t={x:r.x+r.width,y:l};break;case se:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Le(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ue:t[c]=t[c]-(r[u]/2-n[u]/2);break;case pe:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ke(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=se,x=oe,_=window;if(c){var w=ne(r),j="clientHeight",L="clientWidth";if(w===T(r)&&"static"!==G(w=q(r)).position&&"absolute"===s&&(j="scrollHeight",L="scrollWidth"),o===oe||(o===se||o===ae)&&i===pe)x=ie,v-=(p&&w===_&&_.visualViewport?_.visualViewport.height:w[j])-n.height,v*=l?1:-1;if(o===se||(o===oe||o===ie)&&i===pe)g=ae,f-=(p&&w===_&&_.visualViewport?_.visualViewport.width:w[L])-n.width,f*=l?1:-1}var O,A=Object.assign({position:s},c&&Ae),k=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:F(r*o)/o||0,y:F(n*o)/o||0}}({x:f,y:v},T(r)):{x:f,y:v};return f=k.x,v=k.y,l?Object.assign({},A,((O={})[x]=b?"0":"",O[g]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},A,((t={})[x]=b?v+"px":"",t[g]=m?f+"px":"",t.transform="",t))}const Pe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];N(o)&&U(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});N(n)&&U(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=ve.reduce(function(e,r){return e[r]=function(e,t,r){var n=we(e),o=[se,oe].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[se,ae].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Se={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(e){return e.replace(/left|right|bottom|top/g,function(e){return Se[e]})}var Ee={start:"end",end:"start"};function Be(e){return e.replace(/start|end/g,function(e){return Ee[e]})}function Te(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&R(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t,r){return t===de?De(function(e,t){var r=T(e),n=q(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=H();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+$(e),y:l}}(e,r)):D(t)?function(e,t){var r=I(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):De(function(e){var t,r=q(e),n=V(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Z(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Z(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+$(e),l=-n.scrollTop;return"rtl"===G(o||r).direction&&(s+=Z(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(q(e)))}function Re(e,t,r,n){var o="clippingParents"===t?function(e){var t=ee(K(e)),r=["absolute","fixed"].indexOf(G(e).position)>=0&&N(e)?ne(e):e;return D(r)?t.filter(function(e){return D(e)&&Te(e,r)&&"body"!==U(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Ne(e,r,n);return t.top=Z(o.top,t.top),t.right=z(o.right,t.right),t.bottom=z(o.bottom,t.bottom),t.left=Z(o.left,t.left),t},Ne(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ze(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ze(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function Fe(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?de:c,p=r.elementContext,d=void 0===p?fe:p,f=r.altBoundary,h=void 0!==f&&f,v=r.padding,y=void 0===v?0:v,m=Ze("number"!=typeof y?y:ze(y,ce)),b=d===fe?"reference":fe,g=e.rects.popper,x=e.elements[h?b:d],_=Re(D(x)?x:x.contextElement||q(e.elements.popper),l,u,a),w=I(e.elements.reference),j=Oe({reference:w,element:g,strategy:"absolute",placement:o}),L=De(Object.assign({},g,j)),O=d===fe?L:w,A={top:_.top-O.top+m.top,bottom:O.bottom-_.bottom+m.bottom,left:_.left-O.left+m.left,right:O.right-_.right+m.right},k=e.modifiersData.offset;if(d===fe&&k){var P=k[o];Object.keys(A).forEach(function(e){var t=[ae,ie].indexOf(e)>=0?1:-1,r=[oe,ie].indexOf(e)>=0?"y":"x";A[e]+=P[r]*t})}return A}function We(e,t,r){return Z(e,z(t,r))}const He={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,v=void 0===h?0:h,y=Fe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),m=we(t.placement),b=je(t.placement),g=!b,x=Le(m),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,L=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,A="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var C,S="y"===x?oe:se,M="y"===x?ie:ae,E="y"===x?"height":"width",B=w[x],T=B+y[S],D=B-y[M],N=f?-L[E]/2:0,R=b===ue?j[E]:L[E],F=b===ue?-L[E]:-j[E],W=t.elements.arrow,H=f&&W?Y(W):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=I[S],U=I[M],q=We(0,j[E],H[E]),$=g?j[E]/2-N-q-V-A.mainAxis:R-q-V-A.mainAxis,G=g?-j[E]/2+N+q+U+A.mainAxis:F+q+U+A.mainAxis,X=t.elements.arrow&&ne(t.elements.arrow),J=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,K=null!=(C=null==k?void 0:k[x])?C:0,Q=B+G-K,ee=We(f?z(T,B+$-K-J):T,B,f?Z(D,Q):D);w[x]=ee,P[x]=ee-B}if(s){var te,re="x"===x?oe:se,le="x"===x?ie:ae,ce=w[_],pe="y"===_?"height":"width",de=ce+y[re],fe=ce-y[le],he=-1!==[oe,se].indexOf(m),ve=null!=(te=null==k?void 0:k[_])?te:0,ye=he?de:ce-j[pe]-L[pe]-ve+A.altAxis,me=he?ce+j[pe]+L[pe]-ve-A.altAxis:fe,be=f&&he?function(e,t,r){var n=We(e,t,r);return n>r?r:n}(ye,ce,me):We(f?ye:de,ce,f?me:fe);w[_]=be,P[_]=be-ce}t.modifiersData[n]=P}},requiresIfExists:["offset"]};const Ie={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=we(r.placement),l=Le(s),c=[se,ae].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ze("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ze(e,ce))}(o.padding,r),p=Y(i),d="y"===l?oe:se,f="y"===l?ie:ae,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],y=ne(i),m=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,b=h/2-v/2,g=u[d],x=m-p[c]-u[f],_=m/2-p[c]/2+b,w=We(g,_,x),j=l;r.modifiersData[n]=((t={})[j]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Te(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ve(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ue(e){return[oe,ae,ie,se].some(function(t){return e[t]>=0})}var qe=xe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=T(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,_e)}),s&&l.addEventListener("resize",r.update,_e),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,_e)}),s&&l.removeEventListener("resize",r.update,_e)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:we(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ke(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ke(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Pe,Ce,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,y=t.options.placement,m=we(y),b=l||(m===y||!h?[Me(y)]:function(e){if(we(e)===le)return[];var t=Me(e);return[Be(e),t,Be(t)]}(y)),g=[y].concat(b).reduce(function(e,r){return e.concat(we(r)===le?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?ve:l,u=je(n),p=u?s?he:he.filter(function(e){return je(e)===u}):ce,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var f=d.reduce(function(t,r){return t[r]=Fe(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[we(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,j=!0,L=g[0],O=0;O=0,S=C?"width":"height",M=Fe(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),E=C?P?ae:se:P?ie:oe;x[S]>_[S]&&(E=Me(E));var B=Me(E),T=[];if(i&&T.push(M[k]<=0),s&&T.push(M[E]<=0,M[B]<=0),T.every(function(e){return e})){L=A,j=!1;break}w.set(A,T)}if(j)for(var D=function(e){var t=g.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},He,Ie,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Fe(t,{elementContext:"reference"}),s=Fe(t,{altBoundary:!0}),l=Ve(a,n),c=Ve(s,o,i),u=Ue(l),p=Ue(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),$e="tippy-content",Ge="tippy-backdrop",Xe="tippy-arrow",Je="tippy-svg-arrow",Ye={passive:!0,capture:!0},Ke=function(){return document.body};function Qe(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function et(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rt(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function nt(e){return[].concat(e)}function ot(e,t){-1===e.indexOf(t)&&e.push(t)}function it(e){return e.split("-")[0]}function at(e){return[].slice.call(e)}function st(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function lt(){return document.createElement("div")}function ct(e){return["Element","Fragment"].some(function(t){return et(e,t)})}function ut(e){return et(e,"MouseEvent")}function pt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function dt(e){return ct(e)?[e]:function(e){return et(e,"NodeList")}(e)?at(e):Array.isArray(e)?e:at(document.querySelectorAll(e))}function ft(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ht(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function vt(e){var t,r=nt(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function yt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function mt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var bt={isTouch:!1},gt=0;function xt(){bt.isTouch||(bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",_t))}function _t(){var e=performance.now();e-gt<20&&(bt.isTouch=!1,document.removeEventListener("mousemove",_t)),gt=e}function wt(){var e=document.activeElement;if(pt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var jt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Lt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ot=Object.assign({appendTo:Ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Lt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Ot);function kt(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Ot[o])?n:i);return t},{});return Object.assign({},e,t)}function Pt(e,t){var r=Object.assign({},t,{content:tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(kt(Object.assign({},Ot,{plugins:t}))):At).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Ot.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Ct(e,t){e.innerHTML=t}function St(e){var t=lt();return!0===e?t.className=Xe:(t.className=Je,ct(e)?t.appendChild(e):Ct(t,e)),t}function Mt(e,t){ct(t.content)?(Ct(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ct(e,t.content):e.textContent=t.content)}function Et(e){var t=e.firstElementChild,r=at(t.children);return{box:t,content:r.find(function(e){return e.classList.contains($e)}),arrow:r.find(function(e){return e.classList.contains(Xe)||e.classList.contains(Je)}),backdrop:r.find(function(e){return e.classList.contains(Ge)})}}function Bt(e){var t=lt(),r=lt();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=lt();function o(r,n){var o=Et(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Mt(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(St(n.arrow))):i.appendChild(St(n.arrow)):s&&i.removeChild(s)}return n.className=$e,n.setAttribute("data-state","hidden"),Mt(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Bt.$$tippy=!0;var Tt=1,Dt=[],Nt=[];function Rt(e,t){var r,n,o,i,a,s,l,c,u=Pt(e,Object.assign({},Ot,kt(st(t)))),p=!1,d=!1,f=!1,h=!1,v=[],y=rt($,u.interactiveDebounce),m=Tt++,b=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),g={id:m,reference:e,popper:lt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;B("onBeforeUpdate",[g,t]),U();var r=g.props,n=Pt(e,Object.assign({},r,st(t),{ignoreAttributes:!0}));g.props=n,V(),r.interactiveDebounce!==n.interactiveDebounce&&(N(),y=rt($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?nt(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),E(),w&&w(r,n);g.popperInstance&&(Y(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));B("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=bt.isTouch&&!g.props.touch,o=Qe(g.props.duration,0,Ot.duration);if(e||t||r||n)return;if(P().hasAttribute("disabled"))return;if(B("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,k()&&(_.style.visibility="visible");E(),F(),g.state.isMounted||(_.style.transition="none");if(k()){var i=S();ft([i.box,i.content],0)}s=function(){var e;if(g.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,k()&&g.props.animation){var t=S(),r=t.box,n=t.content;ft([r,n],o),ht([r,n],"visible")}T(),D(),ot(Nt,g),null==(e=g.popperInstance)||e.forceUpdate(),B("onMount",[g]),g.props.animation&&k()&&function(e,t){H(e,t)}(o,function(){g.state.isShown=!0,B("onShown",[g])})}},function(){var e,t=g.props.appendTo,r=P();e=g.props.interactive&&t===Ke||"parent"===t?r.parentNode:tt(t,[r]);e.contains(_)||e.appendChild(_);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=Qe(g.props.duration,1,Ot.duration);if(e||t||r)return;if(B("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,h=!1,p=!1,k()&&(_.style.visibility="hidden");if(N(),W(),E(!0),k()){var o=S(),i=o.box,a=o.content;g.props.animation&&(ft([i,a],n),ht([i,a],"hidden"))}T(),D(),g.props.animation?k()&&function(e,t){H(e,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()})}(n,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",y),ot(Dt,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Nt=Nt.filter(function(e){return e!==g}),g.state.isMounted=!1,B("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,B("onDestroy",[g])}};if(!u.render)return g;var x=u.render(g),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,e._tippy=g,_._tippy=g;var j=b.map(function(e){return e.fn(g)}),L=e.hasAttribute("aria-expanded");return V(),D(),E(),B("onCreate",[g]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",y)}),g;function O(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===O()[0]}function k(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function P(){return l||e}function C(){var e=P().parentNode;return e?vt(e):document}function S(){return Et(_)}function M(e){return g.state.isMounted&&!g.state.isVisible||bt.isTouch||i&&"focus"===i.type?0:Qe(g.props.delay,e?0:1,Ot.delay)}function E(e){void 0===e&&(e=!1),_.style.pointerEvents=g.props.interactive&&!e?"":"none",_.style.zIndex=""+g.props.zIndex}function B(e,t,r){var n;(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=g.props)[e].apply(n,t)}function T(){var t=g.props.aria;if(t.content){var r="aria-"+t.content,n=_.id;nt(g.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(g.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function D(){!L&&g.props.aria.expanded&&nt(g.props.triggerTarget||e).forEach(function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){C().removeEventListener("mousemove",y),Dt=Dt.filter(function(e){return e!==y})}function R(t){if(!bt.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!mt(_,r)){if(nt(g.props.triggerTarget||e).some(function(e){return mt(e,r)})){if(bt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout(function(){d=!1}),g.state.isMounted||W())}}}function Z(){f=!0}function z(){f=!1}function F(){var e=C();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ye),e.addEventListener("touchstart",z,Ye),e.addEventListener("touchmove",Z,Ye)}function W(){var e=C();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ye),e.removeEventListener("touchstart",z,Ye),e.removeEventListener("touchmove",Z,Ye)}function H(e,t){var r=S().box;function n(e){e.target===r&&(yt(r,"remove",n),t())}if(0===e)return t();yt(r,"remove",a),yt(r,"add",n),a=n}function I(t,r,n){void 0===n&&(n=!1),nt(g.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function V(){var e;A()&&(I("touchstart",q,{passive:!0}),I("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(I(e,q),e){case"mouseenter":I("mouseleave",G);break;case"focus":I(jt?"focusout":"blur",X);break;case"focusin":I("focusout",X)}})}function U(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function q(e){var t,r=!1;if(g.state.isEnabled&&!J(e)&&!d){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,D(),!g.state.isVisible&&ut(e)&&Dt.forEach(function(t){return t(e)}),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function $(e){var t=e.target,r=P().contains(t)||_.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(_).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=it(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+l>i,f=n-t.bottom-c>i,h=t.left-r+u>i,v=r-t.right-p>i;return d||f||h||v})})(n,e)&&(N(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==P()||g.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!bt.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=k()?Et(_).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||P()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),g.popperInstance=qe(c,_,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return at(_.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&B("onTrigger",[g,e]),F();var t=M(!0),n=O(),o=n[0],i=n[1];bt.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){g.show()},t):g.show()}function te(e){if(g.clearDelayTimeouts(),B("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=M(!1);t?n=setTimeout(function(){g.state.isVisible&&g.hide()},t):o=requestAnimationFrame(function(){g.hide()})}}else W()}}function Zt(e,t){void 0===t&&(t={});var r=Ot.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",xt,Ye),window.addEventListener("blur",wt);var n=Object.assign({},t,{plugins:r}),o=dt(e).reduce(function(e,t){var r=t&&Rt(t,n);return r&&e.push(r),e},[]);return ct(e)?o[0]:o}Zt.defaultProps=Ot,Zt.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Ot[t]=e[t]})},Zt.currentInput=bt;Object.assign({},Pe,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Zt.setDefaultProps({render:Bt});const zt=Zt,Ft=({children:e,value:t})=>(0,c.jsxs)("div",{className:"colorpalette-color-label",children:[(0,c.jsx)("span",{children:e}),(0,c.jsx)("span",{className:"component-color-indicator","aria-label":`Color: ${t}`,style:{background:t}})]}),Wt=new(t())("_"),Ht=({attributes:e,setAttributes:t,colors:r})=>{const o=i()(e),u=Wt.object(o),[p,d]=(0,n.useState)(u.customSettings);e.transformation_crop||(e.transformation_crop="pad",e.transformation_background="rgb:FFFFFF"),"fill"===e.transformation_crop&&delete e.transformation_background;const f=(e,r)=>{const n={[r]:B(e)};t(n)},S=(e=>{const[t,r]=(0,n.useState)(null),o=(0,n.useCallback)(e=>r(e),[]);return(0,n.useEffect)(()=>{if(!t)return;const r=zt(t,{content:e});return()=>{r?.destroy()}},[t,e]),o})((0,a.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary"));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Layout","cloudinary"),children:h.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>{t({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:r.icon,current:{type:e.displayProps_mode,columns:e.displayProps_columns||1},children:r.label},`${r.value.type}-${r.value.columns}-layout`))}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Color Palette","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(Ft,{value:e.themeProps_primary,children:(0,a.__)("Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_primary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_primary")}),(0,c.jsx)(Ft,{value:e.themeProps_onPrimary,children:(0,a.__)("On Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_onPrimary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_onPrimary")}),(0,c.jsx)(Ft,{value:e.themeProps_active,children:(0,a.__)("Active","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_active,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_active")})]}),"classic"===e.displayProps_mode&&(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Fade Transition","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.SelectControl,{value:e.transition,options:y,onChange:e=>t({transition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Aspect Ratio","cloudinary"),value:e.aspectRatio,options:v,onChange:e=>t({aspectRatio:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsxs)("p",{children:[(0,c.jsxs)("div",{className:"cld-ui-title",children:[(0,a.__)("Resize/Crop Mode","cloudinary"),(0,c.jsx)("span",{className:"dashicons dashicons-info cld-tooltip",ref:S})]}),(0,c.jsx)(s.ButtonGroup,{children:P.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.transformation_crop,onClick:()=>t({transformation_crop:r.value,transformation_background:null}),children:r.label},r.value+"-look-and-feel"))})]}),"pad"===e.transformation_crop&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Pad style","cloudinary"),value:e.transformation_background,options:C,onChange:e=>{t({transformation_background:e})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Navigation","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:m.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.navigation,onClick:()=>t({navigation:r.value}),children:r.label},r.value+"-navigation"))})}),(0,c.jsxs)("div",{style:{marginTop:"30px"},children:[(0,c.jsx)(s.ToggleControl,{label:(0,a.__)("Show Zoom","cloudinary"),checked:e.zoom,onChange:()=>t({zoom:!e.zoom}),__nextHasNoMarginBottom:!0}),e.zoom&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Type","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:b.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.zoomProps_type,onClick:()=>t({zoomProps_type:r.value}),children:r.label},r.value+"-zoom-type"))})}),"flyout"===e.zoomProps_type&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Zoom Viewer Position","cloudinary"),value:e.zoomProps_viewerPosition,options:g,onChange:e=>t({zoomProps_viewerPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),"popup"!==e.zoomProps_type&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Trigger","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:x.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.zoomProps_trigger,onClick:()=>t({zoomProps_trigger:r.value}),children:r.label},r.value+"-zoom-trigger"))})})]})]})]})]}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Carousel Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)("p",{children:(0,a.__)("Carousel Location","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:_.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.carouselLocation,onClick:()=>t({carouselLocation:r.value}),children:r.label},r.value+"-carousel-location"))})}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Carousel Offset","cloudinary"),value:e.carouselOffset,onChange:e=>t({carouselOffset:e}),min:0,max:100,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Carousel Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:w.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.carouselStyle,onClick:()=>t({carouselStyle:r.value}),children:r.label},r.value+"-carousel-style"))})}),"thumbnails"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Width","cloudinary"),value:e.thumbnailProps_width,onChange:e=>t({thumbnailProps_width:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Height","cloudinary"),value:e.thumbnailProps_height,onChange:e=>t({thumbnailProps_height:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Navigation Button Shape","cloudinary")}),j.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({thumbnailProps_navigationShape:e}),icon:r.icon,current:e.thumbnailProps_navigationShape,children:r.label},r.value+"-navigation-button-shape")),(0,c.jsx)("p",{children:(0,a.__)("Selected Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:O.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.thumbnailProps_selectedStyle,onClick:()=>t({thumbnailProps_selectedStyle:r.value}),children:r.label},r.value+"-selected-style"))})}),(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Selected Border Position","cloudinary"),value:e.thumbnailProps_selectedBorderPosition,options:A,onChange:e=>t({thumbnailProps_selectedBorderPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Selected Border Width","cloudinary"),value:e.thumbnailProps_selectedBorderWidth,onChange:e=>t({thumbnailProps_selectedBorderWidth:e}),min:0,max:10,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Media Shape Icon","cloudinary")}),k.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({thumbnailProps_mediaSymbolShape:e}),icon:r.icon,current:e.thumbnailProps_mediaSymbolShape,children:r.label},r.value+"-media"))]}),"indicators"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Indicators Shape","cloudinary")}),L.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({indicatorProps_shape:e}),icon:r.icon,current:e.indicatorProps_shape,children:r.label},r.value+"-indicator"))]})]}),(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Additional Settings","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.TextareaControl,{label:(0,a.__)("Custom Settings","cloudinary"),help:(0,a.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:p,onChange:e=>{let r={};d(e);try{r=JSON.parse(e)}catch(e){}if("object"==typeof r){const e={...u};e.customSettings=r,t({...u,...e})}},__nextHasNoMarginBottom:!0})})]})},{cloudName:It,mediaAssets:Vt,...Ut}=(e=>{const t={};return Object.keys(e).forEach(r=>{t[r]={type:typeof e[r],default:e[r]}}),t})(new(t())("_").dot(CLD_GALLERY_CONFIG)),qt={};Object.keys(Ut).forEach(e=>{qt[e]=Ut[e]?.default});const $t=e=>({cloudName:"demo",...e,mediaAssets:[{tag:"shoes_product_gallery_demo",mediaType:"image"}],container:".gallery-preview"}),Gt=document.querySelector("#cloudinary-settings-page form");void 0!==Gt&&Gt.addEventListener("submit",function(e){(!e.submitter.name||e.submitter.name&&"cld_submission"!==e.submitter.name)&&e.preventDefault()});const Xt=()=>{const[e,r]=(0,n.useState)(qt),o=CLD_THEME_COLORS.map(e=>({...e,color:B(e.color)})).filter(e=>0!==e.color.length);return(0,n.useEffect)(()=>{let r,n;const o=(e=>{const r=new(t())("_"),n=i()(e),{selectedImages:o,...a}=r.object(n,{});return a.mediaAssets=o,"classic"!==a?.displayProps?.mode?delete a.transition:delete a.displayProps.columns,"pad"!==a?.transformation_crop&&delete a.transformation_background,"pad"!==a?.transformation?.crop&&delete a.transformation.background,a?.themeProps?.primary&&(a.themeProps.primary=B(a?.themeProps?.primary)),a?.themeProps?.onPrimary&&(a.themeProps.onPrimary=B(a?.themeProps?.onPrimary)),a?.themeProps?.active&&(a.themeProps.active=B(a?.themeProps?.active)),a})(e),{customSettings:a,...s}=o;try{try{n=JSON.parse(a)}catch{n=a}r=cloudinary.galleryWidget($t({...s,...n}))}catch{r=cloudinary.galleryWidget($t(s))}r.render();const l=document.getElementById("gallery_settings_input");return l&&(l.value=JSON.stringify(o)),()=>r.destroy()}),(0,c.jsx)("div",{className:"cld-gallery-settings-container",children:(0,c.jsxs)("div",{className:"cld-gallery-settings",children:[(0,c.jsx)("div",{className:"interface-interface-skeleton__sidebar cld-gallery-settings__column",children:(0,c.jsx)("div",{className:"interface-complementary-area edit-post-sidebar",children:(0,c.jsx)("div",{className:"components-panel",children:(0,c.jsx)("div",{className:"block-editor-block-inspector",children:(0,c.jsx)(Ht,{attributes:e,setAttributes:t=>{r({...e,...t})},colors:o})})})})}),(0,c.jsx)("div",{className:"gallery-preview cld-gallery-settings__column"})]})})};(0,n.createRoot)(document.getElementById("app_gallery_gallery_config")).render((0,c.jsx)(Xt,{}))})()})(); //# sourceMappingURL=gallery.js.map \ No newline at end of file diff --git a/js/terms-order.asset.php b/js/terms-order.asset.php index f65a2cfe..0ceaa2d4 100644 --- a/js/terms-order.asset.php +++ b/js/terms-order.asset.php @@ -1 +1 @@ - array(), 'version' => '0085d1c205e96a2bbe85'); + array(), 'version' => '2f7f1b83c7516fc1c316'); diff --git a/js/terms-order.js b/js/terms-order.js index 99b66335..2e480b5d 100644 --- a/js/terms-order.js +++ b/js/terms-order.js @@ -1,2 +1,2 @@ -(()=>{"use strict";const t={template:"",tags:jQuery("#cld-tax-items"),tagDelimiter:window.tagsSuggestL10n&&window.tagsSuggestL10n.tagDelimiter||",",startId:null,_init(){if(!this.tags.length)return;const t=this;this._sortable(),"undefined"!=typeof wpAjax&&(wpAjax.procesParseAjaxResponse=wpAjax.parseAjaxResponse,wpAjax.parseAjaxResponse=function(e,a,s){const i=wpAjax.procesParseAjaxResponse(e,a,s);if(!i.errors&&i.responses[0]&&jQuery('[data-taxonomy="'+i.responses[0].what+'"]').length){const e=jQuery(i.responses[0].data).find("label").last().text().trim();t._pushItem(i.responses[0].what,e)}return i}),void 0!==window.tagBox&&(window.tagBox.processflushTags=window.tagBox.flushTags,window.tagBox.flushTags=function(e,a,s){if(void 0===s){const s=e.prop("id"),i=jQuery("input.newtag",e),n=(a=a||!1)?jQuery(a).text():i.val(),r=window.tagBox.clean(n).split(t.tagDelimiter);for(const e in r){const a=s+":"+r[e];jQuery('[data-item="'+a+'"]').length||t._pushItem(a,r[e])}}return this.processflushTags(e,a,s)},window.tagBox.processTags=window.tagBox.parseTags,window.tagBox.parseTags=function(e){const a=e.id,s=a.split("-check-num-")[1],i=a.split("-check-num-")[0],n=jQuery(e).closest(".tagsdiv").find(".the-tags"),r=window.tagBox.clean(n.val()).split(t.tagDelimiter)[s];(new wp.api.collections.Tags).fetch({data:{slug:r}}).done(a=>{const s=!!a.length&&jQuery('[data-item="'+i+":"+a[0].id+'"]');s.length?s.remove():(jQuery(`.cld-tax-order-list-item:contains(${r})`).remove(),--t.startId),this.processTags(e)})}),jQuery("body").on("change",".selectit input",function(){const e=jQuery(this),a=e.val(),s=e.is(":checked"),i=e.parent().text().trim();!0===s?t.tags.find(`[data-item="category:${a}"]`).length||t._pushItem(`category:${a}`,i):t.tags.find(`[data-item="category:${a}"]`).remove()})},_createItem(t,e){const a=jQuery("
  • "),s=jQuery(""),i=jQuery("");return a.addClass("cld-tax-order-list-item").attr("data-item",t),i.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(t),s.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),a.append(s).append(e).append(i),a},_pushItem(t,e){const a=this._createItem(t,e);this.tags.append(a)},_sortable(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};void 0!==window.CLDN&&(t._init(),jQuery("[data-wp-lists] .selectit input[checked]").each((t,e)=>{jQuery(e).trigger("change")}))})(); +(()=>{"use strict";const e={template:"",tags:jQuery("#cld-tax-items"),tagDelimiter:wp.i18n._x(",","tag delimiter")||",",startId:null,_init(){if(!this.tags.length)return;const e=this;this._sortable(),"undefined"!=typeof wpAjax&&(wpAjax.procesParseAjaxResponse=wpAjax.parseAjaxResponse,wpAjax.parseAjaxResponse=function(t,a,s){const i=wpAjax.procesParseAjaxResponse(t,a,s);if(!i.errors&&i.responses[0]&&jQuery('[data-taxonomy="'+i.responses[0].what+'"]').length){const t=jQuery(i.responses[0].data).find("label").last().text().trim();e._pushItem(i.responses[0].what,t)}return i}),void 0!==window.tagBox&&(window.tagBox.processflushTags=window.tagBox.flushTags,window.tagBox.flushTags=function(t,a,s){if(void 0===s){const s=t.prop("id"),i=jQuery("input.newtag",t),n=(a=a||!1)?jQuery(a).text():i.val(),r=window.tagBox.clean(n).split(e.tagDelimiter);for(const t in r){const a=s+":"+r[t];jQuery('[data-item="'+a+'"]').length||e._pushItem(a,r[t])}}return this.processflushTags(t,a,s)},window.tagBox.processTags=window.tagBox.parseTags,window.tagBox.parseTags=function(t){const a=t.id,s=a.split("-check-num-")[1],i=a.split("-check-num-")[0],n=jQuery(t).closest(".tagsdiv").find(".the-tags"),r=window.tagBox.clean(n.val()).split(e.tagDelimiter)[s];(new wp.api.collections.Tags).fetch({data:{slug:r}}).done(a=>{const s=!!a.length&&jQuery('[data-item="'+i+":"+a[0].id+'"]');s.length?s.remove():(jQuery(`.cld-tax-order-list-item:contains(${r})`).remove(),--e.startId),this.processTags(t)})}),jQuery("body").on("change",".selectit input",function(){const t=jQuery(this),a=t.val(),s=t.is(":checked"),i=t.parent().text().trim();!0===s?e.tags.find(`[data-item="category:${a}"]`).length||e._pushItem(`category:${a}`,i):e.tags.find(`[data-item="category:${a}"]`).remove()})},_createItem(e,t){const a=jQuery("
  • "),s=jQuery(""),i=jQuery("");return a.addClass("cld-tax-order-list-item").attr("data-item",e),i.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(e),s.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),a.append(s).append(t).append(i),a},_pushItem(e,t){const a=this._createItem(e,t);this.tags.append(a)},_sortable(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};void 0!==window.CLDN&&(e._init(),jQuery("[data-wp-lists] .selectit input[checked]").each((e,t)=>{jQuery(t).trigger("change")}))})(); //# sourceMappingURL=terms-order.js.map \ No newline at end of file diff --git a/readme.txt b/readme.txt index 7a9faa75..ffca7b8b 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Cloudinary - Deliver Images and Videos at Scale === Contributors: Cloudinary, XWP, Automattic Tags: image-optimizer, core-web-vitals, video, resize, performance -Requires at least: 4.7 -Tested up to: 6.9.1 +Requires at least: 6.3 +Tested up to: 7.0 Requires PHP: 7.4 Stable tag: STABLETAG License: GPLv2 diff --git a/src/js/components/featured-image.js b/src/js/components/featured-image.js index a5735a01..61058c93 100644 --- a/src/js/components/featured-image.js +++ b/src/js/components/featured-image.js @@ -19,6 +19,7 @@ let FeaturedTransformationsToggle = ( props ) => { checked={ props.overwrite_featured_transformations } onChange={ ( value ) => props.setOverwrite( value ) } className="cloudinary-overwrite-transformations" + __nextHasNoMarginBottom={ true } /> ) } diff --git a/src/js/components/video.js b/src/js/components/video.js index a5ea6b95..7aecaa67 100644 --- a/src/js/components/video.js +++ b/src/js/components/video.js @@ -78,6 +78,7 @@ const TransformationsToggle = ( props ) => { onChange={ ( value ) => { setAttributes( { overwrite_transformations: value } ); } } + __nextHasNoMarginBottom={ true } /> ); diff --git a/src/js/gallery-block/controls.js b/src/js/gallery-block/controls.js index 6f812903..e213d818 100644 --- a/src/js/gallery-block/controls.js +++ b/src/js/gallery-block/controls.js @@ -181,6 +181,8 @@ const Controls = ( { attributes, setAttributes, colors } ) => { onChange={ ( value ) => setAttributes( { transition: value } ) } + __next40pxDefaultSize={ true } + __nextHasNoMarginBottom={ true } /> ) } @@ -195,6 +197,8 @@ const Controls = ( { attributes, setAttributes, colors } ) => { onChange={ ( value ) => setAttributes( { aspectRatio: value } ) } + __next40pxDefaultSize={ true } + __nextHasNoMarginBottom={ true } />

    @@ -209,7 +213,7 @@ const Controls = ( { attributes, setAttributes, colors } ) => { { RESIZE_CROP.map( ( type ) => (