/*! This file is auto-generated */ (()=>{var e={6411:function(e,t){var n,o,r; /*! autosize 4.0.4 license: MIT http://www.jacklmoore.com/autosize */o=[e,t],n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&p()},a=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,update:p}),s()}function s(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1198:(e,t)=>{"use strict";function n(){}function o(e,t,n,o,r){for(var l=0,i=t.length,a=0,s=0;le.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(a,a+c.count));a+=c.count,c.added||(s+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var l=this;function i(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,c=1,u=a+s,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=a&&p+1>=s)return i([{value:this.join(t),count:t.length}]);function m(){for(var n=-1*c;n<=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],m=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var g=u&&u.newPos+1=a&&m+1>=s)return i(o(l,r.components,t,e,l.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c>u)return r();m()||e()}),0)}();else for(;c<=u;){var g=m();if(g)return g}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,i=e.newPos,a=i-o,s=0;i+1{"use strict";var o;t.Kx=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(1198))&&o.__esModule?o:{default:o}).default)},1345:(e,t,n)=>{"use strict";var o=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,s=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),m=o.offset(e),g=o.outerHeight(e),h=o.outerWidth(e),f=void 0,b=void 0,v=void 0,_=void 0,k=void 0,y=void 0,E=void 0,w=void 0,S=void 0,C=void 0;p?(E=t,C=o.height(E),S=o.width(E),w={left:o.scrollLeft(E),top:o.scrollTop(E)},k={left:m.left-w.left-c,top:m.top-w.top-s},y={left:m.left+h-(w.left+S)+d,top:m.top+g-(w.top+C)+u},_=w):(f=o.offset(t),b=t.clientHeight,v=t.clientWidth,_={left:t.scrollLeft,top:t.scrollTop},k={left:m.left-(f.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:m.top-(f.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-s},y={left:m.left+h-(f.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:m.top+g-(f.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||y.top>0?!0===i?o.scrollTop(t,_.top+k.top):!1===i?o.scrollTop(t,_.top+y.top):k.top<0?o.scrollTop(t,_.top+k.top):o.scrollTop(t,_.top+y.top):l||((i=void 0===i||!!i)?o.scrollTop(t,_.top+k.top):o.scrollTop(t,_.top+y.top)),r&&(k.left<0||y.left>0?!0===a?o.scrollLeft(t,_.left+k.left):!1===a?o.scrollLeft(t,_.left+y.left):k.left<0?o.scrollLeft(t,_.left+k.left):o.scrollLeft(t,_.left+y.left):l||((a=void 0===a||!!a)?o.scrollLeft(t,_.left+k.left):o.scrollLeft(t,_.left+y.left)))}},5425:(e,t,n)=>{"use strict";e.exports=n(1345)},5022:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=o;0!=r--;){var i=l[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},8575:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},9894:(e,t,n)=>{var o=n(4827);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var l=e.nodeName,i=document.createElement(l);i.innerHTML=" ","TEXTAREA"===l.toUpperCase()&&i.setAttribute("rows","1");var a=o(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var s=document.body;s.appendChild(i),n=i.offsetHeight,s.removeChild(i)}return n}},7970:(e,t,n)=>{e.exports=n(195)},3110:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},3812:e=>{var t,n,o,r,l,i,a,s,c,u,d,p,m,g,h,f=!1;function b(){if(!f){f=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);i=_?parseFloat(_[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,o=b[3]?parseFloat(b[3]):NaN,(r=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),l=b&&b[1]?parseFloat(b[1]):NaN):l=NaN}else t=n=o=l=r=NaN;if(v){if(v[1]){var k=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!k||parseFloat(k[1].replace("_","."))}else a=!1;s=!!v[2],c=!!v[3]}else a=s=c=!1}}var v={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||i>t},ie64:function(){return v.ie()&&d},firefox:function(){return b()||n},opera:function(){return b()||o},webkit:function(){return b()||r},safari:function(){return v.webkit()},chrome:function(){return b()||l},windows:function(){return b()||s},osx:function(){return b()||a},linux:function(){return b()||c},iphone:function(){return b()||p},mobile:function(){return b()||p||m||u||h},nativeApp:function(){return b()||g},android:function(){return b()||u},ipad:function(){return b()||m}};e.exports=v},7939:(e,t,n)=>{"use strict";var o,r=n(3110);r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var i=document.createElement("div");i.setAttribute(n,"return;"),l="function"==typeof i[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},195:(e,t,n)=>{"use strict";var o=n(3812),r=n(7939);function l(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}l.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},5372:(e,t,n)=>{"use strict";var o=n(9567);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},2652:(e,t,n)=>{e.exports=n(5372)()},9567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n{"use strict";var o=n(5438);t.Z=o.TextareaAutosize},4793:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",ß:"ss",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function l(e){return t[e]}var i=function(e){return e.replace(o,l)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},3124:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n{"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{AlignmentControl:()=>cy,AlignmentToolbar:()=>uy,Autocomplete:()=>ky,BlockAlignmentControl:()=>wi,BlockAlignmentToolbar:()=>Si,BlockBreadcrumb:()=>Iy,BlockColorsStyleSelector:()=>Ny,BlockContextProvider:()=>na,BlockControls:()=>er,BlockEdit:()=>aa,BlockEditorKeyboardShortcuts:()=>bI,BlockEditorProvider:()=>Yd,BlockFormatControls:()=>Jo,BlockIcon:()=>$d,BlockInspector:()=>yB,BlockList:()=>Qh,BlockMover:()=>EB,BlockNavigationDropdown:()=>YE,BlockPreview:()=>Em,BlockSelectionClearer:()=>Qd,BlockSettingsMenu:()=>wB,BlockSettingsMenuControls:()=>Nk,BlockStyles:()=>ow,BlockTitle:()=>By,BlockToolbar:()=>XB,BlockTools:()=>mI,BlockVerticalAlignmentControl:()=>Fr,BlockVerticalAlignmentToolbar:()=>Hr,ButtonBlockAppender:()=>bh,ButtonBlockerAppender:()=>fh,ColorPalette:()=>xw,ColorPaletteControl:()=>Bw,ContrastChecker:()=>mb,CopyHandler:()=>vE,DefaultBlockAppender:()=>gh,FontSizePicker:()=>Jk,HeadingLevelDropdown:()=>sw,HeightControl:()=>Vv,InnerBlocks:()=>Kh,Inserter:()=>mh,InspectorAdvancedControls:()=>Ki,InspectorControls:()=>qi,JustifyContentControl:()=>$r,JustifyToolbar:()=>jr,LineHeightControl:()=>Db,MediaPlaceholder:()=>SC,MediaReplaceFlow:()=>hC,MediaUpload:()=>qg,MediaUploadCheck:()=>Kg,MultiSelectScrollIntoView:()=>vI,NavigableToolbar:()=>MC,ObserveTyping:()=>EI,PanelColorSettings:()=>CC,PlainText:()=>gx,RichText:()=>dx,RichTextShortcut:()=>bx,RichTextToolbarButton:()=>vx,SETTINGS_DEFAULTS:()=>k,SkipToSelectedBlock:()=>Gx,ToolSelector:()=>yx,Typewriter:()=>BI,URLInput:()=>CS,URLInputButton:()=>Cx,URLPopover:()=>kC,Warning:()=>ca,WritingFlow:()=>pp,__experimentalBlockAlignmentMatrixControl:()=>Sy,__experimentalBlockFullHeightAligmentControl:()=>Ey,__experimentalBlockPatternSetup:()=>yw,__experimentalBlockPatternsList:()=>jm,__experimentalBlockVariationPicker:()=>uw,__experimentalBlockVariationTransforms:()=>Sw,__experimentalBorderRadiusControl:()=>kf,__experimentalColorGradientControl:()=>Qf,__experimentalColorGradientSettingsDropdown:()=>Aw,__experimentalDateFormatPicker:()=>Mw,__experimentalDuotoneControl:()=>C_,__experimentalFontAppearanceControl:()=>Lb,__experimentalFontFamilyControl:()=>Tb,__experimentalGetBorderClassesAndStyles:()=>Vk,__experimentalGetColorClassesAndStyles:()=>Hk,__experimentalGetElementClassName:()=>AI,__experimentalGetGapCSSValue:()=>Pr,__experimentalGetGradientClass:()=>Hf,__experimentalGetGradientObjectByGradientValue:()=>Uf,__experimentalGetMatchingVariation:()=>OI,__experimentalGetSpacingClassesAndStyles:()=>$k,__experimentalImageEditor:()=>fS,__experimentalImageSizeControl:()=>_S,__experimentalImageURLInputUI:()=>Nx,__experimentalInspectorPopoverHeader:()=>NI,__experimentalLetterSpacingControl:()=>Ob,__experimentalLibrary:()=>hI,__experimentalLinkControl:()=>cC,__experimentalLinkControlSearchInput:()=>YS,__experimentalLinkControlSearchItem:()=>AS,__experimentalLinkControlSearchResults:()=>GS,__experimentalListView:()=>qE,__experimentalPanelColorGradientSettings:()=>Vw,__experimentalPreviewOptions:()=>Fx,__experimentalPublishDateTimePicker:()=>LI,__experimentalRecursionProvider:()=>TI,__experimentalResponsiveBlockControl:()=>fx,__experimentalSpacingSizesControl:()=>Ov,__experimentalTextDecorationControl:()=>Kb,__experimentalTextTransformControl:()=>Ub,__experimentalUnitControl:()=>Ex,__experimentalUseBlockOverlayActive:()=>Md,__experimentalUseBlockPreview:()=>wm,__experimentalUseBorderProps:()=>Fk,__experimentalUseColorProps:()=>Uk,__experimentalUseCustomSides:()=>m_,__experimentalUseGradient:()=>jf,__experimentalUseHasRecursion:()=>MI,__experimentalUseMultipleOriginColorsAndGradients:()=>rf,__experimentalUseResizeCanvas:()=>Hx,__unstableBlockNameContext:()=>Dx,__unstableBlockSettingsMenuFirstItem:()=>AE,__unstableBlockToolbarLastItem:()=>Ax,__unstableDuotoneFilter:()=>T_,__unstableDuotoneStylesheet:()=>B_,__unstableDuotoneUnsetStylesheet:()=>I_,__unstableEditorStyles:()=>bm,__unstableGetValuesFromColors:()=>x_,__unstableIframe:()=>gp,__unstableInserterMenuExtension:()=>Jg,__unstablePresetDuotoneFilter:()=>M_,__unstableRichTextInputEvent:()=>_x,__unstableUseBlockSelectionClearer:()=>Xd,__unstableUseClipboardHandler:()=>bE,__unstableUseMouseMoveTypingReset:()=>kI,__unstableUseTypewriter:()=>xI,__unstableUseTypingObserver:()=>yI,createCustomColorsHOC:()=>Xk,getColorClassName:()=>of,getColorObjectByAttributeValues:()=>tf,getColorObjectByColorValue:()=>nf,getComputedFluidTypographyValue:()=>rl,getCustomValueFromPreset:()=>xr,getFontSize:()=>mv,getFontSizeClass:()=>hv,getFontSizeObjectByValue:()=>gv,getGradientSlugByValue:()=>$f,getGradientValueBySlug:()=>Gf,getPxFromCssUnit:()=>jI,getSpacingPresetCssVar:()=>Ir,getTypographyClassesAndStyles:()=>jk,isValueSpacingPreset:()=>Cr,privateApis:()=>lP,store:()=>Go,storeConfig:()=>Ho,transformStyles:()=>gm,useBlockDisplayInformation:()=>Z_,useBlockEditContext:()=>Ko,useBlockProps:()=>Nd,useCachedTruthy:()=>Wk,useInnerBlocksProps:()=>Wh,useSetting:()=>Xr,withColorContext:()=>Cw,withColors:()=>Qk,withFontSizes:()=>ny});var e={};n.r(e),n.d(e,{getBlockEditingMode:()=>Y,getBlockRemovalRules:()=>te,getEnabledBlockParents:()=>J,getEnabledClientIdsTree:()=>Q,getLastInsertedBlocksClientIds:()=>Z,getRemovalPromptData:()=>ee,isBlockInterfaceHidden:()=>q,isBlockSubtreeDisabled:()=>X});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:()=>an,__experimentalGetAllowedBlocks:()=>Dt,__experimentalGetAllowedPatterns:()=>Ht,__experimentalGetBlockListSettingsForBlocks:()=>Zt,__experimentalGetDirectInsertBlock:()=>Ot,__experimentalGetGlobalBlocksByName:()=>he,__experimentalGetLastBlockAttributeChanges:()=>Qt,__experimentalGetParsedPattern:()=>Vt,__experimentalGetPatternTransformItems:()=>$t,__experimentalGetPatternsByBlockTypes:()=>Ut,__experimentalGetReusableBlockTitle:()=>Yt,__unstableGetBlockWithoutInnerBlocks:()=>se,__unstableGetClientIdWithClientIdsTree:()=>ue,__unstableGetClientIdsTree:()=>de,__unstableGetContentLockingParent:()=>dn,__unstableGetEditorMode:()=>tn,__unstableGetSelectedBlocksWithPartialSelection:()=>Ye,__unstableGetTemporarilyEditingAsBlocks:()=>pn,__unstableGetVisibleBlocks:()=>un,__unstableHasActiveBlockOverlayActive:()=>mn,__unstableIsFullySelected:()=>We,__unstableIsLastBlockChangeIgnored:()=>Xt,__unstableIsSelectionCollapsed:()=>Ke,__unstableIsSelectionMergeable:()=>Ze,__unstableIsWithinBlockOverlay:()=>gn,__unstableSelectionHasUnmergeableBlock:()=>qe,areInnerBlocksControlled:()=>ln,canEditBlock:()=>xt,canInsertBlockType:()=>kt,canInsertBlocks:()=>yt,canLockBlockType:()=>Bt,canMoveBlock:()=>St,canMoveBlocks:()=>Ct,canRemoveBlock:()=>Et,canRemoveBlocks:()=>wt,didAutomaticChange:()=>on,getAdjacentBlockClientId:()=>Ne,getAllowedBlocks:()=>At,getBehaviors:()=>Kt,getBlock:()=>ae,getBlockAttributes:()=>ie,getBlockCount:()=>ve,getBlockHierarchyRootClientId:()=>Me,getBlockIndex:()=>Qe,getBlockInsertionPoint:()=>mt,getBlockListSettings:()=>jt,getBlockMode:()=>it,getBlockName:()=>re,getBlockNamesByClientId:()=>be,getBlockOrder:()=>Xe,getBlockParents:()=>Ie,getBlockParentsByBlockName:()=>Te,getBlockRootClientId:()=>Be,getBlockSelectionEnd:()=>Ee,getBlockSelectionStart:()=>ye,getBlockTransformItems:()=>Lt,getBlocks:()=>ce,getBlocksByClientId:()=>fe,getClientIdsOfDescendants:()=>pe,getClientIdsWithDescendants:()=>me,getDraggedBlockClientIds:()=>ct,getFirstMultiSelectedBlockClientId:()=>Ve,getGlobalBlockCount:()=>ge,getInserterItems:()=>Nt,getLastMultiSelectedBlockClientId:()=>Fe,getLowestCommonAncestorWithSelectedBlock:()=>Pe,getMultiSelectedBlockClientIds:()=>Oe,getMultiSelectedBlocks:()=>ze,getMultiSelectedBlocksEndClientId:()=>je,getMultiSelectedBlocksStartClientId:()=>$e,getNextBlockClientId:()=>Re,getPatternsByBlockTypes:()=>Gt,getPreviousBlockClientId:()=>Le,getSelectedBlock:()=>xe,getSelectedBlockClientId:()=>Ce,getSelectedBlockClientIds:()=>De,getSelectedBlockCount:()=>we,getSelectedBlocksInitialCaretPosition:()=>Ae,getSelectionEnd:()=>ke,getSelectionStart:()=>_e,getSettings:()=>Wt,getTemplate:()=>ft,getTemplateLock:()=>bt,hasBlockMovingClientId:()=>nn,hasDraggedInnerBlock:()=>tt,hasInserterItems:()=>Rt,hasMultiSelection:()=>ot,hasSelectedBlock:()=>Se,hasSelectedInnerBlock:()=>et,isAncestorBeingDragged:()=>dt,isAncestorMultiSelected:()=>Ue,isBlockBeingDragged:()=>ut,isBlockHighlighted:()=>rn,isBlockInsertionPointVisible:()=>gt,isBlockMultiSelected:()=>Ge,isBlockSelected:()=>Je,isBlockValid:()=>le,isBlockVisible:()=>cn,isBlockWithinSelection:()=>nt,isCaretWithinFormattedText:()=>pt,isDraggingBlocks:()=>st,isFirstMultiSelectedBlock:()=>He,isLastBlockChangePersistent:()=>qt,isMultiSelecting:()=>rt,isNavigationMode:()=>en,isSelectionEnabled:()=>lt,isTyping:()=>at,isValidTemplate:()=>ht,wasBlockJustInserted:()=>sn});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:()=>fn,clearBlockRemovalPrompt:()=>wn,ensureDefaultBlock:()=>En,hideBlockInterface:()=>bn,privateRemoveBlocks:()=>yn,setBlockEditingMode:()=>_n,setBlockRemovalRules:()=>Sn,showBlockInterface:()=>vn,unsetBlockEditingMode:()=>kn});var l={};n.r(l),n.d(l,{__unstableDeleteSelection:()=>oo,__unstableExpandSelection:()=>lo,__unstableMarkAutomaticChange:()=>Co,__unstableMarkLastChangeAsPersistent:()=>wo,__unstableMarkNextChangeAsNotPersistent:()=>So,__unstableSaveReusableBlock:()=>Eo,__unstableSetEditorMode:()=>Bo,__unstableSetTemporarilyEditingAsBlocks:()=>Do,__unstableSplitSelection:()=>ro,clearSelectedBlock:()=>Hn,duplicateBlocks:()=>To,enterFormattedText:()=>fo,exitFormattedText:()=>bo,flashBlock:()=>Lo,hideInsertionPoint:()=>eo,insertAfterBlock:()=>Po,insertBeforeBlock:()=>Mo,insertBlock:()=>Xn,insertBlocks:()=>Qn,insertDefaultBlock:()=>_o,mergeBlocks:()=>io,moveBlockToPosition:()=>Yn,moveBlocksDown:()=>Kn,moveBlocksToPosition:()=>Zn,moveBlocksUp:()=>qn,multiSelect:()=>Fn,receiveBlocks:()=>Nn,removeBlock:()=>so,removeBlocks:()=>ao,replaceBlock:()=>jn,replaceBlocks:()=>$n,replaceInnerBlocks:()=>co,resetBlocks:()=>Tn,resetSelection:()=>Pn,selectBlock:()=>An,selectNextBlock:()=>On,selectPreviousBlock:()=>Dn,selectionChange:()=>vo,setBlockMovingClientId:()=>Io,setBlockVisibility:()=>Ao,setHasControlledInnerBlocks:()=>Ro,setNavigationMode:()=>xo,setTemplateValidity:()=>to,showInsertionPoint:()=>Jn,startDraggingBlocks:()=>go,startMultiSelect:()=>zn,startTyping:()=>po,stopDraggingBlocks:()=>ho,stopMultiSelect:()=>Vn,stopTyping:()=>mo,synchronizeTemplate:()=>no,toggleBlockHighlight:()=>No,toggleBlockMode:()=>uo,toggleSelection:()=>Gn,updateBlock:()=>Rn,updateBlockAttributes:()=>Ln,updateBlockListSettings:()=>ko,updateSettings:()=>yo,validateBlocksToTemplate:()=>Mn});var i={};n.r(i),n.d(i,{AdvancedPanel:()=>vT,BorderPanel:()=>If,ColorPanel:()=>pb,DimensionsPanel:()=>n_,EffectsPanel:()=>mT,FiltersPanel:()=>F_,GlobalStylesContext:()=>bl,TypographyPanel:()=>av,areGlobalStyleConfigsEqual:()=>fl,getBlockCSSSelector:()=>P_,getLayoutStyles:()=>XI,useGlobalSetting:()=>yl,useGlobalStyle:()=>El,useGlobalStylesOutput:()=>aT,useGlobalStylesOutputWithConfig:()=>iT,useGlobalStylesReset:()=>kl,useHasBorderPanel:()=>yf,useHasColorPanel:()=>Jf,useHasDimensionsPanel:()=>$v,useHasEffectsPanel:()=>cT,useHasFiltersPanel:()=>R_,useHasTypographyPanel:()=>Yb,useSettingsForBlockElement:()=>wl});const a=window.wp.blocks,s=window.wp.hooks;(0,s.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,a.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const c=window.wp.element;var u=n(4403),d=n.n(u);const p=window.wp.compose,m=window.wp.components,g=window.wp.data,h={default:(0,m.createSlotFill)("BlockControls"),block:(0,m.createSlotFill)("BlockControlsBlock"),inline:(0,m.createSlotFill)("BlockFormatControls"),other:(0,m.createSlotFill)("BlockControlsOther"),parent:(0,m.createSlotFill)("BlockControlsParent")};var f=n(5619),b=n.n(f);const v=window.wp.i18n,_={insertUsage:{}},k={alignWide:!1,supportsLayout:!0,colors:[{name:(0,v.__)("Black"),slug:"black",color:"#000000"},{name:(0,v.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,v.__)("White"),slug:"white",color:"#ffffff"},{name:(0,v.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,v.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,v.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,v.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,v.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,v.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,v.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,v.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,v.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,v._x)("Small","font size name"),size:13,slug:"small"},{name:(0,v._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,v._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,v._x)("Large","font size name"),size:36,slug:"large"},{name:(0,v._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,v.__)("Thumbnail")},{slug:"medium",name:(0,v.__)("Medium")},{slug:"large",name:(0,v.__)("Large")},{slug:"full",name:(0,v.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,v.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,v.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,v.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,v.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,v.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,v.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,v.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,v.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,v.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,v.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,v.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,v.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function y(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function E(e,t,n,o=1){const r=[...e];return r.splice(t,o),y(r,e.slice(t,t+o),n)}const w=e=>e;function S(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),S(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function C(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function x(e,t=w){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function B(e){return x(e,(e=>{const{attributes:t,...n}=e;return n}))}function I(e){return x(e,(e=>e.attributes))}function T(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&b()(e.clientIds,t.clientIds)&&function(e,t){return b()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function M(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function P(e,t,n=!1){const o=e.tree,r=new Set([]),l=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){l.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of l)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const N=(0,p.pipe)(g.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId.get(r);"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),M(o,n.blocks),P(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),P(o,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),P(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),M(o,n.blocks),P(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!o.byClientId.get(t.parents.get(e))||r.push(t.parents.get(e));P(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents.get(r)||""!==t.parents.get(r)&&!o.byClientId.get(t.parents.get(r))||e.push(t.parents.get(r));o.tree=new Map(o.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),P(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),P(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),P(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),P(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let l=r;if(n.blocks.length){l=e(l,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(l.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),l.order=r,l.tree=new Map(l.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&l.tree.set(n,t.tree.get(n))}))}return l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(B(n.blocks)),attributes:new Map(I(n.blocks)),order:S(n.blocks),parents:new Map(C(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),M(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(a=o?.isPersistentChange)||void 0===a||a;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!T(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let a=!1;const s=e.get(l),c={};i.forEach((([e,t])=>{s[e]!==t&&(a=!0,c[e]=t)})),o=o||a,a&&r.set(l,{...s,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=S(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=S(t.blocks,n),{index:l=o.length}=t,i=new Map(e);return r.forEach(((e,t)=>{i.set(t,e)})),i.set(n,y(o,r.get(n),l)),i}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:n="",toRootClientId:r="",clientIds:l}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(l[0]),n=new Map(e);return n.set(r,E(e.get(r),t,i,l.length)),n}const a=new Map(e);return a.set(n,null!==(o=e.get(n)?.filter((e=>!l.includes(e))))&&void 0!==o?o:[]),a.set(r,y(e.get(r),l,i)),a}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e.get(o);if(!l.length||r===l[0])return e;const i=l.indexOf(r),a=new Map(e);return a.set(o,E(l,i,i-1,n.length)),a}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],i=e.get(o);if(!i.length||l===i[i.length-1])return e;const a=i.indexOf(r),s=new Map(e);return s.set(o,E(i,a,a+1,n.length)),s}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=S(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const l=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,l)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const l=null!==(r=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];l.length!==e.length&&n.set(o,l)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return C(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return C(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),C(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function L(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const R=(0,g.combineReducers)({blocks:N,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:l}=t;return r===e.selectionStart?.clientId&&l===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,a=e?.selectionEnd?.clientId;if(!i&&!a)return e;if(!t.blocks.some((e=>e.clientId===i)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===a)))return{...e,selectionEnd:e.selectionStart}}const n=L(e.selectionStart,t),o=L(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...o}=e;return o}return e}return b()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l}=t,i={rootClientId:n,index:o,__unstableWithInserter:r,operation:l};return b()(e,i)?e:i}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=k,t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(e=_,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let l=r;const i=(0,g.select)(a.store).getActiveBlockVariation(r,o);return i?.name&&(l+="/"+i.name),"core/block"===r&&(l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":case"REPLACE_INNER_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:o}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e}});const A=function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}(R);var D={};function O(e){return[e]}function z(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o(o,r)=>{let l,i;if("function"==typeof e?(l=e(o),i=e(r)):(l=o[e],i=r[e]),l>i)return"asc"===n?1:-1;if(i>l)return"asc"===n?-1:1;const a=t.findIndex((e=>e===o)),s=t.findIndex((e=>e===r));return a>s?1:s>a?-1:0};function K(e,t,n="asc"){return e.concat().sort(W(t,e,n))}function q(e){return e.isBlockInterfaceHidden}function Z(e){return e?.lastBlockInserted?.clientIds}function Y(e,t=""){if(e.blockEditingModes.has(t))return e.blockEditingModes.get(t);if(!t)return"default";const n=Be(e,t);if("contentOnly"===bt(e,n)){const n=re(e,t);return(0,g.select)(a.store).__experimentalHasContentRoleAttribute(n)?"contentOnly":"disabled"}const o=Y(e,n);return"contentOnly"===o?"default":o}const X=V(((e,t)=>{const n=t=>{const o=e.blockEditingModes.get(t);return(void 0===o||"disabled"===o)&&Xe(e,t).every(n)};return"disabled"===Y(e,t)&&Xe(e,t).every(n)}),(e=>[e.blockEditingModes,e.blocks.parents])),Q=V(((e,t="")=>Xe(e,t).flatMap((t=>"disabled"!==Y(e,t)?[{clientId:t,innerBlocks:Q(e,t)}]:Q(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),J=V(((e,t,n=!1)=>Ie(e,t,n).filter((t=>"disabled"!==Y(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function ee(e){return e.removalPromptData}function te(e){return e.blockRemovalRules}const ne=[],oe=new Set;function re(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==c.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function le(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function ie(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function ae(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const se=V(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:ie(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function ce(e,t){const n=t&&ln(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||ne}const ue=V(((e,t)=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:de(e,t)})),(e=>[e.blocks.order])),de=V(((e,t="")=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Xe(e,t).map((t=>ue(e,t))))),(e=>[e.blocks.order])),pe=V(((e,t)=>{const n=[];for(const o of t)for(const t of Xe(e,o))n.push(t,...pe(e,[t]));return n}),(e=>[e.blocks.order])),me=V((e=>{const t=[];for(const n of Xe(e))t.push(n,...pe(e,[n]));return t}),(e=>[e.blocks.order])),ge=V(((e,t)=>{const n=me(e);return t?n.reduce(((n,o)=>e.blocks.byClientId.get(o).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),he=V(((e,t)=>{if(!t)return ne;const n=Array.isArray(t)?t:[t],o=me(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:ne}),(e=>[e.blocks.order,e.blocks.byClientId])),fe=V(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>ae(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),be=V(((e,t)=>fe(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>fe(e,t)));function ve(e,t){return Xe(e,t).length}function _e(e){return e.selection.selectionStart}function ke(e){return e.selection.selectionEnd}function ye(e){return e.selection.selectionStart.clientId}function Ee(e){return e.selection.selectionEnd.clientId}function we(e){const t=Oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function xe(e){const t=Ce(e);return t?ae(e,t):null}function Be(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const Ie=V(((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents.get(r);)r=e.blocks.parents.get(r),o.push(r);return o.length?n?o:o.reverse():ne}),(e=>[e.blocks.parents])),Te=V(((e,t,n,o=!1)=>{const r=Ie(e,t,o),l=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>l(re(e,t))))}),(e=>[e.blocks.parents]));function Me(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function Pe(e,t){const n=Ce(e),o=[...Ie(e,t),t],r=[...Ie(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return ne;if(t.clientId===n.clientId)return[t.clientId];const o=Be(e,t.clientId);if(null===o)return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?ne:De(e)}const ze=V((e=>{const t=Oe(e);return t.length?t.map((t=>ae(e,t))):ne}),(e=>[...De.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ve(e){return Oe(e)[0]||null}function Fe(e){const t=Oe(e);return t[t.length-1]||null}function He(e,t){return Ve(e)===t}function Ge(e,t){return-1!==Oe(e).indexOf(t)}const Ue=V(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Be(e,n),o=Ge(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function $e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function je(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function We(e){const t=_e(e),n=ke(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ke(e){const t=_e(e),n=ke(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function qe(e){return De(e).some((t=>{const n=re(e,t);return!(0,a.getBlockType)(n).merge}))}function Ze(e,t){const n=_e(e),o=ke(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Be(e,n.clientId);if(r!==Be(e,o.clientId))return!1;const l=Xe(e,r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=t?s.clientId:i.clientId,u=t?i.clientId:s.clientId,d=re(e,c);if(!(0,a.getBlockType)(d).merge)return!1;const p=ae(e,u);if(p.name===d)return!0;const m=(0,a.switchToBlockType)(p,d);return m&&m.length}const Ye=e=>{const t=_e(e),n=ke(e);if(t.clientId===n.clientId)return ne;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return ne;const o=Be(e,t.clientId);if(o!==Be(e,n.clientId))return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId),[s,c]=l>i?[n,t]:[t,n],u=ae(e,s.clientId),d=(0,a.getBlockType)(u.name),p=ae(e,c.clientId),m=(0,a.getBlockType)(p.name),g=u.attributes[s.attributeKey],h=p.attributes[c.attributeKey],f=d.attributes[s.attributeKey],b=m.attributes[c.attributeKey];let v=(0,G.create)({html:g,...j(f)}),_=(0,G.create)({html:h,...j(b)});return v=(0,G.remove)(v,0,s.offset),_=(0,G.remove)(_,c.offset,_.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,G.toHTMLString)({value:v,...j(f)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}}]};function Xe(e,t){return e.blocks.order.get(t||"")||ne}function Qe(e,t){return Xe(e,Be(e,t)).indexOf(t)}function Je(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function et(e,t,n=!1){return Xe(e,t).some((t=>Je(e,t)||Ge(e,t)||n&&et(e,t,n)))}function tt(e,t,n=!1){return Xe(e,t).some((t=>ut(e,t)||n&&tt(e,t,n)))}function nt(e,t){if(!t)return!1;const n=Oe(e),o=n.indexOf(t);return o>-1&&out(e,t)))}function pt(){return $()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const mt=V((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=Be(e,l)||void 0,n=Qe(e,r.clientId)+1):n=Xe(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function gt(e){return null!==e.insertionPoint}function ht(e){return e.template.isValid}function ft(e){return e.settings.template}function bt(e,t){var n,o;return t?null!==(n=jt(e,t)?.templateLock)&&void 0!==n&&n:null!==(o=e.settings.templateLock)&&void 0!==o&&o}const vt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,_t=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,a.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Wt(e);if(!vt(r,t,!0))return!1;if(!!bt(e,n))return!1;if("disabled"===Y(e,null!=n?n:""))return!1;const l=jt(e,n);if(n&&void 0===l)return!1;const i=l?.allowedBlocks,c=vt(i,t),u=o.parent,d=re(e,n),p=vt(u,d);let m=!0;const g=o.ancestor;if(g){m=[n,...Ie(e,n)].some((t=>vt(g,re(e,t))))}const h=m&&(null===c&&null===p||!0===c||!0===p);return h?(0,s.applyFilters)("blockEditor.__unstableCanInsertBlockType",h,o,n,{getBlock:ae.bind(null,e),getBlockParentsByBlockName:Te.bind(null,e)}):h},kt=V(_t,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function yt(e,t,n=null){return t.every((t=>kt(e,re(e,t),n)))}function Et(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.remove?!o.lock.remove:!bt(e,n)&&"disabled"!==Y(e,n))}function wt(e,t,n=null){return t.every((t=>Et(e,t,n)))}function St(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.move?!o.lock.move:"all"!==bt(e,n)&&"disabled"!==Y(e,n))}function Ct(e,t,n=null){return t.every((t=>St(e,t,n)))}function xt(e,t){const n=ie(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Bt(e,t){return!!(0,a.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function It(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const Tt=(e,t,n)=>!!(0,a.hasBlockSupport)(t,"inserter",!0)&&_t(e,t.name,n),Mt=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Pt=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,a.hasBlockSupport)(n.name,"multiple",!0)||(r=fe(e,me(e)).some((({name:e})=>e===n.name)));const{time:l,count:i=0}=It(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Mt(l,i)};if("transform"===t)return s;const c=(0,a.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:c,example:n.example,utility:1}},Nt=V(((e,t=null)=>{const n=/^\s*)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,o=_t(e,"core/block",t)?Jt(e).filter((e=>"fully"===e.wp_pattern_sync_status||""===e.wp_pattern_sync_status||!e.wp_pattern_sync_status)).map((t=>{let o=H;if("web"===c.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(n);if(e){const[,,t="core/",n]=e,r=(0,a.getBlockType)(t+n);r&&(o=r.icon)}}const r=`core/block/${t.id}`,{time:l,count:i=0}=It(e,r)||{},s=Mt(l,i);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:o,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:t.content.raw}})):[],r=Pt(e,{buildScope:"inserter"}),l=(0,a.getBlockTypes)().filter((n=>Tt(e,n,t))).map(r).reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||t.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=It(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Mt(r,l)}})(e,n);t.push(...o.map(r))}return t}),[]),{core:i,noncore:s}=l.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...i,...s],...o]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),Lt=V(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Pt(e,{buildScope:"transform"}),l=(0,a.getBlockTypes)().filter((t=>Tt(e,t,n))).map(r),i=Object.fromEntries(Object.entries(l).map((([,e])=>[e.name,e]))),s=(0,a.getPossibleBlockTransformations)(o).reduce(((e,t)=>(i[t?.name]&&e.push(i[t.name]),e)),[]);return K(s,(e=>i[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Rt=V(((e,t=null)=>{if((0,a.getBlockTypes)().some((n=>Tt(e,n,t))))return!0;return _t(e,"core/block",t)&&Jt(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),At=V(((e,t=null)=>{if(t)return(0,a.getBlockTypes)().filter((n=>Tt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Dt=V(((e,t=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),At(e,t))),((e,t)=>[...At.getDependants(e,t)])),Ot=V(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.__experimentalDefaultBlock,o=e.blockListSettings[t]?.__experimentalDirectInsert;return n&&o?"function"==typeof o?o(ae(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function zt(e){var t;return(null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne).filter((e=>"unsynced"===e.wp_pattern_sync_status)).map((e=>({name:`core/block/${e.id}`,title:e.title.raw,categories:["custom"],content:e.content.raw})))}const Vt=V(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...zt(e)].find((({name:e})=>e===t));return n?{...n,blocks:(0,a.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks])),Ft=V((e=>{const t=e.settings.__experimentalBlockPatterns,n=zt(e),{allowedBlockTypes:o}=Wt(e),r=[...t,...n].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>Vt(e,t))),l=r.filter((({blocks:e})=>((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!vt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0})(e,o)));return l}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes])),Ht=V(((e,t=null)=>{const n=Ft(e).filter((({blocks:n})=>n.every((({name:n})=>kt(e,n,t)))));return n}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),Gt=V(((e,t,n=null)=>{if(!t)return ne;const o=Ht(e,n),r=Array.isArray(t)?t:[t],l=o.filter((e=>e?.blockTypes?.some?.((e=>r.includes(e)))));return 0===l.length?ne:l}),((e,t,n)=>[...Ht.getDependants(e,n)])),Ut=V(((e,t,n=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),Gt(e,t,n))),((e,t,n)=>[...Ht.getDependants(e,n)])),$t=V(((e,t,n=null)=>{if(!t)return ne;if(t.some((({clientId:t,innerBlocks:n})=>n.length||ln(e,t))))return ne;const o=Array.from(new Set(t.map((({name:e})=>e))));return Gt(e,o,n)}),((e,t,n)=>[...Gt.getDependants(e,n)]));function jt(e,t){return e.blockListSettings[t]}function Wt(e){return e.settings}function Kt(e){return e.settings.behaviors}function qt(e){return e.blocks.isPersistentChange}const Zt=V(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),Yt=V(((e,t)=>{const n=Jt(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[Jt(e)]));function Xt(e){return e.blocks.isIgnoredChange}function Qt(e){return e.lastBlockAttributesChange}function Jt(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne}function en(e){return"navigation"===e.editorMode}function tn(e){return e.editorMode}function nn(e){return e.hasBlockMovingClientId}function on(e){return!!e.automaticChangeStatus}function rn(e,t){return e.highlightedBlock===t}function ln(e,t){return!!e.blocks.controlledInnerBlocks[t]}const an=V(((e,t)=>{if(!t.length)return null;const n=Ce(e);if(t.includes(re(e,n)))return n;const o=Oe(e),r=Te(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function sn(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function cn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const un=V((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?oe:t}),(e=>[e.blockVisibility])),dn=V(((e,t)=>{let n,o=t;for(;e.blocks.parents.has(o);)o=e.blocks.parents.get(o),o&&"contentOnly"===bt(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function pn(e){return e.temporarilyEditingAsBlocks}function mn(e,t){if("default"!==Y(e,t))return!1;if(!xt(e,t))return!0;const n=tn(e);if("zoom-out"===n&&t&&!Be(e,t))return!0;const o=(0,a.hasBlockSupport)(re(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&ln(e,t))&&!Je(e,t)&&!et(e,t,!0)}function gn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(mn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const hn=["inserterMediaCategories","blockInspectorAnimation"];function fn(e,t=!1){let n=e;if(t&&"web"===c.Platform.OS){n={};for(const t in e)hn.includes(t)||(n[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:n}}function bn(){return{type:"HIDE_BLOCK_INTERFACE"}}function vn(){return{type:"SHOW_BLOCK_INTERFACE"}}function _n(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function kn(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const yn=(e,t=!0,n=!1)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;var l;l=e,e=Array.isArray(l)?l:[l];const i=o.getBlockRootClientId(e[0]);if(!o.canRemoveBlocks(e,i))return;const a=!n&&o.getBlockRemovalRules();if(a){const n=new Set,l=[...e];for(;l.length;){const e=l.shift(),t=o.getBlockName(e);a[t]&&n.add(t);const r=o.getBlockOrder(e);l.push(...r)}if(n.size)return void r(function(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n}}(e,t,Array.from(n)))}t&&r.selectPreviousBlock(e[0],t),r({type:"REMOVE_BLOCKS",clientIds:e}),r(En())},En=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function wn(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Sn(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}const Cn=window.wp.a11y,xn="†";function Bn(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(xn)}))}const In=e=>Array.isArray(e)?e:[e],Tn=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Mn(e))},Mn=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),l=!o||"all"!==r||(0,a.doBlocksMatchTemplate)(e,o);if(l!==t.isValidTemplate())return n.setTemplateValidity(l),l};function Pn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Nn(e){return $()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ln(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:In(e),attributes:t,uniqueByBlock:n}}function Rn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function An(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Dn=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},On=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function zn(){return{type:"START_MULTI_SELECT"}}function Vn(){return{type:"STOP_MULTI_SELECT"}}const Fn=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const l=o.getSelectedBlockCount();(0,Cn.speak)((0,v.sprintf)((0,v._n)("%s block selected.","%s blocks selected.",l),l),"assertive")};function Hn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Gn(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Un(e,t){var n;const o=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!(0,a.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!o[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:r={}}=e,l=o[t];return{...e,attributes:{...r,className:`${n||""} is-style-${l}`.trim()}}}))}const $n=(e,t,n,o=0,r)=>({select:l,dispatch:i})=>{e=In(e),t=Un(In(t),l.getSettings());const a=l.getBlockRootClientId(e[0]);for(let e=0;e(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t,n)&&r({type:e,clientIds:In(t),rootClientId:n})},Kn=Wn("MOVE_BLOCKS_DOWN"),qn=Wn("MOVE_BLOCKS_UP"),Zn=(e,t="",n="",o)=>({select:r,dispatch:l})=>{if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Yn(e,t="",n="",o){return Zn([e],t,n,o)}function Xn(e,t,n,o,r){return Qn([e],t,n,o,0,r)}const Qn=(e,t,n,o=!0,r=0,l)=>({select:i,dispatch:a})=>{null!==r&&"object"==typeof r&&(l=r,r=0,$()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=Un(In(e),i.getSettings());const s=[];for(const t of e){i.canInsertBlockType(t.name,n)&&s.push(t)}s.length&&a({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})};function Jn(e,t,n={}){const{__unstableWithInserter:o,operation:r}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r}}const eo=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function to(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const no=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,a.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},oo=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),l=n.getSelectionEnd();if(r.clientId===l.clientId)return;if(!r.attributeKey||!l.attributeKey||void 0===r.offset||void 0===l.offset)return!1;const i=n.getBlockRootClientId(r.clientId);if(i!==n.getBlockRootClientId(l.clientId))return;const s=n.getBlockOrder(i);let c,u;s.indexOf(r.clientId)>s.indexOf(l.clientId)?(c=l,u=r):(c=r,u=l);const d=e?u:c,p=n.getBlock(d.clientId),m=(0,a.getBlockType)(p.name);if(!m.merge)return;const g=c,h=u,f=n.getBlock(g.clientId),b=(0,a.getBlockType)(f.name),v=n.getBlock(h.clientId),_=(0,a.getBlockType)(v.name),k=f.attributes[g.attributeKey],y=v.attributes[h.attributeKey],E=b.attributes[g.attributeKey],w=_.attributes[h.attributeKey];let S=(0,G.create)({html:k,...j(E)}),C=(0,G.create)({html:y,...j(w)});S=(0,G.remove)(S,g.offset,S.text.length),C=(0,G.insert)(C,xn,0,h.offset);const x=(0,a.cloneBlock)(f,{[g.attributeKey]:(0,G.toHTMLString)({value:S,...j(E)})}),B=(0,a.cloneBlock)(v,{[h.attributeKey]:(0,G.toHTMLString)({value:C,...j(w)})}),I=e?x:B,T=f.name===v.name?[I]:(0,a.switchToBlockType)(I,m.name);if(!T||!T.length)return;let M;if(e){const e=T.pop();M=m.merge(e.attributes,B.attributes)}else{const e=T.shift();M=m.merge(x.attributes,e.attributes)}const P=Bn(M),N=M[P],L=(0,G.create)({html:N,...j(m.attributes[P])}),R=L.text.indexOf(xn),A=(0,G.remove)(L,R,R+1),D=(0,G.toHTMLString)({value:A,...j(m.attributes[P])});M[P]=D;const O=n.getSelectedBlockClientIds(),z=[...e?T:[],{...p,attributes:{...p.attributes,...M}},...e?[]:T];t.batch((()=>{o.selectionChange(p.clientId,P,R,R),o.replaceBlocks(O,z,0,n.getSelectedBlocksInitialCaretPosition())}))},ro=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();if(n.clientId===o.clientId)return;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return;const r=e.getBlockRootClientId(n.clientId);if(r!==e.getBlockRootClientId(o.clientId))return;const l=e.getBlockOrder(r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=i,u=s,d=e.getBlock(c.clientId),p=(0,a.getBlockType)(d.name),m=e.getBlock(u.clientId),g=(0,a.getBlockType)(m.name),h=d.attributes[c.attributeKey],f=m.attributes[u.attributeKey],b=p.attributes[c.attributeKey],v=g.attributes[u.attributeKey];let _=(0,G.create)({html:h,...j(b)}),k=(0,G.create)({html:f,...j(v)});_=(0,G.remove)(_,c.offset,_.text.length),k=(0,G.remove)(k,0,u.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...d,attributes:{...d.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}},(0,a.createBlock)((0,a.getDefaultBlockName)()),{...m,attributes:{...m.attributes,[u.attributeKey]:(0,G.toHTMLString)({value:k,...j(v)})}}],1,e.getSelectedBlocksInitialCaretPosition())},lo=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},io=(e,t)=>({registry:n,select:o,dispatch:r})=>{const l=[e,t];r({type:"MERGE_BLOCKS",blocks:l});const[i,s]=l,c=o.getBlock(i),u=(0,a.getBlockType)(c.name);if(!u)return;const d=o.getBlock(s);if(u&&!u.merge){const e=(0,a.switchToBlockType)(d,u.name);if(1!==e?.length)return void r.selectBlock(c.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(c.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId)}))}const p=(0,a.getBlockType)(d.name),{clientId:m,attributeKey:g,offset:h}=o.getSelectionStart(),f=(m===i?u:p).attributes[g],b=(m===i||m===s)&&void 0!==g&&void 0!==h&&!!f;f||("number"==typeof g?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof g):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=(0,a.cloneBlock)(c),_=(0,a.cloneBlock)(d);if(b){const e=m===i?v:_,t=e.attributes[g],n=(0,G.insert)((0,G.create)({html:t,...j(f)}),xn,h,h);e.attributes[g]=(0,G.toHTMLString)({value:n,...j(f)})}const k=c.name===d.name?[_]:(0,a.switchToBlockType)(_,c.name);if(!k||!k.length)return;const y=u.merge(v.attributes,k[0].attributes);if(b){const e=Bn(y),t=y[e],n=(0,G.create)({html:t,...j(u.attributes[e])}),o=n.text.indexOf(xn),l=(0,G.remove)(n,o,o+1),i=(0,G.toHTMLString)({value:l,...j(u.attributes[e])});y[e]=i,r.selectionChange(c.clientId,e,o,o)}r.replaceBlocks([c.clientId,d.clientId],[{...c,attributes:{...c.attributes,...y}},...k.slice(1)],0)},ao=(e,t=!0)=>yn(e,t);function so(e,t){return ao([e],t)}function co(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function uo(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function po(){return{type:"START_TYPING"}}function mo(){return{type:"STOP_TYPING"}}function go(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function ho(){return{type:"STOP_DRAGGING_BLOCKS"}}function fo(){return $()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function bo(){return $()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function vo(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const _o=(e,t,n)=>({dispatch:o})=>{const r=(0,a.getDefaultBlockName)();if(!r)return;const l=(0,a.createBlock)(r,e);return o.insertBlock(l,n,t)};function ko(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function yo(e){return fn(e,!0)}function Eo(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function wo(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function So(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Co=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},xo=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},Bo=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Cn.speak)((0,v.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?(0,Cn.speak)((0,v.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Cn.speak)((0,v.__)("You are currently in zoom-out mode."))},Io=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Cn.speak)((0,v.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},To=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;const l=r.map((e=>e.name));if(l.some((e=>!(0,a.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=In(e),c=n.getBlockIndex(s[s.length-1]),u=r.map((e=>(0,a.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(u,c+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Mo=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r)},Po=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r+1)};function No(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Lo=e=>async({dispatch:t})=>{t(No(e,!0)),await new Promise((e=>setTimeout(e,150))),t(No(e,!1))};function Ro(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Ao(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Do(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const Oo="core/block-editor",zo=window.wp.privateApis,{lock:Vo,unlock:Fo}=(0,zo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),Ho={reducer:A,selectors:t,actions:l},Go=(0,g.createReduxStore)(Oo,{...Ho,persist:["preferences"]}),Uo=(0,g.registerStore)(Oo,{...Ho,persist:["preferences"]});Fo(Uo).registerPrivateActions(r),Fo(Uo).registerPrivateSelectors(e),Fo(Go).registerPrivateActions(r),Fo(Go).registerPrivateSelectors(e);const $o={name:"",isSelected:!1},jo=(0,c.createContext)($o),{Provider:Wo}=jo;function Ko(){return(0,c.useContext)(jo)}function qo(){const{isSelected:e,clientId:t,name:n}=Ko();return(0,g.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(Go);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function Zo({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=qo(),{clientId:o}=Ko(),r=(0,g.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(Go),{hasBlockSupport:l}=e(a.store);return t&&l(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)}),[t,o]);return n?h[e]?.Fill:r?h.parent.Fill:null}(e,o);if(!r)return null;const l=(0,c.createElement)(c.Fragment,null,"default"===e&&(0,c.createElement)(m.ToolbarGroup,{controls:t}),n);return(0,c.createElement)(m.__experimentalStyleProvider,{document},(0,c.createElement)(r,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,c.createElement)(t,{...n},e)),l)})))}window.wp.warning;const{ComponentsContext:Yo}=Fo(m.privateApis);function Xo({group:e="default",...t}){const n=(0,c.useContext)(m.__experimentalToolbarContext),o=(0,c.useContext)(Yo),r=(0,c.useMemo)((()=>({forwardedContext:[[m.__experimentalToolbarContext.Provider,{value:n}],[Yo.Provider,{value:o}]]})),[n,o]),l=h[e]?.Slot,i=(0,m.__experimentalUseSlotFills)(l?.__unstableName);if(!l)return"undefined"!=typeof process&&process.env,null;if(!i?.length)return null;const a=(0,c.createElement)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,c.createElement)(m.ToolbarGroup,null,a)}const Qo=Zo;Qo.Slot=Xo;const Jo=e=>(0,c.createElement)(Zo,{group:"inline",...e});Jo.Slot=e=>(0,c.createElement)(Xo,{group:"inline",...e});const er=Qo,tr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),nr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),or=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),rr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),lr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),ir=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),ar=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})),sr={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function cr(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function ur(e,t=sr,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${cr(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function dr(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},l=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return l.test(t)&&"constrained"===o&&(r.none=(0,v.sprintf)((0,v.__)("Max %s wide"),t)),l.test(n)&&(r.wide=(0,v.sprintf)((0,v.__)("Max %s wide"),n)),r}const pr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}})),mr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M8.2 5.3h8V3.8h-8v1.5zm0 14.5h8v-1.5h-8v1.5zm3.5-6.5h1v-1h-1v1zm1-6.5h-1v.5h1v-.5zm-1 4.5h1v-1h-1v1zm0-2h1v-1h-1v1zm0 7.5h1v-.5h-1v.5zm1-2.5h-1v1h1v-1zm-8.5 1.5h1.5v-8H4.2v8zm14.5-8v8h1.5v-8h-1.5zm-5 4.5v-1h-1v1h1zm-6.5 0h.5v-1h-.5v1zm3.5-1v1h1v-1h-1zm6 1h.5v-1h-.5v1zm-8-1v1h1v-1h-1zm6 0v1h1v-1h-1z",style:{fill:"#1e1e1e",fillRule:"evenodd",clipRule:"evenodd"}})),gr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}})),hr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e"}})),fr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}})),br=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.5 7H19v10h1.5V7z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}})),vr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}})),_r=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 17H3.5V7H5v10z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}})),kr=["top","right","bottom","left"],yr={top:void 0,right:void 0,bottom:void 0,left:void 0},Er={custom:pr,axial:mr,horizontal:gr,vertical:hr,top:fr,right:br,bottom:vr,left:_r},wr={default:(0,v.__)("Spacing control"),top:(0,v.__)("Top"),bottom:(0,v.__)("Bottom"),left:(0,v.__)("Left"),right:(0,v.__)("Right"),mixed:(0,v.__)("Mixed"),vertical:(0,v.__)("Vertical"),horizontal:(0,v.__)("Horizontal"),axial:(0,v.__)("Horizontal & vertical"),custom:(0,v.__)("Custom")},Sr={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Cr(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function xr(e,t){if(!Cr(e))return e;const n=Tr(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Br(e,t){if(!e||Cr(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function Ir(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function Tr(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function Mr(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function Pr(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=Ir(n?.top)||t,r=Ir(n?.left)||t;return o===r?o:`${o} ${r}`}const Nr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Lr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Rr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),Ar=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),Dr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),Or={top:{icon:Rr,title:(0,v._x)("Align top","Block vertical alignment setting")},center:{icon:Lr,title:(0,v._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Nr,title:(0,v._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:Ar,title:(0,v._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Dr,title:(0,v._x)("Space between","Block vertical alignment setting")}},zr=["top","center","bottom"];const Vr=function({value:e,onChange:t,controls:n=zr,isCollapsed:o=!0,isToolbar:r}){const l=Or[e],i=Or.top,a=r?m.ToolbarGroup:m.ToolbarDropdownMenu,s=r?{isCollapsed:o}:{};return(0,c.createElement)(a,{icon:l?l.icon:i.icon,label:(0,v._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...Or[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})),...s})},Fr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!1}),Hr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!0}),Gr={left:tr,center:nr,right:or,"space-between":rr,stretch:lr};const Ur=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:l}){const i=e=>{n(e===o?void 0:e)},a=o?Gr[o]:Gr.left,s=[{name:"left",icon:tr,title:(0,v.__)("Justify items left"),isActive:"left"===o,onClick:()=>i("left")},{name:"center",icon:nr,title:(0,v.__)("Justify items center"),isActive:"center"===o,onClick:()=>i("center")},{name:"right",icon:or,title:(0,v.__)("Justify items right"),isActive:"right"===o,onClick:()=>i("right")},{name:"space-between",icon:rr,title:(0,v.__)("Space between items"),isActive:"space-between"===o,onClick:()=>i("space-between")},{name:"stretch",icon:lr,title:(0,v.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>i("stretch")}],u=l?m.ToolbarGroup:m.ToolbarDropdownMenu,d=l?{isCollapsed:t}:{};return(0,c.createElement)(u,{icon:a,popoverProps:r,label:(0,v.__)("Change items justification"),controls:s.filter((t=>e.includes(t.name))),...d})},$r=e=>(0,c.createElement)(Ur,{...e,isToolbar:!1}),jr=e=>(0,c.createElement)(Ur,{...e,isToolbar:!0}),Wr=window.lodash,Kr=["color","border","dimensions","typography","spacing"],qr={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},Zr={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},Yr=e=>Zr[e]||e;function Xr(e){const{name:t,clientId:n}=Ko();return(0,g.useSelect)((o=>{if(Kr.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let r=(0,s.applyFilters)("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==r)return r;const l=Yr(e),i=[n,...o(Go).getBlockParents(n,!0)];for(const e of i){const n=o(Go).getBlockName(e);if((0,a.hasBlockSupport)(n,"__experimentalSettings",!1)){var c;const n=o(Go).getBlockAttributes(e);if(r=null!==(c=(0,Wr.get)(n,`settings.blocks.${t}.${l}`))&&void 0!==c?c:(0,Wr.get)(n,`settings.${l}`),void 0!==r)break}}const u=o(Go).getSettings();if(void 0===r){var d;const e=`__experimentalFeatures.${l}`,n=`__experimentalFeatures.blocks.${t}.${l}`;r=null!==(d=(0,Wr.get)(u,n))&&void 0!==d?d:(0,Wr.get)(u,e)}var p,m;if(void 0!==r)return a.__EXPERIMENTAL_PATHS_WITH_MERGE[l]?null!==(p=null!==(m=r.custom)&&void 0!==m?m:r.theme)&&void 0!==p?p:r.default:r;const g=qr[l]?qr[l](u):void 0;return void 0!==g?g:"typography.dropCap"===l||void 0}),[t,n,e])}const Qr="1600px",Jr="320px",el=1,tl=.25,nl=.75,ol="14px";function rl({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewPortWidth:o=Jr,maximumViewPortWidth:r=Qr,scaleFactor:l=el,minimumFontSizeLimit:i}){if(i=ll(i)?i:ol,n){const o=ll(n);if(!o?.unit)return null;const r=ll(i,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),tl),nl),l=il(o.value*n,3);e=r?.value&&l0}function cl(e){const t=e?.typography,n=e?.layout;return sl(t)&&n?.wideSize?{fluid:{maxViewPortWidth:n.wideSize,...t.fluid}}:{fluid:t?.fluid}}const ul="body",dl=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>al(e,cl(t)),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],pl={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function ml(e,t,n,o,r){const l=[(0,Wr.get)(e,["blocks",t,...n]),(0,Wr.get)(e,n)];for(const i of l)if(i){const l=["custom","theme","default"];for(const a of l){const l=i[a];if(l){const i=l.find((e=>e[o]===r));if(i){if("slug"===o)return i;return ml(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function gl(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=(0,Wr.get)(e,t))||n?.ref)return n}}const o="var:",r="var(--wp--";let l;if(n.startsWith(o))l=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;l=n.slice(10,-1).split("--")}const[i,...a]=l;return"preset"===i?function(e,t,n,[o,r]){const l=dl.find((e=>e.cssVarInfix===o));if(!l)return n;const i=ml(e.settings,t,l.path,"slug",r);if(i){const{valueKey:n}=l;return gl(e,t,i[n])}return n}(e,t,n,a):"custom"===i?function(e,t,n,o){var r;const l=null!==(r=(0,Wr.get)(e.settings,["blocks",t,"custom",...o]))&&void 0!==r?r:(0,Wr.get)(e.settings,["custom",...o]);return l?gl(e,t,l):n}(e,t,n,a):n}function hl(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function fl(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:b()(e?.styles,t?.styles)&&b()(e?.settings,t?.settings)}const bl=(0,c.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),vl={settings:{},styles:{}},_l=["appearanceTools","useRootPaddingAwareAlignments","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","position.fixed","position.sticky","spacing.customSpacingSize","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.textTransform"],kl=()=>{const{user:e,setUserConfig:t}=(0,c.useContext)(bl);return[!!e&&!b()(e,vl),(0,c.useCallback)((()=>t((()=>vl))),[t])]};function yl(e,t,n="all"){const{setUserConfig:o,...r}=(0,c.useContext)(bl),l=t?".blocks."+t:"",i=e?"."+e:"",a=`settings${l}${i}`,s=`settings${i}`,u="all"===n?"merged":n;return[(0,c.useMemo)((()=>{const t=r[u];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=(0,Wr.get)(t,a))&&void 0!==n?n:(0,Wr.get)(t,s);const o={};return _l.forEach((e=>{var n;const r=null!==(n=(0,Wr.get)(t,`settings${l}.${e}`))&&void 0!==n?n:(0,Wr.get)(t,`settings.${e}`);r&&(0,Wr.set)(o,e,r)})),o}),[r,u,e,a,s,l]),e=>{o((t=>{const n=JSON.parse(JSON.stringify(t));return(0,Wr.set)(n,a,e),n}))}]}function El(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:l,user:i,setUserConfig:a}=(0,c.useContext)(bl),s=e?"."+e:"",u=t?`styles.blocks.${t}${s}`:`styles${s}`;let d,p;switch(n){case"all":d=(0,Wr.get)(r,u),p=o?gl(r,t,d):d;break;case"user":d=(0,Wr.get)(i,u),p=o?gl(r,t,d):d;break;case"base":d=(0,Wr.get)(l,u),p=o?gl(l,t,d):d;break;default:throw"Unsupported source"}return[p,n=>{a((l=>{const i=JSON.parse(JSON.stringify(l));return(0,Wr.set)(i,u,o?function(e,t,n,o){if(!o)return o;const r=pl[n],l=dl.find((e=>e.cssVarInfix===r));if(!l)return o;const{valueKey:i,path:a}=l,s=ml(e,t,a,i,o);return s?`var:preset|${r}|${s.slug}`:o}(r.settings,t,e,n):n),i}))}]}function wl(e,t,n){const{supportedStyles:o,supports:r}=(0,g.useSelect)((e=>({supportedStyles:Fo(e(a.store)).getSupportedStyles(t,n),supports:e(a.store).getBlockType(t)?.supports})),[t,n]);return(0,c.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),o.includes("minHeight")||(t.dimensions={...t.dimensions,minHeight:!1}),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,t}),[e,o,r])}function Sl(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function Cl(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}var xl=function(){return xl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n[e,Rl(t)])))}:e}function Al(e,t,n){const o=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),r=e?Rl(e):{};return o.reduce(((e,t,r)=>(void 0===e[t]&&(e[t]={}),r===o.length-1&&(e[t]=n),e[t])),r),r}const Dl=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Dl(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Ol(e,t,n,o,r,l){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;i=o[r]?.attributes}let a=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=(0,Wr.get)(i,e);t&&(a={...a,attributes:Al(a.attributes,e,t)})}))})),a}function zl(e,t,n){const o=(0,a.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}function Vl(e,t){const n=Xr("typography.fontFamilies"),o=Xr("typography.fontSizes"),r=Xr("typography.customFontSize"),l=Xr("typography.fontStyle"),i=Xr("typography.fontWeight"),a=Xr("typography.lineHeight"),s=Xr("typography.textColumns"),u=Xr("typography.textDecoration"),d=Xr("typography.textTransform"),p=Xr("typography.letterSpacing"),m=Xr("spacing.padding"),g=Xr("spacing.margin"),h=Xr("spacing.blockGap"),f=Xr("spacing.spacingSizes"),b=Xr("spacing.units"),v=Xr("dimensions.minHeight"),_=Xr("layout"),k=Xr("border.color"),y=Xr("border.radius"),E=Xr("border.style"),w=Xr("border.width"),S=Xr("color.custom"),C=Xr("color.palette.custom"),x=Xr("color.customDuotone"),B=Xr("color.palette.theme"),I=Xr("color.palette.default"),T=Xr("color.defaultPalette"),M=Xr("color.defaultDuotone"),P=Xr("color.duotone.custom"),N=Xr("color.duotone.theme"),L=Xr("color.duotone.default"),R=Xr("color.gradients.custom"),A=Xr("color.gradients.theme"),D=Xr("color.gradients.default"),O=Xr("color.defaultGradients"),z=Xr("color.customGradient"),V=Xr("color.background"),F=Xr("color.link"),H=Xr("color.text");return wl((0,c.useMemo)((()=>({color:{palette:{custom:C,theme:B,default:I},gradients:{custom:R,theme:A,default:D},duotone:{custom:P,theme:N,default:L},defaultGradients:O,defaultPalette:T,defaultDuotone:M,custom:S,customGradient:z,customDuotone:x,background:V,link:F,text:H},typography:{fontFamilies:{custom:n},fontSizes:{custom:o},customFontSize:r,fontStyle:l,fontWeight:i,lineHeight:a,textColumns:s,textDecoration:u,textTransform:d,letterSpacing:p},spacing:{spacingSizes:{custom:f},padding:m,margin:g,blockGap:h,units:b},border:{color:k,radius:y,style:E,width:w},dimensions:{minHeight:v},layout:_,parentLayout:t})),[n,o,r,l,i,a,s,u,d,p,m,g,h,f,b,v,_,t,k,y,E,w,S,C,x,B,I,T,M,P,N,L,R,A,D,O,z,V,F,H]),e)}const Fl={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Hl={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Gl={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Ul=["wrap","nowrap"],$l={name:"flex",label:(0,v.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0}=n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Flex,null,(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(Kl,{layout:e,onChange:t})),(0,c.createElement)(m.FlexItem,null,o&&(0,c.createElement)(Zl,{layout:e,onChange:t}))),(0,c.createElement)(ql,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=n;return(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Kl,{layout:e,onChange:t,isToolbar:!0}),o&&(0,c.createElement)(jl,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{orientation:i="horizontal"}=t,a=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0,s=Fl[t.justifyContent],c=Ul.includes(t.flexWrap)?t.flexWrap:"wrap",u=Gl[t.verticalAlignment],d=Hl[t.justifyContent]||Hl.left;let p="";const m=[];return c&&"wrap"!==c&&m.push(`flex-wrap: ${c}`),"horizontal"===i?(u&&m.push(`align-items: ${u}`),s&&m.push(`justify-content: ${s}`)):(u&&m.push(`justify-content: ${u}`),m.push("flex-direction: column"),m.push(`align-items: ${d}`)),m.length&&(p=`${cr(e)} {\n\t\t\t\t${m.join("; ")};\n\t\t\t}`),r&&a&&(p+=ur(e,l,"flex",a)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function jl({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r="horizontal"===o?Gl.center:Gl.top,{verticalAlignment:l=r}=e,i=n=>{t({...e,verticalAlignment:n})};if(n)return(0,c.createElement)(Fr,{onChange:i,value:l,controls:"horizontal"===o?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const a=[{value:"flex-start",label:(0,v.__)("Align items top")},{value:"center",label:(0,v.__)("Align items center")},{value:"flex-end",label:(0,v.__)("Align items bottom")}];return(0,c.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,c.createElement)("legend",null,(0,v.__)("Vertical alignment")),(0,c.createElement)("div",null,a.map(((e,t,n)=>(0,c.createElement)(m.Button,{key:e,label:n,icon:t,isPressed:l===e,onClick:()=>i(e)})))))}const Wl={placement:"bottom-start"};function Kl({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,l=n=>{t({...e,justifyContent:n})},i=["left","center","right"];if("horizontal"===r?i.push("space-between"):i.push("stretch"),n)return(0,c.createElement)($r,{allowedControls:i,value:o,onChange:l,popoverProps:Wl});const a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}];return"horizontal"===r?a.push({value:"space-between",icon:rr,label:(0,v.__)("Space between items")}):a.push({value:"stretch",icon:lr,label:(0,v.__)("Stretch items")}),(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:o,onChange:l,className:"block-editor-hooks__flex-layout-justification-controls"},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n}))))}function ql({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Zl({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,v.__)("Orientation"),value:n,onChange:n=>{let l=o,i=r;return"horizontal"===n?("space-between"===o&&(l="center"),"stretch"===r&&(i="left")):("stretch"===o&&(l="top"),"space-between"===r&&(i="left")),t({...e,orientation:n,verticalAlignment:l,justifyContent:i})}},(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ir,value:"horizontal",label:(0,v.__)("Horizontal")}),(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ar,value:"vertical",label:(0,v.__)("Vertical")}))}const Yl={name:"default",label:(0,v.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=sr}){const l=Pr(t?.spacing?.blockGap);let i="";zl(n,"spacing","blockGap")||(l?.top?i=Pr(l?.top):"string"==typeof l&&(i=Pr(l)));let a="";return o&&i&&(a+=ur(e,r,"default",i)),a},getOrientation:()=>"vertical",getAlignments(e,t){const n=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}};const Xl=function({icon:e,size:t=24,...n}){return(0,c.cloneElement)(e,{width:t,height:t,...n})},Ql=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),Jl=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),ei=window.wp.styleEngine,ti={name:"constrained",label:(0,v.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:l="center"}=e,{allowJustification:i=!0}=n,a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}],s=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vw"]});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Ql})),(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Jl}))),(0,c.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,v.__)("Customize the width for all elements that are assigned to the center or wide columns.")),i&&(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:l,onChange:n=>{t({...e,justifyContent:n})}},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n})))))},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{contentSize:i,wideSize:a,justifyContent:s}=t,c=Pr(n?.spacing?.blockGap);let u="";zl(o,"spacing","blockGap")||(c?.top?u=Pr(c?.top):"string"==typeof c&&(u=Pr(c)));const d="left"===s?"0 !important":"auto !important",p="right"===s?"0 !important":"auto !important";let m=i||a?`\n\t\t\t\t\t${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===s?m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===s&&(m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,ei.getCSSRules)(n).forEach((t=>{"paddingRight"===t.key?m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===t.key&&(m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)}))}return r&&u&&(m+=ur(e,l,"constrained",u)),m},getOrientation:()=>"vertical",getAlignments(e){const t=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},ni={px:600,"%":100,vw:100,vh:100,em:38,rem:38},oi={name:"grid",label:(0,v.__)("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,c.createElement)(li,{layout:e,onChange:t}):(0,c.createElement)(ri,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{minimumColumnWidth:i="12rem",columnCount:a=null}=t,s=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return a?u.push(`grid-template-columns: repeat(${a}, minmax(0, 1fr))`):i&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${i}, 100%), 1fr))`),u.length&&(c=`${cr(e)} { ${u.join("; ")}; }`),r&&s&&(c+=ur(e,l,"grid",s)),c},getOrientation:()=>"horizontal",getAlignments:()=>[]};function ri({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[o,r]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,c.createElement)("fieldset",null,(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Minimum column width")),(0,c.createElement)(m.Flex,{gap:4},(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let l;["em","rem"].includes(n)&&"px"===r?l=(o/16).toFixed(2)+n:["em","rem"].includes(r)&&"px"===n?l=Math.round(16*o)+n:["vh","vw","%"].includes(n)&&o>100&&(l=100+n),t({...e,minimumColumnWidth:l})},value:n,min:0})),(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,r].join("")})},value:o,min:0,max:ni[r]||600,withInputField:!1}))))}function li({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,c.createElement)(m.RangeControl,{label:(0,v.__)("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const ii=[Yl,$l,ti,oi];function ai(e="default"){return ii.find((t=>t.name===e))}const si={type:"default"},ci=(0,c.createContext)(si),ui=ci.Provider;function di(){return(0,c.useContext)(ci)}function pi({layout:e={},css:t,...n}){const o=ai(e.type),r=null!==Xr("spacing.blockGap");if(o){if(t)return(0,c.createElement)("style",null,t);const l=o.getLayoutStyle?.({hasBlockGapSupport:r,layout:e,...n});if(l)return(0,c.createElement)("style",null,l)}return null}const mi=[],gi=["none","left","center","right","wide","full"],hi=["wide","full"];function fi(e=gi){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:o}=(0,g.useSelect)((e=>{const{getSettings:t}=e(Go),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),r=di(),l=ai(r?.type),i=l.getAlignments(r,o);if(n){const t=i.filter((({name:t})=>e.includes(t)));return 1===t.length&&"none"===t[0].name?mi:t}if("default"!==l.name&&"constrained"!==l.name)return mi;const{alignments:a=gi}=r,s=e.filter((e=>(r.alignments||t||!hi.includes(e))&&a.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?mi:s}const bi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),vi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),_i=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})),ki=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})),yi={none:{icon:bi,title:(0,v._x)("None","Alignment option")},left:{icon:vi,title:(0,v.__)("Align left")},center:{icon:Ql,title:(0,v.__)("Align center")},right:{icon:_i,title:(0,v.__)("Align right")},wide:{icon:Jl,title:(0,v.__)("Wide width")},full:{icon:ki,title:(0,v.__)("Full width")}};const Ei=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const l=fi(n);if(!!!l.length)return null;function i(n){t([e,"none"].includes(n)?void 0:n)}const a=yi[e],s=yi.none,u=o?m.ToolbarGroup:m.ToolbarDropdownMenu,p={icon:a?a.icon:s.icon,label:(0,v.__)("Align")},g=o?{isCollapsed:r,controls:l.map((({name:t})=>({...yi[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>i(t)})))}:{toggleProps:{describedBy:(0,v.__)("Change alignment")},children:({onClose:t})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},l.map((({name:n,info:o})=>{const{icon:r,title:l}=yi[n],a=n===e||!e&&"none"===n;return(0,c.createElement)(m.MenuItem,{key:n,icon:r,iconPosition:"left",className:d()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{i(n),t()},role:"menuitemradio",info:o},l)}))))};return(0,c.createElement)(u,{...p,...g})},wi=e=>(0,c.createElement)(Ei,{...e,isToolbar:!1}),Si=e=>(0,c.createElement)(Ei,{...e,isToolbar:!0}),Ci=(0,c.createContext)(null);function xi(e){var t;const{clientId:n=""}=null!==(t=(0,c.useContext)(Ci))&&void 0!==t?t:{},o=(0,g.useSelect)((e=>Fo(e(Go)).getBlockEditingMode(n)),[n]),{setBlockEditingMode:r,unsetBlockEditingMode:l}=Fo((0,g.useDispatch)(Go));return(0,c.useEffect)((()=>(e&&r(n,e),()=>{e&&l(n)})),[n,e]),o}const Bi=["left","center","right","wide","full"],Ii=["wide","full"];function Ti(e,t=!0,n=!0){let o;return o=Array.isArray(e)?Bi.filter((t=>e.includes(t))):!0===e?[...Bi]:[],!n||!0===e&&!t?o.filter((e=>!Ii.includes(e))):o}const Mi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t}),{name:o}=t,r=fi(Ti((0,a.getBlockSupport)(o,"align"),(0,a.hasBlockSupport)(o,"alignWide",!0))).map((({name:e})=>e)),l=xi();if(!r.length||"default"!==l)return n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(wi,{value:t.attributes.align,onChange:e=>{if(!e){const n=(0,a.getBlockType)(t.name),o=n?.attributes?.align?.default;o&&(e="")}t.setAttributes({align:e})},controls:r})),n)}),"withToolbarControls"),Pi=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:r}=o,l=fi(Ti((0,a.getBlockSupport)(n,"align"),(0,a.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return(0,c.createElement)(e,{...t});let i=t.wrapperProps;return l.some((e=>e.name===r))&&(i={...i,"data-align":r}),(0,c.createElement)(e,{...t,wrapperProps:i})}),"withDataAlign");(0,s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Bi,""]}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Pi),(0,s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Mi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Ti((0,a.getBlockSupport)(t,"align"),(0,a.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=d()(`align${o}`,e.className)),e})),(0,s.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const Ni=(0,m.createSlotFill)("InspectorControls"),Li=(0,m.createSlotFill)("InspectorAdvancedControls"),Ri=(0,m.createSlotFill)("InspectorControlsBorder"),Ai=(0,m.createSlotFill)("InspectorControlsColor"),Di=(0,m.createSlotFill)("InspectorControlsFilter"),Oi=(0,m.createSlotFill)("InspectorControlsDimensions"),zi=(0,m.createSlotFill)("InspectorControlsPosition"),Vi=(0,m.createSlotFill)("InspectorControlsTypography"),Fi={default:Ni,advanced:Li,border:Ri,color:Ai,filter:Di,dimensions:Oi,list:(0,m.createSlotFill)("InspectorControlsListView"),settings:Ni,styles:(0,m.createSlotFill)("InspectorControlsStyles"),typography:Vi,position:zi};function Hi({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&($()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=qo(),l=Fi[t]?.Fill;return l?r?(0,c.createElement)(m.__experimentalStyleProvider,{document},(0,c.createElement)(l,null,(t=>(0,c.createElement)(Gi,{fillProps:t,children:e,resetAllFilter:o})))):null:("undefined"!=typeof process&&process.env,null)}function Gi({children:e,resetAllFilter:t,fillProps:n}){const{registerResetAllFilter:o,deregisterResetAllFilter:r}=n;(0,c.useEffect)((()=>(t&&o&&o(t),()=>{t&&r&&r(t)})),[t,o,r]);const l=n&&Object.keys(n).length>0?n:null;return(0,c.createElement)(m.__experimentalToolsPanelContext.Provider,{value:l},e)}function Ui({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,g.useDispatch)(Go),{getBlockAttributes:r,getMultiSelectedBlockClientIds:l,getSelectedBlockClientId:i,hasMultiSelection:a}=(0,g.useSelect)(Go),s=i(),u=(0,c.useCallback)(((e=[])=>{const t={},n=a()?l():[s];n.forEach((n=>{const{style:o}=r(n);let l={style:o};e.forEach((e=>{l={...l,...e(l)}})),l={...l,style:Dl(l.style)},t[n]=l})),o(n,t,!0)}),[r,l,a,s,o]);return(0,c.createElement)(m.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,key:s,panelId:s,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function $i({Slot:e,...t}){const n=(0,c.useContext)(m.__experimentalToolsPanelContext);return(0,c.createElement)(e,{...t,fillProps:n,bubblesVirtually:!0})}function ji({__experimentalGroup:e,group:t="default",label:n,...o}){e&&($()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const r=Fi[t]?.Slot,l=(0,m.__experimentalUseSlotFills)(r?.__unstableName);return r?l?.length?n?(0,c.createElement)(Ui,{group:t,label:n},(0,c.createElement)($i,{...o,Slot:r})):(0,c.createElement)(r,{...o,bubblesVirtually:!0}):null:("undefined"!=typeof process&&process.env,null)}const Wi=Hi;Wi.Slot=ji;const Ki=e=>(0,c.createElement)(Hi,{...e,group:"advanced"});Ki.Slot=e=>(0,c.createElement)(ji,{...e,group:"advanced"}),Ki.slotName="InspectorAdvancedControls";const qi=Wi,Zi=/[\s#]/g,Yi={type:"string",source:"attribute",attribute:"id",selector:"*"};const Xi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,a.hasBlockSupport)(t.name,"anchor"),o=xi();if(n&&t.isSelected){const n="web"===c.Platform.OS,r=(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:(0,v.__)("HTML anchor"),help:(0,c.createElement)(c.Fragment,null,(0,v.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,c.createElement)(m.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,v.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,v.__)("Add an anchor"),onChange:e=>{e=e.replace(Zi,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),n&&"default"===o&&(0,c.createElement)(qi,{group:"advanced"},r),!n&&"core/heading"===t.name&&(0,c.createElement)(qi,null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Heading settings")},r)))}return(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Yi}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Xi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Qi={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};(0,s.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,a.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:Qi}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const Ji=(0,p.createHigherOrderComponent)((e=>t=>{const n=xi();return(0,a.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),"default"===n&&(0,c.createElement)(qi,{group:"advanced"},(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,v.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,v.__)("Separate multiple classes with spaces.")}))):(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,a.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Ji),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=d()(e.className,n.className)),e})),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,a.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,a.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,a.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,a.getBlockDefaultClassName)(t.name)),e}));const ea=window.wp.dom,ta=(0,c.createContext)({});function na({value:e,children:t}){const n=(0,c.useContext)(ta),o=(0,c.useMemo)((()=>({...n,...e})),[n,e]);return(0,c.createElement)(ta.Provider,{value:o,children:t})}const oa=ta,ra={},la=(0,m.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,a.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,c.createElement)(o,{...e})})),ia=e=>{const{attributes:t={},name:n}=e,o=(0,a.getBlockType)(n),r=(0,c.useContext)(oa),l=(0,c.useMemo)((()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter((([e])=>o.usesContext.includes(e)))):ra),[o,r]);if(!o)return null;if(o.apiVersion>1)return(0,c.createElement)(la,{...e,context:l});const i=(0,a.hasBlockSupport)(o,"className",!0)?(0,a.getBlockDefaultClassName)(n):null,s=d()(i,t.className,e.className);return(0,c.createElement)(la,{...e,context:l,className:s})};function aa(e){const{name:t,isSelected:n,clientId:o,attributes:r={},__unstableLayoutClassNames:l}=e,{layout:i=null}=r,s={name:t,isSelected:n,clientId:o,layout:(0,a.hasBlockSupport)(t,"layout",!1)||(0,a.hasBlockSupport)(t,"__experimentalLayout",!1)?i:null,__unstableLayoutClassNames:l};return(0,c.createElement)(Wo,{value:(0,c.useMemo)((()=>s),Object.values(s))},(0,c.createElement)(ia,{...e}))}const sa=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));const ca=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,c.createElement)("div",{style:{display:"contents",all:"initial"}},(0,c.createElement)("div",{className:d()(e,"block-editor-warning")},(0,c.createElement)("div",{className:"block-editor-warning__contents"},(0,c.createElement)("p",{className:"block-editor-warning__message"},n),(c.Children.count(t)>0||o)&&(0,c.createElement)("div",{className:"block-editor-warning__actions"},c.Children.count(t)>0&&c.Children.map(t,((e,t)=>(0,c.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),o&&(0,c.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:sa,label:(0,v.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,c.createElement)(m.MenuGroup,null,o.map(((e,t)=>(0,c.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))};var ua=n(1973);function da({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:l}){return(0,c.createElement)("div",{className:l},(0,c.createElement)("div",{className:"block-editor-block-compare__content"},(0,c.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,c.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,c.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(n)))),(0,c.createElement)("div",{className:"block-editor-block-compare__action"},(0,c.createElement)(m.Button,{variant:"secondary",tabIndex:"0",onClick:o},r)))}const pa=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const l=(i=o(e),(Array.isArray(i)?i:[i]).map((e=>(0,a.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var i;const s=(u=e.originalContent,p=l,(0,ua.Kx)(u,p).map(((e,t)=>{const n=d()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,c.createElement)("span",{key:t,className:n},e.value)})));var u,p;return(0,c.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,c.createElement)(da,{title:(0,v.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,v.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,c.createElement)(da,{title:(0,v.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:s,renderedContent:l}))},ma=e=>(0,a.rawHandler)({HTML:e.originalContent});function ga({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,g.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Go),l=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",l),canInsertClassicBlock:n("core/freeform",l)}}),[e]),{replaceBlock:r}=(0,g.useDispatch)(Go),[l,i]=(0,c.useState)(!1),s=(0,c.useCallback)((()=>i(!1)),[]),u=(0,c.useMemo)((()=>({toClassic(){const e=(0,a.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,a.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=ma(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,a.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),d=(0,c.useMemo)((()=>[{title:(0,v._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,v.__)("Convert to HTML"),onClick:u.toHTML},o&&{title:(0,v.__)("Convert to Classic Block"),onClick:u.toClassic}].filter(Boolean)),[n,o,u]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ca,{actions:[(0,c.createElement)(m.Button,{key:"recover",onClick:u.toRecoveredBlock,variant:"primary"},(0,v.__)("Attempt Block Recovery"))],secondaryActions:d},(0,v.__)("This block contains unexpected or invalid content.")),l&&(0,c.createElement)(m.Modal,{title:(0,v.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,c.createElement)(pa,{block:t,onKeep:u.toHTML,onConvert:u.toBlocks,convertor:ma,convertButtonText:(0,v.__)("Convert to Blocks")})))}const ha=(0,c.createElement)(ca,{className:"block-editor-block-list__block-crash-warning"},(0,v.__)("This block has encountered an error and cannot be previewed.")),fa=()=>ha;class ba extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}const va=ba;var _a=n(773);const ka=function({clientId:e}){const[t,n]=(0,c.useState)(""),o=(0,g.useSelect)((t=>t(Go).getBlock(e)),[e]),{updateBlock:r}=(0,g.useDispatch)(Go);return(0,c.useEffect)((()=>{n((0,a.getBlockContent)(o))}),[o]),(0,c.createElement)(_a.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const l=(0,a.getBlockType)(o.name);if(!l)return;const i=(0,a.getBlockAttributes)(l,t,o.attributes),s=t||(0,a.getSaveContent)(l,i),[c]=t?(0,a.validateBlock)({...o,attributes:i,originalContent:s}):[!0];r(e,{attributes:i,originalContent:s,isValid:c}),t||n(s)},onChange:e=>n(e.target.value)})};var ya=n(9196),Ea=n.n(ya),wa=Object.defineProperty,Sa={};((e,t)=>{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})})(Sa,{assign:()=>os,colors:()=>es,createStringInterpolator:()=>Ya,skipAnimation:()=>ts,to:()=>Xa,willAdvance:()=>ns});var Ca=Ha(),xa=e=>Oa(e,Ca),Ba=Ha();xa.write=e=>Oa(e,Ba);var Ia=Ha();xa.onStart=e=>Oa(e,Ia);var Ta=Ha();xa.onFrame=e=>Oa(e,Ta);var Ma=Ha();xa.onFinish=e=>Oa(e,Ma);var Pa=[];xa.setTimeout=(e,t)=>{const n=xa.now()+t,o=()=>{const e=Pa.findIndex((e=>e.cancel==o));~e&&Pa.splice(e,1),Aa-=~e?1:0},r={time:n,handler:e,cancel:o};return Pa.splice(Na(n),0,r),Aa+=1,za(),r};var Na=e=>~(~Pa.findIndex((t=>t.time>e))||~Pa.length);xa.cancel=e=>{Ia.delete(e),Ta.delete(e),Ma.delete(e),Ca.delete(e),Ba.delete(e)},xa.sync=e=>{Da=!0,xa.batchedUpdates(e),Da=!1},xa.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,xa.onStart(n)}return o.handler=e,o.cancel=()=>{Ia.delete(n),t=null},o};var La="undefined"!=typeof window?window.requestAnimationFrame:()=>{};xa.use=e=>La=e,xa.now="undefined"!=typeof performance?()=>performance.now():Date.now,xa.batchedUpdates=e=>e(),xa.catch=console.error,xa.frameLoop="always",xa.advance=()=>{"demand"!==xa.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fa()};var Ra=-1,Aa=0,Da=!1;function Oa(e,t){Da?(t.delete(e),e(0)):(t.add(e),za())}function za(){Ra<0&&(Ra=0,"demand"!==xa.frameLoop&&La(Va))}function Va(){~Ra&&(La(Va),xa.batchedUpdates(Fa))}function Fa(){const e=Ra;Ra=xa.now();const t=Na(Ra);t&&(Ga(Pa.splice(0,t),(e=>e.handler())),Aa-=t),Aa?(Ia.flush(),Ca.flush(e?Math.min(64,Ra-e):16.667),Ta.flush(),Ba.flush(),Ma.flush()):Ra=-1}function Ha(){let e=new Set,t=e;return{add(n){Aa+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Aa-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Aa-=t.size,Ga(t,(t=>t(n)&&e.add(t))),Aa+=e.size,t=e)}}}function Ga(e,t){e.forEach((e=>{try{t(e)}catch(e){xa.catch(e)}}))}function Ua(){}var $a={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ja(e,t){if($a.arr(e)){if(!$a.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Ka(e,t,n){if($a.arr(e))for(let o=0;o$a.und(e)?[]:$a.arr(e)?e:[e];function Za(e,t){if(e.size){const n=Array.from(e);e.clear(),Wa(n,t)}}var Ya,Xa,Qa=(e,...t)=>Za(e,(e=>e(...t))),Ja=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),es=null,ts=!1,ns=Ua,os=e=>{e.to&&(Xa=e.to),e.now&&(xa.now=e.now),void 0!==e.colors&&(es=e.colors),null!=e.skipAnimation&&(ts=e.skipAnimation),e.createStringInterpolator&&(Ya=e.createStringInterpolator),e.requestAnimationFrame&&xa.use(e.requestAnimationFrame),e.batchedUpdates&&(xa.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ns=e.willAdvance),e.frameLoop&&(xa.frameLoop=e.frameLoop)},rs=new Set,ls=[],is=[],as=0,ss={get idle(){return!rs.size&&!ls.length},start(e){as>e.priority?(rs.add(e),xa.onStart(cs)):(us(e),xa(ps))},advance:ps,sort(e){if(as)xa.onFrame((()=>ss.sort(e)));else{const t=ls.indexOf(e);~t&&(ls.splice(t,1),ds(e))}},clear(){ls=[],rs.clear()}};function cs(){rs.forEach(us),rs.clear(),xa(ps)}function us(e){ls.includes(e)||ds(e)}function ds(e){ls.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(ls,(t=>t.priority>e.priority)),0,e)}function ps(e){const t=is;for(let n=0;n0}var ms="[-+]?\\d*\\.?\\d+",gs=ms+"%";function hs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var fs=new RegExp("rgb"+hs(ms,ms,ms)),bs=new RegExp("rgba"+hs(ms,ms,ms,ms)),vs=new RegExp("hsl"+hs(ms,gs,gs)),_s=new RegExp("hsla"+hs(ms,gs,gs,ms)),ks=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ys=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Es=/^#([0-9a-fA-F]{6})$/,ws=/^#([0-9a-fA-F]{8})$/;function Ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cs(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Ss(r,o,e+1/3),i=Ss(r,o,e),a=Ss(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function xs(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Bs(e){return(parseFloat(e)%360+360)%360/360}function Is(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ts(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ms(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Es.exec(e))?parseInt(t[1]+"ff",16)>>>0:es&&void 0!==es[e]?es[e]:(t=fs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|255)>>>0:(t=bs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|Is(t[4]))>>>0:(t=ks.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ws.exec(e))?parseInt(t[1],16)>>>0:(t=ys.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vs.exec(e))?(255|Cs(Bs(t[1]),Ts(t[2]),Ts(t[3])))>>>0:(t=_s.exec(e))?(Cs(Bs(t[1]),Ts(t[2]),Ts(t[3]))|Is(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ps=(e,t,n)=>{if($a.fun(e))return e;if($a.arr(e))return Ps({range:e,output:t,extrapolate:n});if($a.str(e.output[0]))return Ya(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",a=o.extrapolateRight||o.extrapolate||"extend",s=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,a,s){let c=s?s(e):e;if(cn){if("identity"===a)return c;"clamp"===a&&(c=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o;return c}(e,l[t],l[t+1],r[t],r[t+1],s,i,a,o.map)}};var Ns=1.70158,Ls=1.525*Ns,Rs=Ns+1,As=2*Math.PI/3,Ds=2*Math.PI/4.5,Os=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},zs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Rs*e*e*e-Ns*e*e,easeOutBack:e=>1+Rs*Math.pow(e-1,3)+Ns*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ls)/2:(Math.pow(2*e-2,2)*((Ls+1)*(2*e-2)+Ls)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*As),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*As)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ds)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ds)/2+1,easeInBounce:e=>1-Os(1-e),easeOutBounce:Os,easeInOutBounce:e=>e<.5?(1-Os(1-2*e))/2:(1+Os(2*e-1))/2,steps:(e,t="end")=>n=>{const o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},Vs=Symbol.for("FluidValue.get"),Fs=Symbol.for("FluidValue.observers"),Hs=e=>Boolean(e&&e[Vs]),Gs=e=>e&&e[Vs]?e[Vs]():e,Us=e=>e[Fs]||null;function $s(e,t){const n=e[Fs];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var js=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ws(this,e)}},Ws=(e,t)=>Ys(e,Vs,t);function Ks(e,t){if(e[Vs]){let n=e[Fs];n||Ys(e,Fs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function qs(e,t){const n=e[Fs];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Fs]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Zs,Ys=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Js=new RegExp(`(${Xs.source})(%|[a-z]+)`,"i"),ec=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nc=e=>{const[t,n]=oc(e);if(!t||Ja())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&tc.test(n)?nc(n):n||e},oc=e=>{const t=tc.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]},rc=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,lc=e=>{Zs||(Zs=es?new RegExp(`(${Object.keys(es).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Gs(e).replace(tc,nc).replace(Qs,Ms).replace(Zs,Ms))),n=t.map((e=>e.match(Xs).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),r=o.map((t=>Ps({...e,output:t})));return e=>{const n=!Js.test(t[0])&&t.find((e=>Js.test(e)))?.replace(Xs,"");let o=0;return t[0].replace(Xs,(()=>`${r[o++](e)}${n||""}`)).replace(ec,rc)}},ic="react-spring: ",ac=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ic}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},sc=ac(console.warn);var cc=ac(console.warn);function uc(e){return $a.str(e)&&("#"==e[0]||/\d/.test(e)||!Ja()&&tc.test(e)||e in(es||{}))}var dc=Ja()?ya.useEffect:ya.useLayoutEffect,pc=()=>{const e=(0,ya.useRef)(!1);return dc((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function mc(){const e=(0,ya.useState)()[1],t=pc();return()=>{t.current&&e(Math.random())}}var gc=e=>(0,ya.useEffect)(e,hc),hc=[];function fc(e){const t=(0,ya.useRef)();return(0,ya.useEffect)((()=>{t.current=e})),t.current}var bc=Symbol.for("Animated:node"),vc=e=>e&&e[bc],_c=(e,t)=>{return n=e,o=bc,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},kc=e=>e&&e[bc]&&e[bc].getPayload(),yc=class{constructor(){_c(this,this)}getPayload(){return this.payload||[]}},Ec=class extends yc{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ec(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $a.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,$a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},wc=class extends Ec{constructor(e){super(0),this._string=null,this._toString=Ps({output:[e,e]})}static create(e){return new wc(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if($a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ps({output:[this.getValue(),e]})),this._value=0,super.reset()}},Sc={dependencies:null},Cc=class extends yc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ka(this.source,((n,o)=>{var r;(r=n)&&r[bc]===r?t[o]=n.getValue(e):Hs(n)?t[o]=Gs(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wa(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ka(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Sc.dependencies&&Hs(e)&&Sc.dependencies.add(e);const t=kc(e);t&&Wa(t,(e=>this.add(e)))}},xc=class extends Cc{constructor(e){super(e)}static create(e){return new xc(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Bc)),!0)}};function Bc(e){return(uc(e)?wc:Ec).create(e)}function Ic(e){const t=vc(e);return t?t.constructor:$a.arr(e)?xc:uc(e)?wc:Ec}var Tc=(e,t)=>{const n=!$a.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ya.forwardRef)(((o,r)=>{const l=(0,ya.useRef)(null),i=n&&(0,ya.useCallback)((e=>{l.current=function(e,t){e&&($a.fun(e)?e(t):e.current=t);return t}(r,e)}),[r]),[a,s]=function(e,t){const n=new Set;Sc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Cc(e),Sc.dependencies=null,[e,n]}(o,t),c=mc(),u=()=>{const e=l.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&c()},d=new Mc(u,s),p=(0,ya.useRef)();dc((()=>(p.current=d,Wa(s,(e=>Ks(e,d))),()=>{p.current&&(Wa(p.current.deps,(e=>qs(e,p.current))),xa.cancel(p.current.update))}))),(0,ya.useEffect)(u,[]),gc((()=>()=>{const e=p.current;Wa(e.deps,(t=>qs(t,e)))}));const m=t.getComponentProps(a.getValue());return ya.createElement(e,{...m,ref:i})}))},Mc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&xa.write(this.update)}};var Pc=Symbol.for("AnimatedComponent"),Nc=e=>$a.str(e)?e:e&&$a.str(e.displayName)?e.displayName:$a.fun(e)&&e.name||null;function Lc(e,...t){return $a.fun(e)?e(...t):e}var Rc=(e,t)=>!0===e||!!(t&&e&&($a.fun(e)?e(t):qa(e).includes(t))),Ac=(e,t)=>$a.obj(e)?t&&e[t]:e,Dc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Oc=e=>e,zc=(e,t=Oc)=>{let n=Vc;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);$a.und(n)||(o[r]=n)}return o},Vc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Fc={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Hc(e){const t=function(e){const t={};let n=0;if(Ka(e,((e,o)=>{Fc[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ka(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Gc(e){return e=Gs(e),$a.arr(e)?e.map(Gc):uc(e)?Sa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Uc(e){for(const t in e)return!0;return!1}function $c(e){return $a.fun(e)||$a.arr(e)&&$a.obj(e[0])}function jc(e,t){e.ref?.delete(e),t?.delete(e)}function Wc(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Kc={tension:170,friction:26,mass:1,damping:1,easing:zs.linear,clamp:!1};function qc(e,t){if($a.und(t.decay)){const n=!$a.und(t.tension)||!$a.und(t.friction);!n&&$a.und(t.frequency)&&$a.und(t.damping)&&$a.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Zc=[];function Yc(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,a)=>{let s,c,u=Rc(n.cancel??o?.cancel,t);if(u)m();else{$a.und(n.pause)||(r.paused=Rc(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Rc(e,t)),s=Lc(n.delay||0,t),e?(r.resumeQueue.add(p),l.pause()):(l.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),s=c.time-xa.now()}function p(){s>0&&!Sa.skipAnimation?(r.delayed=!0,c=xa.setTimeout(m,s),r.pauseQueue.add(d),r.timeouts.add(c)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{l.start({...n,callId:e,cancel:u},i)}catch(e){a(e)}}}))}var Xc=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?eu(e.get()):t.every((e=>e.noop))?Qc(e.get()):Jc(e.get(),t.every((e=>e.finished))),Qc=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jc=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),eu=e=>({value:e,cancelled:!0,finished:!1});function tu(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:a,promise:s}=n;return l||e!==a||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=zc(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&eu(o)||r!==n.asyncId&&Jc(o,!1);if(t)throw e.result=t,d(e),e},g=(e,t)=>{const l=new ou,i=new ru;return(async()=>{if(Sa.skipAnimation)throw nu(n),i.result=Jc(o,!1),d(i),i;m(l);const a=$a.obj(e)?{...e}:{...t,to:e};a.parentId=r,Ka(c,((e,t)=>{$a.und(a[t])&&(a[t]=e)}));const s=await o.start(a);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let h;if(Sa.skipAnimation)return nu(n),Jc(o,!1);try{let t;t=$a.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,o.stop.bind(o))),await Promise.all([t.then(u),p]),h=Jc(o.get(),!0,!1)}catch(e){if(e instanceof ou)h=e.result;else{if(!(e instanceof ru))throw e;h=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?a:void 0,n.promise=l?s:void 0)}return $a.fun(i)&&xa.batchedUpdates((()=>{i(h,o,o.item)})),h})():s}function nu(e,t){Za(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var ou=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ru=class extends Error{constructor(){super("SkipAnimationSignal")}},lu=e=>e instanceof au,iu=1,au=class extends js{constructor(){super(...arguments),this.id=iu++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vc(this);return e&&e.getValue()}to(...e){return Sa.to(this,e)}interpolate(...e){return sc(`${ic}The "interpolate" function is deprecated in v9 (use "to" instead)`),Sa.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$s(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ss.sort(this),$s(this,{type:"priority",parent:this,priority:e})}},su=Symbol.for("SpringPhase"),cu=e=>(1&e[su])>0,uu=e=>(2&e[su])>0,du=e=>(4&e[su])>0,pu=(e,t)=>t?e[su]|=3:e[su]&=-3,mu=(e,t)=>t?e[su]|=4:e[su]&=-5,gu=class extends au{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Zc,this.toValues=null,this.fromValues=Zc,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Kc)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$a.und(e)||!$a.und(t)){const n=$a.obj(e)?{...e}:{...t,from:e};$a.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(uu(this)||this._state.asyncTo)||du(this)}get goal(){return Gs(this.animation.to)}get velocity(){const e=vc(this);return e instanceof Ec?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return cu(this)}get isAnimating(){return uu(this)}get isPaused(){return du(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{toValues:r}=o;const{config:l}=o,i=kc(o.to);!i&&Hs(o.to)&&(r=qa(Gs(o.to))),o.values.forEach(((a,s)=>{if(a.done)return;const c=a.constructor==wc?1:i?i[s].lastPosition:r[s];let u=o.immediate,d=c;if(!u){if(d=a.lastPosition,l.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=o.fromValues[s],r=null!=a.v0?a.v0:a.v0=$a.arr(l.velocity)?l.velocity[s]:l.velocity;let i;const p=l.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if($a.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);d=n+r/(1-e)*(1-o),u=Math.abs(a.lastPosition-d)<=p,i=r*o}else{i=null==a.lastVelocity?r:a.lastVelocity;const t=l.restVelocity||p/10,o=l.clamp?0:l.bounce,s=!$a.und(o),m=n==c?a.v0>0:nt,g||(u=Math.abs(c-d)<=p,!u));++e){s&&(h=d==c||d>c==m,h&&(i=-i*o,d=c));i+=(1e-6*-l.tension*(d-c)+.001*-l.friction*i)/l.mass*f,d+=i*f}}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,a.durationProgress>0&&(a.elapsedTime=l.duration*a.durationProgress,t=a.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,a.durationProgress=o),d=n+l.easing(o)*(c-n),i=(d-a.lastPosition)/e,u=1==o}a.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[s].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(d,l.round)&&(n=!0)}));const a=vc(this),s=a.getValue();if(t){const e=Gs(o.to);s===e&&!n||l.decay?n&&l.decay&&this._onChange(s):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return xa.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(uu(this)){const{to:e,config:t}=this.animation;xa.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return $a.und(e)?(n=this.queue||[],this.queue=[]):n=[$a.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Xc(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nu(this._state,e&&this._lastCallId),xa.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=$a.obj(n)?n[t]:n,(null==n||$c(n))&&(n=void 0),o=$a.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return cu(this)||(e.reverse&&([n,o]=[o,n]),o=Gs(o),$a.und(o)?vc(this)||this._set(n):this._set(o)),r}_update({...e},t){const{key:n,defaultProps:o}=this;e.default&&Object.assign(o,zc(e,((e,t)=>/^on/.test(t)?Ac(e,n):e))),yu(this,e,"onProps"),Eu(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Yc(++this._lastCallId,{key:n,props:e,defaultProps:o,state:l,actions:{pause:()=>{du(this)||(mu(this,!0),Qa(l.pauseQueue),Eu(this,"onPause",Jc(this,hu(this,this.animation.to)),this))},resume:()=>{du(this)&&(mu(this,!1),uu(this)&&this._resume(),Qa(l.resumeQueue),Eu(this,"onResume",Jc(this,hu(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=fu(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(eu(this));const o=!$a.und(e.to),r=!$a.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(eu(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:a}=this,{to:s,from:c}=a;let{to:u=s,from:d=c}=e;!r||o||t.default&&!$a.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!ja(d,c);p&&(a.from=d),d=Gs(d);const m=!ja(u,s);m&&this._focus(u);const g=$c(t.to),{config:h}=a,{decay:f,velocity:b}=h;(o||r)&&(h.velocity=0),t.config&&!g&&function(e,t,n){n&&(qc(n={...n},t),t={...n,...t}),qc(e,t),Object.assign(e,t);for(const t in Kc)null==e[t]&&(e[t]=Kc[t]);let{frequency:o,damping:r}=e;const{mass:l}=e;$a.und(o)||(o<.01&&(o=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/o,2)*l,e.friction=4*Math.PI*r*l/o)}(h,Lc(t.config,l),t.config!==i.config?Lc(i.config,l):void 0);let v=vc(this);if(!v||$a.und(u))return n(Jc(this,!0));const _=$a.und(t.reset)?r&&!t.default:!$a.und(d)&&Rc(t.reset,l),k=_?d:this.get(),y=Gc(u),E=$a.num(y)||$a.arr(y)||uc(y),w=!g&&(!E||Rc(i.immediate||t.immediate,l));if(m){const e=Ic(u);if(e!==v.constructor){if(!w)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(y)}}const S=v.constructor;let C=Hs(u),x=!1;if(!C){const e=_||!cu(this)&&p;(m||e)&&(x=ja(Gc(k),y),C=!x),(ja(a.immediate,w)||w)&&ja(h.decay,f)&&ja(h.velocity,b)||(C=!0)}if(x&&uu(this)&&(a.changed&&!_?C=!0:C||this._stop(s)),!g&&((C||Hs(s))&&(a.values=v.getPayload(),a.toValues=Hs(u)?null:S==wc?[1]:qa(y)),a.immediate!=w&&(a.immediate=w,w||_||this._set(s)),C)){const{onRest:e}=a;Wa(ku,(e=>yu(this,t,e)));const o=Jc(this,hu(this,s));Qa(this._pendingCalls,o),this._pendingCalls.add(n),a.changed&&xa.batchedUpdates((()=>{a.changed=!_,e?.(o,this),_?Lc(i.onRest,o):a.onStart?.(o,this)}))}_&&this._set(k),g?n(tu(t.to,t,this._state,this)):C?this._start():uu(this)&&!m?this._pendingCalls.add(n):n(Qc(k))}_focus(e){const t=this.animation;e!==t.to&&(Us(this)&&this._detach(),t.to=e,Us(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Hs(t)&&(Ks(t,this),lu(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Hs(e)&&qs(e,this)}_set(e,t=!0){const n=Gs(e);if(!$a.und(n)){const e=vc(this);if(!e||!ja(n,e.getValue())){const o=Ic(n);e&&e.constructor==o?e.setValue(n):_c(this,o.create(n)),e&&xa.batchedUpdates((()=>{this._onChange(n,t)}))}}return vc(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Eu(this,"onStart",Jc(this,hu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Lc(this.animation.onChange,e,this)),Lc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;vc(this).reset(Gs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),uu(this)||(pu(this,!0),du(this)||this._resume())}_resume(){Sa.skipAnimation?this.finish():ss.start(this)}_stop(e,t){if(uu(this)){pu(this,!1);const n=this.animation;Wa(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$s(this,{type:"idle",parent:this});const o=t?eu(this.get()):Jc(this.get(),hu(this,e??n.to));Qa(this._pendingCalls,o),n.changed&&(n.changed=!1,Eu(this,"onRest",o,this))}}};function hu(e,t){const n=Gc(t);return ja(Gc(e.get()),n)}function fu(e,t=e.loop,n=e.to){const o=Lc(t);if(o){const r=!0!==o&&Hc(o),l=(r||e).reverse,i=!r||r.reset;return bu({...e,loop:t,default:!1,pause:void 0,to:!l||$c(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function bu(e){const{to:t,from:n}=e=Hc(e),o=new Set;return $a.obj(t)&&_u(t,o),$a.obj(n)&&_u(n,o),e.keys=o.size?Array.from(o):null,e}function vu(e){const t=bu(e);return $a.und(t.default)&&(t.default=zc(t)),t}function _u(e,t){Ka(e,((e,n)=>null!=e&&t.add(n)))}var ku=["onStart","onRest","onChange","onPause","onResume"];function yu(e,t,n){e.animation[n]=t[n]!==Dc(t,n)?Ac(t[n],e.key):void 0}function Eu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var wu=["onStart","onChange","onRest"],Su=1,Cu=class{constructor(e,t){this.id=Su++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];$a.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(bu(e)),this}start(e){let{queue:t}=this;return e?t=qa(e).map(bu):this.queue=[],this._flush?this._flush(this,t):(Nu(this,t),xu(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Wa(qa(t),(t=>n[t].stop(!!e)))}else nu(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if($a.und(e))this.start({pause:!0});else{const t=this.springs;Wa(qa(e),(e=>t[e].pause()))}return this}resume(e){if($a.und(e))this.start({pause:!1});else{const t=this.springs;Wa(qa(e),(e=>t[e].resume()))}return this}each(e){Ka(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,Za(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&Za(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,Za(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}xa.onFrame(this._onFrame)}};function xu(e,t){return Promise.all(t.map((t=>Bu(e,t)))).then((t=>Xc(e,t)))}async function Bu(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:a,onResolve:s}=t,c=$a.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=$a.arr(r)||$a.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Wa(wu,(n=>{const o=t[n];if($a.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Qa(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Dc(t,"cancel");(u||m&&d.asyncId)&&p.push(Yc(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ua,resume:Ua,start(t,n){m?(nu(d,e._lastAsyncId),n(eu(e))):(t.onRest=a,n(tu(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const g=Xc(e,await Promise.all(p));if(i&&g.finished&&(!n||!g.noop)){const n=fu(t,i,r);if(n)return Nu(e,[n]),Bu(e,n,!0)}return s&&xa.batchedUpdates((()=>s(g,e,e.item))),g}function Iu(e,t){const n={...e.springs};return t&&Wa(qa(t),(e=>{$a.und(e.keys)&&(e=bu(e)),$a.obj(e.to)||(e={...e,to:void 0}),Pu(n,e,(e=>Mu(e)))})),Tu(e,n),n}function Tu(e,t){Ka(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ks(t,e))}))}function Mu(e,t){const n=new gu;return n.key=e,t&&Ks(n,t),n}function Pu(e,t,n){t.keys&&Wa(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Nu(e,t){Wa(t,(t=>{Pu(e.springs,t,(t=>Mu(t,e)))}))}var Lu,Ru,Au=({children:e,...t})=>{const n=(0,ya.useContext)(Du),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,ya.useState)((()=>({inputs:t,result:e()}))),o=(0,ya.useRef)(),r=o.current;let l=r;if(l){const n=Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:o,immediate:r})),[o,r]);const{Provider:l}=Du;return ya.createElement(l,{value:t},e)},Du=(Lu=Au,Ru={},Object.assign(Lu,ya.createContext(Ru)),Lu.Provider._context=Lu,Lu.Consumer._context=Lu,Lu);Au.Provider=Du.Provider,Au.Consumer=Du.Consumer;var Ou=()=>{const e=[],t=function(t){cc(`${ic}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Wa(e,((e,r)=>{if($a.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Wa(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Wa(e,(e=>e.resume(...arguments))),this},t.set=function(t){Wa(e,((e,n)=>{const o=$a.fun(t)?t(n,e):t;o&&e.set(o)}))},t.start=function(t){const n=[];return Wa(e,((e,o)=>{if($a.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Wa(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Wa(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return $a.fun(e)?e(n,t):e};return t._getProps=n,t};function zu(e,t,n){const o=$a.fun(t)&&t;o&&!n&&(n=[]);const r=(0,ya.useMemo)((()=>o||3==arguments.length?Ou():void 0),[]),l=(0,ya.useRef)(0),i=mc(),a=(0,ya.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Iu(e,t);return l.current>0&&!a.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?xu(e,t):new Promise((o=>{Tu(e,n),a.queue.push((()=>{o(xu(e,t))})),i()}))}})),[]),s=(0,ya.useRef)([...a.ctrls]),c=[],u=fc(e)||0;function d(e,n){for(let r=e;r{Wa(s.current.slice(e,u),(e=>{jc(e,r),e.stop(!0)})),s.current.length=e,d(u,e)}),[e]),(0,ya.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=s.current.map(((e,t)=>Iu(e,c[t]))),m=(0,ya.useContext)(Au),g=fc(m),h=m!==g&&Uc(m);dc((()=>{l.current++,a.ctrls=s.current;const{queue:e}=a;e.length&&(a.queue=[],Wa(e,(e=>e()))),Wa(s.current,((e,t)=>{r?.add(e),h&&e.start({default:m});const n=c[t];n&&(Wc(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),gc((()=>()=>{Wa(a.ctrls,(e=>e.stop(!0)))}));const f=p.map((e=>({...e})));return r?[f,r]:f}function Vu(e,t){const n=$a.fun(e),[[o],r]=zu(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[o,r]:o}var Fu=class extends au{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ps(...t);const n=this._get(),o=Ic(n);_c(this,o.create(n))}advance(e){const t=this._get();ja(t,this.get())||(vc(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Gu(this._active)&&Uu(this)}_get(){const e=$a.arr(this.source)?this.source.map(Gs):qa(Gs(this.source));return this.calc(...e)}_start(){this.idle&&!Gu(this._active)&&(this.idle=!1,Wa(kc(this),(e=>{e.done=!1})),Sa.skipAnimation?(xa.batchedUpdates((()=>this.advance())),Uu(this)):ss.start(this))}_attach(){let e=1;Wa(qa(this.source),(t=>{Hs(t)&&Ks(t,this),lu(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Wa(qa(this.source),(e=>{Hs(e)&&qs(e,this)})),this._active.clear(),Uu(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=qa(this.source).reduce(((e,t)=>Math.max(e,(lu(t)?t.priority:0)+1)),0))}};function Hu(e){return!1!==e.idle}function Gu(e){return!e.size||Array.from(e).every(Hu)}function Uu(e){e.idle||(e.idle=!0,Wa(kc(e),(e=>{e.done=!0})),$s(e,{type:"idle",parent:e}))}Sa.assign({createStringInterpolator:lc,to:(e,t)=>new Fu(e,t)});ss.advance;const $u=window.ReactDOM;var ju=/^--/;function Wu(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||ju.test(e)||qu.hasOwnProperty(e)&&qu[e]?(""+t).trim():t+"px"}var Ku={};var qu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zu=["Webkit","Ms","Moz","O"];qu=Object.keys(qu).reduce(((e,t)=>(Zu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qu);var Yu=/^(matrix|translate|scale|rotate|skew)/,Xu=/^(translate)/,Qu=/^(rotate|skew)/,Ju=(e,t)=>$a.num(e)&&0!==e?e+t:e,ed=(e,t)=>$a.arr(e)?e.every((e=>ed(e,t))):$a.num(e)?e===t:parseFloat(e)===t,td=class extends Cc{constructor({x:e,y:t,z:n,...o}){const r=[],l=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),l.push((e=>[`translate3d(${e.map((e=>Ju(e,"px"))).join(",")})`,ed(e,0)]))),Ka(o,((e,t)=>{if("transform"===t)r.push([e||""]),l.push((e=>[e,""===e]));else if(Yu.test(t)){if(delete o[t],$a.und(e))return;const n=Xu.test(t)?"px":Qu.test(t)?"deg":"";r.push(qa(e)),l.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Ju(r,n)})`,ed(r,0)]:e=>[`${t}(${e.map((e=>Ju(e,n))).join(",")})`,ed(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new nd(r,l)),super(o)}},nd=class extends js{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Wa(this.inputs,((n,o)=>{const r=Gs(n[0]),[l,i]=this.transforms[o]($a.arr(r)?r:n.map(Gs));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&Ks(e,this)))))}observerRemoved(e){0==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&qs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),$s(this,e)}};Sa.assign({batchedUpdates:$u.unstable_batchedUpdates,createStringInterpolator:lc,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var od=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cc(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=Nc(e)||"Anonymous";return(e=$a.str(e)?l[e]||(l[e]=Tc(e,r)):e[Pc]||(e[Pc]=Tc(e,r))).displayName=`Animated(${t})`,e};return Ka(e,((t,n)=>{$a.arr(e)&&(n=Nc(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:l,scrollLeft:i,viewBox:a,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:Ku[t]||(Ku[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(const t in o)if(o.hasOwnProperty(t)){const n=Wu(t,o[t]);ju.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==l&&(e.scrollTop=l),void 0!==i&&(e.scrollLeft=i),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new td(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rd=od.animated;const ld=e=>e+1,id=e=>({top:e.offsetTop,left:e.offsetLeft});const ad=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:o}){const r=(0,c.useRef)(),l=(0,p.useReducedMotion)()||!n,[i,a]=(0,c.useReducer)(ld,0),[s,u]=(0,c.useReducer)(ld,0),[d,m]=(0,c.useState)({x:0,y:0}),g=(0,c.useMemo)((()=>r.current?id(r.current):null),[o]),h=(0,c.useMemo)((()=>{if(!t||!r.current)return()=>{};const e=(0,ea.getScrollContainer)(r.current);if(!e)return()=>{};const n=r.current.getBoundingClientRect();return()=>{const t=r.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}}),[o,t]);return(0,c.useLayoutEffect)((()=>{i&&u()}),[i]),(0,c.useLayoutEffect)((()=>{if(!g)return;if(l)return void h();r.current.style.transform=void 0;const e=id(r.current);a(),m({x:Math.round(g.left-e.left),y:Math.round(g.top-e.top)})}),[o]),Vu({from:{x:d.x,y:d.y},to:{x:0,y:0},reset:i!==s,config:{mass:5,tension:2e3,friction:200},immediate:l,onChange:function({value:t}){if(!r.current)return;let{x:n,y:o}=t;n=Math.round(n),o=Math.round(o);const l=0===n&&0===o;r.current.style.transformOrigin="center center",r.current.style.transform=l?void 0:`translate3d(${n}px,${o}px,0)`,r.current.style.zIndex=e?"1":"",h()}}),r},sd=".block-editor-block-list__block",cd=".block-list-appender",ud=".block-editor-button-block-appender";function dd(e,t){return t.closest([sd,cd,ud].join(","))===e}function pd(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(sd);return t?t.id.slice(6):void 0}function md(e){const t=(0,c.useRef)(),n=function(e){return(0,g.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:o,isBlockSelected:r}=t(Go);if(r(e)&&"edit"===o())return n()}),[e])}(e),{isBlockSelected:o,isMultiSelecting:r}=(0,g.useSelect)(Go);return(0,c.useEffect)((()=>{if(!o(e)||r())return;if(null==n)return;if(!t.current)return;const{ownerDocument:l}=t.current;if(dd(t.current,l.activeElement))return;const i=ea.focus.tabbable.find(t.current).filter((e=>(0,ea.isTextField)(e))),a=-1===n,s=i[a?i.length-1:0]||t.current;if(dd(t.current,s)){if(!t.current.getAttribute("contenteditable")){const e=ea.focus.tabbable.findNext(t.current);if(e&&dd(t.current,e)&&(0,ea.isFormElement)(e))return void e.focus()}(0,ea.placeCaretAtHorizontalEdge)(s,a)}else t.current.focus()}),[n,e]),t}function gd(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function hd(){const e=(0,g.useSelect)((e=>{const{getSettings:t}=e(Go);return t().outlineMode}),[]);return(0,p.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",gd),t.addEventListener("mouseover",gd),()=>{t.removeEventListener("mouseout",gd),t.removeEventListener("mouseover",gd),t.classList.remove("is-hovered")}}),[e])}function fd(e){return(0,g.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:r,isBlockMultiSelected:l,getBlockName:i,getSettings:s,hasSelectedInnerBlock:c,isTyping:u,__unstableIsFullySelected:p,__unstableSelectionHasUnmergeableBlock:m}=t(Go),{outlineMode:g}=s(),h=n(e),f=r(e),b=i(e),v=c(e,!0),_=l(e);return d()({"is-selected":f,"is-highlighted":o(e),"is-multi-selected":_,"is-partially-selected":_&&!p()&&!m(),"is-reusable":(0,a.isReusableBlock)((0,a.getBlockType)(b)),"is-dragging":h,"has-child-selected":v,"remove-outline":f&&g&&u()})}),[e])}function bd(e){return(0,g.useSelect)((t=>{const n=t(Go).getBlockName(e),o=(0,a.getBlockType)(n);if(o?.apiVersion>1)return(0,a.getBlockDefaultClassName)(n)}),[e])}function vd(e){return(0,g.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Go),r=o(e);if(!r?.className)return;const l=(0,a.getBlockType)(n(e));return l?.apiVersion>1?r.className:void 0}),[e])}function _d(e){return(0,g.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(Go);if(!i(e))return;const a=n();return a?d()("is-block-moving-mode",{"can-insert-moving-block":o(r(a),l(e))}):void 0}),[e])}function kd(e){const{isBlockSelected:t}=(0,g.useSelect)(Go),{selectBlock:n,selectionChange:o}=(0,g.useDispatch)(Go);return(0,p.useRefEffect)((r=>{function l(l){r.parentElement.closest('[contenteditable="true"]')||(t(e)?l.target.isContentEditable||o(e):dd(r,l.target)&&n(e))}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}const yd=window.wp.keycodes;function Ed(e){const t=(0,g.useSelect)((t=>t(Go).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,g.useSelect)(Go),{insertDefaultBlock:r,removeBlock:l}=(0,g.useDispatch)(Go);return(0,p.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",a),i.addEventListener("dragstart",s),()=>{i.removeEventListener("keydown",a),i.removeEventListener("dragstart",s)};function a(t){const{keyCode:a,target:s}=t;a!==yd.ENTER&&a!==yd.BACKSPACE&&a!==yd.DELETE||s!==i||(0,ea.isTextField)(s)||(t.preventDefault(),a===yd.ENTER?r({},n(e),o(e)+1):l(e))}function s(e){e.preventDefault()}}),[e,t,n,o,r,l])}function wd(e){const{isNavigationMode:t,isBlockSelected:n}=(0,g.useSelect)(Go),{setNavigationMode:o,selectBlock:r}=(0,g.useDispatch)(Go);return(0,p.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}const Sd=(0,c.createContext)({refs:new Map,callbacks:new Map});function Cd({children:e}){const t=(0,c.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,c.createElement)(Sd.Provider,{value:t},e)}function xd(e){const{refs:t,callbacks:n}=(0,c.useContext)(Sd),o=(0,c.useRef)();return(0,c.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,p.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Bd(e){const{refs:t}=(0,c.useContext)(Sd),n=(0,c.useRef)();return n.current=e,(0,c.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function Id(e){const{callbacks:t}=(0,c.useContext)(Sd),n=Bd(e),[o,r]=(0,c.useState)(null);return(0,c.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function Td(){const e=(0,c.useContext)(Zh);return(0,p.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Md(e){return(0,g.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(Go);return n(e)}),[e])}const Pd=200;function Nd(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:l}=(0,c.useContext)(Ci),{index:i,mode:s,name:u,blockApiVersion:m,blockTitle:h,isPartOfSelection:f,adjustScrolling:b,enableAnimation:_,isSubtreeDisabled:k}=(0,g.useSelect)((e=>{const{getBlockAttributes:t,getBlockIndex:o,getBlockMode:r,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:c,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:p,isBlockSubtreeDisabled:m}=Fo(e(Go)),{getActiveBlockVariation:g}=e(a.store),h=c(n),f=u(n)||d(n),b=l(n),v=(0,a.getBlockType)(b),_=g(b,t(n));return{index:o(n),mode:r(n),name:b,blockApiVersion:v?.apiVersion||1,blockTitle:_?.title||v?.title,isPartOfSelection:h||f,adjustScrolling:h||p(n),enableAnimation:!i()&&s()<=Pd,isSubtreeDisabled:m(n)}}),[n]),y=Md(n),E=(0,v.sprintf)((0,v.__)("Block: %s"),h),w="html"!==s||t?"":"-visual",S=(0,p.useMergeRefs)([e.ref,md(n),xd(n),kd(n),Ed(n),wd(n),hd(),Td(),ad({isSelected:f,adjustScrolling:b,enableAnimation:_,triggerAnimationOnChange:i}),(0,p.useDisabled)({isDisabled:!y})]),C=Ko();return m<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{tabIndex:0,...r,...e,ref:S,id:`block-${n}${w}`,role:"document","aria-label":E,"data-block":n,"data-type":u,"data-title":h,inert:k?"true":void 0,className:d()(d()("block-editor-block-list__block",{"wp-block":!l,"has-block-overlay":y}),o,e.className,r.className,fd(n),bd(n),vd(n),_d(n)),style:{...r.style,...e.style}}}function Ld({children:e,isHtml:t,...n}){return(0,c.createElement)("div",{...Nd(n,{__unstableIsHtml:t})},e)}Nd.save=a.__unstableGetBlockProps;const Rd=(0,g.withSelect)(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:l,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:c}=e(Go),u=a(t),d=o(t),p=i(n),m=s(t,n),g=c(t,n),{name:h,attributes:f,isValid:b}=u||{};return{mode:r(t),isSelectionEnabled:l(),isLocked:!!p,canRemove:m,canMove:g,block:u,name:h,attributes:f,isValid:b,isSelected:d}})),Ad=(0,g.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:l,replaceBlocks:i,toggleSelection:s,__unstableMarkLastChangeAsPersistent:c,moveBlocksToPosition:u,removeBlock:d}=e(Go);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Go),l=r(),{clientId:i}=t,a=l.length?l:[i];o(a,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:l}=t,{getBlockIndex:i}=n.select(Go),a=i(o);r(e,a+1,l)},onMerge(e){const{clientId:o,rootClientId:i}=t,{getPreviousBlockClientId:s,getNextBlockClientId:c,getBlock:p,getBlockAttributes:m,getBlockName:g,getBlockOrder:h,getBlockIndex:f,getBlockRootClientId:b,canInsertBlockType:v}=n.select(Go);function _(e,t=!0){const o=b(e),l=h(e),[i]=l;1===l.length&&(0,a.isUnmodifiedBlock)(p(i))?d(e):n.batch((()=>{if(v(g(i),o))u([i],e,o,f(e));else{const n=(0,a.switchToBlockType)(p(i),(0,a.getDefaultBlockName)());n&&n.length&&(r(n,f(e),o,t),d(i,!1))}!h(e).length&&(0,a.isUnmodifiedBlock)(p(e))&&d(e,!1)}))}if(e){if(i){const e=c(i);if(e){if(g(i)!==g(e))return void l(i,e);{const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(h(e),e,i),d(e,!1)}))}}}const e=c(o);if(!e)return;h(e).length?_(e,!1):l(o,e)}else{const e=s(o);if(e)l(e,o);else if(i){const e=s(i);if(e&&g(i)===g(e)){const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(h(i),i,e),d(i,!1)}))}_(i)}}},onReplace(e,n,o){e.length&&!(0,a.isUnmodifiedDefaultBlock)(e[e.length-1])&&c(),i([t.clientId],e,n,o)},toggleSelection(e){s(e)}}})),Dd=(0,p.compose)(p.pure,Rd,Ad,(0,p.ifCondition)((({block:e})=>!!e)),(0,m.withFilters)("editor.BlockListBlock"))((function({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:l,isSelectionEnabled:i,className:s,__unstableLayoutClassNames:u,name:p,isValid:m,attributes:h,wrapperProps:f,setAttributes:b,onReplace:v,onInsertBlocksAfter:_,onMerge:k,toggleSelection:y}){var E;const{themeSupportsLayout:w,isTemporarilyEditingAsBlocks:S,blockEditingMode:C}=(0,g.useSelect)((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:o}=Fo(e(Go));return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===r,blockEditingMode:o(r)}}),[r]),{removeBlock:x}=(0,g.useDispatch)(Go),B=(0,c.useCallback)((()=>x(r)),[r]),I=di()||{};let T=(0,c.createElement)(aa,{name:p,isSelected:l,attributes:h,setAttributes:b,insertBlocksAfter:n?void 0:_,onReplace:o?v:void 0,onRemove:o?B:void 0,mergeBlocks:o?k:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:u,__unstableParentLayout:Object.keys(I).length?I:void 0});const M=(0,a.getBlockType)(p);"disabled"===C&&(f={...f,tabIndex:-1}),M?.getEditWrapperProps&&(f=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=d()(e.className,t.className)),e?.style&&t?.style&&(n.style={...e.style,...t.style}),n}(f,M.getEditWrapperProps(h)));const P=f&&!!f["data-align"]&&!w;let N;if(P&&(T=(0,c.createElement)("div",{className:"wp-block","data-align":f["data-align"]},T)),m)N="html"===t?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{display:"none"}},T),(0,c.createElement)(Ld,{isHtml:!0},(0,c.createElement)(ka,{clientId:r}))):M?.apiVersion>1?T:(0,c.createElement)(Ld,{...f},T);else{const t=e?(0,a.serializeRawBlock)(e):(0,a.getSaveContent)(M,h);N=(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(ga,{clientId:r}),(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(t)))}const{"data-align":L,...R}=null!==(E=f)&&void 0!==E?E:{},A={clientId:r,className:d()({"is-editing-disabled":"disabled"===C,"is-content-locked-temporarily-editing-as-blocks":S},L&&w&&`align${L}`,s),wrapperProps:R,isAligned:P},D=(0,c.useMemo)((()=>A),Object.values(A));return(0,c.createElement)(Ci.Provider,{value:D},(0,c.createElement)(va,{fallback:(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(fa,null))},N))})),Od=window.wp.htmlEntities,zd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),Vd=[(0,c.createInterpolateElement)((0,v.__)("While writing, you can press / to quickly insert new blocks."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Indent a list by pressing space at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,v.__)("Drag files into the editor to automatically insert media blocks."),(0,v.__)("Change a block's type by pressing the block icon on the toolbar.")];const Fd=function(){const[e]=(0,c.useState)(Math.floor(Math.random()*Vd.length));return(0,c.createElement)(m.Tip,null,Vd[e])},Hd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Gd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Ud=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));const $d=(0,c.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:Ud});const r=(0,c.createElement)(m.Icon,{icon:e&&e.src?e.src:e,context:o}),l=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,c.createElement)("span",{style:l,className:d()("block-editor-block-icon",n,{"has-colors":t})},r)}));const jd=function({title:e,icon:t,description:n,blockType:o,className:r}){o&&($()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const{parentNavBlockClientId:l}=(0,g.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Go);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=(0,g.useDispatch)(Go);return(0,c.createElement)("div",{className:d()("block-editor-block-card",r)},l&&(0,c.createElement)(m.Button,{onClick:()=>i(l),label:(0,v.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,v.isRTL)()?Hd:Gd,isSmall:!0}),(0,c.createElement)($d,{icon:t,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-block-card__content"},(0,c.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,c.createElement)("span",{className:"block-editor-block-card__description"},n)))},Wd=(0,p.createHigherOrderComponent)((e=>(0,g.withRegistry)((({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return(0,c.createElement)(e,{registry:n,...o});const[r,l]=(0,c.useState)(null);return(0,c.useEffect)((()=>{const e=(0,g.createRegistry)({},n);e.registerStore(Oo,Ho),l(e)}),[n]),r?(0,c.createElement)(g.RegistryProvider,{value:r},(0,c.createElement)(e,{registry:r,...o})):null}))),"withRegistryProvider"),Kd=()=>{};function qd({clientId:e=null,value:t,selection:n,onChange:o=Kd,onInput:r=Kd}){const l=(0,g.useRegistry)(),{resetBlocks:i,resetSelection:s,replaceInnerBlocks:u,selectBlock:d,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=l.dispatch(Go),{hasSelectedBlock:h,getBlockName:f,getBlocks:b,getSelectionStart:v,getSelectionEnd:_,getBlock:k}=l.select(Go),y=(0,g.useSelect)((t=>!e||t(Go).areInnerBlocksControlled(e)),[e]),E=(0,c.useRef)({incoming:null,outgoing:[]}),w=(0,c.useRef)(!1),S=()=>{t&&(m(),e?l.batch((()=>{p(e,!0);const n=t.map((e=>(0,a.cloneBlock)(e)));w.current&&(E.current.incoming=n),m(),u(e,n)})):(w.current&&(E.current.incoming=t),i(t)))},C=(0,c.useRef)(r),x=(0,c.useRef)(o);(0,c.useEffect)((()=>{C.current=r,x.current=o}),[r,o]),(0,c.useEffect)((()=>{if(E.current.outgoing.includes(t))E.current.outgoing[E.current.outgoing.length-1]===t&&(E.current.outgoing=[]);else if(b(e)!==t){E.current.outgoing=[];const t=h(),o=v(),r=_();if(S(),n)s(n.selectionStart,n.selectionEnd,n.initialPosition);else{const n=k(o.clientId);t&&!n?d(e):s(o,r)}}}),[t,e]),(0,c.useEffect)((()=>{y||(E.current.outgoing=[],S())}),[y]),(0,c.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=l.select(Go);let i=b(e),a=n(),s=!1;w.current=!0;const c=l.subscribe((()=>{if(null!==e&&null===f(e))return;if(!(!e||r(e)))return;const l=n(),c=b(e),u=c!==i;if(i=c,u&&(E.current.incoming||o()))return E.current.incoming=null,void(a=l);if(u||s&&!u&&l&&!a){a=l,E.current.outgoing.push(i);(a?x.current:C.current)(i,{selection:{selectionStart:v(),selectionEnd:_(),initialPosition:t()}})}s=u}));return()=>{w.current=!1,c()}}),[l,e]),(0,c.useEffect)((()=>()=>{m(),e?(p(e,!1),m(),u(e,[])):i([])}),[])}const Zd=Wd((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Fo((0,g.useDispatch)(Go));return(0,c.useEffect)((()=>{r({...n,__internalIsInitialized:!0},o)}),[n]),qd(e),(0,c.createElement)(Cd,null,t)})),Yd=e=>(0,c.createElement)(Zd,{...e,stripExperimentalSettings:!0},e.children);function Xd(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,g.useSelect)(Go),{clearSelectedBlock:o}=(0,g.useDispatch)(Go),{clearBlockSelection:r}=e();return(0,p.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",l),()=>{e.removeEventListener("mousedown",l)};function l(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function Qd(e){return(0,c.createElement)("div",{ref:Xd(),...e})}function Jd(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l,__unstableIsFullySelected:i}=e(Go);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l(),isFullSelection:i()}}function ep(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:l}=(0,g.useSelect)(Jd,[]);return(0,p.useRefEffect)((r=>{const{ownerDocument:i}=r,{defaultView:a}=i;if(null==e)return;if(!o||t)return;const{length:s}=n;s<2||l&&(r.contentEditable=!0,r.focus(),a.getSelection().removeAllRanges())}),[o,t,n,r,e,l])}function tp(e,t,n,o){let r,l=ea.focus.focusable.find(n);return t&&l.reverse(),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),l.find((function(e){if(1!==e.children.length||!function(e,t){return e.closest(sd)===t.closest(sd)}(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!ea.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function np(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,g.useSelect)(Go),{selectBlock:l}=(0,g.useDispatch)(Go);return(0,p.useRefEffect)((i=>{let a;function s(){a=null}function c(s){if(s.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:m,metaKey:g}=s,h=c===yd.UP,f=c===yd.DOWN,b=c===yd.LEFT,v=c===yd.RIGHT,_=h||b,k=b||v,y=h||f,E=k||y,w=d||p||m||g,S=y?ea.isVerticalEdge:ea.isHorizontalEdge,{ownerDocument:C}=i,{defaultView:x}=C;if(!E)return;if(o()){if(d)return;if(!r())return;return s.preventDefault(),void(_?l(e()):l(t(),-1))}if(!function(e,t,n){const o=t===yd.UP||t===yd.DOWN,{tagName:r}=e,l=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(l);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(l);return"TEXTAREA"!==r}(u,c,w))return;y?a||(a=(0,ea.computeCaretRect)(x)):a=null;const B=(0,ea.isRTL)(u)?!_:_,{keepCaretInsideBlock:I}=n();if(d)(function(e,t){const n=tp(e,t,i);return n&&pd(n)})(u,_)&&S(u,_)&&(i.contentEditable=!0,i.focus());else if(!y||!(0,ea.isVerticalEdge)(u,_)||m&&!(0,ea.isHorizontalEdge)(u,B)||I){if(k&&x.getSelection().isCollapsed&&(0,ea.isHorizontalEdge)(u,B)&&!I){const e=tp(u,B,i);(0,ea.placeCaretAtHorizontalEdge)(e,_),s.preventDefault()}}else{const e=tp(u,_,i,!0);e&&((0,ea.placeCaretAtVerticalEdge)(e,m?!_:_,m?void 0:a),s.preventDefault())}}return i.addEventListener("mousedown",s),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",s),i.removeEventListener("keydown",c)}}),[])}const op=window.wp.keyboardShortcuts;function rp(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,g.useSelect)(Go),{multiSelect:o,selectBlock:r}=(0,g.useDispatch)(Go),l=(0,op.__unstableUseShortcutEventMatch)();return(0,p.useRefEffect)((i=>{function a(a){if(!l("core/block-editor/select-all",a))return;const s=t();if(s.length<2&&!(0,ea.isEntirelySelected)(a.target))return;a.preventDefault();const[c]=s,u=n(c),d=e(u);s.length!==d.length?o(d[0],d[d.length-1]):u&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[])}function lp(e,t){e.contentEditable=t,t&&e.focus()}function ip(){const{startMultiSelect:e,stopMultiSelect:t}=(0,g.useDispatch)(Go),{isSelectionEnabled:n,hasMultiSelection:o,isDraggingBlocks:r}=(0,g.useSelect)(Go);return(0,p.useRefEffect)((l=>{const{ownerDocument:i}=l,{defaultView:a}=i;let s,c;function u(){t(),a.removeEventListener("mouseup",u),c=a.requestAnimationFrame((()=>{if(o())return;lp(l,!1);const e=a.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);s.contains(t)&&s.focus()}}))}function d({buttons:t,target:o}){r()||1===t&&"true"===o.getAttribute("contenteditable")&&n()&&(s=i.activeElement,e(),a.addEventListener("mouseup",u),lp(l,!0))}return l.addEventListener("mouseout",d),()=>{l.removeEventListener("mouseout",d),a.removeEventListener("mouseup",u),a.cancelAnimationFrame(c)}}),[e,t,n,o])}function ap(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function sp(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,g.useDispatch)(Go),{getBlockParents:o,getBlockSelectionStart:r}=(0,g.useSelect)(Go);return(0,p.useRefEffect)((n=>{const{ownerDocument:l}=n,{defaultView:i}=l;function a(l){const a=i.getSelection();if(!a.rangeCount)return;const s=l.shiftKey&&"mouseup"===l.type;if(a.isCollapsed&&!s)return void ap(n,!1);let c=pd(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(a)),u=pd(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(a));if(s){const e=r(),t=pd(l.target),n=t!==u;(c===u&&a.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void ap(n,!1);if(c===u)t(c);else{const t=[...o(c),c],n=[...o(u),u],r=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[r],n[r])}}function s(){l.addEventListener("selectionchange",a),i.addEventListener("mouseup",a)}function c(){l.removeEventListener("selectionchange",a),i.removeEventListener("mouseup",a)}function u(){c(),s()}return s(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,o])}function cp(){const{selectBlock:e}=(0,g.useDispatch)(Go),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,g.useSelect)(Go);return(0,p.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const i=n(),a=pd(l.target);l.shiftKey?i!==a&&(r.contentEditable=!0,r.focus()):o()&&e(a)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}function up(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=(0,g.useSelect)(Go),{replaceBlocks:r,__unstableSplitSelection:l,removeBlocks:i,__unstableDeleteSelection:s,__unstableExpandSelection:c}=(0,g.useDispatch)(Go);return(0,p.useRefEffect)((u=>{function d(e){"true"===u.contentEditable&&e.preventDefault()}function p(d){d.defaultPrevented||o()&&(d.keyCode===yd.ENTER?(u.contentEditable=!1,d.preventDefault(),e()?r(t(),(0,a.createBlock)((0,a.getDefaultBlockName)())):l()):d.keyCode===yd.BACKSPACE||d.keyCode===yd.DELETE?(u.contentEditable=!1,d.preventDefault(),e()?i(t()):n()?s(d.keyCode===yd.DELETE):c()):1!==d.key.length||d.metaKey||d.ctrlKey||(u.contentEditable=!1,n()?s(d.keyCode===yd.DELETE):(d.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function m(e){o()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",d),u.addEventListener("keydown",p),u.addEventListener("compositionstart",m),()=>{u.removeEventListener("beforeinput",d),u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",m)}}),[])}function dp(){const[e,t,n]=function(){const e=(0,c.useRef)(),t=(0,c.useRef)(),n=(0,c.useRef)(),o=(0,c.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,g.useSelect)(Go),{setNavigationMode:a}=(0,g.useDispatch)(Go),s=(0,g.useSelect)((e=>e(Go).isNavigationMode()),[])?void 0:"0",u=(0,c.useRef)();function d(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=ea.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const m=(0,c.createElement)("div",{ref:t,tabIndex:s,onFocus:d}),h=(0,c.createElement)("div",{ref:n,tabIndex:s,onFocus:d}),f=(0,p.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===yd.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==yd.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));const c=ea.focus.tabbable[i](e.target);if((0,ea.isFormElement)(c)&&((e,t)=>{const n=t.closest("[data-block]")?.getAttribute("data-block"),o=n===l(),r=e.contains(t);return o||r})(e.target.closest("[data-block]"),c))return;const d=o?t:n;u.current=!0,d.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){if(o.keyCode!==yd.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",l=ea.focus.tabbable[r](o.target);l!==t.current&&l!==n.current||(o.preventDefault(),l.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:g}=m;return g.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{g.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[m,(0,p.useMergeRefs)([e,f]),h]}(),o=(0,g.useSelect)((e=>e(Go).hasMultiSelection()),[]);return[e,(0,p.useMergeRefs)([t,up(),ip(),sp(),cp(),ep(),rp(),np(),(0,p.useRefEffect)((e=>{if(e.tabIndex=0,e.contentEditable=o,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,v.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}const pp=(0,c.forwardRef)((function({children:e,...t},n){const[o,r,l]=dp();return(0,c.createElement)(c.Fragment,null,o,(0,c.createElement)("div",{...t,ref:(0,p.useMergeRefs)([r,n]),className:d()(t.className,"block-editor-writing-flow")},e),l)}));function mp({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,expand:l=!1,readonly:i,forwardedRef:a,...s}){const{resolvedAssets:u,isPreviewMode:h}=(0,g.useSelect)((e=>{const t=e(Go).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:f="",scripts:b=""}=u,[_,k]=(0,c.useState)(),[y,E]=(0,c.useState)([]),w=(0,c.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[])),[]),S=Xd(),[C,x,B]=dp(),[I,{height:T}]=(0,p.useResizeObserver)(),M=(0,p.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{documentElement:l}=o;t=o,function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover","mousemove"];for(const t of r)e.addEventListener(t,o)}(o),S(l),E(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir;for(const e of w)o.getElementById(e.id)||(o.head.appendChild(e.cloneNode(!0)),h||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{k(e.contentDocument)},e.addEventListener("load",o),()=>{e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),P=(0,p.useDisabled)({isDisabled:!i}),N=(0,p.useMergeRefs)([e,S,x,P]),L=`\n\n\t\n\t\t